/* ==========================================================================
   Kindest Medical Services Ltd
   Palette and typography carried over from the original site,
   with softer, more rounded geometry throughout.
   ========================================================================== */

:root {
  --teal-dark:  #1a5f5a;
  --teal-mid:   #2a7a74;
  --teal-light: #3d9990;
  --teal-pale:  #b0dbd8;
  --cream:      #f5f0ea;
  --white:      #ffffff;
  --charcoal:   #1c2b2a;
  --text-body:  #2e4441;
  --muted:      #6f8582;
  --line:       #e4ded6;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rounded geometry */
  --r-xs:  0.75rem;
  --r-sm:  1.1rem;
  --r-md:  1.6rem;
  --r-lg:  2.2rem;
  --r-xl:  3rem;
  --r-pill: 999px;

  --shadow-sm: 0 8px 30px rgba(26,95,90,.10);
  --shadow-md: 0 20px 60px rgba(26,95,90,.15);
  --shadow-lg: 0 30px 80px rgba(26,95,90,.22);

  --wrap: 1100px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  background: var(--cream);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--charcoal); }
h4, h5 { font-family: var(--sans); font-weight: 600; color: var(--charcoal); }

h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.95rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.02rem; letter-spacing: -.005em; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; color: var(--teal-mid); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 3rem; }

/* ----- Navigation -------------------------------------------------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 3rem;
  background: rgba(26,95,90,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.nav-logo:hover { text-decoration: none; }
.nav-logo svg { height: 42px; width: auto; flex: none; }
.nav-logo__text { line-height: 1.05; }
/* Wordmark proportions follow the supplied logo: heavy KINDEST with a
   letterspaced sub-line tracked out to roughly the same width. */
.nav-logo__name {
  display: block; color: var(--white); font-weight: 700;
  font-size: 1.2rem; letter-spacing: .045em;
}
.nav-logo__sub {
  display: block; color: rgba(255,255,255,.7);
  font-size: .46rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase;
}

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--white); text-decoration: none; }

.nav-cta {
  background: var(--white); color: var(--teal-dark) !important;
  padding: .55rem 1.4rem; border-radius: var(--r-pill);
  font-weight: 600; transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.22); }

.nav-toggle {
  display: none; background: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-pill);
  padding: .5rem .7rem; color: var(--white);
}

/* ----- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-block; font-family: var(--sans);
  font-size: .88rem; font-weight: 600; letter-spacing: .01em;
  padding: .85rem 2rem; border: 1px solid transparent;
  border-radius: var(--r-pill); cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--white); color: var(--teal-dark); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(0,0,0,.22); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }

.btn-teal { background: var(--teal-dark); color: var(--white); }
.btn-teal:hover { background: var(--teal-mid); box-shadow: var(--shadow-md); }

.btn-teal-outline { background: transparent; color: var(--teal-dark); border-color: var(--teal-pale); }
.btn-teal-outline:hover { background: var(--teal-dark); color: var(--white); border-color: var(--teal-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.btn-row.is-center { justify-content: center; }

/* ==========================================================================
   Liquid glass interactions

   Five layers combine on press:
     1. refraction  — the surface behind is blurred and over-saturated
     2. droplet     — a ripple from the pointer, edges warped by SVG turbulence
     3. specular    — a highlight that tracks where you pressed
     4. sheen       — a light sweep across the whole surface
     5. blob        — the shape squishes into asymmetric corners, then springs
   ========================================================================== */

/* Doubled class keeps these above the per-component :hover rules
   defined further down the stylesheet. */
.glass.glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .55s cubic-bezier(.22, 1.4, .38, 1),
    box-shadow .35s ease,
    background .25s ease,
    color .25s ease,
    border-color .25s ease,
    border-radius .55s cubic-bezier(.22, 1.4, .38, 1);
}

/* Press: compress, and let the corners go asymmetric so the shape
   reads as a liquid body rather than a rectangle. */
