/* ============================================================
   HERITAGE OAKS ASSISTED LIVING — style.css
   Warm-Comfort palette · Source Serif 4 + Inter Tight
   Senior Living template build — site-forge house style
   ============================================================ */

:root {
  /* HERITAGE OAKS BRAND WORLD: linen · bark · terra · fern */
  --linen:       #FAF7F1;   /* warm cream ground */
  --linen-2:     #F0E8DC;   /* linen panel */
  --linen-soft:  #FDFAF5;   /* softest tint */
  --bark:        #2C3525;   /* forest-deep ink */
  --bark-2:      #1E2519;   /* darkest */
  --terra:       #C07A62;   /* soft terracotta — primary CTA */
  --terra-2:     #D99B88;   /* lighter terracotta */
  --terra-soft:  #EDCFC7;   /* blush tint */
  --fern:        #5B7A52;   /* sage green */
  --fern-2:      #7A9C70;   /* lighter sage */
  --fern-soft:   #C2D4BB;   /* sage tint */
  --dust:        #5C5247;   /* warm body text */
  --dust-2:      #7D7269;   /* secondary muted */

  /* STRUCTURAL ALIASES (base.css cascade) */
  --paper:       var(--linen);
  --paper-2:     var(--linen-2);
  --paper-soft:  var(--linen-soft);
  --ink:         var(--bark);
  --ink-2:       var(--bark-2);
  --accent:      var(--terra);
  --accent-2:    var(--terra-2);
  --accent-soft: var(--terra-soft);
  --spot:        var(--fern);
  --muted:       var(--dust);
  --muted-2:     var(--dust-2);
  --line:        rgba(44,53,37,.14);
  --line-2:      rgba(44,53,37,.06);

  /* TYPOGRAPHY — Source Serif 4 display + Inter Tight body */
  --f-display: "Source Serif 4", Georgia, serif;
  --f-body:    "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* SCALE + DEPTH */
  --container:        1320px;
  --container-narrow: 1040px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -16px rgba(0,0,0,.12);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.06), 0 24px 48px -20px rgba(0,0,0,.18);
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
*::selection { background: var(--bark); color: var(--linen); }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; max-width: 100vw; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 18px; /* LARGE type — adult-child audience */
  line-height: 1.7;
  font-weight: 400;
  color: var(--bark);
  background: var(--linen);
  overflow-x: hidden;
  width: 100%; max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
section, header, footer { max-width: 100vw; overflow-x: clip; position: relative; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .35s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--linen-2); }
::-webkit-scrollbar-thumb { background: var(--bark); border-radius: 4px; }

/* FILM GRAIN (premium finish) */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* TYPOGRAPHY — large, readable */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -.014em;
  line-height: 1.1;
  color: var(--bark);
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
p  { color: var(--dust); font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.8; }
em, .italic { font-style: italic; font-family: var(--f-display); }
.serif { font-family: var(--f-display); font-weight: 400; letter-spacing: -.012em; }

/* EYEBROW — terracotta rule (house signature) */
.eyebrow {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: .4em;
  font-size: 11px;
  font-weight: 600;
  color: var(--bark);
  display: inline-block;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1.5px;
  background: var(--terra); margin-right: 14px; vertical-align: middle;
}
.eyebrow--light { color: var(--linen-soft); }
.eyebrow--light::before { background: var(--terra-2); }
.label-mono {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dust-2);
}

/* LAYOUT */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--dark { background: var(--bark); color: var(--linen); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--linen); }
.section--dark p { color: rgba(250,247,241,.72); }
.section--paper2 { background: var(--linen-2); }
.section--fern { background: var(--fern); color: var(--linen); }
.grid { display: grid; gap: clamp(24px, 4vw, 56px); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 18px 34px; border: 1.5px solid var(--bark);
  background: var(--bark); color: var(--linen);
  transition: all .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--bark); opacity: 1; }
.btn--ghost { background: transparent; color: var(--bark); }
.btn--ghost:hover { background: var(--bark); color: var(--linen); }
.btn--terra { background: var(--terra); border-color: var(--terra); color: var(--linen); }
.btn--terra:hover { background: transparent; color: var(--terra); }
.btn--white { background: var(--linen); border-color: var(--linen); color: var(--bark); }
.btn--white:hover { background: transparent; color: var(--linen); }

