/* ==========================================================================
   All Nursing Health Services Inc — Design System
   Tokens: ink (deep navy-charcoal), stone (warm greige), sage (muted eucalyptus),
   brass (warm heritage gold). Signature motif: the "threshold arch" — rounded
   arch tops on imagery/cards, echoing the welcome of being cared for at home.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --ink: #16232F;
  --ink-soft: #40505C;
  --ink-faint: #7A8791;
  --stone: #EFEAE0;
  --stone-light: #F8F6F1;
  --white: #FFFFFF;
  --sage: #6E8570;
  --sage-dark: #47593F;
  --sage-tint: #E4EBE0;
  --brass: #AD8A54;
  --brass-dark: #8C6E3E;
  --brass-tint: #F1E7D3;
  --line: rgba(22, 35, 47, 0.12);
  --shadow-soft: 0 20px 50px -25px rgba(22, 35, 47, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(22, 35, 47, 0.28);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1200px;
  --arch-radius: 220px;
  --radius-card: 20px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body { overflow-x: hidden; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stone-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 560px) {
  .container {
    padding: 0 32px;
  }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.2vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--brass);
  display: inline-block;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Section rhythm */
.section { padding: 112px 0; }
.section--tight { padding: 80px 0; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
}
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); color: var(--stone-light); }
.section--ink .eyebrow { color: var(--brass-tint); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--testimonial { background: var(--sage-dark); color: var(--stone-light); }
.section--testimonial .eyebrow { color: var(--brass-tint); }
.section--testimonial h2, .section--testimonial h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sage-dark);
  color: var(--white);
  box-shadow: 0 14px 28px -14px rgba(71, 89, 63, 0.6);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(22,35,47,0.5); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--ink); background: var(--white); transform: translateY(-2px); }
.btn-ghost-light {
  background: transparent;
  color: var(--stone-light);
  border-color: rgba(248, 246, 241, 0.35);
}
.btn-ghost-light:hover { background: rgba(248,246,241,0.1); border-color: var(--brass); }
.btn-brass {
  background: var(--brass);
  color: var(--ink);
  box-shadow: 0 14px 28px -14px rgba(173, 138, 84, 0.65);
}
.btn-brass:hover { background: var(--brass-dark); color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 11px 22px; font-size: 0.85rem; }

/* ==========================================================================
   Top utility bar + Header
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: var(--stone-light);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
  gap: 16px;
}
.topbar-call { display: flex; align-items: center; gap: 8px; color: var(--stone-light); font-weight: 600; }
.topbar-call:hover { color: var(--brass-tint); }
.topbar a:hover { color: var(--brass-tint); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(71, 89, 63, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(248, 246, 241, 0.14);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(22,35,47,0.25); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; max-height: 42px; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 500;
  border-radius: 999px;
  color: var(--stone-light);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover, .nav-item.open .nav-link { background: rgba(248,246,241,0.16); color: var(--white); }
.nav-caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform 0.2s ease; opacity: 0.6; }
.nav-item.open .nav-caret { transform: rotate(225deg); margin-top: 3px; }

.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(620px, 90vw);
  max-width: 620px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  padding: 22px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  /* Prevent overflow */
  box-sizing: border-box;
}

@media (max-width: 860px) {
  .mega {
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
  }
}
.nav-item.open .mega { display: grid; opacity: 1; transform: translateX(-50%) translateY(0); }
.mega a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.mega a:hover { background: var(--stone-light); color: var(--sage-dark); }
.mega-title { grid-column: 1 / -1; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); padding: 4px 12px 8px; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; flex-direction: column; line-height: 1.2; font-size: 0.85rem; color: var(--stone-light); }
.header-phone strong { font-size: 1.02rem; font-family: var(--font-display); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 68px 0 100px;
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy h1 em { font-style: italic; color: var(--sage-dark); }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-trust-item { display: flex; align-items: baseline; gap: 8px; }
.hero-trust-item strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.hero-trust-item span { font-size: 0.82rem; color: var(--ink-faint); max-width: 12ch; }

.hero-media { position: relative; }
.hero-media-frame {
  border-radius: var(--arch-radius) var(--arch-radius) var(--radius-card) var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  position: relative;
}
.hero-media-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-caption {
  text-align: center;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3.6vw, 1.9rem);
  letter-spacing: 0.03em;
  color: var(--sage-dark);
}
.hero-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}
.hero-badge .icon-ring {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sage-tint);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 0.98rem; color: var(--ink); }

