/* ===========================================================
   IFHP Site — Design Tokens
   Palette: deep teal / soft sage, warm off-white background,
   sand accent reserved for "walk-ins welcome" trust signal.
   Surrey = teal, Aldergrove = sage — consistent location coding.
   Type: Fraunces (headlines, used sparingly) + Inter (body/UI).
   =========================================================== */

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

:root {
  --teal-900: #123634;
  --teal-700: #1F5C56;
  --teal-500: #2E7A72;
  --sage-500: #7FA895;
  --sage-300: #B7CFC2;
  --sand-500: #E3A857;
  --sand-100: #FBEBD4;
  --paper: #F6F4EE;
  --paper-raised: #FFFFFF;
  --ink: #1C2B28;
  --ink-soft: #4A5955;
  --line: #DDD9CC;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius: 14px;
  --shadow: 0 2px 14px rgba(18, 54, 52, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--teal-900); margin: 0 0 0.4em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
a { color: var(--teal-700); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--teal-900);
  color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1080px; margin: 0 auto; gap: 16px;
}
.logo {
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  color: var(--teal-900); text-decoration: none; letter-spacing: -0.01em;
  display: flex; flex-direction: column; line-height: 1.1;
}
.logo span.logo-sub {
  font-family: var(--font-body); font-weight: 500; font-size: 0.62rem;
  letter-spacing: 0.04em; color: var(--ink-soft); text-transform: uppercase;
  margin-top: 2px;
}
@media (max-width: 500px) { .logo span.logo-sub { display: none; } }
nav.main-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
nav.main-nav a {
  font-weight: 500; text-decoration: none; color: var(--ink);
  padding: 8px 12px; border-radius: 8px; font-size: 0.95rem;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { background: var(--sand-100); color: var(--teal-900); }
#google_translate_element { font-size: 0.85rem; }
.goog-te-gadget { font-family: var(--font-body) !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 1.1rem; cursor: pointer; }

@media (max-width: 760px) {
  nav.main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; order: 3; }
  nav.main-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  nav.main-nav a { padding: 12px; }
}

/* ---------- Badge (signature trust element) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sand-100); color: #7A5416;
  border: 1px solid var(--sand-500); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: 0.9rem; margin-bottom: 20px;
}
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3E9C5B; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero p.lede { font-size: 1.15rem; max-width: 58ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; padding: 14px 24px;
  border-radius: 10px; font-size: 1rem; border: 2px solid transparent;
}
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-900); }
.btn-secondary { background: transparent; color: var(--teal-900); border-color: var(--teal-700); }
.btn-secondary:hover { background: var(--sage-300); }

/* ---------- Steps (real sequence — numbered legitimately) ---------- */
.steps { background: var(--paper-raised); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.step .num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 600;
  color: var(--sage-500); display: block; margin-bottom: 8px;
}
@media (max-width: 760px) { .step-grid { grid-template-columns: 1fr; } }

/* ---------- Location cards (color-coded wayfinding) ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.location-card {
  background: var(--paper-raised); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; border-top: 6px solid var(--teal-700);
}
.location-card.aldergrove { border-top-color: var(--sage-500); }
.location-card h3 { display: flex; align-items: center; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--teal-700); display: inline-block; }
.location-card.aldergrove .dot { background: var(--sage-500); }
.location-card .addr { font-weight: 500; color: var(--ink); }
.location-card .meta-row { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.pill { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 760px) { .location-grid { grid-template-columns: 1fr; } }

/* ---------- Simple content sections ---------- */
.card-list { display: grid; gap: 16px; margin-top: 28px; }
.info-card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px;
}
.info-card h3 { margin-bottom: 6px; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.callout {
  background: var(--teal-900); color: #fff; border-radius: var(--radius);
  padding: 28px 30px;
}
.callout h3 { color: #fff; }
.callout p { color: #D9E6E2; }
.callout a { color: var(--sand-500); font-weight: 600; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 16px; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- FAQ ---------- */
details.faq-item {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 22px; margin-bottom: 12px;
}
details.faq-item summary { font-weight: 600; padding: 16px 0; cursor: pointer; color: var(--teal-900); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--sage-500); flex-shrink: 0; }
details.faq-item[open] summary::after { content: '\2212'; }
details.faq-item p { padding-bottom: 18px; margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--teal-900); color: #CFE0DB; padding: 48px 0 28px; margin-top: 40px; }
footer.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
footer.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
footer.site-footer p, footer.site-footer li { color: #A9C4BC; font-size: 0.92rem; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }
.fine-print { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 32px; padding-top: 20px; font-size: 0.82rem; color: #7FA398; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sand-500); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
