/* ==========================================================================
   Kilmessan General Practice — kilmessangp.ie
   Single stylesheet. Everything is driven by the design tokens in :root
   below, so re-theming the whole site is a matter of changing a few values.

   CONTENTS
   01. Design tokens        — colours, type, spacing, radii, shadows
   02. Reset & base
   03. Typography
   04. Layout               — container, section, grid
   05. Buttons & badges
   06. Header & navigation
   07. Hero
   08. Cards & panels
   09. Lists, tables, accordion, hours
   10. Footer
   11. Utilities
   12. Motion & accessibility
   13. Print
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   Change these and the whole site follows. Colours are sampled from the
   practice logo: deep navy wordmark + forest green emblem.
   ========================================================================== */
:root {
  /* --- Brand colours ----------------------------------------------------- */
  --navy-900: #10162b;
  --navy-800: #131a34;
  --navy-700: #1a2140;   /* primary brand navy (wordmark) */
  --navy-500: #34406b;
  --navy-300: #7480a5;
  --navy-100: #dfe3ee;

  --green-800: #2c4529;
  --green-700: #3c5c37;  /* primary brand green (emblem / form section bars) */
  --green-600: #4a6f43;
  --green-500: #5c8552;
  --green-400: #7ba36e;
  --green-200: #cfe0c7;
  --green-100: #e8efe4;
  --green-50:  #f3f7f0;

  /* --- Neutrals ---------------------------------------------------------- */
  --white:     #ffffff;
  --paper:     #fbfcfa;   /* page background */
  --ink-900:   #16192a;   /* body text */
  --ink-700:   #3d4356;
  --ink-500:   #616a80;   /* muted text */
  --ink-300:   #666e80;   /* 4.5:1 on white — used for real text, not just hints */
  --line:      #e4e8e2;   /* hairline borders */
  --line-soft: #eff2ed;

  /* --- Semantic ---------------------------------------------------------- */
  --accent:        var(--green-700);
  --accent-hover:  var(--green-800);
  --accent-soft:   var(--green-50);
  --urgent:        #a8371f;
  --urgent-soft:   #fdf1ee;
  --info-soft:     #f1f4fa;

  /* --- Typography -------------------------------------------------------- */
  /* System stacks: instant load, zero third-party requests (GDPR-friendly for
     a medical site). To use webfonts instead, self-host the files and change
     only these two lines. */
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino,
                "Book Antiqua", Georgia, "Times New Roman", serif;

  --text-xs:   0.78rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.3rem;
  --text-2xl:  1.6rem;
  --text-3xl:  2rem;
  --text-4xl:  2.6rem;
  --text-5xl:  3.25rem;

  --leading-tight: 1.18;
  --leading-snug:  1.4;
  --leading-body:  1.7;

  /* --- Spacing scale ----------------------------------------------------- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 2.5rem;   --sp-8: 3rem;
  --sp-9: 4rem;     --sp-10: 5rem;    --sp-11: 6.5rem;

  --section-y: clamp(3.5rem, 7vw, 6rem);   /* vertical rhythm for sections */
  --container: 1180px;
  --container-narrow: 820px;
  --gutter: clamp(1.15rem, 4vw, 2rem);

  /* --- Radii & shadows --------------------------------------------------- */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(22, 25, 42, .05);
  --shadow-sm: 0 2px 6px rgba(22, 25, 42, .06);
  --shadow-md: 0 8px 24px -8px rgba(22, 25, 42, .13), 0 2px 6px rgba(22, 25, 42, .04);
  --shadow-lg: 0 24px 56px -20px rgba(22, 25, 42, .22), 0 4px 12px rgba(22, 25, 42, .05);

  --ring: 0 0 0 3px rgba(60, 92, 55, .28);

  --header-h: 84px;
  --transition: 180ms cubic-bezier(.4, 0, .2, 1);
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, picture { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-800); }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 3px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--navy-700); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--r-md); font-weight: 600; text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--sp-4); color: #fff; }


/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy-700);
  line-height: var(--leading-tight);
  margin: 0 0 var(--sp-4);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, var(--text-5xl)); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3.6vw, var(--text-4xl)); }
h3 { font-size: clamp(1.2rem, 2.2vw, var(--text-xl)); line-height: var(--leading-snug); }
h4 { font-size: var(--text-lg); line-height: var(--leading-snug); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 var(--sp-3);
}
.eyebrow--light { color: var(--green-200); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, var(--text-lg));
  color: var(--ink-700);
  line-height: 1.65;
}