/* ANNOUNCE BAR */
.announce {
  background: var(--bark); text-align: center; padding: 12px 20px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(250,247,241,.7); font-weight: 400;
}
.announce a { color: var(--terra-2); }
.announce a:hover { color: var(--linen); opacity: 1; }

/* STICKY NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 24px; padding: 20px var(--gutter);
  background: color-mix(in srgb, var(--linen) 94%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.nav.scrolled { padding-top: 14px; padding-bottom: 14px; }
.nav-logo {
  font-family: var(--f-display);
  font-size: 1.25rem;
  letter-spacing: -.01em;
  color: var(--bark);
  white-space: nowrap;
}
.nav-logo span { color: var(--terra); }
.nav-links {
  display: flex; gap: 28px; justify-self: center; justify-content: center;
  list-style: none; font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 600;
}
.nav-links a:hover { color: var(--terra); opacity: 1; }
.nav-cta { justify-self: end; white-space: nowrap; }
.nav-phone { font-size: 13px; font-weight: 600; color: var(--bark); letter-spacing: .04em; }
.nav-phone:hover { color: var(--terra); opacity: 1; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 24px; height: 1.5px; background: var(--bark); transition: .3s var(--ease); }

/* HERO */
.hero {
  min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(145deg, var(--bark-2) 0%, var(--bark) 52%, #3D5A35 100%);
  padding: clamp(72px, 12vh, 140px) 0 clamp(56px, 8vw, 100px);
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(192,122,98,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  color: rgba(250,247,241,.55); margin-bottom: 32px; text-transform: uppercase;
}
.hero-meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--terra); flex-shrink: 0; }
.hero h1 { color: var(--linen); max-width: 16ch; margin-bottom: 28px; }
.hero h1 em { color: var(--terra-2); font-style: italic; }
.hero-tag { color: rgba(250,247,241,.75); max-width: 52ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.75; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* MARQUEE */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; background: var(--linen-2); }
.marquee-track {
  display: flex; gap: 32px; white-space: nowrap; width: max-content;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--dust-2);
  animation: marq 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .dot-sep { color: var(--terra); font-size: 14px; line-height: 1; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* TRUST BAR */
.trust-bar { background: var(--linen-2); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-item {
  padding: clamp(32px, 5vw, 56px) clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--line);
  text-align: center;
}
.trust-item:last-child { border-right: none; }
.trust-num {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  color: var(--bark); line-height: 1; letter-spacing: -.02em;
}
.trust-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dust-2); margin-top: 8px; }

/* CARE LEVELS */
.care-card {
  background: var(--linen-soft);
  border: 1px solid var(--line);
  border-top: 3px solid var(--terra);
  padding: clamp(32px, 4vw, 48px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.care-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.care-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--fern-soft); color: var(--fern); font-size: 20px;
  margin-bottom: 20px;
}
.care-card h3 { margin-bottom: 14px; }
.care-card ul { list-style: none; margin-top: 18px; }
.care-card ul li {
  padding: 8px 0; border-bottom: 1px solid var(--line-2);
  font-size: clamp(.9rem, 1vw, 1rem); color: var(--dust);
  display: flex; align-items: flex-start; gap: 10px;
}
.care-card ul li::before { content: "—"; color: var(--terra); flex-shrink: 0; font-weight: 600; }
.care-card ul li:last-child { border-bottom: none; }

/* THE HOME / GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
}
.gallery-item {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--fern) 0%, var(--bark) 100%);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 16px; overflow: hidden; position: relative;
  cursor: pointer; transition: transform .4s var(--ease);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item:nth-child(2) { background: linear-gradient(135deg, #7A6045 0%, var(--bark) 100%); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg, var(--terra) 0%, #7A3D2E 100%); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg, var(--bark) 0%, #3D5A35 100%); }
.gallery-item:nth-child(5) { background: linear-gradient(135deg, #6B5A3E 0%, var(--bark) 100%); }
.gallery-item:nth-child(6) { background: linear-gradient(135deg, #3D5A35 0%, var(--terra) 100%); }
.gallery-cap {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(250,247,241,.7);
  background: rgba(28,37,25,.55); padding: 5px 10px; backdrop-filter: blur(4px);
}
.virtual-tour-strip {
  background: var(--fern); color: var(--linen);
  padding: clamp(32px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-top: 40px;
  border-radius: 2px;
}
.virtual-tour-strip h3 { color: var(--linen); margin-bottom: 8px; }
.virtual-tour-strip p { color: rgba(250,247,241,.8); }

/* AMENITIES */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(40px, 5vw, 64px);
}
.amenity-item {
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--linen-soft);
  border: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 16px;
}
.amenity-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--terra-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--terra); font-size: 18px; margin-top: 2px;
}
.amenity-item h4 {
  font-family: var(--f-body); font-size: 1rem; font-weight: 600;
  letter-spacing: -.01em; color: var(--bark); margin-bottom: 4px;
}
.amenity-item p { font-size: .9rem; }