.glass.glass:active {
  transform: scale(.945);
  transition-duration: .1s;
}

.btn.glass.glass:active,
.nav-cta.glass.glass:active {
  border-radius: 46% 54% 50% 50% / 58% 42% 58% 42%;
}

.card.glass.glass:active,
.tile.glass.glass:active,
.step.glass.glass:active,
.feature-item.glass.glass:active,
.req-card.glass.glass:active {
  border-radius: 2.6rem 2rem 2.8rem 2.2rem / 2.2rem 2.8rem 2rem 2.6rem;
}

/* --- 1 + 2. Refracting droplet ------------------------------------------ */

.glass .ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%) scale(0);
  opacity: .9;

  /* the glass itself: bends and brightens whatever sits behind it */
  backdrop-filter: blur(7px) saturate(190%) brightness(1.07);
  -webkit-backdrop-filter: blur(7px) saturate(190%) brightness(1.07);

  /* a bright leading edge fading to a soft core, like a spreading bead */
  background:
    radial-gradient(circle closest-side,
      transparent 0%,
      transparent 52%,
      var(--ripple-core, rgba(255,255,255,.62)) 76%,
      var(--ripple-mid,  rgba(255,255,255,.26)) 88%,
      transparent 100%),
    radial-gradient(circle closest-side,
      var(--ripple-mid, rgba(255,255,255,.20)) 0%,
      transparent 70%);

  /* turbulence warps the circle into an irregular, fluid outline */
  filter: url(#lg-liquid);

  animation: ripple-spread .78s cubic-bezier(.18, .72, .3, 1) forwards;
}

@keyframes ripple-spread {
  0%   { transform: translate(-50%, -50%) scale(0);   opacity: 0; }
  12%  { opacity: 1; }
  70%  { opacity: .7; }
  100% { transform: translate(-50%, -50%) scale(1);   opacity: 0; }
}

/* --- 3. Specular highlight at the press point ---------------------------- */

.glass .specular {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  width: 190px; height: 190px;
  transform: translate(-50%, -50%) scale(.3);
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
    var(--spec-color, rgba(255,255,255,.75)) 0%,
    transparent 70%);
  mix-blend-mode: soft-light;
  animation: specular-bloom .68s cubic-bezier(.2, .8, .3, 1) forwards;
}

@keyframes specular-bloom {
  0%   { transform: translate(-50%, -50%) scale(.25); opacity: 0; }
  22%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* --- 4. Light sweep across the surface ----------------------------------- */

.glass .sheen {
  position: absolute; inset: -30%;
  pointer-events: none; z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 34%,
    var(--sheen-color, rgba(255,255,255,.42)) 47%,
    var(--sheen-hot,   rgba(255,255,255,.62)) 50%,
    var(--sheen-color, rgba(255,255,255,.42)) 53%,
    transparent 66%);
  transform: translateX(-130%) rotate(2deg);
  animation: sheen-sweep .85s cubic-bezier(.32, .68, .28, 1) forwards;
}

@keyframes sheen-sweep {
  0%   { transform: translateX(-130%) rotate(2deg); opacity: 0; }
  16%  { opacity: 1; }
  100% { transform: translateX(130%)  rotate(2deg); opacity: 0; }
}

/* --- 5. Rim light — the glass edge catching light on press --------------- */

.glass .rim {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 var(--rim-top, rgba(255,255,255,.65)),
    inset 0 -1px 0 var(--rim-bottom, rgba(255,255,255,.22));
  animation: rim-flash .62s ease-out forwards;
}

