/* =====================================================================
   SA COMMUNITY SUPPORT — PLAIN CSS PORT (base template)
   Hand-port of the Tailwind v4 design system used by the React app.
   Class names mirror the React JSX so the HTML stays diffable.
   Brand tokens below match src/index.css + tailwind defaults.
   ===================================================================== */

:root {
  --bg: #FCF9F4;
  --ink: #141414;
  --ink-muted: #444444;
  --ink-subtle: #525252;
  --primary: #145C9E;
  --primary-light: #E8F1F9;
  --accent: #0D766E;          /* Accessible AA teal for text (5.2:1) */
  --accent-graphic: #1EA896;  /* Graphical decorative accent */
  --f-serif: 'Fraunces', Georgia, serif;
  --f-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  font-family: var(--f-sans);
  background-color: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(20, 92, 158, 0.2); color: var(--primary); }

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--f-serif);
  font-weight: 400;           /* Tailwind preflight removes heading bold */
}

h1, h2, h3, h4, h5, h6, p, ul, ol, fieldset { margin: 0; }

button { font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }

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

[hidden] { display: none !important; }
.hidden { display: none !important; }

/* Accessible focus indicator (WCAG 2.1 SC 2.4.7 / SC 1.4.11) */
:focus-visible {
  outline: 3px solid #145C9E !important;
  outline-offset: 3px !important;
}

/* ---------- Reduced motion (WCAG 2.1 SC 2.3.3 & 2.2.2) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-pulse, .eq1, .eq2, .eq3, .eq4 { animation: none !important; }
}

/* ---------- Skip links (WCAG 2.1 SC 2.4.1) ---------- */
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0; overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  width: auto; height: auto;
  clip: auto; margin: 0;
  padding: 0.65rem 1rem;
  background: #141414; color: #fff;
  font-weight: 700; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  outline: 3px solid #FFD700; outline-offset: 2px;
  z-index: 50;
}
.skip-link-2:focus { left: 12rem; }
.skip-link-3:focus { left: 24rem; }
.skip-link-4:focus { left: 28rem; }

/* ---------- Pulse (Tailwind default keyframes) ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ---------- Flex & grid ---------- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.flex-grow { flex-grow: 1; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.w-max { width: max-content; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Gap ---------- */
.gap-1 { gap: 0.25rem; } .gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; } .gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; } .gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; } .gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; } .gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; } .gap-14 { gap: 3.5rem; }