.muted { color: var(--ink-500); }
.small { font-size: var(--text-sm); }

/* A soft highlight for a single stand-out phrase (e.g. the languages line in
   a biography) — not the browser default's yellow, which clashes with the
   navy/green palette. */
mark { background: var(--green-100); color: var(--green-800); padding: .05em .3em; border-radius: 3px; }

/* Decorative rule echoing the dashes either side of the logo wordmark */
.rule {
  display: flex; align-items: center; gap: var(--sp-3);
  margin: var(--sp-4) 0 var(--sp-5);
}
.rule::before { content: ""; width: 34px; height: 2px; background: var(--green-600); }
.rule::after  { content: ""; flex: 1; height: 1px; background: var(--line); }


/* ==========================================================================
   04. LAYOUT
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .62); }
.section--sage  { background: var(--green-50); }
.section--paper { background: var(--white); }
.section--navy  { background: var(--navy-700); color: #e8ebf3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #c3cadd; }

.section-head { max-width: 640px; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split--reverse > :first-child { order: 2; }
}


/* ==========================================================================
   05. BUTTONS & BADGES
   ========================================================================== */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: #fff;
  --btn-bd: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  font: 600 var(--text-base)/1.2 var(--font-sans);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  box-shadow: var(--shadow-xs);
}
.btn:hover {
  --btn-bg: var(--green-800); --btn-bd: var(--green-800); color: #fff;
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--navy    { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }
.btn--navy:hover { --btn-bg: var(--navy-900); --btn-bd: var(--navy-900); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-700); --btn-bd: var(--navy-100); }
.btn--outline:hover { --btn-bg: var(--navy-700); --btn-fg: #fff; --btn-bd: var(--navy-700); color: #fff; }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.42); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--navy-700); --btn-bd: #fff; color: var(--navy-700); }

.btn--sm  { padding: .55rem 1.05rem; font-size: var(--text-sm); }
.btn--lg  { padding: 1rem 1.9rem; font-size: var(--text-lg); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.badge {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .3rem .75rem; border-radius: var(--r-pill);
  background: var(--green-100); color: var(--green-800);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em;
}
.badge--navy { background: var(--navy-100); color: var(--navy-700); }
.badge--urgent { background: var(--urgent-soft); color: var(--urgent); }

/* Badges used as in-page jump links should read as chips, not as body links. */
a.badge { text-decoration: none; transition: background var(--transition), color var(--transition); }
a.badge:hover { background: var(--green-700); color: #fff; }
a.badge--navy:hover { background: var(--navy-700); color: #fff; }


/* ==========================================================================
   06. HEADER & NAVIGATION
   ========================================================================== */
.topbar {
  background: var(--navy-700);
  color: #cfd5e6;
  font-size: var(--text-sm);
}
.topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--sp-2) var(--sp-5);
  min-height: 42px; padding-block: .35rem;
}
.topbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5); }
.topbar a { color: #eef1f8; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; flex: none; opacity: .85; }
.topbar__ooh { color: var(--green-200); }
@media (max-width: 760px) { .topbar__hide-sm { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { width: auto; height: 54px; }
.brand__text { display: none; }
@media (min-width: 430px) {
  .brand__text { display: block; line-height: 1.15; }
  .brand__name {
    display: block;
    font-family: var(--font-serif); font-size: 1.16rem; font-weight: 600;
    letter-spacing: .09em; color: var(--navy-700); text-transform: uppercase;
  }
  .brand__sub {
    display: block;
    font-size: .63rem; letter-spacing: .17em; text-transform: uppercase;
    color: var(--green-700); font-weight: 700;
  }
}

.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav a {
  padding: .55rem .78rem; border-radius: var(--r-md);
  color: var(--navy-700); text-decoration: none;
  font-size: .945rem; font-weight: 500; white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav a:hover { background: var(--green-50); color: var(--green-800); }
.nav a[aria-current="page"] { color: var(--green-800); font-weight: 700; background: var(--green-50); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--r-md); cursor: pointer; color: var(--navy-700);
}
.nav-toggle:hover { background: var(--green-50); border-color: var(--green-200); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-scrim { display: none; }

/* Desktop >= 1080px: inline nav. Below that: slide-in drawer. */
/* 1100px: the 8-item nav + logo + CTA needs ~1061px. Re-measure if you add
   another nav item, or it will collide with the logo before the drawer kicks in. */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav__cta { display: none; }
}
@media (max-width: 1099px) {
  /* backdrop-filter on an ancestor creates a containing block for fixed-position
     descendants, which would trap the drawer inside the header. Drop it here. */
  .site-header { backdrop-filter: none; background: var(--white); }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto;
    width: min(340px, 88vw);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: var(--sp-5) var(--sp-4) var(--sp-8);
    background: var(--white); border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 240ms cubic-bezier(.4, 0, .2, 1), visibility 240ms;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav a { padding: .85rem 1rem; font-size: var(--text-lg); border-radius: var(--r-md); }
  .nav__cta { margin-top: var(--sp-4); }
  .header-actions .btn--header { display: none; }
  body.nav-open { overflow: hidden; }
  .nav-scrim {
    display: block;
    position: fixed; inset: 0; z-index: 90;
    background: rgba(16, 22, 43, .45); opacity: 0; pointer-events: none;
    transition: opacity var(--transition);
  }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
}


/* ==========================================================================
   07. HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -12%, #ffffff 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(168deg, var(--green-50) 0%, #eef3ec 46%, #e6eee2 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; gap: clamp(2.2rem, 5vw, 3.5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  align-items: center;
}
@media (min-width: 940px) { .hero__inner { grid-template-columns: 1.08fr .92fr; } }

.hero h1 { margin-bottom: var(--sp-5); }
.hero .lede { max-width: 55ch; margin-bottom: var(--sp-6); }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--green-200);
  font-size: var(--text-sm); color: var(--ink-700);
}
.hero__trust span { display: inline-flex; align-items: center; gap: .45em; }
.hero__trust svg { width: 17px; height: 17px; color: var(--green-600); flex: none; }

/* Decorative rolling-hills band, echoing the practice emblem */
.hero__hills {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
  width: 100%; height: auto; opacity: .55; pointer-events: none;
}

/* Card sitting to the right of the hero copy */
.hero__card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2.15rem);
}
.hero__card-mark { width: 74px; height: auto; margin: 0 auto var(--sp-4); }

.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--green-50), #eaf0e7);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.6rem, 6vw, 4.25rem);
}
.page-hero h1 { margin-bottom: var(--sp-3); }
.page-hero .lede { max-width: 62ch; }
.page-hero__inner { position: relative; z-index: 2; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .45rem;
  font-size: var(--text-sm); color: var(--ink-500);
  margin: 0 0 var(--sp-4); padding: 0; list-style: none;
}
.breadcrumb li + li::before { content: "/"; margin-right: .45rem; color: var(--ink-300); }
.breadcrumb a { color: var(--ink-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-700); text-decoration: underline; }