@keyframes rim-flash {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Keep real content above every effect layer */
.glass > *:not(.ripple):not(.sheen):not(.specular):not(.rim) {
  position: relative;
  z-index: 2;
}

/* --- Tinting per surface ------------------------------------------------- */

/* Light surfaces take a teal droplet */
.btn-primary,
.nav-cta,
.btn-teal-outline,
.card,
.tile,
.step,
.feature-item {
  --ripple-core: rgba(26,95,90,.34);
  --ripple-mid:  rgba(26,95,90,.15);
  --sheen-color: rgba(26,95,90,.10);
  --sheen-hot:   rgba(26,95,90,.18);
  --spec-color:  rgba(255,255,255,.9);
  --rim-top:     rgba(255,255,255,.85);
  --rim-bottom:  rgba(26,95,90,.16);
}

/* Dark surfaces take a white droplet */
.btn-teal,
.btn-outline,
.cookie-accept,
.cookie-decline {
  --ripple-core: rgba(255,255,255,.66);
  --ripple-mid:  rgba(255,255,255,.26);
  --sheen-color: rgba(255,255,255,.38);
  --sheen-hot:   rgba(255,255,255,.58);
  --spec-color:  rgba(255,255,255,.85);
  --rim-top:     rgba(255,255,255,.6);
  --rim-bottom:  rgba(255,255,255,.14);
}

.req-card {
  --ripple-core: rgba(255,255,255,.46);
  --ripple-mid:  rgba(255,255,255,.18);
  --sheen-color: rgba(255,255,255,.26);
  --sheen-hot:   rgba(255,255,255,.4);
  --spec-color:  rgba(255,255,255,.7);
  --rim-top:     rgba(255,255,255,.45);
  --rim-bottom:  rgba(255,255,255,.1);
}

/* The SVG filter host, injected once by script.js */
#lg-filter-host {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
}

/* --- Focus ring, kept glassy -------------------------------------------- */

.glass:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61,153,144,.4), 0 8px 24px rgba(26,95,90,.18);
}

/* Browsers without backdrop-filter still get a readable droplet */
@supports not (backdrop-filter: blur(1px)) {
  .glass .ripple { background-color: var(--ripple-mid, rgba(255,255,255,.2)); }
}

@media (prefers-reduced-motion: reduce) {
  .glass.glass, .glass.glass:active { transform: none; transition: none; }
  .glass .ripple, .glass .sheen, .glass .specular, .glass .rim { display: none; }
}

/* ----- Sections ---------------------------------------------------------- */

.section { padding: 6rem 0; }
.section-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 3rem; }

/* White rounded panel floating on the cream page */
.panel {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 5rem 0;
  margin: 0 1.5rem;
  box-shadow: var(--shadow-sm);
}
.panel > .section-inner { max-width: calc(var(--wrap) + 0px); }

.section-teal {
  background: linear-gradient(160deg, var(--teal-dark) 0%, var(--teal-mid) 100%);
  color: rgba(255,255,255,.82);
  border-radius: var(--r-xl);
  margin: 0 1.5rem;
  padding: 5rem 0;
}
.section-teal h2, .section-teal h3, .section-teal h4 { color: var(--white); }
.section-teal em { color: var(--teal-pale); }

.section-label {
  font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: .9rem;
}
.section-teal .section-label { color: var(--teal-pale); }

.section-heading { margin-bottom: 1.2rem; }

.divider { width: 46px; height: 2px; background: var(--teal-light); border-radius: 2px; margin-bottom: 2rem; }
.section-teal .divider { background: var(--teal-pale); }

.lede { font-size: 1.05rem; }
.section-teal .lede { color: rgba(255,255,255,.8); }

.measure { max-width: 700px; }
.is-center { text-align: center; }
.is-center.measure { margin-left: auto; margin-right: auto; }
.is-center .divider { margin-left: auto; margin-right: auto; }

/* ----- Hero -------------------------------------------------------------- */

.hero {
  background:
    linear-gradient(150deg, var(--teal-dark) 0%, #226b65 55%, var(--teal-mid) 100%);
  color: rgba(255,255,255,.82);
  padding: 9rem 0 5rem;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  position: relative;
  overflow: hidden;
}
/* faint grid, as on the original */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 88px 88px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-pill);
  padding: .4rem 1.15rem;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.88); margin-bottom: 1.8rem;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-pale); }

