/* ============================================================
   JEFFERY CHIROPRACTIC INC. — DESIGN SYSTEM
   jefferychiropracticinc.com | Layton, UT
   File:    style.css
   Author:  Joel Hughes / The Better Software Solution
   Version: v1.0.0
   Updated: 2026-05-29
   Description: Site-wide design system — CSS custom properties
                (design tokens), reset, layout, navigation, hero,
                section variants, cards, components, and responsive
                styles. Shared across all 14 pages.
   
   TABLE OF CONTENTS
   1.  Google Fonts Import
   2.  CSS Custom Properties (Design Tokens)
   3.  CSS Reset & Base
   4.  Typography Scale
   5.  Layout & Grid
   6.  Navigation
   7.  Hero / Banner
   8.  Buttons & CTAs
   9.  Cards & Service Blocks
   10. Page Headers (Interior Pages)
   11. About Section
   12. FAQ Accordion
   13. Contact & Hours
   14. Forms
   15. Footer
   16. Utility Classes
   17. Animations & Transitions
   18. Responsive Breakpoints
   ============================================================ */


/* ============================================================
   1. GOOGLE FONTS IMPORT
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');


/* ============================================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */

:root {

  /* --- Color Palette --- */
  --color-primary:        #2A4A6B;   /* Steel Navy — headers, nav bg */
  --color-primary-mid:    #3D6490;   /* Mid Steel — hover states, secondary nav */
  --color-primary-dark:   #1A3550;   /* Deep Navy — footer, dark overlays */
  --color-primary-light:  #4A6A8B;   /* Light Steel — subtle borders on dark bg */

  --color-accent:         #5CC8E8;   /* Crisp Sky — CTAs, highlights, links */
  --color-accent-dark:    #3AAECF;   /* Darker sky — accent hover */
  --color-accent-tint:    #EAF4FA;   /* Sky Tint — card highlights, icon bg */
  --color-accent-ultra:   #D0EEF8;   /* Ultra light sky — alternate section bg */

  --color-bg:             #F5F8FC;   /* Ice Gray — page background */
  --color-surface:        #FFFFFF;   /* Pure White — cards, panels */
  --color-surface-alt:    #EEF3F9;   /* Slightly deeper — alternating sections */

  --color-border:         #D8E4EF;   /* Border Blue — card/input borders */
  --color-border-light:   #E8EFF7;   /* Lighter border — subtle dividers */

  --color-text-heading:   #1A3550;   /* Deep Navy — all headings */
  --color-text-body:      #4A5A6A;   /* Mid slate — body copy */
  --color-text-light:     #6A7A8A;   /* Lighter slate — captions, meta */
  --color-text-muted:     #8FA0B0;   /* Muted — placeholder, disabled */
  --color-text-inverse:   #FFFFFF;   /* White — text on dark backgrounds */
  --color-text-inverse-muted: rgba(255,255,255,0.72); /* Subdued white */

  --color-success:        #2D7A4F;   /* Green — success states */
  --color-warning:        #C47A2A;   /* Amber — warnings */
  --color-error:          #B83A3A;   /* Red — errors */

  /* --- Typography --- */
  --font-heading:         'Cormorant Garamond', Georgia, serif;
  --font-body:            'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:            'Courier New', Courier, monospace;

  /* Type Scale — Major Third (1.25) */
  --text-xs:    0.75rem;    /*  12px */
  --text-sm:    0.875rem;   /*  14px */
  --text-base:  1rem;       /*  16px */
  --text-md:    1.125rem;   /*  18px */
  --text-lg:    1.25rem;    /*  20px */
  --text-xl:    1.5rem;     /*  24px */
  --text-2xl:   1.875rem;   /*  30px */
  --text-3xl:   2.25rem;    /*  36px */
  --text-4xl:   2.75rem;    /*  44px */
  --text-5xl:   3.5rem;     /*  56px */
  --text-6xl:   4.5rem;     /*  72px */

  /* Heading Sizes */
  --h1-size:    clamp(2.25rem, 5vw, 3.5rem);
  --h2-size:    clamp(1.75rem, 3.5vw, 2.5rem);
  --h3-size:    clamp(1.375rem, 2.5vw, 1.875rem);
  --h4-size:    clamp(1.125rem, 2vw, 1.375rem);
  --h5-size:    1.125rem;
  --h6-size:    1rem;

  /* Line Heights */
  --leading-tight:    1.2;
  --leading-snug:     1.35;
  --leading-normal:   1.6;
  --leading-relaxed:  1.75;
  --leading-loose:    2;

  /* Font Weights */
  --weight-light:     300;
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;

  /* Letter Spacing */
  --tracking-tight:   -0.02em;
  --tracking-normal:   0;
  --tracking-wide:     0.04em;
  --tracking-wider:    0.08em;
  --tracking-widest:   0.12em;

  /* --- Spacing Scale --- */
  --space-1:    0.25rem;    /*  4px */
  --space-2:    0.5rem;     /*  8px */
  --space-3:    0.75rem;    /* 12px */
  --space-4:    1rem;       /* 16px */
  --space-5:    1.25rem;    /* 20px */
  --space-6:    1.5rem;     /* 24px */
  --space-8:    2rem;       /* 32px */
  --space-10:   2.5rem;     /* 40px */
  --space-12:   3rem;       /* 48px */
  --space-16:   4rem;       /* 64px */
  --space-20:   5rem;       /* 80px */
  --space-24:   6rem;       /* 96px */
  --space-32:   8rem;       /* 128px */

  /* --- Layout --- */
  --container-max:    1200px;
  --container-wide:   1400px;
  --container-narrow:  780px;
  --container-pad:    clamp(1rem, 5vw, 2.5rem);

  /* --- Borders --- */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    20px;
  --radius-full:  9999px;

  /* --- Shadows --- */
  --shadow-xs:    0 1px 3px rgba(42,74,107,0.08);
  --shadow-sm:    0 2px 8px rgba(42,74,107,0.10);
  --shadow-md:    0 4px 16px rgba(42,74,107,0.12);
  --shadow-lg:    0 8px 32px rgba(42,74,107,0.14);
  --shadow-xl:    0 16px 48px rgba(42,74,107,0.18);
  --shadow-accent: 0 4px 20px rgba(92,200,232,0.30);

  /* --- Transitions --- */
  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;
  --transition-bounce:  300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Nav --- */
  --nav-height:       72px;
  --nav-height-mob:   60px;

  /* --- Z-Index Scale --- */
  --z-below:      -1;
  --z-base:        0;
  --z-raised:     10;
  --z-dropdown:   100;
  --z-sticky:     200;
  --z-overlay:    300;
  --z-modal:      400;
  --z-toast:      500;
}


