/* ============================================================
   Windsor Woods Home Care — shared stylesheet
   Identity per Brand Book Vol. I:
   Cormorant Garamond (display) · Lora (body) · Inter (labels/UI)
   Parchment / Bark / Forest / Sand / Terracotta
   ============================================================ */

:root {
  --ink:        #1a1612;
  --ink-soft:   #3d342c;
  --mute:       #7a6f60;
  --line:       #d9cfb8;
  --line-soft:  #ece4d2;

  --bark:       #3a2418;
  --bark-2:     #52372a;
  --forest:     #2d6033;
  --forest-deep:#1f4424;
  --moss:       #7a9f6a;
  --moss-soft:  #dde5d2;
  --parchment:  #f6efde;
  --parchment-2:#efe6cf;
  --parchment-3:#e7dcc0;
  --sand:       #c8ae7d;
  --sand-soft:  #f0e5c9;
  --terracotta: #b8553a;
  --terracotta-2:#9c4530;
  --green-ok:   #2d6033;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--parchment); color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest); }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; letter-spacing: 0.005em; line-height: 1.08;
  margin: 0; color: var(--bark);
}
h1 { font-size: clamp(46px, 5.4vw, 80px); }
h2 { font-size: clamp(34px, 3.6vw, 52px); }
h3 { font-size: clamp(21px, 1.5vw, 26px); font-weight: 600; }
p  { margin: 0; line-height: 1.7; }

.serif-italic { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
em.accent { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--forest); }
.eyebrow {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--bark-2);
}
.lede { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.gold-rule { height: 1px; background: var(--sand); width: 64px; margin: 20px 0; border: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
  border-radius: 999px; text-decoration: none; border: 1.5px solid var(--bark); color: var(--bark);
  background: transparent; cursor: pointer; transition: all 0.18s ease; letter-spacing: 0.01em;
}
.btn:hover { background: var(--bark); color: var(--parchment); }
.btn.primary { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn.primary:hover { background: var(--terracotta-2); border-color: var(--terracotta-2); color: #fff; }
.btn.forest { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn.forest:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; }
.btn.lg { padding: 16px 28px; font-size: 15px; }
.btn.sm { padding: 8px 16px; font-size: 12.5px; }
.btn .arrow { font-size: 1.05em; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 239, 222, 0.94); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 52px; width: auto; mix-blend-mode: multiply; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 21px; color: var(--bark); letter-spacing: 0.01em; }
.logo-text small { font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: var(--ink); }
.nav-links a:hover { color: var(--terracotta); }
.nav-links a.active { color: var(--forest); font-weight: 600; }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--bark); border-radius: 8px;
  width: 42px; height: 42px; cursor: pointer; color: var(--bark);
  align-items: center; justify-content: center; font-size: 18px;
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--parchment); border-bottom: 1px solid var(--line);
    padding: 8px 32px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links .btn { margin-top: 12px; justify-content: center; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-top: 72px; padding-bottom: 48px; }
.page-hero h1 { max-width: 780px; margin-top: 16px; }
.page-hero .lede { max-width: 620px; margin-top: 20px; }

/* ---------- Photo placeholders ---------- */
.photo {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    var(--parchment-2) 0px, var(--parchment-2) 14px,
    var(--parchment-3) 14px, var(--parchment-3) 28px
  );
}
.photo.green {
  background: repeating-linear-gradient(
    -45deg,
    var(--moss-soft) 0px, var(--moss-soft) 14px,
    #d2dcc4 14px, #d2dcc4 28px
  );
}
.photo .ph-label {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 11px; letter-spacing: 0.06em; color: var(--mute);
  background: var(--parchment); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 4px; text-align: center; max-width: 80%;
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--parchment-2); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -22px rgba(58, 36, 24, 0.25); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--parchment-2); border: 1px solid var(--line);
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: var(--ink-soft);
}
.chip.dot::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--green-ok); }

