/* ==========================================================
   SysLab Diagnostics And Wellness Hub
   Design tokens, layout and components
   ========================================================== */

/* =========================
   TOKENS
========================== */

:root {
  /* Type */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Surfaces */
  --bg: #f7f9f8;
  --surface: #ffffff;
  --surface-tint: #f0fdf4;
  --surface-sunken: #f1f5f4;

  /* Text (all ≥ 4.5:1 on --surface and --bg) */
  --text: #0b1f19;
  --text-2: #475569;
  --text-3: #5b6b7d;

  /* Lines */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Brand: emerald carries identity and interactive emphasis */
  --brand: #064e3b;
  --brand-600: #047857;
  --brand-ink: #065f46;
  --brand-soft: #ecfdf5;
  --brand-soft-2: #d1fae5;

  /* Accent: red is reserved for the primary booking action and alerts */
  --accent: #b91c1c;
  --accent-hover: #991b1b;
  --accent-soft: #fef2f2;
  --danger: #b91c1c;

  /* WhatsApp actions (darkened for 5.4:1 with white text) */
  --wa: #0e7a43;
  --wa-hover: #0b6637;

  /* Glass (floating navigation only) */
  --glass-fill: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.6);
  --glass-edge: rgba(15, 23, 42, 0.08);

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 24px 48px -16px rgba(6, 78, 59, 0.14), 0 2px 6px rgba(15, 23, 42, 0.04);
  --focus: 0 0 0 4px rgba(4, 120, 87, 0.28);

  /* Shape */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 200ms;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f0d;
    --surface: #111816;
    --surface-tint: #0d1a15;
    --surface-sunken: #0e1412;

    --text: #ecf3f0;
    --text-2: #a7b6b0;
    --text-3: #93a39d;

    --border: #1f2a26;
    --border-strong: #2d3b36;

    --brand: #064e3b;
    --brand-600: #059669;
    --brand-ink: #6ee7b7;
    --brand-soft: #0f2a21;
    --brand-soft-2: #134032;

    --accent: #c62828;
    --accent-hover: #a51f1f;
    --accent-soft: #2a1414;
    --danger: #f87171;

    --glass-fill: rgba(17, 24, 22, 0.7);
    --glass-line: rgba(255, 255, 255, 0.06);
    --glass-edge: rgba(0, 0, 0, 0.4);

    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --focus: 0 0 0 4px rgba(110, 231, 183, 0.3);
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: #94a3b8;
    --border-strong: #64748b;
    --text-2: #334155;
    --text-3: #334155;
    --glass-fill: rgba(255, 255, 255, 0.96);
  }
}


/* =========================
   BASE
========================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 32px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-text);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a {
  color: var(--brand-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

ul { list-style: none; }

img, svg { display: block; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus { top: 12px; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) var(--gutter);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-ink);
}


/* =========================
   BUTTONS
========================== */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 80ms; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  box-shadow: 0 8px 20px -8px rgba(185, 28, 28, 0.55);
}

.btn-primary:hover { --btn-bg: var(--accent-hover); }

.btn-secondary {
  --btn-bg: var(--surface);
  --btn-fg: var(--brand-ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover { border-color: var(--brand-600); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--brand-ink);
}

.btn-ghost:hover { --btn-bg: var(--brand-soft); }

.btn-wa {
  --btn-bg: var(--wa);
  --btn-fg: #fff;
}

.btn-wa:hover { --btn-bg: var(--wa-hover); }


/* =========================
   NAVIGATION (floating glass)
========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px var(--gutter) 0;
}

.nav {
  position: relative;
  max-width: var(--max);
  min-height: var(--nav-h);
  margin: 0 auto;
  padding: 10px 10px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--r-lg);
  background: var(--glass-fill);
  -webkit-backdrop-filter: saturate(1.4) blur(24px);
  backdrop-filter: saturate(1.4) blur(24px);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-header.is-scrolled .nav {
  box-shadow: inset 0 1px 0 var(--glass-line), 0 12px 32px -12px rgba(15, 23, 42, 0.18);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: var(--surface); }
}

@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

/* Logo artwork sits on white, so it always gets a white tile */
.brand-logo,
.hero-card-logo,
.footer-logo {
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
}

.brand-logo {
  width: 44px;
  height: 44px;
  padding: 3px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--border);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--text);
  background: var(--surface-sunken);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.nav-toggle:hover { background: var(--surface-sunken); }