/* ==========================================================================
   08. CARDS & PANELS
   ========================================================================== */
.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--ink-700); font-size: .96rem; }

a.card { text-decoration: none; color: inherit; }
a.card:hover, .card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}

.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin-bottom: var(--sp-4);
  border-radius: 14px;
  background: var(--green-100); color: var(--green-800);
  flex: none;
}
.card__icon svg { width: 25px; height: 25px; }
.card__icon--navy { background: var(--navy-100); color: var(--navy-700); }

.card__more {
  margin-top: auto; padding-top: var(--sp-4);
  font-size: var(--text-sm); font-weight: 700; color: var(--green-700);
  display: inline-flex; align-items: center; gap: .4em;
  transition: gap var(--transition);
}
a.card:hover .card__more { gap: .75em; }
.card__more svg { width: 15px; height: 15px; }

/* Quick-action tiles used under the hero */
.action-tile {
  position: relative;
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-5); text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--green-600);
  transition: transform var(--transition), box-shadow var(--transition);
}
.action-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }
.action-tile__title {
  font-family: var(--font-serif); font-size: var(--text-xl);
  color: var(--navy-700); font-weight: 600;
}
.action-tile p { font-size: .92rem; color: var(--ink-500); }
.action-tile--urgent { border-top-color: var(--urgent); }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.15rem);
  box-shadow: var(--shadow-sm);
}
.panel--sage { background: var(--green-50); border-color: var(--green-200); box-shadow: none; }
.panel--navy { background: var(--navy-700); border-color: var(--navy-700); color: #d6dcec; }
.panel--navy h2, .panel--navy h3 { color: #fff; }

.callout {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--info-soft);
  border: 1px solid var(--navy-100);
  border-left: 4px solid var(--navy-500);
}
.callout__icon { flex: none; color: var(--navy-500); }
.callout__icon svg { width: 24px; height: 24px; }
.callout h3 { font-size: var(--text-lg); margin-bottom: var(--sp-2); }
.callout p { font-size: .96rem; color: var(--ink-700); }
.callout--urgent { background: var(--urgent-soft); border-color: #f0d3cb; border-left-color: var(--urgent); }
.callout--urgent .callout__icon, .callout--urgent h3 { color: var(--urgent); }
.callout--sage { background: var(--green-50); border-color: var(--green-200); border-left-color: var(--green-600); }
.callout--sage .callout__icon, .callout--sage h3 { color: var(--green-800); }

/* Figure block (portraits, form preview) */
.figure-frame {
  position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden;
  background: var(--green-100); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.figure-frame img { width: 100%; }
.figure-frame figcaption {
  padding: var(--sp-4) var(--sp-5); background: var(--white);
  font-size: var(--text-sm); color: var(--ink-500);
}

/* Stat strip */
.stats { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat__value { font-family: var(--font-serif); font-size: var(--text-3xl); color: var(--green-700); line-height: 1.1; }
.stat__label { font-size: var(--text-sm); color: var(--ink-500); margin-top: var(--sp-1); }
.section--navy .stat__value { color: var(--green-200); }
.section--navy .stat__label { color: #9aa5c0; }


/* ==========================================================================
   09. LISTS, TABLES, ACCORDION, HOURS
   ========================================================================== */
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.tick-list li { position: relative; padding-left: 2rem; color: var(--ink-700); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c5c37' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .72rem no-repeat;
}
.tick-list--light li { color: #c9d0e2; }
/* On dark backgrounds the tick needs a light stroke to stay visible. */
.tick-list--light li::before {
  background-color: rgba(255, 255, 255, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfe0c7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.tick-list--cols { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .68rem 0; text-align: left; font-size: .96rem; }
.hours th { font-weight: 600; color: var(--ink-900); }
.hours td { text-align: right; color: var(--ink-700); font-variant-numeric: tabular-nums; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--line-soft); }
.hours .is-closed td { color: var(--ink-300); }
.panel--navy .hours th { color: #fff; }
.panel--navy .hours td { color: #b9c2d8; }
.panel--navy .hours tr + tr th, .panel--navy .hours tr + tr td { border-top-color: rgba(255, 255, 255, .12); }
.panel--navy .hours .is-closed td { color: #7b86a3; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-xs); }
.table { width: 100%; border-collapse: collapse; min-width: 470px; font-size: .96rem; }
.table th, .table td { padding: .9rem var(--sp-5); text-align: left; }
.table thead th {
  background: var(--green-700); color: #fff;
  font-size: var(--text-xs); letter-spacing: .09em; text-transform: uppercase;
  font-weight: 700;
}
.table tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.table tbody tr:hover td { background: var(--green-50); }
.table td:last-child, .table th:last-child { text-align: right; }
.table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-700); }

.accordion { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-xs); }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5); cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-size: var(--text-lg); color: var(--navy-700);
  font-weight: 600;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--green-50); }
.accordion summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c5c37' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--transition);
}
.accordion details[open] summary::after { transform: rotate(180deg); }
.accordion__body { padding: 0 var(--sp-5) var(--sp-5); color: var(--ink-700); }
.accordion__body > :first-child { margin-top: 0; }

/* Announcement banner — used for the pre-opening notice on the home page.
   Remove the markup from index.html (and PRE_LAUNCH in main.js) once the
   practice is open; the styles can stay for future notices. */
.announce {
  background: linear-gradient(100deg, var(--green-100), var(--green-50));
  border-bottom: 1px solid var(--green-200);
  border-top: 3px solid var(--green-700);
}
.announce__inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  padding-block: var(--sp-5);
}
.announce__body { flex: 1 1 380px; min-width: 0; }
/* The icon sits inside the title so it can never orphan onto its own line when
   the banner wraps, and stays in proportion with the heading. */
.announce__title {
  display: flex; align-items: baseline; gap: .55rem;
  font-family: var(--font-serif); font-size: clamp(1.15rem, 2.4vw, var(--text-xl));
  font-weight: 600; color: var(--green-800); margin: 0 0 .15rem;
}
.announce__title svg {
  flex: none; width: 1em; height: 1em;
  color: var(--green-700); transform: translateY(.09em);
}
.announce__text { font-size: .95rem; color: var(--ink-700); margin: 0; }
.announce .btn { flex: none; }
@media (max-width: 560px) {
  .announce .btn { width: 100%; }
}

/* Page provenance line — "last updated", and (once the practice has signed the
   content off) the clinical reviewer. A real reviewer credit is a meaningful
   trust signal for health content; see CLAUDE.md before enabling it. */
.page-meta {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-5);
  margin-top: var(--sp-8);
  font-size: var(--text-sm);
  color: var(--ink-500);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  justify-content: space-between; align-items: baseline;
}
.page-meta p { margin: 0; }
.page-meta strong { color: var(--navy-700); font-weight: 600; }

/* Document / form directory rows (used on forms.html) */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.doc-item {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
  text-decoration: none; color: inherit;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.doc-item:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-md);
  border-color: var(--green-200); color: inherit;
}
.doc-item__icon {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--green-100); color: var(--green-800);
}
.doc-item__icon svg { width: 21px; height: 21px; }
.doc-item--external .doc-item__icon { background: var(--navy-100); color: var(--navy-700); }
.doc-item__body { flex: 1; min-width: 0; }
.doc-item__title {
  display: block; font-family: var(--font-serif); font-size: var(--text-lg);
  font-weight: 600; color: var(--navy-700); line-height: var(--leading-snug);
}
.doc-item__desc { display: block; font-size: .92rem; color: var(--ink-500); margin-top: .2rem; }
.doc-item__meta {
  flex: none; align-self: center; display: inline-flex; align-items: center; gap: .35em;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--green-700); white-space: nowrap;
}
.doc-item--external .doc-item__meta { color: var(--navy-500); }
.doc-item__meta svg { width: 14px; height: 14px; }
@media (max-width: 620px) {
  .doc-item { flex-wrap: wrap; }
  .doc-item__meta { align-self: flex-start; margin-left: calc(42px + var(--sp-4)); }
}

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--sp-5); }
.steps li { position: relative; padding-left: 3.5rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.35rem; height: 2.35rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-700); color: #fff;
  font-weight: 700; font-size: .95rem; font-family: var(--font-sans);
}
.steps h3 { margin-bottom: var(--sp-1); }