/* TOUR FORM */
.tour-form-wrap {
  background: var(--linen-2);
  padding: clamp(40px, 5vw, 64px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--terra);
}
.tour-form-wrap input,
.tour-form-wrap select,
.tour-form-wrap textarea {
  width: 100%; padding: 16px 20px;
  font-family: var(--f-body); font-size: 1rem;
  border: 1.5px solid var(--line);
  background: var(--linen-soft);
  color: var(--bark); outline: none;
  transition: border-color .3s var(--ease);
  margin-top: 12px;
  appearance: none;
  -webkit-appearance: none;
}
.tour-form-wrap input:focus,
.tour-form-wrap select:focus,
.tour-form-wrap textarea:focus { border-color: var(--terra); }
.tour-form-wrap textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 0; }
.form-field { display: flex; flex-direction: column; }
.form-field label { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dust-2); }

/* FAQ */
.faq-list { margin-top: clamp(32px, 4vw, 48px); }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: clamp(18px, 2.5vw, 24px) 0;
}
.faq-list details:last-child { border-bottom: none; }
.faq-list summary {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; color: var(--bark);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-family: var(--f-mono); font-size: 1.2rem;
  color: var(--terra); flex-shrink: 0; transition: transform .3s var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 14px; max-width: 68ch; padding-left: 0; }

/* CONTACT INFO BLOCK */
.contact-info p { font-size: clamp(1rem, 1.2vw, 1.1rem); margin-bottom: 10px; }
.contact-info a { color: var(--terra); font-weight: 600; }
.contact-info a:hover { opacity: .75; }

/* FOOTER */
.footer { background: var(--bark); color: var(--linen); padding: clamp(64px, 8vw, 100px) 0 40px; }
.footer h3, .footer h4 { color: var(--linen); font-size: 1rem; font-family: var(--f-body); font-weight: 600; letter-spacing: .05em; }
.footer p, .footer li { color: rgba(250,247,241,.65); font-size: .95rem; }
.footer a { color: rgba(250,247,241,.65); }
.footer a:hover { color: var(--terra-2); opacity: 1; }
.footer-logo { font-family: var(--f-display); font-size: 1.8rem; color: var(--linen); letter-spacing: -.01em; margin-bottom: 12px; }
.footer-logo span { color: var(--terra); }
.footer-credit {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(250,247,241,.14);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em;
  color: rgba(250,247,241,.4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-credit a { color: rgba(250,247,241,.4); }
.footer-credit a:hover { color: var(--terra-2); opacity: 1; }
.footer-social { display: flex; gap: 16px; margin-top: 16px; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(250,247,241,.55);
}
.footer-social a:hover { color: var(--terra-2); opacity: 1; }

/* REVEALS */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in, .no-js .reveal, .reveal.reveal--shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* IMAGE FALLBACK */
.img-fallback { display: flex; align-items: center; justify-content: center;
  background: var(--linen-2); border: 1px solid var(--line); min-height: 220px; }
.img-fallback-cap { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dust-2); padding: 24px; text-align: center; }

/* UTILITIES */
.center { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.maxw-prose { max-width: 60ch; }

/* RESPONSIVE */
@media (max-width: 1060px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links.open {
    display: flex; position: fixed; inset: 64px 0 auto 0; flex-direction: column;
    background: var(--linen); padding: 32px var(--gutter);
    gap: 22px; border-bottom: 1px solid var(--line); z-index: 99;
  }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(even) { border-right: none; }
  .amenity-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .virtual-tour-strip { flex-direction: column; align-items: flex-start; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
}
