/* ==========================================================================
   STERLING CIRCLE — Design System
   Homecare & Lifestyle Concierge
   ========================================================================== */

:root {
  /* Color tokens */
  --navy-950: #071A2B;
  --navy-900: #0B1D2D;
  --navy-800: #10283B;
  --navy-700: #17334A;
  --cream-light: #FAF8F3;
  --cream: #F5F1E8;
  --cream-dark: #EFE9DC;
  --gold: #C6A15B;
  --gold-dark: #A9863F;
  --gold-light: #D2B875;
  --charcoal: #262523;
  --charcoal-soft: #4A4844;
  --line-light: rgba(198, 161, 91, 0.28);
  --line-dark: rgba(198, 161, 91, 0.22);
  --line-hair-cream: rgba(38, 37, 35, 0.10);

  /* Type */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--cream-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--navy-950); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  color: var(--navy-950);
  letter-spacing: -0.01em;
}

.serif-italic { font-style: italic; color: var(--gold-dark); font-weight: 500; }

p { margin: 0; line-height: 1.7; color: var(--charcoal-soft); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold-light); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }

.section-head { max-width: 640px; margin-bottom: 3.25rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.2vw, 2.9rem); margin-top: 0.9rem; }
.section-head p { margin-top: 1.1rem; font-size: 1.05rem; }

.gold-rule {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.1rem 0;
}
.gold-rule.center { margin-left: auto; margin-right: auto; background: var(--gold); width: 44px; }

.eyebrow.center + .gold-rule.center { margin-top: 0.9rem; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }

section { position: relative; }
.section-pad { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-pad-sm { padding: clamp(3rem, 6vw, 4.75rem) 0; }

.bg-navy { background: var(--navy-950); color: var(--cream); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--cream-light); }
.bg-navy p { color: rgba(250, 248, 243, 0.72); }
.bg-cream { background: var(--cream-light); }
.bg-cream-dk { background: var(--cream); }

.texture-navy {
  background-image:
    radial-gradient(ellipse at 20% -10%, rgba(198,161,91,0.10), transparent 55%),
    radial-gradient(ellipse at 100% 110%, rgba(198,161,91,0.06), transparent 50%);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 0.35s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-950);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy-950);
  border-color: var(--navy-950);
}
.btn-outline-dark:hover { background: var(--navy-950); color: var(--cream-light); }

.btn-outline-light {
  background: transparent;
  color: var(--cream-light);
  border-color: rgba(250,248,243,0.45);
}
.btn-outline-light:hover { background: var(--cream-light); color: var(--navy-950); border-color: var(--cream-light); }

.btn-text {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-text:hover { gap: 0.85rem; color: var(--navy-950); }
.bg-navy .btn-text { color: var(--gold-light); }
.bg-navy .btn-text:hover { color: var(--cream-light); }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.35rem 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(7, 26, 43, 0.97);
  padding: 0.9rem 0;
  border-color: var(--line-dark);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.5);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand img { height: 44px; width: 44px; border-radius: 50%; }
.brand-word { font-family: var(--font-serif); color: var(--cream-light); }
.brand-word .name { display: block; font-size: 1.28rem; letter-spacing: 0.04em; line-height: 1; }
.brand-word .sub { display: block; font-family: var(--font-sans); font-size: 0.55rem; letter-spacing: 0.24em; color: var(--gold-light); text-transform: uppercase; margin-top: 0.35rem; }

.main-nav { display: flex; align-items: center; gap: 2.1rem; }
.main-nav a {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,248,243,0.82);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--gold-light); }

.header-right { display: flex; align-items: center; gap: 1.6rem; }
.header-cta { display: inline-flex; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
}
.hamburger span { width: 24px; height: 1px; background: var(--cream-light); display: block; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--navy-950);
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 1.6rem clamp(1.5rem, 6vw, 3rem) 3rem;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3rem; }
.mobile-nav-close { background: none; border: 1px solid var(--line-dark); color: var(--cream-light); width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--cream-light);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-dark);
  display: block;
}
.mobile-nav .header-cta { margin-top: 2.5rem; }
.mobile-nav .btn { width: 100%; }
.mobile-nav-contact { margin-top: auto; padding-top: 2.5rem; color: rgba(250,248,243,0.6); font-size: 0.85rem; }
.mobile-nav-contact a { color: var(--gold-light); }