/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-800); color: #aeb7cd; font-size: .95rem; }
.site-footer h3 {
  color: #fff; font-family: var(--font-sans); font-size: var(--text-sm);
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: var(--sp-4);
}
.site-footer a { color: #cfd6e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid; gap: var(--sp-7);
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  padding-block: var(--sp-9) var(--sp-7);
}
.footer-brand__mark {
  width: 76px; height: 76px; display: grid; place-items: center;
  background: #fff; border-radius: 50%; margin-bottom: var(--sp-4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
}
.footer-brand__mark img { width: 60px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: .28em; color: var(--green-400); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between; align-items: center;
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--text-sm); color: #8b96b0;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }


/* ==========================================================================
   11. UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }  .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); }  .mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }  .mt-7 { margin-top: var(--sp-7); }
.mb-5 { margin-bottom: var(--sp-5); } .mb-6 { margin-bottom: var(--sp-6); }
.flow > * + * { margin-top: var(--sp-4); }
.flow-lg > * + * { margin-top: var(--sp-6); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.map-embed {
  border: 0; width: 100%; aspect-ratio: 16 / 10; min-height: 300px;
  border-radius: var(--r-lg); box-shadow: var(--shadow-md); display: block;
}


/* ==========================================================================
   12. MOTION & ACCESSIBILITY
   ========================================================================== */
/* Scoped to .js so that if JavaScript fails to load, nothing is left invisible.
   The .js class is set by an inline script in each page's <head>. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   13. PRINT
   ========================================================================== */
@media print {
  .topbar, .site-header, .site-footer, .nav-scrim, .no-print,
  .hero__hills, .btn, .breadcrumb { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .page-hero, .hero__inner { padding-block: .6rem; }
  .hero, .page-hero, .section--sage { background: #fff !important; }
  .panel, .card, .table-wrap, .accordion {
    box-shadow: none; border-color: #999; break-inside: avoid;
  }
  .accordion details { display: block; }
  .accordion__body { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  h1, h2, h3 { break-after: avoid; }
}
