/* =====================================================
   Figure-Ground Well-being Center
   Public Design System (shared across all customer pages)
   ===================================================== */

:root {
  /* Brand */
  --primary: #0553b7;
  --primary-600: #044aa3;
  --primary-700: #043f8a;
  --primary-300: #1971e0;
  --primary-100: #e8f0fb;
  --primary-50:  #f3f7fd;

  /* Ink scale */
  --ink-900: #0a1f3d;
  --ink-800: #15294a;
  --ink-700: #2e4661;
  --ink-600: #4b6280;
  --ink-500: #5b738f;
  --ink-400: #93a4b8;
  --ink-300: #c2cdda;

  /* Surfaces */
  --bg: #ffffff;
  --bg-subtle: #f6f9fc;
  --bg-soft:   #fafcfe;

  /* Lines */
  --line:      #e5edf5;
  --line-soft: #eef3f9;

  /* Status */
  --success: #0a8f5a;
  --success-bg: #e7f6ee;
  --warning: #b97509;
  --warning-bg: #fff5e0;
  --danger:  #c2282d;
  --danger-bg:  #fdecec;

  /* Effects */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(10, 31, 61, 0.04);
  --shadow-sm: 0 2px 6px -1px rgba(10, 31, 61, 0.05), 0 1px 3px -1px rgba(10, 31, 61, 0.04);
  --shadow:    0 8px 20px -8px rgba(10, 31, 61, 0.10), 0 3px 8px -3px rgba(10, 31, 61, 0.05);
  --shadow-lg: 0 24px 48px -16px rgba(10, 31, 61, 0.18), 0 8px 16px -8px rgba(10, 31, 61, 0.08);
  --shadow-brand: 0 18px 40px -14px rgba(5, 83, 183, 0.45);

  --gradient:        linear-gradient(135deg, #0553b7 0%, #1971e0 100%);
  --gradient-soft:   linear-gradient(135deg, #e8f0fb 0%, #f3f7fd 100%);
  --gradient-deep:   linear-gradient(135deg, #043f8a 0%, #0553b7 60%, #1971e0 100%);

  --container: 1240px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   Reset & base
   ===================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-width: 320px;
}
img, svg, video, iframe { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; }
::selection { background: var(--primary-100); color: var(--primary-700); }

/* Accessible screen-reader-only text */
.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;
}

/* =====================================================
   iOS-style back pill (used on internal service pages
   where the full header has been removed)
   ===================================================== */
.back-nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  margin: 1rem;
  z-index: 1100;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 1.05rem 0.6rem 0.85rem;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  color: var(--ink-800);
  border: 1px solid rgba(10, 31, 61, 0.08);
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgba(10, 31, 61, 0.14);
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.back-nav:hover {
  transform: translateX(-2px);
  box-shadow: 0 6px 18px -4px rgba(10, 31, 61, 0.2);
  background: #ffffff;
}
.back-nav:active {
  transform: translateX(-2px) scale(0.97);
}
.back-nav .material-symbols-outlined {
  font-size: 20px;
  font-weight: 600;
  margin-left: -2px;
}
@media (max-width: 480px) {
  .back-nav { margin: 0.75rem; padding: 0.55rem 1rem 0.55rem 0.75rem; font-size: 0.88rem; }
}

/* =====================================================
   Display fonts
   ===================================================== */
.fnt-display { font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.02em; }
.fnt-serif   { font-family: 'Source Serif 4', Georgia, serif; }

/* =====================================================
   Container
   ===================================================== */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container-narrow { max-width: 880px; margin-inline: auto; padding-inline: 1.5rem; }
.container-wide   { max-width: 1360px; margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: 6rem; }
.section-sm { padding-block: 4rem; }

/* =====================================================
   Header / Nav — TRANSPARENT AT TOP, WHITE ON SCROLL
   
   Default: transparent background, no border
   When .is-scrolled: white background with fade-in transition
   Contents (logo, links, CTA) never change color — only the header background does.
   ===================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  /* Default: fully transparent */
  background-color: rgba(255, 255, 255, 0);
  border-bottom: 1px solid rgba(229, 237, 245, 0);
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

/* Pages without a hero get a solid white header from the start so the nav
   stays visible against the page content (no transparent-on-white problem). */
body:not([data-has-hero]) .site-header {
  background-color: #ffffff;
  border-bottom-color: #e5edf5;
  box-shadow: 0 1px 3px rgba(10, 31, 61, 0.04);
}

/* Left cluster: holds the iOS-style back arrow + brand logo together so
   flex `justify-content: space-between` treats them as one unit. */
.nav-left {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.nav-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-700);
  cursor: pointer;
  padding: 0;
  margin-right: 0.15rem;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-back:hover {
  background: var(--primary-50);
  color: var(--primary);
  transform: translateX(-2px);
}
.nav-back .material-symbols-outlined { font-size: 22px; }
/* On hero pages the header is transparent over dark content — give the icon
   white tint so it stays visible. */
body[data-has-hero] .site-header:not(.is-scrolled) .nav-back { color: #ffffff; }
body[data-has-hero] .site-header:not(.is-scrolled) .nav-back:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Kapag nag-scroll na pababa, magiging solid white background */
.site-header.is-scrolled {
  background-color: #ffffff;
  border-bottom-color: #e5edf5;
  box-shadow: 0 1px 3px rgba(10, 31, 61, 0.04);
}

/* Optional: Kapag may hero section at nasa top, mas maganda kung mas may contrast ang text sa transparent header */
body[data-has-hero] .site-header:not(.is-scrolled) .nav-links > a:not(.cta) {
  color: var(--ink-800);
}
body[data-has-hero] .site-header:not(.is-scrolled) .brand .brand-name {
  color: var(--ink-800);
}
body[data-has-hero] .site-header:not(.is-scrolled) .nav-toggle {
  color: var(--ink-800);
}

.nav {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 1.25rem;
  min-height: var(--nav-h);
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  gap: 0.75rem;
}

/* Reserve space for the fixed header */
body { padding-top: var(--nav-h); }
body[data-has-hero] { padding-top: 0; }

/* --- Brand --- */
.brand {
  display: inline-flex; 
  align-items: center; 
  gap: 0.65rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink-900);
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo {
  height: 40px;
  width: auto;
  max-width: 200px;
  display: block;
}
.brand .brand-name {
  color: inherit;
  transition: color 0.2s ease;
}

/* --- Nav links: static dark text, no hover/current color changes --- */
.nav-links {
  display: flex; 
  align-items: center; 
  gap: 0.15rem;
}
.nav-links > a {
  display: inline-flex; 
  align-items: center;
  color: var(--ink-700);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links > a.cta,
.nav-links > a.cta:hover,
.nav-links > a.cta.is-current {
  background: var(--primary);
  color: #ffffff;
  padding: 0.65rem 1.2rem;
  margin-left: 0.5rem;
  box-shadow: var(--shadow-brand);
}

/* --- Mobile menu toggle (always 44px+ touch target) --- */
.nav-toggle {
  display: none;
  background: transparent; 
  border: none;
  color: var(--ink-800);
  padding: 0.5rem;
  border-radius: 10px;
  min-width: 44px; 
  min-height: 44px;
  align-items: center; 
  justify-content: center;
}
.nav-toggle .material-symbols-outlined { font-size: 28px; display: block; }

/* --- Optional breadcrumb (used on some sub-pages) --- */
.nav-crumb {
  display: inline-flex; 
  align-items: center; 
  gap: 0.35rem;
  color: var(--ink-500); 
  font-weight: 500; 
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem; 
  border-radius: 8px;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn .material-symbols-outlined { font-size: 18px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--primary-700); transform: translateY(-2px); color: #fff; }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary-50); color: var(--primary-700); border-color: var(--primary-700); }
.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-subtle); border-color: var(--ink-400); color: var(--ink-900); }
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.btn-lg { padding: 1rem 1.85rem; font-size: 1rem; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }

/* =====================================================
   Section heads
   ===================================================== */
.section-head { max-width: 680px; margin: 0 auto 3.5rem; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}
.section-subtitle { color: var(--ink-500); font-size: 1.05rem; line-height: 1.6; }

/* =====================================================
   Hero (100vh)
   ===================================================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: #ffffff;
  color: var(--ink-900);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px circle at 18% 22%, rgba(10, 31, 61, 0.06), transparent 55%),
    radial-gradient(700px circle at 82% 85%, rgba(25, 113, 224, 0.10), transparent 55%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(10, 31, 61, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 31, 61, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, transparent 80%);
  opacity: 0.7;
}
.hero-content { max-width: 880px; margin: 0 auto; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 500;
  backdrop-filter: blur(8px);
  margin-bottom: 1.75rem;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 5px rgba(94, 234, 212, 0.22);
}
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #043f8a, #1971e0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-600);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex; gap: 0.85rem;
  justify-content: center; flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(10, 31, 61, 0.12);
  max-width: 720px;
  margin-inline: auto;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.hero-stat .label { font-size: 0.82rem; color: var(--ink-500); margin-top: 0.2rem; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column;
  align-items: center; gap: 0.4rem;
  color: var(--ink-500);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
.hero-scroll .material-symbols-outlined { font-size: 22px; }
.hero .btn-ghost-light {
  background: transparent;
  color: var(--ink-800);
  border-color: rgba(10, 31, 61, 0.18);
  backdrop-filter: none;
}
.hero .btn-ghost-light:hover {
  background: var(--bg-subtle, rgba(10, 31, 61, 0.04));
  color: var(--ink-900);
  border-color: rgba(10, 31, 61, 0.28);
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* Compact page hero (sub-pages) */
.page-hero {
  background: var(--gradient-deep);
  color: #fff;
  padding: calc(var(--nav-h) + 4rem) 1.5rem 4.5rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(600px circle at 20% 30%, rgba(255,255,255,0.15), transparent 55%),
    radial-gradient(500px circle at 80% 80%, rgba(25, 113, 224, 0.5), transparent 55%);
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 80%);
  opacity: 0.6;
}
.page-hero-content { max-width: 760px; margin: 0 auto; position: relative; }
.page-hero .badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  margin-bottom: 1.25rem;
}
.page-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}
.page-hero p { font-size: 1.05rem; opacity: 0.92; max-width: 580px; margin: 0 auto; }