.nav-toggle .icon { 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; }


/* =========================
   HERO
========================== */

.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * (var(--nav-h) + 12px));
  padding-top: calc(var(--nav-h) + 12px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(16, 185, 129, 0.16), transparent 70%),
    radial-gradient(40% 50% at 100% 90%, rgba(239, 68, 68, 0.07), transparent 70%),
    linear-gradient(180deg, var(--surface-tint), var(--bg));
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(64px, 9vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(2.5rem, 2rem + 3.2vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.accent-text { color: var(--brand-ink); }

.lede {
  max-width: 34ch;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.45;
  letter-spacing: -0.016em;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.pill .icon { width: 16px; height: 16px; color: var(--brand-ink); }
.pill:hover { border-color: var(--brand-600); color: var(--text); transform: translateY(-1px); }

/* Pills that open the service modal */
.pill[data-service] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pill[data-service]:hover { background: var(--brand-soft); box-shadow: 0 6px 16px -8px rgba(6, 78, 59, 0.35); }
.pill[data-service]:active { transform: scale(0.97); transition-duration: 80ms; }
.pill:focus-visible { outline: none; box-shadow: var(--focus); }

@media (pointer: coarse) {
  .pill { min-height: 44px; }
}

.hero-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-card-logo {
  width: 72px;
  height: 72px;
  padding: 6px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
}

.hero-card-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-card-kicker .status-dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.hero-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.hero-card-text {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.feature-list {
  margin-top: 20px;
  display: grid;
  gap: 4px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  margin: 0 -10px;
  border-radius: var(--r);
  transition: background-color var(--dur) var(--ease);
}

.feature:hover { background: var(--surface-sunken); }

.feature-icon,
.service-icon,
.support-icon,
.contact-icon,
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-ink);
  background: var(--brand-soft);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.feature-icon .icon { width: 22px; height: 22px; }

.feature strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature small {
  display: block;
  color: var(--text-2);
  font-size: 0.8125rem;
}

.hero-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}

.hero-card-foot small {
  display: block;
  color: #a7f3d0;
  font-size: 0.75rem;
  font-weight: 500;
}

.hero-card-foot strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.hero-card-foot .icon { transition: transform var(--dur) var(--ease); }
.hero-card-foot:hover { background: #053f30; }
.hero-card-foot:hover .icon { transform: translateX(3px); }


/* =========================
   SECTIONS
========================== */

.section-surface { background: var(--surface); }

.section-tint {
  background: var(--surface-tint);
  border-block: 1px solid var(--border);
}

.section-heading {
  max-width: 680px;
  margin: 0 auto clamp(40px, 5vw, 56px);
  text-align: center;
}

.section-heading h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-heading > p:last-child {
  color: var(--text-2);
  font-size: 1.125rem;
  letter-spacing: -0.014em;
}


/* =========================
   SERVICES
========================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

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

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.service-icon .icon { width: 24px; height: 24px; }

.service-card:hover .service-icon {
  background: var(--brand);
  color: #fff;
}

.badge {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.service-card h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.25;
}

.service-card > p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

.service-list li {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-sunken);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}


/* =========================
   CARDS & FORMS
========================== */

.card {
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-title {
  margin-bottom: 22px;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.024em;
}

.appointment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.help-container {
  max-width: 820px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.full { grid-column: 1 / -1; }

/* Floating-label field: input precedes its label in the DOM */
.field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 58px;
  padding: 24px 14px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  letter-spacing: -0.011em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.field textarea {
  min-height: 132px;
  padding-top: 28px;
  resize: vertical;
}

.field select {
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.field input[type="date"] { cursor: pointer; min-width: 0; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }

.field input::placeholder,
.field textarea::placeholder {
  color: transparent;
  transition: color var(--dur) var(--ease);
}

.field input:focus::placeholder,
.field textarea:focus::placeholder {
  color: var(--text-3);
}

.field label {
  position: absolute;
  top: 18px;
  left: 15px;
  right: 15px;
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transform-origin: left top;
  transition:
    transform var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.optional {
  font-weight: 400;
  color: var(--text-3);
}

/* Floated state */
.field-static label,
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(0.78);
}

.field textarea + label { top: 20px; }

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--text-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-600);
  box-shadow: var(--focus);
}

.field input:focus + label,
.field select:focus + label,
.field textarea:focus + label {
  color: var(--brand-ink);
}

/* Validation */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
  background-color: var(--accent-soft);
}

.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus {
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.18);
}

.field.is-invalid label { color: var(--danger); }

.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea {
  border-color: var(--brand-600);
}

.field-error {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-left: 2px;
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 500;
}

.field-error::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field.is-invalid .field-error { display: flex; }

form .btn-block { margin-top: 24px; }

.form-status {
  min-height: 1.5em;
  margin-top: 12px;
  color: var(--brand-ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.form-status.is-error { color: var(--danger); }


/* =========================
   INFO PANEL
========================== */

.info-panel {
  padding: clamp(22px, 3.5vw, 32px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(16, 185, 129, 0.22), transparent 70%),
    var(--brand);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.info-panel h3 {
  color: #fff;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.024em;
}

.info-list { margin-top: 12px; }

.info-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.info-item:last-child { border-bottom: 0; padding-bottom: 0; }

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: #a7f3d0;
}

.info-icon .icon { width: 20px; height: 20px; }

.info-item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.info-item span > span,
.info-item a {
  display: block;
  color: #d1fae5;
  font-size: 0.875rem;
}

.info-item a {
  color: #fff;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}


/* =========================
   SUPPORT
========================== */

.support-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.support-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.support-card:hover {
  border-color: var(--brand-soft-2);
  background: var(--surface-tint);
}

.support-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  .support-icon { color: #fca5a5; }
}

.support-icon .icon { width: 22px; height: 22px; }

.support-card h3 {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.support-card p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.9375rem;
}


/* =========================
   CONTACT
========================== */

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 16px;
}

.contact-icon .icon { width: 26px; height: 26px; }

.contact-card h3 {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.contact-card p {
  margin: 4px 0 20px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.contact-card .btn { margin-top: auto; }


/* =========================
   FOOTER
========================== */

.site-footer {
  background: #052e24;
  color: #d1fae5;
  padding: 56px var(--gutter) 32px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-logo {
  width: 88px;
  height: 88px;
  padding: 8px;
  border-radius: 20px;
}

.footer-brand { align-items: center; }

.footer-tagline {
  color: #6ee7b7 !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-name {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-brand p:not(.footer-name) {
  color: #a7c4b9;
  font-size: 0.9375rem;
}

.footer-contact {
  display: grid;
  gap: 8px;
  font-size: 0.9375rem;
  color: #a7c4b9;
}

.footer-contact a {
  color: #d1fae5;
  text-decoration: none;
}

.footer-contact a:hover { text-decoration: underline; }

.footer-legal {
  max-width: var(--max);
  margin: 24px auto 0;
  color: #8fb1a5;
  font-size: 0.8125rem;
}


/* =========================
   EQUIPMENT & SUPPLIES
========================== */

.supplies {
  margin-top: clamp(56px, 7vw, 88px);
}

.supplies-heading {
  max-width: 640px;
  margin-bottom: 28px;
}

.supplies-heading h3 {
  margin: 12px 0 6px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.supplies-heading p {
  color: var(--text-2);
  font-size: 1.0625rem;
}

.supply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 20px;
  align-items: start;
}

.supply-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.supply-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px 18px;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--border);
}

.supply-head h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.25;
}

.supply-head p {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 0.875rem;
}

.supply-head .service-icon {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}

.spec-list { padding: 6px 0; }

.spec-item {
  display: flex;
  gap: 14px;
  padding: 16px 22px;
  transition: background-color var(--dur) var(--ease);
}

.spec-item + .spec-item { border-top: 1px solid var(--border); }
.spec-item:hover { background: var(--surface-sunken); }

.spec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.spec-icon .icon { width: 20px; height: 20px; }

.spec-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.spec-item p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.spec-tags li {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.supplies-note {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 0.875rem;
}


/* =========================
   PHOTOGRAPHY
========================== */

.photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  border-radius: 20px;
  aspect-ratio: 3 / 2;
  /* Branded placeholder shown while loading or if an image fails */
  background:
    radial-gradient(70% 80% at 80% 10%, rgba(16, 185, 129, 0.28), transparent 70%),
    linear-gradient(135deg, var(--brand-soft-2), var(--brand-soft));
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6'/%3E%3Cpath d='M10 3v6.2L4.8 18a2 2 0 0 0 1.7 3h11a2 2 0 0 0 1.7-3L14 9.2V3'/%3E%3Cpath d='M7.5 15h9'/%3E%3C/svg%3E") center / 56px no-repeat;
  opacity: 0.45;
}

/* Hairline edge so photos sit cleanly on any surface */
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  pointer-events: none;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 400ms var(--ease),
    transform 600ms var(--ease);
}

.js .photo img { opacity: 0; }
.js .photo.is-loaded img { opacity: 1; }
.photo.is-broken img { display: none; }

@media (prefers-color-scheme: dark) {
  .photo img { filter: brightness(0.92) saturate(0.95); }
  .photo::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
}

/* Hero card photo */
.photo-hero {
  aspect-ratio: 16 / 10;
  margin-bottom: 22px;
  border-radius: 18px;
}

.photo-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.3);
}

.photo-chip .icon { width: 16px; height: 16px; }

/* Keep the label clear of the microscope, the subject of the hero photo */
.photo-hero .photo-chip { top: 12px; bottom: auto; }

/* Service card banners */
.photo-service {
  aspect-ratio: 16 / 9;
  margin: -12px -12px 22px;
  border-radius: 14px;
}

.service-card-media:hover .photo img { transform: scale(1.04); }

/* About / facility */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.about-heading {
  margin: 0;
  text-align: left;
}

.about-points {
  display: grid;
  gap: 14px;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about-points strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.about-points small {
  display: block;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 19vw, 260px);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: auto;
  height: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.gallery-lead {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-wide { grid-column: 3 / 5; }

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(2, 20, 15, 0.72), rgba(2, 20, 15, 0));
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gallery-item:hover img { transform: scale(1.03); }

.photo-note {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 0.8125rem;
  text-align: right;
}

@media (max-width: 1040px) {
  .about-intro { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-rows: auto;
  }

  .gallery-item { aspect-ratio: 1 / 1; height: auto; }

  .gallery-lead,
  .gallery-wide {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card-media:hover .photo img,
  .gallery-item:hover img { transform: none; }
}


/* =========================
   HERO AMBIENT BACKGROUND
   Guided by the motion-design skill (LottieFiles), "Premium" archetype:
   - Ambient layer only: imperceptible at a glance, never competes with
     the headline (ambient energy well under 20% of primary motion).
   - Gradient-field drift on 26-41s cycles, sine-like ease-in-out
     (no linear easing on spatial movement); unsynchronised durations
     so the pattern never visibly repeats.
   - Transform + opacity only, 5 layers (< 20 animated elements).
   - Static by default; motion is opt-in under
     prefers-reduced-motion: no-preference, pausable, and paused while
     the hero is off screen.
   Brand palette: deep emerald #064e3b, emerald #10b981, ambient sage
   #f0fdf4, with a trace of the red accent. Fields stay low-alpha so
   hero text keeps WCAG AA contrast at every frame.
========================== */

.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
}

/* Emerald glow, top right */
.orb-1 {
  width: 64vmax;
  height: 64vmax;
  top: -30vmax;
  right: -20vmax;
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0));
}