/* ============================================================
   3. CSS RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-text-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

::selection {
  background-color: var(--color-accent-tint);
  color: var(--color-primary-dark);
}

/* Scroll padding for anchor links (accounts for sticky nav) */
:target {
  scroll-margin-top: calc(var(--nav-height) + var(--space-6));
}


/* ============================================================
   4. TYPOGRAPHY SCALE
   ============================================================ */

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--color-text-heading);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); font-weight: var(--weight-medium); }
h4 { font-size: var(--h4-size); font-weight: var(--weight-medium); }
h5 { font-size: var(--h5-size); font-weight: var(--weight-medium); }
h6 { font-size: var(--h6-size); font-weight: var(--weight-medium); }

/* Italic style for Cormorant — elegant accent */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: var(--weight-medium);
  color: var(--color-accent-dark);
}

/* --- Body Copy --- */
p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-body);
  max-width: 72ch;
}

p + p {
  margin-top: var(--space-4);
}

/* Lead paragraph — larger intro copy */
.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-text-body);
  font-weight: var(--weight-light);
}

/* Eyebrow label — small caps above headings */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-3);
}

.eyebrow--dark {
  color: var(--color-primary-mid);
}

/* Caption / meta text */
.caption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* Strong / bold within body */
strong, b {
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
}