/* =====================================================
   Cards
   ===================================================== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s var(--ease);
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

/* Service / feature card */
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  border: 1px solid var(--line);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.service-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }

.icon-square {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--primary-100);
  display: grid; place-items: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s var(--ease);
}
.service-card:hover .icon-square { transform: scale(1.06) rotate(-4deg); }
.icon-square .material-symbols-outlined {
  font-size: 28px;
  color: var(--primary);
}
.icon-square.solid {
  background: var(--gradient);
}
.icon-square.solid .material-symbols-outlined { color: #fff; }

.service-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--ink-500);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.service-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  transition: gap 0.2s;
}
.service-link:hover { gap: 0.55rem; }
.service-link .material-symbols-outlined { font-size: 18px; }

/* Grid utilities */
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Subtle section background */
.bg-subtle { background: var(--bg-subtle); }
.bg-soft   { background: var(--bg-soft); }
.bg-dark   { background: var(--ink-900); color: #fff; }

/* =====================================================
   Trust / feature strip
   ===================================================== */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.75rem;
}
.feature-item { display: flex; gap: 0.95rem; align-items: flex-start; }
.feature-item .icon {
  width: 42px; height: 42px;
  background: var(--primary-100);
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.feature-item .icon .material-symbols-outlined { font-size: 22px; color: var(--primary); }
.feature-item h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  color: var(--ink-900); margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}
.feature-item p { font-size: 0.85rem; color: var(--ink-500); line-height: 1.5; }