/* Deep emerald depth, bottom left */
.orb-2 {
  width: 54vmax;
  height: 54vmax;
  bottom: -30vmax;
  left: -18vmax;
  background: radial-gradient(closest-side, rgba(6, 78, 59, 0.1), rgba(6, 78, 59, 0));
}

/* Ambient sage sheen behind the copy (lifts contrast, never lowers it) */
.orb-3 {
  width: 46vmax;
  height: 46vmax;
  top: 6vmax;
  left: -6vmax;
  background: radial-gradient(closest-side, rgba(240, 253, 244, 0.95), rgba(240, 253, 244, 0));
}

/* Mint highlight drifting through the middle */
.orb-4 {
  width: 34vmax;
  height: 34vmax;
  top: 18vmax;
  right: 22vmax;
  background: radial-gradient(closest-side, rgba(110, 231, 183, 0.16), rgba(110, 231, 183, 0));
}

/* Trace of the brand red, bottom right */
.orb-5 {
  width: 36vmax;
  height: 36vmax;
  bottom: -16vmax;
  right: 4vmax;
  background: radial-gradient(closest-side, rgba(239, 68, 68, 0.07), rgba(239, 68, 68, 0));
}

@media (prefers-color-scheme: dark) {
  .orb-1 { background: radial-gradient(closest-side, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0)); }
  .orb-2 { background: radial-gradient(closest-side, rgba(6, 78, 59, 0.55), rgba(6, 78, 59, 0)); }
  .orb-3 { background: radial-gradient(closest-side, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0)); }
  .orb-4 { background: radial-gradient(closest-side, rgba(110, 231, 183, 0.07), rgba(110, 231, 183, 0)); }
  .orb-5 { background: radial-gradient(closest-side, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0)); }
}