/* Arch divider */
.arch-divider { width: 100%; height: 60px; display: block; }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-strip {
  background: var(--stone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 32px;
  flex-wrap: wrap;
}
.trust-strip-item { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.trust-strip-item svg { flex-shrink: 0; }
.trust-strip-item span { font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; }

/* ==========================================================================
   Why choose grid
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 36px 30px;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.why-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--sage-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.why-card h3 { margin-bottom: 12px; }
.why-card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.service-card-media { aspect-ratio: 16/10; overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card-body p { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 18px; flex: 1; }
.service-card-link { font-size: 0.86rem; font-weight: 600; color: var(--sage-dark); display: inline-flex; align-items: center; gap: 6px; }
.service-card-link svg { transition: transform 0.2s ease; }
.service-card:hover .service-card-link svg { transform: translateX(4px); }

.services-more { text-align: center; margin-top: 48px; }

/* ==========================================================================
   Care process
   ========================================================================== */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  counter-reset: step;
  position: relative;
}
.process-list::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; padding: 0 18px; }
.process-num {
  counter-increment: step;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--sage-dark);
  margin-bottom: 22px;
}
.process-num::before { content: counter(step, decimal-leading-zero); }
.process-step h3 { margin-bottom: 10px; font-size: 1.08rem; }
.process-step p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* ==========================================================================
   RN supervision split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.split-media {
  border-radius: var(--radius-card) var(--radius-card) var(--arch-radius) var(--arch-radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.split-list { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.split-list-item { display: flex; gap: 14px; align-items: flex-start; }
.split-list-item .tick {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brass-tint);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.split-list-item p { margin: 0; color: var(--ink-soft); }
.split-list-item strong { color: var(--ink); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-wrap { position: relative; max-width: 780px; margin: 0 auto; }
.testimonial-track { overflow: hidden; }
.testimonial-slides { display: flex; transition: transform 0.5s ease; }
.testimonial-slide { min-width: 100%; padding: 0 8px; }
.testimonial-card {
  background: rgba(248,246,241,0.06);
  border: 1px solid rgba(248,246,241,0.16);
  border-radius: var(--radius-card);
  padding: 44px 48px;
  text-align: center;
}
.testimonial-quote { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; line-height: 1.5; color: var(--white); margin: 0 0 26px; }
.testimonial-quote::before { content: "“"; color: var(--brass); }
.testimonial-quote::after { content: "”"; color: var(--brass); }
.testimonial-attrib { font-size: 0.88rem; color: var(--brass-tint); }
.testimonial-attrib strong { display: block; color: var(--white); font-size: 0.95rem; margin-bottom: 3px; }
.testimonial-controls { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(248,246,241,0.3); border: none; padding: 0; transition: background 0.2s ease, transform 0.2s ease; }
.dot.is-active { background: var(--brass); transform: scale(1.3); }

/* ==========================================================================
   Locations
   ========================================================================== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.location-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.location-chip:hover { border-color: var(--sage-dark); transform: translateY(-3px); color: var(--sage-dark); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-plus { width: 22px; height: 22px; position: relative; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--sage-dark); top: 50%; left: 50%; transform: translate(-50%,-50%); transition: transform 0.25s ease, opacity 0.25s ease; }
.faq-plus::before { width: 16px; height: 1.5px; }
.faq-plus::after { width: 1.5px; height: 16px; }
.faq-item.is-open .faq-plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 28px 24px; color: var(--ink-soft); font-size: 0.95rem; max-width: 65ch; }
.faq-item.is-open .faq-a { max-height: 400px; }

/* ==========================================================================
   Contact CTA banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--sage-dark), var(--ink));
  border-radius: var(--radius-card);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--white);
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); max-width: 480px; }
.cta-banner p { color: rgba(248,246,241,0.82); margin-top: 14px; max-width: 46ch; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--sage-dark); color: rgba(248,246,241,0.75); padding: 80px 0 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(248,246,241,0.12);
}
.footer-brand img { height: 40px; margin-bottom: 18px; background: var(--white); padding: 8px 14px; border-radius: 10px; }
.footer-brand p { max-width: 32ch; font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.footer-social a {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(248,246,241,0.25);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-social a svg { width: 24px; height: 24px; display: block; }
.footer-social a:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -8px rgba(0,0,0,0.45); border-color: var(--brass); }
.social-links-light { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.social-links-light a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-links-light a svg { width: 18px; height: 18px; display: block; }
.social-links-light a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -6px rgba(0,0,0,0.3); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.88rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--brass-tint); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0; font-size: 0.8rem; flex-wrap: wrap; gap: 12px;
}

/* ==========================================================================
   Floating CTA
   ========================================================================== */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 150;
  background: var(--sage-dark);
  color: var(--white);
  border-radius: 999px;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  font-size: 0.92rem;
  transform: translateY(140%);
  transition: transform 0.4s ease, background 0.2s ease;
}
.floating-cta.is-visible { transform: translateY(0); }
.floating-cta:hover { background: var(--ink); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Inner pages: breadcrumbs, page hero, benefits, signs, related strip
   ========================================================================== */
.breadcrumbs {
  padding: 18px 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.breadcrumbs a { color: var(--ink-faint); transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--sage-dark); }
.breadcrumbs span { margin: 0 8px; }
.breadcrumbs .current { color: var(--ink-soft); }

.page-hero {
  padding: 12px 0 88px;
}
.page-hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.page-hero-media {
  border-radius: var(--arch-radius) var(--arch-radius) var(--radius-card) var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-soft);
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--text-only .container { grid-template-columns: 1fr; }
.page-hero--text-only .page-hero-copy { max-width: 640px; }
.page-hero-copy .lede { margin-top: 18px; }
.page-hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.page-hero-list { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.page-hero-list-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-soft); }
.page-hero-list-item .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--sage-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.body-copy p { color: var(--ink-soft); margin: 0 0 18px; max-width: 62ch; }
.body-copy p:last-child { margin-bottom: 0; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.benefit-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
}
.benefit-item .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--brass-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit-item h3 { font-size: 1rem; margin-bottom: 6px; }
.benefit-item p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

.signs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}
.signs-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.signs-list li::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brass);
  margin-top: 8px;
  flex-shrink: 0;
}

