/* =============================================================
   Laurelhurst House Sitting — shared design system
   Brand palette matched to the printed flyer.
   ============================================================= */

:root {
  /* Core palette */
  --forest:      #14302f;  /* deep teal/forest background          */
  --forest-soft: #1d403e;  /* cards on dark                        */
  --cream:       #f6ecd9;  /* warm cream surface                   */
  --cream-deep:  #efe1c6;  /* cream borders / subtle fills         */
  --sage:        #6f9568;  /* primary green accent                 */
  --sage-deep:   #3f6b4f;  /* darker green                         */
  --terracotta:  #c75d3a;  /* price badge / primary CTA            */
  --terracotta-d:#a8482b;
  --gold:        #d8a23c;  /* highlight                            */
  --ink:         #1f2d2b;  /* body text on cream                   */
  --ink-soft:    #4d5d5a;
  --paper:       #fffaf1;  /* page background                      */
  --line:        #e3d6bd;
  --danger:      #b23b2e;
  --ok:          #3f6b4f;

  --radius:   14px;
  --radius-lg:22px;
  --shadow:   0 10px 30px rgba(20,48,47,.12);
  --shadow-sm:0 4px 14px rgba(20,48,47,.10);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1120px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; color: var(--forest); margin: 0 0 .4em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--sage-deep); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
.center .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--terracotta-d); }
.btn--green { background: var(--sage-deep); color: #fff; }
.btn--green:hover { background: #355c43; }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--forest); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.1rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--forest);
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
}
.nav { display: flex; align-items: center; gap: 1rem; padding: 14px 22px; max-width: var(--maxw); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--cream); margin-right: auto; }
.brand__mark {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--cream); color: var(--forest);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; line-height: 1; }
.brand__tag  { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  color: var(--cream); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 999px;
}
.nav__links a:hover, .nav__links a.active { background: rgba(246,236,217,.14); }
.nav__cta { margin-left: .4rem; }
.nav__toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--forest); padding: 8px 14px 16px;
    border-bottom: 3px solid var(--gold);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .8rem .6rem; }
  .nav__cta { margin: .4rem 0 0; }
}

/* ---------- hero ---------- */
.hero { background: var(--forest); color: var(--cream); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(216,162,60,.18), transparent 60%),
    radial-gradient(700px 360px at 0% 120%, rgba(111,149,104,.22), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px 0 72px; }
.hero h1 { color: var(--cream); }
.hero p { color: #e7dcc6; font-size: 1.2rem; max-width: 50ch; }
.hero .eyebrow { color: var(--gold); }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero__card {
  background: var(--cream); color: var(--ink); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--cream-deep);
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .8rem; }

.price-badge {
  display: inline-flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--terracotta); color: #fff; border-radius: 18px; padding: 16px 26px;
  box-shadow: var(--shadow-sm); border: 3px solid #fff3;
}
.price-badge .amt { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.price-badge .per { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.price-badge .all { font-size: .78rem; opacity: .92; margin-top: 4px; }

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 48px; }
}

/* ---------- feature / service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--cream); color: var(--sage-deep); margin-bottom: 14px; font-size: 1.6rem;
}
.card h3 { margin-bottom: .3rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.band { background: var(--cream); }
.band--forest { background: var(--forest); color: var(--cream); }
.band--forest h2, .band--forest h3 { color: var(--cream); }

/* team */
.team { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 700px){ .team { grid-template-columns: 1fr; } }
.team .card { text-align: center; }
.avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--sage); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
}

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--terracotta); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}

/* ---------- forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); max-width: 720px; margin-inline: auto;
}
.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 800; margin-bottom: 6px; font-size: .95rem; color: var(--forest); }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.input, .select, .textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: 12px;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(111,149,104,.25); }
.textarea { min-height: 120px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px){ .row { grid-template-columns: 1fr; } }

.checklist { display: grid; gap: 10px; }
.check {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--paper);
}
.check:hover { border-color: var(--sage); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--sage-deep); }
.check .t { font-weight: 700; }
.check .d { font-size: .85rem; color: var(--ink-soft); }
.check.selected { border-color: var(--sage-deep); background: #f3f7f1; }

.segmented { display: inline-flex; background: var(--cream); border: 2px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.segmented button {
  border: 0; background: transparent; padding: .55rem 1.1rem; border-radius: 999px;
  font: inherit; font-weight: 800; cursor: pointer; color: var(--ink-soft);
}
.segmented button.active { background: var(--forest); color: var(--cream); }

.pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.pill--upcoming { background: #eaf2e7; color: var(--sage-deep); }
.pill--past { background: #efe9da; color: var(--ink-soft); }
.pill--cancelled { background: #f7e3e0; color: var(--danger); }

/* notices */
.notice { padding: 14px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 16px; display: none; }
.notice.show { display: block; }
.notice--ok { background: #eaf2e7; color: var(--sage-deep); border: 1px solid #cfe2c8; }
.notice--err { background: #f9e6e2; color: var(--danger); border: 1px solid #f0cbc4; }
.notice--info { background: #fdf3da; color: #87671f; border: 1px solid #f0dfae; }

/* visit list */
.visit {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px;
}
.visit__date { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--forest); }
.visit__svc { color: var(--ink-soft); font-size: .92rem; }
.visit__price { font-weight: 800; }

/* summary box */
.summary { background: var(--cream); border: 1px solid var(--cream-deep); border-radius: var(--radius); padding: 18px 20px; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .total { border-top: 2px dashed var(--cream-deep); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.15rem; color: var(--forest); }

/* pay options */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 700px){ .pay-grid { grid-template-columns: 1fr; } }
.pay-card { text-align: center; }
.pay-card .logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); color: var(--cream); padding: 48px 0 28px; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 700px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer h4 { color: var(--gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(246,236,217,.18); font-size: .85rem; color: #cdbfa6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--cream); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }

.hidden { display: none !important; }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