/* --- Lists — content areas --- */
.content-list {
  list-style: none;
  padding: 0;
}

.content-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-body);
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* Check list variant */
.check-list li::before {
  content: '✓';
  width: auto;
  height: auto;
  background: none;
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  top: 0.1em;
  border-radius: 0;
}

/* --- Blockquote --- */
blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--color-accent-tint);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote p {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-primary);
  line-height: var(--leading-snug);
}

/* --- Inline text styles --- */
.text-accent    { color: var(--color-accent-dark); }
.text-primary   { color: var(--color-primary); }
.text-muted     { color: var(--color-text-muted); }
.text-inverse   { color: var(--color-text-inverse); }
.text-heading   { color: var(--color-text-heading); }


/* ============================================================
   5. LAYOUT & GRID
   ============================================================ */

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

/* --- Section Spacing --- */
.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.section--sm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section--lg {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

/* --- Section Backgrounds --- */
.section--white    { background-color: var(--color-surface); }
.section--gray     { background-color: var(--color-bg); }
.section--tint     { background-color: var(--color-accent-tint); }
.section--alt      { background-color: var(--color-surface-alt); }
.section--navy     { background-color: var(--color-primary); }
.section--dark     { background-color: var(--color-primary-dark); }

/* Reverse text for dark sections */
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-text-inverse);
}

.section--navy p,
.section--dark p {
  color: var(--color-text-inverse-muted);
}

.section--navy .eyebrow,
.section--dark .eyebrow {
  color: var(--color-accent);
}

/* --- CSS Grid helpers --- */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--2-1 { grid-template-columns: 2fr 1fr; }
.grid--1-2 { grid-template-columns: 1fr 2fr; }
.grid--3-2 { grid-template-columns: 3fr 2fr; }

/* --- Flexbox helpers --- */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.gap-8       { gap: var(--space-8); }

/* --- Text alignment --- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Center constrained to narrower width */
.section-header {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  max-width: 100%;
  font-size: var(--text-md);
  color: var(--color-text-light);
}


/* ============================================================
   6. NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-primary);
  box-shadow: 0 2px 20px rgba(26,53,80,0.25);
  transition: box-shadow var(--transition-base);
}

/* Top info bar */
.header-topbar {
  background-color: var(--color-primary-dark);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-primary-light);
}

.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-6);
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-inverse-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-item a {
  color: var(--color-accent);
  transition: color var(--transition-fast);
}

.topbar-item a:hover {
  color: var(--color-text-inverse);
}

.topbar-item svg {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Main nav bar */
.header-main {
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-logo-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-inverse);
  letter-spacing: var(--tracking-tight);
}

.site-logo-tagline {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.primary-nav a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-inverse-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  letter-spacing: var(--tracking-wide);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--color-text-inverse);
  background-color: rgba(255,255,255,0.10);
}

.primary-nav a.active {
  color: var(--color-accent);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.7;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 220px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-base),
              visibility var(--transition-base),
              transform var(--transition-base);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-body);
  font-weight: var(--weight-regular);
  border-radius: 0;
  letter-spacing: 0;
  background: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu a:hover {
  background-color: var(--color-accent-tint);
  color: var(--color-primary);
}

/* Nav CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--color-accent);
  color: var(--color-primary-dark) !important;
  font-weight: var(--weight-semibold) !important;
  padding: var(--space-2) var(--space-5) !important;
  border-radius: var(--radius-full) !important;
  font-size: var(--text-sm) !important;
  letter-spacing: var(--tracking-wide) !important;
  text-transform: uppercase;
  transition: background-color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast) !important;
  flex-shrink: 0;
}

.nav-cta:hover {
  background-color: var(--color-text-inverse) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent) !important;
  color: var(--color-primary-dark) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-base);
}


/* ============================================================
   7. HERO / BANNER
   ============================================================ */

.hero {
  position: relative;
  background-color: var(--color-primary);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* Subtle mesh overlay for depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(92,200,232,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 80%, rgba(26,53,80,0.6) 0%, transparent 60%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  transition: opacity var(--transition-slow);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-20) 0;
  max-width: 620px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background-color: var(--color-accent);
  opacity: 0.6;
}