.related-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.related-card h3 { font-size: 1rem; margin-bottom: 8px; }
.related-card p { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 14px; }
.related-card a { font-size: 0.82rem; font-weight: 600; color: var(--sage-dark); }

@media (max-width: 860px) {
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .benefits-grid, .signs-list { grid-template-columns: 1fr; }
  .related-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .related-strip { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Location pages: map placeholder, service-area list, neighborhood chips
   ========================================================================== */
.map-embed {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px;
}
.map-embed .icon-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sage-tint);
  display: flex; align-items: center; justify-content: center;
}
.map-embed h3 { font-size: 1.1rem; margin: 0; }
.map-embed p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; max-width: 40ch; }
.map-embed a { font-size: 0.86rem; font-weight: 600; color: var(--sage-dark); }

.neighborhood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.neighborhood-chips span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.service-area-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.service-area-list .stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.service-area-list .stat strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.service-area-list .stat span { font-size: 0.82rem; color: var(--ink-faint); }

@media (max-width: 560px) {
  .service-area-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact page: forms, info cards
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
  margin-bottom: 20px;
}
.contact-info-card h3 { margin-bottom: 18px; font-size: 1.1rem; }
.contact-info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .icon-ring { width: 38px; height: 38px; flex-shrink: 0; }
.contact-info-row strong { display: block; font-size: 0.92rem; color: var(--ink); }
.contact-info-row span, .contact-info-row a { font-size: 0.88rem; color: var(--ink-soft); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 40px;
}
.form-card h3 { margin-bottom: 8px; }
.form-card > p { color: var(--ink-soft); margin: 0 0 28px; font-size: 0.94rem; }

.form-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  background: var(--stone);
  border-radius: 999px;
  padding: 5px;
}
.form-tab {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border: none;
  background: none;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.form-tab.is-active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-card); }