/* ---------- Availability strip ---------- */
.availability {
  margin-top: 36px; padding: 18px 24px;
  background: var(--bark); color: var(--parchment);
  border-radius: 14px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.availability .live-dot {
  width: 10px; height: 10px; border-radius: 999px; background: var(--moss);
  animation: pulse 2.4s infinite; flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(122,159,106,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(122,159,106,0); }
}
.availability strong { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; }
.availability .detail { color: rgba(246,239,222,0.75); font-size: 13.5px; font-family: 'Inter', sans-serif; }
.availability .btn { margin-left: auto; border-color: rgba(246,239,222,0.4); color: var(--parchment); }
.availability .btn:hover { background: var(--parchment); color: var(--bark); border-color: var(--parchment); }

/* ---------- Section rhythm ---------- */
.section { padding-top: 88px; padding-bottom: 88px; }
.section.tinted { background: var(--parchment-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.section-head h2 { max-width: 640px; }
.section-head .helper { color: var(--mute); font-size: 14px; max-width: 300px; font-family: 'Inter', sans-serif; line-height: 1.6; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 26px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--parchment); }
.step-num {
  font-family: 'Cormorant Garamond', serif; font-size: 52px; font-weight: 400;
  color: var(--terracotta); line-height: 1; font-style: italic;
}
.step h4 { font-size: 21px; font-weight: 600; margin: 14px 0 8px; }
.step p { font-size: 13.5px; color: var(--ink-soft); }
.step-time {
  margin-top: 16px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute);
}

/* ---------- CTA card ---------- */
.cta-card {
  background: var(--forest-deep); color: var(--parchment);
  border-radius: 24px; padding: 56px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(200,174,125,0.28), transparent 65%);
  pointer-events: none;
}
.cta-card h2 { color: var(--parchment); }
.cta-card h2 em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--sand); }
.cta-card p { color: rgba(246,239,222,0.78); margin-top: 18px; max-width: 460px; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.cta-actions .btn { justify-content: space-between; border-color: rgba(246,239,222,0.35); color: var(--parchment); background: rgba(246,239,222,0.05); }
.cta-actions .btn.primary { border-color: var(--terracotta); background: var(--terracotta); }
.cta-actions .btn:hover { background: var(--parchment); color: var(--bark); border-color: var(--parchment); }
.cta-actions .btn.primary:hover { background: var(--terracotta-2); border-color: var(--terracotta-2); color: #fff; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--bark-2); }
.field input, .field select, .field textarea {
  font-family: 'Lora', serif; font-size: 15px; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: #fffdf6; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--forest); box-shadow: 0 0 0 3px rgba(45,96,51,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--mute); line-height: 1.6; }
.form-success {
  display: none; padding: 20px 24px; border-radius: 12px;
  background: var(--moss-soft); border: 1px solid var(--moss); color: var(--forest-deep);
  font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.6;
}

/* ---------- FAQ / details ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--parchment);
  margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; list-style: none;
  font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--bark);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'Inter', sans-serif; font-size: 18px; color: var(--terracotta); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { border-top: 1.5px solid var(--bark); padding-top: 14px; }
.stat .num { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 500; color: var(--forest); }
.stat .lbl { font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin-top: 2px; }

/* ---------- Footer ---------- */
footer { background: var(--parchment-3); border-top: 1px solid var(--line); padding: 60px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.foot-col h5 {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.foot-col a:hover { color: var(--terracotta); }
.foot-brand p { font-size: 14px; color: var(--ink-soft); max-width: 300px; line-height: 1.6; }
.foot-brand .contact { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--mute); margin-top: 14px; line-height: 1.8; }
.foot-bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--mute);
}
.foot-bottom .badges { display: flex; gap: 16px; }
.foot-bottom a { color: var(--mute); text-decoration: none; }
.foot-bottom a:hover { color: var(--terracotta); }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { grid-template-columns: 1fr; padding: 40px 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .steps-grid, .form-grid, .stats-row { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .availability { gap: 12px; padding: 16px 18px; }
  .availability .btn { margin-left: 0; width: 100%; justify-content: center; }
  .page-hero { padding-top: 48px; padding-bottom: 36px; }
}