.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--teal-pale); display: block; }
.hero-sub { color: rgba(255,255,255,.78); font-size: 1.02rem; max-width: 52ch; }

/* Horizontal logo lockup — mark left, wordmark right, as supplied */
.logo-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 3.5rem 2rem;
  color: var(--white);
}
.logo-lockup__mark { height: 108px; width: auto; flex: none; }
.logo-lockup__text { text-align: left; }
.logo-lockup__name {
  font-size: 3.1rem;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: .95;
}
.logo-lockup__sub {
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .215em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-top: .35rem;
}

@media (max-width: 600px) {
  .logo-lockup { gap: 1rem; padding: 2.5rem 1rem; }
  .logo-lockup__mark { height: 74px; }
  .logo-lockup__name { font-size: 2.1rem; }
  .logo-lockup__sub { font-size: .62rem; letter-spacing: .2em; }
}

.hero-img-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}

.hero-stat-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 1.5rem;
}
.hero-stat { padding: 1.1rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.hero-stat:last-child { border-right: 0; }
.hero-stat__num { font-family: var(--serif); font-size: 1.5rem; color: var(--white); line-height: 1.1; }
.hero-stat__label { font-size: .7rem; color: rgba(255,255,255,.62); letter-spacing: .04em; margin-top: .15rem; }

/* Dark variant used in the footer */
.hero-stat-bar.is-dark { background: rgba(255,255,255,.04); margin-top: 2rem; }

/* ----- Split grid -------------------------------------------------------- */

.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-split.is-wide-left  { grid-template-columns: 1.15fr .85fr; }
.grid-split.is-wide-right { grid-template-columns: .85fr 1.15fr; }
.grid-split.is-top { align-items: start; }

.img-wrap { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.img-wrap img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  background: #e3ece8;      /* holds the frame while the photo loads */
}
.img-tall img { aspect-ratio: 4 / 5; }
.img-wide img { aspect-ratio: 16 / 10; }
.img-square img { aspect-ratio: 1 / 1; }

/* Placeholder shown until real photography is added */
.ph {
  display: grid; place-items: center; min-height: 340px; padding: 2rem;
  background: linear-gradient(140deg, #dfe9e6 0%, #eef2ef 50%, #e3ece8 100%);
  color: var(--muted); text-align: center;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.ph.is-dark {
  background: linear-gradient(140deg, #1f6a64 0%, #2a7a74 50%, #35897f 100%);
  color: rgba(255,255,255,.6);
}
.ph.is-short { min-height: 250px; }

.img-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 2rem 1.6rem;
  background: linear-gradient(to top, rgba(26,95,90,.92), transparent);
  color: var(--white);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.5;
}

/* ----- Checklist --------------------------------------------------------- */

.checklist-label { font-weight: 600; color: var(--charcoal); margin: 1.6rem 0 .9rem; }
.checklist { list-style: none; display: grid; gap: .7rem; }
.check-item { display: flex; gap: .8rem; align-items: flex-start; line-height: 1.55; }
.check-icon { flex: none; margin-top: .28rem; color: var(--teal-light); }
.section-teal .check-icon { color: var(--teal-pale); }

/* ----- Steps ------------------------------------------------------------- */

.steps { display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 1.2rem; align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem 1.75rem;
  transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.step-icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--white); color: var(--teal-mid);
  display: grid; place-items: center; border: 1px solid var(--line);
}
.step-body h4 { margin-bottom: .2rem; }
.step-body p { font-size: .92rem; margin: 0; color: var(--muted); }
.step-num-badge {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--teal-pale);
}

/* ----- Requirement cards (teal sections) --------------------------------- */

.req-card {
  display: grid; grid-template-columns: 40px 1fr; gap: 1.1rem; align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md);
  padding: 1.1rem 1.4rem;
  margin-bottom: .8rem;
}
.req-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); display: grid; place-items: center;
  font-size: .8rem; font-weight: 600;
}
.req-content strong { display: block; color: var(--white); font-weight: 600; font-size: .96rem; }
.req-content span { font-size: .84rem; color: rgba(255,255,255,.6); }