/* Pause control: only rendered when there is motion to pause */
.motion-toggle {
  display: none;
  position: absolute;
  right: var(--gutter);
  bottom: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.motion-toggle:hover { color: var(--brand-ink); border-color: var(--brand-600); }
.motion-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.motion-toggle .icon { width: 18px; height: 18px; }
.motion-toggle .icon-play { display: none; }
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }

@media (prefers-reduced-motion: no-preference) {

  .orb { will-change: transform; }

  .orb-1 { animation: orb-drift-1 26s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
  .orb-2 { animation: orb-drift-2 34s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
  .orb-3 { animation: orb-breathe 14s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
  .orb-4 { animation: orb-drift-4 29s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
  .orb-5 { animation: orb-drift-5 41s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }

  .hero.is-paused .orb,
  .hero.is-offscreen .orb { animation-play-state: paused; }

  .motion-toggle { display: inline-flex; }

  @keyframes orb-drift-1 {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-9vmax, 6vmax, 0) scale(1.08); }
  }

  @keyframes orb-drift-2 {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(10vmax, -5vmax, 0) scale(1.1); }
  }

  @keyframes orb-breathe {
    from { opacity: 0.75; transform: scale(0.97); }
    to   { opacity: 1;    transform: scale(1.03); }
  }

  @keyframes orb-drift-4 {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-8vmax, -6vmax, 0) scale(1.12); }
  }

  @keyframes orb-drift-5 {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-7vmax, -8vmax, 0) scale(0.92); }
  }
}