/* =====================================================
   Workshop / list card
   ===================================================== */
.list-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.list-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s;
}
.list-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.list-card.is-selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-50) 100%);
  box-shadow: 0 0 0 4px var(--primary-100);
}
.list-card.is-selected::before { opacity: 1; }
.list-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}
.list-card .meta {
  display: flex; flex-wrap: wrap; gap: 0.85rem 1.2rem;
  margin: 0.6rem 0;
  font-size: 0.85rem; color: var(--ink-600);
}
.list-card .meta-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.list-card .meta-item .material-symbols-outlined { font-size: 16px; color: var(--primary); }
.list-card .desc { font-size: 0.9rem; color: var(--ink-500); margin-bottom: 0.85rem; line-height: 1.55; }
.list-card .foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.list-card .price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.list-card .action {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--primary);
  font-weight: 600; font-size: 0.86rem;
}
.list-card .action .material-symbols-outlined { font-size: 16px; }

/* =====================================================
   Forms
   ===================================================== */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-head { margin-bottom: 1.75rem; }
.form-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.form-head p { color: var(--ink-500); font-size: 0.93rem; }

.form-section + .form-section {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}
.form-section-title {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.3px;
  color: var(--ink-500); margin-bottom: 1rem;
}

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 500;
  font-size: 0.87rem;
  color: var(--ink-700);
}
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.form-row > * { min-width: 0; }
.form-card, .info-panel { min-width: 0; max-width: 100%; }
.input-shell { min-width: 0; }