.hero h1 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-5);
  line-height: var(--leading-tight);
}

.hero p {
  color: var(--color-text-inverse-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Trust badge row below hero CTAs */
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-inverse-muted);
  font-weight: var(--weight-medium);
}

.hero-trust-item strong {
  color: var(--color-text-inverse);
  font-weight: var(--weight-semibold);
}

/* Page-level hero (interior pages) */
.page-hero {
  background-color: var(--color-primary);
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(92,200,232,0.06) 0%,
    transparent 60%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--color-text-inverse);
  font-size: var(--h2-size);
  margin-bottom: var(--space-3);
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-inverse-muted);
  margin-top: var(--space-3);
}

.page-hero .breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  color: var(--color-text-inverse);
}

.page-hero .breadcrumb span {
  opacity: 0.4;
}


/* ============================================================
   8. BUTTONS & CTAs
   ============================================================ */

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-bounce),
    box-shadow var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

/* Primary — sky accent on white */
.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

/* Primary Dark — navy on light bg */
.btn--navy {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.btn--navy:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Outline — for use on dark backgrounds */
.btn--outline {
  background-color: transparent;
  color: var(--color-text-inverse);
  border-color: rgba(255,255,255,0.45);
}

.btn--outline:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.80);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
}

/* Outline Navy — for use on light backgrounds */
.btn--outline-navy {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline-navy:hover {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
}

/* Ghost — subtle, minimal */
.btn--ghost {
  background-color: transparent;
  color: var(--color-accent-dark);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
  letter-spacing: var(--tracking-wide);
  border-bottom: 1px solid currentColor;
}

.btn--ghost:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  transform: none;
}

/* Sizes */
.btn--sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-5);
}

.btn--lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-10);
}

/* Icon arrow commonly used after button text */
.btn-arrow {
  display: inline-block;
  transition: transform var(--transition-base);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Phone CTA — special styled tel: link */
.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: var(--tracking-tight);
  transition: color var(--transition-fast);
}

.phone-cta:hover {
  color: var(--color-accent-dark);
}

.phone-cta--inverse {
  color: var(--color-text-inverse);
}

.phone-cta--inverse:hover {
  color: var(--color-accent);
}


/* ============================================================
   9. CARDS & SERVICE BLOCKS
   ============================================================ */

/* Base card */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-light);
}

.card-body {
  padding: var(--space-6);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.card-text {
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

/* Service card — icon + title + text */
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-ultra);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--color-accent-tint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  transition: background-color var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--color-accent-ultra);
}

.service-icon svg,
.service-icon img {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

.service-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.service-card p {
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
  max-width: 100%;
  margin-bottom: var(--space-5);
}

.service-card .btn--ghost {
  font-size: var(--text-xs);
}

/* Feature / trust card */
.feature-card {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.feature-content h4 {
  font-size: var(--text-md);
  margin-bottom: var(--space-2);
}

.feature-content p {
  font-size: var(--text-sm);
  margin: 0;
  max-width: 100%;
}

/* Stat / number callout */
.stat-block {
  text-align: center;
  padding: var(--space-6);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-light);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}


/* ============================================================
   10. PAGE HEADERS (INTERIOR PAGES)
   ============================================================ */

/* Service detail page layout */
.page-content {
  padding: var(--space-16) 0;
}

.page-content .container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-16);
  align-items: start;
}

.page-main h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.page-main h2:first-child {
  margin-top: 0;
}

.page-main p {
  margin-bottom: var(--space-5);
}

.page-main img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-md);
}

/* Sidebar */
.page-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
}

.sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.sidebar-widget h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-nav-list {
  list-style: none;
}

.sidebar-nav-list li + li {
  border-top: 1px solid var(--color-border-light);
}

.sidebar-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-body);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sidebar-nav-list a:hover {
  color: var(--color-primary);
}

.sidebar-nav-list a.active {
  color: var(--color-accent-dark);
  font-weight: var(--weight-semibold);
}