/* Two-photo About grid */
.gallery-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.gallery-duo .gallery-item {
  aspect-ratio: 3 / 2;
  height: auto;
}

@media (max-width: 760px) {
  .gallery-duo { grid-template-columns: minmax(0, 1fr); }
  .gallery-duo .gallery-item { aspect-ratio: 3 / 2; }
}


/* =========================
   SERVICE DETAIL MODAL
========================== */

html:has(.service-modal[open]) { overflow: hidden; }

.service-modal {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 80px -24px rgba(2, 20, 15, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.service-modal::backdrop {
  background: rgba(4, 22, 17, 0.38);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

@media (prefers-reduced-transparency: reduce) {
  .service-modal::backdrop {
    background: rgba(4, 22, 17, 0.7);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.modal-body {
  position: relative;
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.modal-close:hover { background: var(--border); color: var(--text); }
.modal-close:active { transform: scale(0.94); }
.modal-close:focus-visible { outline: none; box-shadow: var(--focus); }
.modal-close .icon { width: 20px; height: 20px; }

.modal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 52px;
}

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.modal-icon .icon { width: 28px; height: 28px; }

.modal-head h2 {
  margin-top: 4px;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.modal-lead {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.modal-subhead {
  margin-top: 22px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}

.modal-list {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-tint);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.modal-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--brand-ink);
  stroke-width: 2.25;
}

.modal-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.875rem;
}

.modal-note .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }

@media (prefers-color-scheme: dark) {
  .modal-note .icon { color: #fca5a5; }
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.modal-actions .btn { flex: 1 1 200px; }

/* "View details" on service cards (shown only when the popup can open) */
.card-link {
  display: none;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: 14px 0 -8px -12px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.js .card-link { display: inline-flex; }
.card-link .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.card-link:hover { background: var(--brand-soft); }
.card-link:hover .icon { transform: translateX(3px); }
.card-link:active { transform: scale(0.97); transition-duration: 80ms; }
.card-link:focus-visible { outline: none; box-shadow: var(--focus); }

/* Two-line checklist items in the popups */
.modal-list li strong {
  display: block;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.modal-list li small {
  display: block;
  margin-top: 1px;
  color: var(--text-2);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Phones: present as a bottom sheet */
@media (max-width: 560px) {
  .service-modal {
    width: 100%;
    max-height: calc(100dvh - 24px);
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
  }

  .modal-body {
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }

  .modal-close { top: 12px; right: 12px; }
  .modal-head { gap: 12px; }
  .modal-icon { width: 48px; height: 48px; border-radius: 14px; }
  .modal-actions .btn { flex-basis: 100%; }
}

/* Motion: fade + gentle scale (sheet slides up on phones) */
@media (prefers-reduced-motion: no-preference) {

  .service-modal[open] { animation: modal-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  .service-modal[open]::backdrop { animation: backdrop-in 260ms ease-out; }
  .service-modal.is-closing { animation: modal-out 200ms cubic-bezier(0.4, 0, 1, 1) forwards; }
  .service-modal.is-closing::backdrop { animation: backdrop-out 200ms ease-in forwards; }

  @keyframes modal-in {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to   { opacity: 1; transform: none; }
  }

  @keyframes modal-out {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateY(4px) scale(0.98); }
  }

  @keyframes backdrop-in  { from { opacity: 0; } to { opacity: 1; } }
  @keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }

  @media (max-width: 560px) {
    @keyframes modal-in {
      from { transform: translateY(100%); }
      to   { transform: none; }
    }

    @keyframes modal-out {
      from { transform: none; }
      to   { transform: translateY(100%); }
    }
  }
}


/* =========================
   REVEAL ON SCROLL (progressive)
========================== */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* =========================
   RESPONSIVE
========================== */

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--glass-edge);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility 0s linear var(--dur);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility 0s;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text);
  }

  .nav-menu .btn { min-height: 48px; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .lede { max-width: 46ch; }
  .appointment-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .support-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .full { grid-column: auto; }

  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 340px) {
  .brand-sub { display: none; }
}

@media (max-width: 420px) {
  .hero-card { padding: 22px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}


/* =========================
   REDUCED MOTION
========================== */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .btn:hover,
  .pill:hover,
  .service-card:hover,
  .contact-card:hover { transform: none; }

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