.input,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.94rem;
  background: #fff;
  color: var(--ink-900);
  transition: all 0.18s var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-400); }
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover { border-color: var(--ink-400); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-100);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b738f' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group textarea { min-height: 110px; resize: vertical; }

.input-shell { position: relative; }
.input-shell .input-icon {
  position: absolute; left: 0.95rem; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  font-size: 18px;
  pointer-events: none;
}
.input-shell input,
.input-shell select { padding-left: 2.6rem; }

/* Checkbox */
.checkbox-group {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 12px;
  margin: 1.25rem 0;
}
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkbox-group label {
  margin: 0; cursor: pointer;
  font-size: 0.9rem; font-weight: 500;
  color: var(--ink-800);
}
.checkbox-group .helper { font-size: 0.78rem; color: var(--ink-500); margin-top: 0.2rem; }

/* Radio option */
.option-card {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.55rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.option-card:hover { border-color: var(--primary-300); background: var(--primary-50); }
.option-card.is-selected {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px var(--primary-100);
}
.option-card input { accent-color: var(--primary); cursor: pointer; }
.option-card .name { flex: 1; font-weight: 500; font-size: 0.9rem; color: var(--ink-800); }
.option-card .price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--ink-900); font-size: 0.95rem;
}

.secure-note {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 0.83rem;
  color: var(--ink-500);
  margin-top: 1rem;
}
.secure-note .material-symbols-outlined { font-size: 16px; color: var(--success); }

/* =====================================================
   Sidebar / info panel
   ===================================================== */