/* Appointment CTA widget */
.appt-widget {
  background: linear-gradient(135deg,
    var(--color-primary) 0%,
    var(--color-primary-mid) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}

.appt-widget h3 {
  color: var(--color-text-inverse);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.appt-widget p {
  color: var(--color-text-inverse-muted);
  font-size: var(--text-sm);
  max-width: 100%;
  margin-bottom: var(--space-6);
}

.appt-widget .phone-number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  display: block;
  text-decoration: none;
  margin-bottom: var(--space-5);
  transition: color var(--transition-fast);
}

.appt-widget .phone-number:hover {
  color: var(--color-text-inverse);
}


/* ============================================================
   11. ABOUT SECTION
   ============================================================ */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-split.reverse {
  direction: rtl;
}

.about-split.reverse > * {
  direction: ltr;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-img-wrapper img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

/* Credential badge overlaid on about image */
.about-badge {
  position: absolute;
  bottom: var(--space-6);
  right: calc(-1 * var(--space-8));
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  min-width: 160px;
}

.about-badge .stat-number {
  font-size: var(--text-3xl);
  color: var(--color-primary);
}

.about-text h2 {
  margin-bottom: var(--space-5);
}

.about-text p {
  margin-bottom: var(--space-5);
}

.credentials-list {
  list-style: none;
  margin-top: var(--space-6);
}

.credentials-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-body);
  border-bottom: 1px solid var(--color-border-light);
}

.credentials-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--color-accent-tint);
  color: var(--color-accent-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  flex-shrink: 0;
}


/* ============================================================
   12. FAQ ACCORDION
   ============================================================ */

.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text-heading);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: var(--leading-snug);
}

.faq-question:hover {
  color: var(--color-primary-mid);
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--color-accent-tint);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-base),
              transform var(--transition-base);
  font-size: var(--text-lg);
  color: var(--color-primary);
  line-height: 1;
}

.faq-item.open .faq-icon {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-base);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding-bottom: var(--space-5);
  color: var(--color-text-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  max-width: 100%;
}


/* ============================================================
   13. CONTACT & HOURS
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info-block h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.contact-detail {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent-tint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.contact-detail-text {
  flex: 1;
}

.contact-detail-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-1);
}

.contact-detail-value {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-heading);
  line-height: var(--leading-snug);
}

.contact-detail-value a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-detail-value a:hover {
  color: var(--color-accent-dark);
}

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-4);
}

.hours-table tr {
  border-bottom: 1px solid var(--color-border-light);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-text-body);
}

.hours-table td:first-child {
  font-weight: var(--weight-medium);
  color: var(--color-text-heading);
  width: 50%;
}

.hours-open  { color: var(--color-success); font-weight: var(--weight-medium); }
.hours-closed { color: var(--color-text-muted); }

/* Office Hours in the footer sits on a dark navy background — the base
   .hours-table colors above are tuned for the light sidebar widget and
   are unreadable (the day-label color is literally the footer's
   background color). Override to light-on-dark here. */
.site-footer .hours-table tr {
  border-bottom-color: rgba(255,255,255,0.10);
}
.site-footer .hours-table td {
  color: rgba(255,255,255,0.55);
}
.site-footer .hours-table td:first-child {
  color: var(--color-text-inverse);
}
.site-footer .hours-open {
  color: var(--color-accent);
}
.site-footer .hours-closed {
  color: rgba(255,255,255,0.4);
}

/* Map embed container */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}


/* ============================================================
   14. FORMS
   ============================================================ */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-heading);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-wide);
}

.form-label .required {
  color: var(--color-accent-dark);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-text-heading);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(92,200,232,0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: var(--leading-relaxed);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232A4A6B' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
}

.form-success {
  background: #EAF7EF;
  border: 1px solid #2D7A4F;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  color: var(--color-success);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-top: var(--space-4);
}

/* Two-col form grid */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}