.referral-cta {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md);
  padding: 2rem 2.5rem;
  margin-top: 1.6rem;
}
.referral-cta p { font-size: .95rem; }

/* ----- Feature rows (services list) -------------------------------------- */

.features { display: grid; gap: .8rem; }
.feature-item {
  display: flex; gap: 1rem; align-items: center;
  background: var(--cream);
  border-left: 3px solid var(--teal-light);
  border-radius: var(--r-sm);
  padding: 1.1rem 1.4rem;
  font-weight: 500; color: var(--charcoal);
  transition: transform .2s, background .2s;
}
.feature-item:hover { transform: translateX(4px); background: #eef4f2; }
.feature-item svg { flex: none; color: var(--teal-mid); }

/* ----- Cards ------------------------------------------------------------- */

.card-grid { display: grid; gap: 1.5rem; }
.card-grid.is-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.is-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  background: #edf4f2; color: var(--teal-mid);
  display: grid; place-items: center; margin-bottom: 1.2rem;
}
.card h4 { margin-bottom: .5rem; }
.card p { font-size: .94rem; color: var(--muted); }

.card.on-cream { background: var(--cream); }

/* ----- Notice / callout -------------------------------------------------- */

.notice {
  background: #fdf6e8;
  border: 1px solid #eddfbb;
  border-radius: var(--r-sm);
  padding: 1.2rem 1.5rem;
  font-size: .9rem;
  color: #6a5423;
}
.notice-alert { background: #fdf0ec; border-color: #f0d2c7; color: #7a3a26; }

/* ----- Forms ------------------------------------------------------------- */

.form { display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--charcoal); }
.field .req { color: #b3401f; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .98rem; color: var(--text-body);
  padding: .85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(61,153,144,.16);
}
.field textarea { min-height: 150px; resize: vertical; border-radius: var(--r-xs); }
.field-hint { font-size: .8rem; color: var(--muted); }

.consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .87rem; }
.consent input { width: 17px; height: 17px; flex: none; margin-top: .28rem; accent-color: var(--teal-mid); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

/* ----- Contact tiles ----------------------------------------------------- */

.tiles { display: grid; gap: 1rem; }
.tile {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.5rem 1.75rem;
}
.tile h4 { margin-bottom: .3rem; }
.tile p { font-size: .92rem; color: var(--muted); }
.tile a { font-weight: 600; word-break: break-word; }
.tile.is-alert { border-left: 3px solid #c2603f; }

/* ----- Page head (interior pages) ---------------------------------------- */

.page-head {
  background: linear-gradient(150deg, var(--teal-dark) 0%, #226b65 60%, var(--teal-mid) 100%);
  color: rgba(255,255,255,.8);
  padding: 9rem 0 4.5rem;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 88px 88px;
}
.page-head .section-inner { position: relative; z-index: 1; }
.page-head h1 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 1rem; }
.page-head h1 em { color: var(--teal-pale); }
.page-head p { color: rgba(255,255,255,.76); font-size: 1.02rem; max-width: 60ch; }
.crumb { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.crumb a { color: rgba(255,255,255,.7); }

/* ----- CTA banner -------------------------------------------------------- */

.cta-banner {
  background: linear-gradient(150deg, var(--teal-dark) 0%, var(--teal-mid) 100%);
  border-radius: var(--r-xl);
  margin: 0 1.5rem;
  padding: 5rem 0;
  text-align: center;
  color: rgba(255,255,255,.82);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { max-width: 62ch; margin: 0 auto 0; color: rgba(255,255,255,.8); }

/* ----- Footer ------------------------------------------------------------ */

.footer { background: var(--charcoal); color: rgba(255,255,255,.6); padding: 4rem 0 2rem; margin-top: 1.5rem; }
.footer-inner { text-align: center; }
.footer-logo { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-logo svg { height: 44px; }
.footer-logo__name { color: var(--white); font-weight: 700; font-size: 1.2rem; letter-spacing: .045em; }
.footer-logo__sub { color: rgba(255,255,255,.55); font-size: .46rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: rgba(255,255,255,.72); }

.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 1.6rem;
  margin: 2rem 0 0; list-style: none;
}
.footer-links a { color: rgba(255,255,255,.62); font-size: .85rem; }
.footer-links a:hover { color: var(--teal-pale); }

.footer-divider { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 2rem 0 1.5rem; }
.footer-legal { font-size: .8rem; color: rgba(255,255,255,.42); line-height: 1.9; }

/* ----- Legal text -------------------------------------------------------- */

.legal { max-width: 780px; }
.legal h3 { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal h3:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h4 { margin: 1.8rem 0 .5rem; }
.legal p, .legal li { font-size: .94rem; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .5rem; }

/* ----- Cookie banner ----------------------------------------------------- */

.cookie-banner {
  position: fixed; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; z-index: 200;
  max-width: 640px; margin: 0 auto;
  background: var(--charcoal); color: rgba(255,255,255,.78);
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: 1.4rem 1.75rem;
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
}
.cookie-text { flex: 1 1 280px; font-size: .85rem; margin: 0; }
.cookie-text a { color: var(--teal-pale); }
.cookie-btns { display: flex; gap: .6rem; }
.cookie-btns .btn { padding: .6rem 1.4rem; font-size: .82rem; }
.cookie-accept { background: var(--teal-light); color: var(--white); }
.cookie-accept:hover { background: var(--teal-pale); color: var(--teal-dark); }
.cookie-decline { background: transparent; color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.28); }
.cookie-decline:hover { background: rgba(255,255,255,.1); }
.cookie-banner[hidden] { display: none; }

/* ----- Utilities --------------------------------------------------------- */

.skip { position: absolute; left: -9999px; z-index: 300; background: var(--charcoal); color: #fff; padding: .8rem 1.4rem; border-radius: var(--r-xs); }
.skip:focus { left: 1rem; top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- Responsive -------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero-inner, .grid-split, .grid-split.is-wide-left, .grid-split.is-wide-right {
    grid-template-columns: 1fr; gap: 2.8rem;
  }
  .hero-img-side { order: 2; }
  .card-grid.is-3 { grid-template-columns: repeat(2, 1fr); }
  .section, .panel, .section-teal, .cta-banner { padding: 4.5rem 0; }
  .ph { min-height: 260px; }
}

@media (max-width: 820px) {
  .nav { padding: .8rem 1.5rem; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--teal-dark);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom-left-radius: var(--r-md); border-bottom-right-radius: var(--r-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0 !important; }
  .nav-toggle { display: block; }
  .wrap, .section-inner { padding: 0 1.5rem; }
  .panel, .section-teal, .cta-banner { margin: 0 .75rem; border-radius: var(--r-lg); }
}

@media (max-width: 600px) {
  .card-grid.is-2, .card-grid.is-3, .form-row { grid-template-columns: 1fr; }
  .hero-stat-bar { grid-template-columns: 1fr; }
  .hero-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero-stat:last-child { border-bottom: 0; }
  .hero { padding: 7rem 0 3.5rem; }
  .page-head { padding: 7rem 0 3rem; }
  .step { grid-template-columns: 44px 1fr; padding: 1.2rem 1.2rem; }
  .step-num-badge { display: none; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .nav-cta, .cookie-btns .btn { width: auto; }
  .form-card { padding: 1.6rem; }
  .footer-links { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