.info-panel {
  background: var(--gradient-deep);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-brand);
}
.info-panel::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(420px circle at 18% 0%, rgba(255,255,255,0.18), transparent 55%),
    radial-gradient(380px circle at 100% 100%, rgba(0, 0, 0, 0.20), transparent 55%);
}
.info-panel .pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 500;
  margin-bottom: 1.25rem;
}
.info-panel h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.info-panel .desc { font-size: 0.92rem; opacity: 0.9; margin-bottom: 1.5rem; }
.info-panel .price-block {
  display: flex; align-items: baseline; gap: 0.4rem;
  padding-bottom: 1.5rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.info-panel .price-block .big {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.4rem; font-weight: 800;
  letter-spacing: -0.03em;
}
.info-panel .price-block .unit { font-size: 0.9rem; opacity: 0.85; }
.info-list { display: flex; flex-direction: column; gap: 1.15rem; }
.info-list .item { display: flex; gap: 0.85rem; align-items: flex-start; }
.info-list .item .icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.16);
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.info-list .item .icon .material-symbols-outlined { font-size: 18px; color: #fff; }
.info-list h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.2rem; }
.info-list p { font-size: 0.85rem; opacity: 0.88; line-height: 1.5; }
.info-foot {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; opacity: 0.9;
}
.info-foot .material-symbols-outlined { font-size: 18px; }

/* =====================================================
   Alerts
   ===================================================== */
.alert {
  display: flex; gap: 0.65rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border-left: 4px solid;
  font-size: 0.9rem;
  align-items: flex-start;
}
.alert .material-symbols-outlined { font-size: 20px; flex-shrink: 0; }
.alert-success { background: var(--success-bg); color: #0a6440; border-color: var(--success); }
.alert-success .material-symbols-outlined { color: var(--success); }
.alert-warning { background: var(--warning-bg); color: #7a4f06; border-color: var(--warning); }
.alert-warning .material-symbols-outlined { color: var(--warning); }
.alert-error   { background: var(--danger-bg);  color: #861d22; border-color: var(--danger); }
.alert-error .material-symbols-outlined { color: var(--danger); }

/* =====================================================
   Status badges
   ===================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.badge-success { background: var(--success-bg); color: #0a6440; }
.badge-success .dot { background: var(--success); }
.badge-warning { background: var(--warning-bg); color: #7a4f06; }
.badge-warning .dot { background: var(--warning); }
.badge-info    { background: var(--primary-50); color: var(--primary-700); }
.badge-info .dot { background: var(--primary); }
.badge-soft    { background: var(--bg-subtle); color: var(--ink-700); }

/* =====================================================
   Steps (checkout progress)
   ===================================================== */
.steps {
  max-width: 640px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.step { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-500); font-size: 0.85rem; font-weight: 500; }
.step .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 700;
  color: var(--ink-500);
}
.step.is-complete .num { background: var(--success); border-color: var(--success); color: #fff; }
.step.is-complete .num .material-symbols-outlined { font-size: 16px; }
.step.is-active { color: var(--primary); }
.step.is-active .num { background: var(--gradient); border: none; color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--line); margin: 0 0.75rem; border-radius: 2px; }
.step-line.is-complete { background: var(--success); }

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.7);
  padding: 4rem 1.5rem 1.75rem;
  margin-top: auto;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem;
}
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand-text .top { color: #fff; }
.footer-brand .brand-text .sub { color: rgba(255,255,255,0.55); }
.footer-brand p { font-size: 0.92rem; color: rgba(255,255,255,0.7); line-height: 1.65; max-width: 340px; }

/* Brand tagline shown directly under the footer's "Figure-Ground / Well-being
   Center" lockup. Italic accent line — same family but lighter weight so the
   slogan reads as a sub-line and not as part of the company name. */
.footer-tagline {
    display: block;
    margin-top: 0.35rem;
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 0.005em;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.4;
}

/* Social media icon row — rendered by fgRenderFooterSocials() in config.php.
   Sits under the brand description in the footer. Each icon is a circular
   chip; hovering lifts the chip and switches to the brand color (primary). */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
}
.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    transition: transform 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.footer-social:hover {
    transform: translateY(-2px);
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}
.footer-social svg {
    width: 18px;
    height: 18px;
    display: block;
}
.footer-col h4 {
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.footer-col a:hover { color: #fff; }
.footer-col p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.55rem;
  display: flex; gap: 0.4rem; align-items: flex-start;
}
.footer-col p .material-symbols-outlined {
  font-size: 18px; color: var(--primary-300); margin-top: 1px;
}
.footer-bottom {
  max-width: var(--container);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  flex-wrap: wrap; gap: 0.5rem;
}

/* =====================================================
   Animations / reveal
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.reveal { animation: fadeUp 0.7s var(--ease) both; }
.reveal.d1 { animation-delay: 0.1s; }
.reveal.d2 { animation-delay: 0.2s; }
.reveal.d3 { animation-delay: 0.3s; }
.reveal.d4 { animation-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =====================================================
   Responsive
   Mobile-first polish — covers 320px → 1024px
   Breakpoints: 1024 / 880 / 768 / 640 / 480 / 360
   ===================================================== */

/* --- Tablets & small laptops (≤1024px) --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding-block: 5rem; }
}

/* --- Tablets portrait (≤880px) — mobile menu kicks in --- */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1.25rem 1.5rem;
    gap: 0.15rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links > a {
    padding: 0.95rem 1rem;
    border-radius: 10px;
    color: var(--ink-700);
    min-height: 48px;
    width: 100%;
    text-align: left;
    font-size: 0.98rem;
  }
  .nav-links > a.cta {
    margin-left: 0;
    margin-top: 0.5rem;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
  }
  /* Header text always dark on mobile (menu panel is white) */
  body[data-has-hero] .site-header:not(.is-scrolled) .nav-links > a:not(.cta) { color: var(--ink-700); }
  .site-header.has-open-menu { background: #fff; border-bottom-color: var(--line); }

  .section { padding-block: 4rem; }
  .section-head { margin-bottom: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.75rem 1.5rem; }
  .info-panel { padding: 1.75rem 1.5rem; }

  /* Larger tap targets on mobile */
  .btn { min-height: 48px; padding-block: 0.9rem; }
  .btn-sm { min-height: 40px; padding-block: 0.55rem; }
  .nav-back { width: 40px; height: 40px; }
}

/* --- Small tablets / large phones landscape (≤768px) --- */
@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .container, .container-narrow, .container-wide { padding-inline: 1.25rem; }
  .nav { padding: 0 1rem; }
  .brand-logo { height: 36px; }
  .section { padding-block: 3.5rem; }
  .section-head { margin-bottom: 2rem; }
  .page-hero { padding: calc(var(--nav-h) + 2.5rem) 1.25rem 3rem; }
  .page-hero p { font-size: 0.98rem; }
  .hero { padding: calc(var(--nav-h) + 1.5rem) 1.25rem 3rem; min-height: auto; }
  .hero-actions { gap: 0.65rem; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 0; }
  .hero-stats { margin-top: 3rem; gap: 1.5rem; }

  /* Cards a bit tighter */
  .card { padding: 1.5rem; }
  .service-card { padding: 1.85rem 1.5rem; }
  .list-card { padding: 1.35rem; }

  /* Steps progress: compact labels */
  .steps { padding: 0 0.25rem; gap: 0.35rem; }
  .step { font-size: 0.78rem; }
  .step-line { margin: 0 0.4rem; }
}