/* ---------- Space-y ---------- */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ---------- Padding (Tailwind spacing scale) ---------- */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; } .p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; } .p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; } .p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; } .p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; } .p-9 { padding: 2.25rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.pt-0\.5 { padding-top: 0.125rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-2\.5 { padding-top: 0.625rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-3\.5 { padding-top: 0.875rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pr-1 { padding-right: 0.25rem; }
.pr-4 { padding-right: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-12 { padding-left: 3rem; }

/* ---------- Margin ---------- */
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-2\.5 { margin-bottom: 0.625rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-4 { margin-right: 1rem; }
.ml-0\.5 { margin-left: 0.125rem; }

/* ---------- Typography ---------- */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.underline { text-decoration: underline; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-normal { line-height: 1.5; }

.text-[10px] { font-size: 0.625rem; }
.text-[11px] { font-size: 0.6875rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-[17px] { font-size: 17px; }
.text-[19px] { font-size: 19px; line-height: 1.7; }
.text-[22px] { font-size: 22px; line-height: 1.8; }
.text-[68px] { font-size: 68px; }
.text-[72px] { font-size: 72px; }

/* ---------- Text colors ---------- */
.text-white { color: #fff; }
.text-\[\#141414\] { color: #141414; }
.text-\[\#333\] { color: #333; }
.text-\[\#444\] { color: #444; }
.text-\[\#525252\] { color: #525252; }
.text-\[\#222\] { color: #222; }
.text-\[\#145C9E\] { color: #145C9E; }
.text-\[\#145c9e\] { color: #145c9e; }
.text-\[\#0D766E\] { color: #0D766E; }
.text-\[\#1EA896\] { color: #1EA896; }
.text-\[\#0A5C56\] { color: #0A5C56; }
.text-\[\#2DD4BF\] { color: #2DD4BF; }
.text-black\/50 { color: rgba(0, 0, 0, 0.5); }
.text-amber-300 { color: #fcd34d; }
.text-amber-600 { color: #d97706; }
.text-amber-900 { color: #78350f; }
.text-rose-300 { color: #fda4af; }
.text-red-700 { color: #b91c1c; }
.fill-\[\#145C9E\] { fill: #145C9E; }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }

/* ---------- Backgrounds ---------- */
.bg-white { background-color: #fff; }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/25 { background-color: rgba(255, 255, 255, 0.25); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-black { background-color: #000; }
.bg-black\/5 { background-color: rgba(0, 0, 0, 0.05); }
.bg-black\/10 { background-color: rgba(0, 0, 0, 0.1); }
.bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); }
.bg-\[\#FCF9F4\] { background-color: #FCF9F4; }
.bg-\[\#141414\] { background-color: #141414; }
.bg-\[\#E8F1F9\] { background-color: #E8F1F9; }
.bg-\[\#dcfce7\] { background-color: #dcfce7; }
.bg-\[\#145C9E\] { background-color: #145C9E; }
.bg-\[\#0D766E\] { background-color: #0D766E; }
.bg-\[\#0A5C56\] { background-color: #0A5C56; }
.bg-neutral-900 { background-color: #171717; }

/* ---------- Borders ---------- */
.border { border: 1px solid var(--border-c, rgba(0, 0, 0, 0.15)); }
.border-t { border-top: 1px solid var(--border-c, rgba(0, 0, 0, 0.15)); }
.border-b { border-bottom: 1px solid var(--border-c, rgba(0, 0, 0, 0.15)); }
.border-b-4 { border-bottom: 4px solid var(--border-c, rgba(0, 0, 0, 0.15)); }
.border-b-transparent { border-bottom-color: transparent; }
.border-l-\[3px\] { border-left-width: 3px; }
.border-l-\[3px\].border-\[\#0D766E\] { border-left-color: #0D766E; }
.border-black\/5 { --border-c: rgba(0, 0, 0, 0.05); }
.border-black\/10 { --border-c: rgba(0, 0, 0, 0.10); }
.border-black\/15 { --border-c: rgba(0, 0, 0, 0.15); }
.border-black\/20 { --border-c: rgba(0, 0, 0, 0.20); }
.border-black\/25 { --border-c: rgba(0, 0, 0, 0.25); }
.border-\[\#145C9E\]\/25 { --border-c: rgba(20, 92, 158, 0.25); }
.border-\[\#145C9E\]\/30 { --border-c: rgba(20, 92, 158, 0.30); }
.border-\[\#145C9E\]\/15 { --border-c: rgba(20, 92, 158, 0.15); }
.border-\[\#0D766E\]\/20 { --border-c: rgba(13, 118, 110, 0.20); }
.border-white\/15 { --border-c: rgba(255, 255, 255, 0.15); }
.border-white\/20 { --border-c: rgba(255, 255, 255, 0.20); }
.border-\[\#141414\] { --border-c: #141414; }

.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

/* ---------- Rings ---------- */
.ring-1 { box-shadow: 0 0 0 1px var(--ring-c, rgba(0, 0, 0, 0.2)); }
.ring-2 { box-shadow: 0 0 0 2px var(--ring-c, #141414); }
.ring-\[\#141414\] { --ring-c: #141414; }
.ring-black\/20 { --ring-c: rgba(0, 0, 0, 0.2); }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--ring-c, rgba(0, 0, 0, 0.2)); }
.focus\:ring-black\/20:focus { --ring-c: rgba(0, 0, 0, 0.2); }
.focus\:ring-black\/10:focus { --ring-c: rgba(0, 0, 0, 0.1); }
.focus\:ring-\[\#145C9E\]:focus { --ring-c: #145C9E; }
.focus\:border-\[\#141414\]:focus { border-color: #141414; }

/* ---------- Shadows ---------- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-\[0_4px_20px_rgba\(0\,0\,0\,0\.03\)\] { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); }
.shadow-\[0_10px_30px_rgba\(0\,0\,0\,0\.04\)\] { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); }
.shadow-\[0_20px_40px_rgba\(0\,0\,0\,0\.3\)\] { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }

/* ---------- Position / size ---------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-24 { top: 6rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.-bottom-4 { bottom: -1rem; }
.-left-4 { left: -1rem; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.bottom-4 { bottom: 1rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.max-h-52 { max-height: 13rem; }
.max-h-80 { max-height: 20rem; }
.min-h-\[320px\] { min-height: 320px; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 0.3s; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 0.3s; }
.transition-transform { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.duration-200 { transition-duration: 0.2s; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.divide-y > * + * { border-top: 1px solid rgba(0, 0, 0, 0.1); }
.focus\:outline-none:focus { outline: none; }
.duration-300 { transition-duration: 0.3s; }
.active\:scale-\[0\.99\]:active { transform: scale(0.99); }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-md { max-width: 28rem; }
.w-auto { width: auto; }

/* ---------- Hover ---------- */
.hover\:bg-black:visited:hover, .hover\:bg-black:hover { background-color: #000; }
.hover\:bg-black\/5:hover { background-color: rgba(0, 0, 0, 0.05); }
.hover\:bg-white\/25:hover { background-color: rgba(255, 255, 255, 0.25); }
.hover\:bg-\[\#0A5C56\]:hover { background-color: #0A5C56; }
.hover\:bg-\[\#d8e8f5\]:hover { background-color: #d8e8f5; }
.hover\:bg-\[\#0f4d85\]:hover { background-color: #0f4d85; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-\[\#145C9E\]:hover { color: #145C9E; }
.hover\:text-yellow-300:hover { color: #fde047; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:border-b-\[\#0D766E\]:hover { border-bottom-color: #0D766E; }
.hover\:border-black\/30:hover { --border-c: rgba(0, 0, 0, 0.3); }

.group:hover .group-hover\:text-\[\#145C9E\] { color: #145C9E; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* ---------- Icons via lucide (attributes copied; sizes from classes) ---------- */
.lucide { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Helper sizes for icon elements (lucide defaults to 24x24) */
.w-1 { width: 0.25rem; } .w-2 { width: 0.5rem; } .w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; } .w-4 { width: 1rem; } .w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; } .w-7 { width: 1.75rem; } .w-8 { width: 2rem; }
.w-9 { width: 2.25rem; } .w-10 { width: 2.5rem; } .w-11 { width: 2.75rem; }
.w-12 { width: 3rem; } .w-16 { width: 4rem; }
.h-1 { height: 0.25rem; } .h-2 { height: 0.5rem; } .h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; } .h-4 { height: 1rem; } .h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; } .h-7 { height: 1.75rem; } .h-8 { height: 2rem; }
.h-9 { height: 2.25rem; } .h-10 { height: 2.5rem; } .h-11 { height: 2.75rem; }
.h-12 { height: 3rem; } .h-16 { height: 4rem; }

/* =====================================================================
   RESPONSIVE (Tailwind breakpoints: sm=640, md=768, lg=1024, xl=1280)
   ===================================================================== */
@media (min-width: 1024px) { .lg\:hidden { display: none; } }
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:left-auto { left: auto; }
  .sm\:right-6 { right: 1.5rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .sm\:py-9 { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .sm\:p-7 { padding: 1.75rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-9 { padding: 2.25rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:gap-8 { gap: 2rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:h-12 { height: 3rem; }
  .sm\:p-5 { padding: 1.25rem; }
}
@media (min-width: 768px) {
  .md\:inline { display: inline; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:inline { display: inline; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .lg\:pt-16 { padding-top: 4rem; }
  .lg\:pb-24 { padding-bottom: 6rem; }
  .lg\:gap-14 { gap: 3.5rem; }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:min-h-full { min-height: 100%; }
  .lg\:text-\[68px\] { font-size: 68px; }
}
@media (min-width: 1280px) {
  .xl\:text-\[72px\] { font-size: 72px; }
}

/* =====================================================================
   COMPONENTS
   ===================================================================== */

/* ---------- Header ---------- */
#main-header { transition-property: color, background-color, border-color; transition-duration: 0.2s; }
.a11y-strip .flex { gap: 0.75rem; }

.nav-link { position: relative; color: #141414; padding: 0.25rem 0; }
.nav-link::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #145C9E; transition: width 0.25s ease; }
.nav-link:hover { color: #145C9E; }
.nav-link:hover::after { width: 100%; }

.mobile-link { padding: 0.625rem 0.75rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.mobile-link::after { content: "→"; color: #145C9E; }
.mobile-link:hover { background: rgba(0, 0, 0, 0.05); }

#mobile-navigation-drawer:not(.hidden) { max-height: 80vh; overflow-y: auto; }

/* Text scale pills */
.tscale-btn.on { background: #fff; color: #141414; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }

/* A11y switches */
.a11y-switch.on { background: #FACC15 !important; color: #000 !important; font-weight: 700; }

/* ---------- Sections ---------- */
.section-bg { background-color: #FCF9F4; }

/* Tabs: services */
.srv-tab { border: none; }
.srv-tab.on { background: #141414; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); outline: 2px solid #141414; outline-offset: 0; }

.story-tab.on { background: #141414; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); outline: 2px solid #141414; outline-offset: 0; }

/* Cards */
.hc-card, .srv-card, .step-card { transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s; }

/* Expandable service items */
.srv-more { display: none; }
.srv-card.expanded .srv-more { display: flex; }

/* ---------- Care Planner ---------- */
.planner-row input[type="checkbox"] { accent-color: #145C9E; }

/* ---------- Audio narration bar ---------- */
.audio-bar.playing { background: #E8F1F9; border-color: rgba(20, 92, 158, 0.3); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.eq1 { animation: pulse 0.6s ease-in-out infinite; }
.eq2 { animation: pulse 0.8s ease-in-out infinite; }
.eq3 { animation: pulse 0.5s ease-in-out infinite; }
.eq4 { animation: pulse 0.7s ease-in-out infinite; }

/* ---------- Forms ---------- */
input[type="text"], input[type="tel"], input[type="email"], textarea {
  transition-property: border-color, box-shadow;
  transition-duration: 0.15s;
}
input::placeholder, textarea::placeholder { color: rgba(0, 0, 0, 0.5); }

/* ---------- Footer ---------- */
#main-footer { background-color: #141414; color: rgba(255, 255, 255, 0.9); }

/* ---------- Scrollbar (subtle, for planner list) ---------- */
.pr-1::-webkit-scrollbar { width: 6px; }
.pr-1::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 9999px; }

/* =====================================================================
   HIGH CONTRAST MODE  (toggled by adding .high-contrast to <body>)
   Mirrors index.css and the per-component highContrast variants.
   ===================================================================== */
body.high-contrast { background: #000 !important; color: #fff !important; }
body.high-contrast * { border-color: #FFD700 !important; }

body.high-contrast .section-bg,
body.high-contrast #main-header,
body.high-contrast #main-footer,
body.high-contrast .hc-card,
body.high-contrast .srv-card,
body.high-contrast .step-card,
body.high-contrast .bg-\[\#FCF9F4\],
body.high-contrast .bg-white,
body.high-contrast .bg-\[\#E8F1F9\],
body.high-contrast .bg-neutral-900 {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast .bg-white\/80,
body.high-contrast .bg-black\/5 { background-color: rgba(0, 0, 0, 0) !important; }

body.high-contrast .text-\[\#141414\],
body.high-contrast .text-\[\#444\],
body.high-contrast .text-\[\#333\],
body.high-contrast .text-\[\#222\],
body.high-contrast .text-\[\#525252\],
body.high-contrast .text-black\/50,
body.high-contrast .text-\[\#5b5b5b\] {
  color: #fff !important;
}

body.high-contrast .text-\[\#145C9E\],
body.high-contrast .text-\[\#145c9e\],
body.high-contrast .text-\[\#1EA896\],
body.high-contrast .text-\[\#0D766E\] {
  color: #FFD700 !important;
}

body.high-contrast button,
body.high-contrast .btn-action { border: 2px solid #FFD700 !important; }
body.high-contrast :focus-visible { outline: 3px solid #FFD700 !important; outline-offset: 3px !important; }

/* A11y strip in high contrast */
body.high-contrast .a11y-strip { background: #111 !important; color: #FFD700 !important; border-bottom: 1px solid #FFD700; }
body.high-contrast .a11y-strip .bg-white\/15 { background-color: transparent !important; }

/* Header sticky bar under HC (React: bg-black border-b-2 yellow) */
body.high-contrast #main-header { background: #000 !important; border-bottom: 2px solid #FFD700; }

/* Nav link + brand colors under HC */
body.high-contrast .nav-link,
body.high-contrast .mobile-link { color: #fff !important; }
body.high-contrast .nav-link:hover, body.high-contrast .mobile-link:hover { color: #fde047 !important; }

/* Site footer always dark; HC keeps it */
body.high-contrast #main-footer { background: #000 !important; }

/* Quick call bar */
body.high-contrast .fixed.bottom-4 { background: #000 !important; }
body.high-contrast .fixed.bottom-4 .bg-\[\#0D766E\] { background: transparent !important; }

/* Audio bar playing state under HC keeps E8F1F9 → override to black w/ gold */
body.high-contrast .audio-bar.playing { background: #000 !important; }

/* Selected radio pills / tabs keep strong distinction */
body.high-contrast .radio-pill.on,
body.high-contrast .srv-tab.on,
body.high-contrast .story-tab.on,
body.high-contrast .tscale-btn.on { background: #FFD700 !important; color: #000 !important; }

@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight !important; outline-offset: 3px !important; }
}

/* =====================================================================
   PRINT
   ===================================================================== */
@media print {
  .fixed, header, #footer { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* =====================================================================
   GAP-FILL UTILITIES & COMPONENTS  (ported from the React index.css)
   Kept at the end so specificity/order matches the original build.
   ===================================================================== */

/* ---------- Layout / display ---------- */
.block { display: block; }
.inline-block { display: inline-block; }
.justify-end { justify-content: flex-end; }
.m-0 { margin: 0; }
.list-none { list-style: none; }
.max-w-sm { max-width: 24rem; }
.min-h-screen { min-height: 100vh; }
.h-full { height: 100%; }
.gap-0\.5 { gap: 0.125rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-10 { padding-top: 2.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.rounded { border-radius: 0.25rem; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-\[0_4px_20px_rgba\(0\,0\,0\,0\.03\)\] { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); }
.shadow-\[0_10px_30px_rgba\(0\,0\,0\,0\.04\)\] { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); }
.shadow-\[0_20px_40px_rgba\(0\,0\,0\,0\.3\)\] { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-black { border-color: #000; }
.border-l-\[3px\] { border-left-width: 3px; }
.bg-transparent { background-color: transparent; }
.top-1\/2 { top: 50%; }

/* ---------- Typography ---------- */
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[17px\] { font-size: 17px; }
.leading-\[0\.98\] { line-height: 0.98; }
.leading-\[1\.6\] { line-height: 1.6; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }

/* ---------- Brand palette (arbitrary values) ---------- */
.bg-\[\#141414\] { background-color: #141414; }
.bg-\[\#145C9E\] { background-color: #145C9E; }
.bg-\[\#1EA896\] { background-color: #1EA896; }
.bg-\[\#0D766E\] { background-color: #0D766E; }
.bg-\[\#E8F1F9\] { background-color: #E8F1F9; }
.bg-\[\#FCF9F4\] { background-color: #FCF9F4; }
.bg-\[\#FCF9F4\]\/95 { background-color: rgba(252, 249, 244, 0.95); }
.bg-\[\#dcfce7\] { background-color: #dcfce7; }
.border-\[\#141414\] { border-color: #141414; }
.border-\[\#0D766E\] { border-color: #0D766E; }
.border-\[\#0D766E\]\/20 { border-color: rgba(13, 118, 110, 0.2); }
.border-\[\#145C9E\]\/15 { border-color: rgba(20, 92, 158, 0.15); }
.border-\[\#145C9E\]\/25 { border-color: rgba(20, 92, 158, 0.25); }
.border-\[\#E8F1F9\] { border-color: #E8F1F9; }
.fill-\[\#145C9E\] { fill: #145C9E; }
.text-\[\#047857\] { color: #047857; }
.text-\[\#0A5C56\] { color: #0A5C56; }
.text-\[\#0D766E\] { color: #0D766E; }
.text-\[\#141414\] { color: #141414; }
.text-\[\#145c9e\] { color: #145c9e; }
.text-\[\#145C9E\] { color: #145C9E; }
.text-\[\#1d4ed8\] { color: #1d4ed8; }
.text-\[\#1EA896\] { color: #1EA896; }
.text-\[\#222\] { color: #222; }
.text-\[\#2DD4BF\] { color: #2DD4BF; }
.text-\[\#333\] { color: #333; }
.text-\[\#444\] { color: #444; }
.text-\[\#525252\] { color: #525252; }
.text-\[\#6d28d9\] { color: #6d28d9; }
.text-\[\#b45309\] { color: #b45309; }
.text-\[\#b91c1c\] { color: #b91c1c; }

/* ---------- Opacity modifiers ---------- */
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-black\/5 { background-color: rgba(0, 0, 0, 0.05); }
.bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-black\/10 { border-color: rgba(0, 0, 0, 0.1); }
.border-black\/15 { border-color: rgba(0, 0, 0, 0.15); }
.border-black\/20 { border-color: rgba(0, 0, 0, 0.2); }
.border-black\/25 { border-color: rgba(0, 0, 0, 0.25); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-black\/50 { color: rgba(0, 0, 0, 0.5); }
.divide-black\/10 > :not([hidden]) ~ :not([hidden]) { border-color: rgba(0, 0, 0, 0.1); }

/* ---------- Gradients (hero overlay) ---------- */
.from-black\/90 { --tw-grad-0: rgba(0, 0, 0, 0.9); }
.via-black\/40 { --tw-grad-1: rgba(0, 0, 0, 0.4); }
.to-transparent { --tw-grad-2: transparent; }
.bg-gradient-to-t {
  background-image: linear-gradient(to top,
    var(--tw-grad-0, transparent),
    var(--tw-grad-1, transparent),
    var(--tw-grad-2, transparent));
}

/* ---------- Focus / ring ---------- */
.focus\:outline-none:focus { outline: 0; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color, rgba(20, 92, 158, 0.6)); }
.focus\:ring-4:focus { box-shadow: 0 0 0 4px var(--tw-ring-color, rgba(20, 92, 158, 0.6)); }
.focus\:ring-black\/10:focus { --tw-ring-color: rgba(0, 0, 0, 0.1); }
.focus\:ring-black\/20:focus { --tw-ring-color: rgba(0, 0, 0, 0.2); }
.focus\:ring-white:focus { --tw-ring-color: #fff; }
.focus\:ring-\[\#145C9E\]:focus { --tw-ring-color: #145C9E; }
.focus\:border-\[\#141414\]:focus { border-color: #141414; }
.ring-black\/20 { --tw-ring-color: rgba(0, 0, 0, 0.2); }
.ring-\[\#141414\] { --tw-ring-color: #141414; }

/* ---------- Hover / active / disabled ---------- */
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-black:hover { background-color: #000; }
.hover\:bg-white:hover { background-color: #fff; }
.hover\:bg-black\/5:hover { background-color: rgba(0, 0, 0, 0.05); }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.hover\:bg-white\/25:hover { background-color: rgba(255, 255, 255, 0.25); }
.hover\:bg-\[\#0A5C56\]:hover { background-color: #0A5C56; }
.hover\:bg-\[\#145C9E\]:hover { background-color: #145C9E; }
.hover\:bg-\[\#d8e8f5\]:hover { background-color: #d8e8f5; }
.hover\:border-b-\[\#0D766E\]:hover { border-bottom-color: #0D766E; }
.hover\:border-black\/30:hover { border-color: rgba(0, 0, 0, 0.3); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.hover\:text-\[\#145C9E\]:hover { color: #145C9E; }
.hover\:text-white:hover { color: #fff; }
.group:hover .group-hover\:text-\[\#145C9E\] { color: #145C9E; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.active\:scale-\[0\.99\]:active { transform: scale(0.99); }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.placeholder\:text-black\/50::placeholder { color: rgba(0, 0, 0, 0.5); }

/* ---------- Responsive gap-fill ---------- */
@media (min-width: 640px) {
  .sm\:p-2\.5 { padding: 0.625rem; }
}

/* ---------- Components ---------- */
.pop-chip { display: inline-flex; align-items: center; }
.stepper { display: inline-flex; align-items: center; }
.step-minus, .step-plus { cursor: pointer; font-weight: 700; user-select: none; }
.stepper-val { display: inline-block; text-align: center; font-variant-numeric: tabular-nums; }
.story-panel { position: relative; }
.story-audio-toggle, .srv-more-btn { cursor: pointer; }
.eq-bar { display: flex; align-items: flex-end; gap: 3px; }
.audio-state-label { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---------- Team (borrowed from portfolio/dentist/styles.css) ---------- */
.team-card { text-align: center; padding: 2rem 1rem; }
.team-card h3 { font-family: var(--f-serif); font-weight: 500; font-size: 1.1rem; margin-bottom: .2rem; }
.team-card p { font-size: 0.78rem; color: var(--ink-muted); }
.team-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 2px solid #E8F1F9;
}