/* ============================================================
   15. FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-text-inverse-muted);
  padding-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-brand .site-logo-name {
  font-size: var(--text-2xl);
  display: block;
  margin-bottom: var(--space-1);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  max-width: 28ch;
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
}

.footer-phone-link {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  text-decoration: none;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.footer-phone-link:hover {
  color: var(--color-text-inverse);
}

.footer-col h4 {
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li + li {
  margin-top: var(--space-3);
}

.footer-col ul a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--color-accent);
}

.footer-address {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: var(--leading-relaxed);
  font-style: normal;
  margin-bottom: var(--space-4);
}

/* Footer bottom bar */
.footer-bottom {
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  letter-spacing: var(--tracking-wide);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-5);
}

.footer-legal-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  letter-spacing: var(--tracking-wide);
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--color-accent);
}


/* ============================================================
   16. UTILITY CLASSES
   ============================================================ */

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hidden   { display: none !important; }
.visible  { visibility: visible !important; }
.invisible{ visibility: hidden !important; }

/* Spacing helpers */
.mt-0  { margin-top: 0; }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* Divider accent */
.divider-accent {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-accent) 0%,
    var(--color-primary-mid) 100%);
  border-radius: var(--radius-full);
  margin: var(--space-5) 0;
}

.divider-accent--center {
  margin-left: auto;
  margin-right: auto;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-accent-tint);
  color: var(--color-primary);
}

.badge--accent {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

/* Tag */
.tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 3px var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-light);
  background: var(--color-bg);
}

/* Rounded image */
.img-rounded { border-radius: var(--radius-lg); }
.img-circle  { border-radius: var(--radius-full); }

/* Aspect ratios */
.aspect-square    { aspect-ratio: 1/1; object-fit: cover; }
.aspect-video     { aspect-ratio: 16/9; object-fit: cover; }
.aspect-portrait  { aspect-ratio: 3/4; object-fit: cover; }

/* Max width constrain for centered body copy */
.prose {
  max-width: 72ch;
}

.prose h2, .prose h3 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.prose p + p {
  margin-top: var(--space-4);
}

.prose ul, .prose ol {
  padding-left: var(--space-6);
  margin: var(--space-5) 0;
}

.prose li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}


/* ============================================================
   17. ANIMATIONS & TRANSITIONS
   ============================================================ */

/* Page load fade-in for main content */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

/* Utility animation classes */
.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.45s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.55s; }

/* Intersection Observer hook class */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hover lift */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}


/* ============================================================
   18. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large desktop — 1280px+ (default, no query needed) */

/* Medium desktop — up to 1180px */
@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Tablet landscape — up to 1024px */
@media (max-width: 1024px) {
  :root {
    --nav-height: 64px;
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-badge {
    right: var(--space-4);
  }

  .page-content .container {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet portrait — up to 768px */
@media (max-width: 768px) {
  :root {
    --nav-height: var(--nav-height-mob);
  }

  /* Nav collapses to hamburger */
  .primary-nav {
    display: none;
    position: fixed;
    top: var(--nav-height-mob);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-6);
    gap: 0;
    overflow-y: auto;
    z-index: var(--z-overlay);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-3);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
  }

  .nav-dropdown > a::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.05);
    border-radius: 0;
    padding: 0;
  }

  .dropdown-menu a {
    color: rgba(255,255,255,0.65);
    padding: var(--space-3) var(--space-6);
  }

  .nav-cta {
    margin-top: var(--space-4);
    text-align: center;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero adjustments */
  .hero {
    min-height: 400px;
  }

  .hero-content {
    padding: var(--space-12) 0;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  /* Grid collapses */
  .grid--2,
  .grid--2-1,
  .grid--1-2,
  .grid--3-2 {
    grid-template-columns: 1fr;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Typography scale down */
  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .section--lg {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

/* Mobile — up to 480px */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn--lg {
    width: 100%;
    justify-content: center;
  }

  .header-topbar {
    display: none;
  }

  .stat-number {
    font-size: var(--text-4xl);
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion — respect user preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .btn,
  .hero-actions {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  h1, h2, h3 {
    color: #000;
  }
}