/* --- Phones (≤640px) --- */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.35rem; }
  .container, .container-narrow, .container-wide { padding-inline: 1rem; }
  .nav { padding: 0 0.85rem; gap: 0.5rem; }
  .brand-logo { height: 34px; max-width: 160px; }
  .brand .brand-name { font-size: 0.9rem !important; }

  .form-card { padding: 1.5rem 1.15rem; }
  .info-panel { padding: 1.6rem 1.25rem; }

  /* Hero: tighter spacing, smaller stats */
  .hero { padding-top: calc(var(--nav-h) + 1rem); padding-bottom: 2.5rem; }
  .hero p.lead { margin-bottom: 1.75rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem 1.5rem;
    padding-top: 1.5rem;
    margin-top: 2.25rem;
  }
  .hero-scroll { display: none; }

  /* Page-hero (sub-pages) */
  .page-hero { padding: calc(var(--nav-h) + 2rem) 1rem 2.5rem; }
  .page-hero h1 { font-size: clamp(1.7rem, 7vw, 2.25rem); }
  .page-hero p { font-size: 0.95rem; }

  /* Section titles */
  .section-title { font-size: clamp(1.65rem, 6vw, 2.25rem); }
  .section-subtitle { font-size: 0.98rem; }

  /* Cards */
  .service-card { padding: 1.65rem 1.35rem; }
  .icon-square { width: 48px; height: 48px; margin-bottom: 1.15rem; }
  .icon-square .material-symbols-outlined { font-size: 24px; }
  .service-card h3 { font-size: 1.12rem; }
  .list-card { padding: 1.15rem; }
  .list-card .foot { flex-direction: column; align-items: stretch; gap: 0.85rem; }
  .list-card .foot .action { justify-content: flex-end; }

  /* Forms */
  .form-section + .form-section { padding-top: 1.25rem; }
  .form-group input,
  .form-group select,
  .form-group textarea,
  .input { font-size: 16px; padding: 0.85rem 0.95rem; } /* 16px prevents iOS zoom */
  .input-shell input,
  .input-shell select { padding-left: 2.5rem; }
  .form-head h2 { font-size: 1.25rem; }
  .option-card { padding: 0.85rem 0.95rem; }
  .checkbox-group { padding: 0.9rem 1rem; }

  /* Buttons */
  .btn { font-size: 0.92rem; padding: 0.85rem 1.25rem; }
  .btn-lg { padding: 0.95rem 1.5rem; font-size: 0.98rem; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }

  /* Steps */
  .steps { max-width: 100%; }
  .step .label { display: none; } /* keep only the numbered dots */
  .step .num { width: 26px; height: 26px; font-size: 0.72rem; }

  /* Feature strip */
  .feature-strip { gap: 1.25rem; }

  /* Back-nav doesn't overlap a fixed white header */
  .back-nav { margin: 0.65rem; }
}