body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--cream-light);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,26,43,0.94) 0%, rgba(7,26,43,0.82) 32%, rgba(7,26,43,0.42) 62%, rgba(7,26,43,0.15) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 4rem; }
.hero-content .wrap { max-width: 640px; }
.hero-content h1 {
  color: var(--cream-light);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  margin-top: 1.1rem;
}
.hero-content h1 em { font-style: italic; color: var(--gold-light); }
.hero-content p.lead { margin-top: 1.5rem; font-size: 1.12rem; color: rgba(250,248,243,0.82); max-width: 520px; }
.hero-content .cta-row { margin-top: 2.4rem; }

.hero.hero-sm { min-height: 58vh; }
.hero.hero-sm .hero-content { padding-top: 5rem; }

.hero-scroll-cue {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: rgba(250,248,243,0.55); font-size: 0.65rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.hero-scroll-cue .line { width: 1px; height: 34px; background: rgba(250,248,243,0.35); position: relative; overflow: hidden; }
.hero-scroll-cue .line::after { content:""; position:absolute; top:-100%; left:0; width:100%; height:100%; background: var(--gold); animation: scrollcue 2.4s var(--ease) infinite; }
@keyframes scrollcue { to { top: 100%; } }

/* ---------- Statement band ---------- */
.statement-band { text-align: center; }
.statement-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--cream-light); }
.statement-band h2 em { color: var(--gold-light); font-style: italic; }
.statement-band .tag { margin-top: 1.25rem; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250,248,243,0.55); }

/* ---------- Service grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-hair-cream);
  border-left: 1px solid var(--line-hair-cream);
}
.service-card {
  padding: 2.6rem 2.1rem;
  border-right: 1px solid var(--line-hair-cream);
  border-bottom: 1px solid var(--line-hair-cream);
  transition: background 0.4s var(--ease);
}
.service-card:hover { background: rgba(198,161,91,0.06); }
.service-icon { width: 46px; height: 46px; margin-bottom: 1.6rem; color: var(--gold); }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-family: var(--font-sans); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-950); }
.service-card p { margin-top: 0.9rem; font-size: 0.95rem; }
.service-card .btn-text { margin-top: 1.5rem; }

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame {
  position: absolute; inset: -14px; border: 1px solid var(--gold); z-index: -1;
}
.split-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split-copy p + p { margin-top: 1.1rem; }
.split-copy .cta-row { margin-top: 2.2rem; }
.split-copy h2 { margin-top: 0.9rem; }

/* ---------- Process steps ---------- */
.process-list { border-top: 1px solid var(--line-hair-cream); }
.process-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2.5rem;
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--line-hair-cream);
  align-items: start;
}
.process-num { font-family: var(--font-serif); font-size: 2.6rem; color: var(--gold); font-weight: 500; line-height: 1; }
.process-item h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.process-item p { max-width: 620px; }

/* ---------- Advisor / Why grid ---------- */
.advisor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 3rem; margin-top: 1rem; }
.advisor-item { display: flex; align-items: center; gap: 0.9rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line-dark); font-size: 0.98rem; color: rgba(250,248,243,0.88); }
.advisor-item .mark { color: var(--gold); font-size: 1.1rem; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-hair-cream); border: 1px solid var(--line-hair-cream); }
.why-card { background: var(--cream-light); padding: 2.6rem 2.2rem; }
.why-card .num { font-family: var(--font-serif); color: var(--gold); font-size: 1.05rem; }
.why-card h3 { font-size: 1.25rem; margin-top: 0.8rem; }
.why-card p { margin-top: 0.7rem; font-size: 0.95rem; }