.care-form { display: none; flex-direction: column; gap: 18px; }
.care-form.is-active { display: flex; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--stone-light);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage-dark);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3543f; }
.field-error-msg { display: none; font-size: 0.78rem; color: #b3543f; }
.field.has-error .field-error-msg { display: block; }
.field-hint { font-size: 0.78rem; color: var(--ink-faint); }
.form-status { font-size: 0.9rem; color: var(--ink-soft); min-height: 20px; }
.form-status.is-success { color: var(--sage-dark); font-weight: 600; }
.form-status.is-error { color: #b3543f; font-weight: 600; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--ink-soft); }
.consent-row input { margin-top: 3px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
}

@media (max-width: 560px) {
  .form-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    border-radius: var(--radius-card);
  }
  .form-tab {
    padding: 10px 8px;
    font-size: 0.78rem;
    line-height: 1.25;
    border-radius: var(--radius-sm);
  }
}

/* ==========================================================================
   Blog: hub grid, article layout, TOC, meta, share bar
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.blog-card-media { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.06); }
.blog-card-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 12px; }
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card-body p { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 18px; flex: 1; }
.blog-card-link { font-size: 0.86rem; font-weight: 600; color: var(--sage-dark); display: inline-flex; align-items: center; gap: 6px; }

.article-layout {
  display: grid;
  grid-template-columns: 0.7fr 2.3fr;
  gap: 48px;
  align-items: start;
}
.article-toc {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
}
.article-toc h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 14px; }
.article-toc ul { display: flex; flex-direction: column; gap: 10px; }
.article-toc a { font-size: 0.88rem; color: var(--ink-soft); transition: color 0.2s ease; }
.article-toc a:hover { color: var(--sage-dark); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.article-meta .author { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 500; }
.article-meta .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sage-tint); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.9rem; color: var(--sage-dark); }

.article-body h2 { margin: 40px 0 16px; font-size: 1.5rem; }
.article-body h3 { margin: 28px 0 12px; font-size: 1.2rem; }
.article-body p { color: var(--ink-soft); margin: 0 0 18px; max-width: 68ch; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; color: var(--ink-soft); }
.article-body li { margin-bottom: 10px; max-width: 64ch; }
.article-body blockquote {
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}
.article-feature-img { border-radius: var(--radius-card); overflow: hidden; margin-bottom: 32px; aspect-ratio: 16/8; }
.article-feature-img img { width: 100%; height: 100%; object-fit: cover; }

.share-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.share-bar span { font-size: 0.85rem; color: var(--ink-faint); }
.share-bar a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.share-bar a:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About page: team grid, stat band, timeline
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card { text-align: center; }
.team-photo {
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-card);
  border: 4px solid var(--white);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.85rem; color: var(--sage-dark); font-weight: 600; margin-bottom: 10px; }
.team-card p { font-size: 0.88rem; color: var(--ink-soft); max-width: 32ch; margin: 0 auto; }

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-band .stat-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--white); margin-bottom: 6px; }
.stat-band .stat-label { font-size: 0.85rem; color: rgba(248,246,241,0.75); }

.vision-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 40px;
}
.vision-block h3 { margin-bottom: 14px; }
.vision-block p { color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) {
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .why-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: repeat(3, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-list::before { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
}

@media (max-width: 640px) {
  .why-grid, .services-grid, .locations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { 
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 20px 20px;
    box-shadow: var(--shadow-soft);
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    z-index: 99;
  }
  .main-nav.is-open { display: block; }
  .main-nav.is-open .nav-link { color: var(--ink); }
  .main-nav.is-open .nav-link:hover, .main-nav.is-open .nav-item.open .nav-link { background: var(--stone); color: var(--sage-dark); }
  .nav-toggle { display: flex; }
  .brand img { height: 36px; }
  .hero { padding-top: 32px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .header-phone { display: none; }
  .why-grid, .services-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 48px 28px; }
  .floating-cta { display: none; }
  .section { padding: 72px 0; }

  /* Mobile nav items */
  .main-nav > ul {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  .nav-item {
    width: 100%;
  }
  .nav-link {
    padding: 16px 20px;
    justify-content: space-between;
    width: 100%;
  }
  .mega {
    position: static;
    width: 100%;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 20px;
    margin-top: 8px;
    display: none;
    grid-template-columns: 1fr;
  }
  .nav-item.open .mega {
    display: grid;
    transform: none;
  }
  .mega a {
    padding: 12px 20px;
  }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .trust-strip .container { justify-content: center; }
  .testimonial-card { padding: 34px 24px; }
  .process-list { grid-template-columns: 1fr; row-gap: 32px; }
}

/* Guard against button text overflowing very narrow screens (320px+) */
@media (max-width: 480px) {
  .hero-actions, .page-hero-actions, .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn, .page-hero-actions .btn, .cta-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  .hero-badge {
    left: 12px;
    right: 12px;
    bottom: -18px;
    max-width: none;
    padding: 16px 18px;
  }
}