/* --- Small phones (≤480px) --- */
@media (max-width: 480px) {
  :root { --nav-h: 64px; }
  .container, .container-narrow, .container-wide { padding-inline: 0.95rem; }
  .nav { padding: 0 0.75rem; }
  .brand-logo { height: 32px; max-width: 140px; }
  .brand .brand-name { display: none; } /* logo-only branding on tiny screens */

  .section { padding-block: 3rem; }
  .section-head { margin-bottom: 1.75rem; }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); letter-spacing: -0.02em; }
  .section-subtitle { font-size: 0.93rem; }

  .hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .hero p.lead { font-size: 1rem; }
  .hero-stats { gap: 0.85rem 1rem; padding-top: 1.25rem; margin-top: 2rem; }
  .hero-stat .num { font-size: clamp(1.4rem, 6vw, 1.75rem); }
  .hero-stat .label { font-size: 0.75rem; }

  .form-card { padding: 1.35rem 1rem; border-radius: var(--radius); }
  .info-panel { padding: 1.4rem 1.1rem; border-radius: var(--radius); }
  .info-panel h2 { font-size: 1.25rem; }
  .info-panel .price-block .big { font-size: 2rem; }
  .info-list .item .icon { width: 34px; height: 34px; }

  .card, .service-card { padding: 1.4rem 1.15rem; border-radius: var(--radius); }
  .list-card { padding: 1rem; border-radius: var(--radius); }

  /* Footer compact */
  .site-footer { padding: 3rem 1rem 1.5rem; }
  .footer-bottom { margin-top: 2rem; font-size: 0.78rem; }
  .footer-col h4 { font-size: 0.9rem; margin-bottom: 0.85rem; }
  .footer-col a, .footer-col p { font-size: 0.85rem; }

  /* Alerts */
  .alert { padding: 0.85rem 0.95rem; font-size: 0.86rem; }

  /* Step dots stay visible */
  .steps { padding: 0; }
  .step-line { margin: 0 0.3rem; }
}