/* ---------- Editorial image band ---------- */
.editorial-band { position: relative; height: clamp(320px, 46vw, 560px); overflow: hidden; }
.editorial-band img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s var(--ease); }
.editorial-band:hover img { transform: scale(1.04); }
.editorial-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(to top, rgba(7,26,43,0.82), transparent);
  color: var(--cream-light);
}
.editorial-caption .eyebrow { color: var(--gold-light); }
.editorial-caption p { color: rgba(250,248,243,0.85); max-width: 480px; margin-top: 0.5rem; }

/* ---------- Consultation CTA band ---------- */
.consult-band { text-align: center; }
.consult-band .mark { width: 46px; margin: 0 auto 1.4rem; }
.consult-band h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); max-width: 620px; margin: 0.7rem auto 0; }
.consult-band .cta-row { justify-content: center; margin-top: 1.9rem; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(4rem, 7vw, 5.5rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand { margin-bottom: 1.1rem; }
.footer-brand p { max-width: 280px; font-size: 0.92rem; color: rgba(250,248,243,0.6); margin-top: 1rem; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.2rem; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col a { font-size: 0.92rem; color: rgba(250,248,243,0.72); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.8rem 0 2.4rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom .legal { font-size: 0.8rem; color: rgba(250,248,243,0.5); }
.footer-bottom .legal-links { display: flex; gap: 1.6rem; }
.footer-bottom .legal-links a { font-size: 0.8rem; color: rgba(250,248,243,0.5); }
.footer-bottom .legal-links a:hover { color: var(--gold-light); }
.footer-motto { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--gold-light); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250,248,243,0.55); display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb a { color: rgba(250,248,243,0.75); }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Forms ---------- */
.form-card { background: var(--cream-light); border: 1px solid var(--line-hair-cream); padding: clamp(2rem, 4vw, 3.2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2rem; }
.form-field { display: flex; flex-direction: column; gap: 0.55rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-950); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(38,37,35,0.18);
  background: #fff;
  color: var(--charcoal);
  border-radius: 2px;
  transition: border-color 0.3s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold); outline: none; }
.form-field textarea { resize: vertical; min-height: 130px; }
.radio-row { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.radio-opt { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; color: var(--charcoal-soft); }
.form-submit { margin-top: 2.2rem; }
.form-note { margin-top: 1.1rem; font-size: 0.82rem; color: var(--charcoal-soft); opacity: 0.75; }

.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.contact-info-card { padding: 1.9rem 0; border-top: 1px solid var(--line-hair-cream); }
.contact-info-card h4 { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.7rem; }
.contact-info-card p, .contact-info-card a { font-size: 1rem; color: var(--navy-950); }

/* ---------- Service page specific ---------- */
.offer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; margin-top: 1rem; }
.offer-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-hair-cream); }
.offer-item .mark { color: var(--gold); font-family: var(--font-serif); font-size: 1.2rem; flex-shrink: 0; }
.offer-item p { color: var(--charcoal); font-size: 1rem; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1rem; }
.related-card { border: 1px solid var(--line-hair-cream); padding: 2.1rem; transition: border-color 0.35s var(--ease), transform 0.35s var(--ease); }
.related-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.related-card .eyebrow { margin-bottom: 0.8rem; }
.related-card h3 { font-size: 1.25rem; }
.related-card p { margin-top: 0.6rem; font-size: 0.92rem; }
.related-card .btn-text { margin-top: 1.2rem; }

/* ---------- Testimonial ---------- */
.testimonial { text-align: center; max-width: 780px; margin: 0 auto; }
.testimonial blockquote { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-style: italic; color: var(--navy-950); line-height: 1.5; margin: 0; }
.testimonial cite { display: block; margin-top: 1.6rem; font-style: normal; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.max-540 { max-width: 540px; }
.tac { text-align: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav, .header-right .header-cta { display: none; }
  .hamburger { display: flex; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 16/11; }
  .contact-info-grid { grid-template-columns: 1fr; gap: 0; }
  .related-grid { grid-template-columns: 1fr; }
  .offer-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero { min-height: 86vh; }
  .hero-content h1 { font-size: 2.5rem; }
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 1fr; gap: 0.8rem; }
  .advisor-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section-pad { padding: 3.5rem 0; }
  .statement-band h2 { font-size: 1.6rem; }
}