/* --- Very small phones (≤360px, iPhone SE 1st gen / Galaxy Fold outer) --- */
@media (max-width: 360px) {
  .container, .container-narrow, .container-wide { padding-inline: 0.75rem; }
  .nav { padding: 0 0.6rem; gap: 0.35rem; }
  .brand-logo { height: 30px; max-width: 120px; }

  .section { padding-block: 2.5rem; }
  .hero h1 { font-size: 1.85rem; line-height: 1.1; }
  .hero p.lead { font-size: 0.95rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  .page-hero { padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 2rem; }
  .page-hero h1 { font-size: 1.55rem; }

  .form-card, .info-panel { padding: 1.15rem 0.85rem; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 0.8rem 0.8rem; }
  .form-group select { padding-right: 2.2rem; }
  .input-shell input,
  .input-shell select { padding-left: 2.3rem; }
  .checkbox-group { padding: 0.8rem 0.85rem; gap: 0.55rem; }

  .btn { padding: 0.8rem 1rem; font-size: 0.88rem; }
  .btn .material-symbols-outlined { font-size: 16px; }

  .service-card h3 { font-size: 1.05rem; }
  .icon-square { width: 44px; height: 44px; margin-bottom: 1rem; }
}

/* --- Landscape phones: less vertical padding --- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 1rem) 2rem; }
  .hero-scroll { display: none; }
  .page-hero { padding-block: calc(var(--nav-h) + 1.5rem) 2.5rem; }
}

/* =====================================================
   Custom select dropdown (matches admin theme)
   Replaces browser-default <select> options panel.
   Original <select> stays in DOM (form POST + required validation still work).
   Paired with the enhancer at the bottom of /assets/js/site.js.
   ===================================================== */
.fg-select {
  position: relative;
  display: inline-block;
  vertical-align: top;
}
.fg-select select {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  background-image: none !important;
  padding-right: 0.85rem !important;
}
.fg-select__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.7rem 0.7rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.fg-select__trigger:hover { border-color: var(--ink-400); }
.fg-select__trigger:focus,
.fg-select.is-open .fg-select__trigger {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-100);
}
.fg-select.is-disabled .fg-select__trigger {
  background: var(--bg-subtle);
  color: var(--ink-400);
  cursor: not-allowed;
}
.fg-select__label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fg-select__label.is-placeholder { color: var(--ink-400); }
.fg-select__caret {
  color: var(--ink-500);
  font-size: 20px !important;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.fg-select.is-open .fg-select__caret {
  transform: rotate(180deg);
  color: var(--primary);
}

.fg-select__panel {
  position: fixed;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px -8px rgba(10, 31, 61, 0.18);
  padding: 0.35rem;
  z-index: 9999;
  display: none;
  animation: fgSelectIn 0.14s ease-out;
}
.fg-select__panel.is-open { display: block; }
@keyframes fgSelectIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fg-select__option {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink-700);
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.fg-select__option.is-focused { background: var(--primary-50); color: var(--ink-900); }
.fg-select__option.is-selected { background: var(--primary-100); color: var(--primary); font-weight: 600; }
.fg-select__option.is-selected.is-focused { background: var(--primary); color: #fff; }
.fg-select__option.is-disabled { color: var(--ink-400); cursor: not-allowed; opacity: 0.6; }

/* Public form contexts — make wrapper full-width to match other inputs. */
.form-group .fg-select { display: block; width: 100%; }

/* When the select sits inside an .input-shell (icon-prefixed input), pad the
   trigger so the leading icon stays visible above the trigger background. */
.input-shell .fg-select { display: block; width: 100%; }
.input-shell .fg-select .fg-select__trigger { padding-left: 2.6rem; }
.input-shell .input-icon { z-index: 2; }