/* ==========================================================================
   Homenza Health Care Services LLP
   style.css — design system + components
   Palette derived from the official Homenza logo (deep teal, teal, gold).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from the Homenza logo mark */
  --teal-900: #063a38;
  --teal-800: #054b47;
  --teal-700: #045d56;
  --primary:  #036f67;
  --teal-500: #068c80;
  --teal-400: #14a99a;
  --teal-100: #d8e9e6;
  --teal-50:  #eef6f4;

  --secondary:     #c08a2e;  /* logo gold — used sparingly */
  --secondary-soft:#e0ab55;
  --accent:        var(--secondary);

  /* Neutrals */
  --ink:       #1c2726;
  --ink-soft:  #2a3332;   /* logo wordmark charcoal */
  --text:      #2a3332;
  --muted:     #5f706d;
  --muted-2:   #8a9895;

  --background: #faf9f6;
  --surface:    #ffffff;
  --surface-2:  #f3f1ec;
  --surface-3:  #edf3f1;

  --border:        rgba(28, 39, 38, 0.10);
  --border-strong: rgba(28, 39, 38, 0.18);
  --border-light:  rgba(255, 255, 255, 0.16);

  /* Type */
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-eyebrow: 0.75rem;
  --fs-body:    1.0625rem;
  --fs-lead:    1.1875rem;

  /* Fluid display sizes */
  --fs-d1: clamp(2.75rem, 1.35rem + 4.6vw, 5.75rem);
  --fs-d2: clamp(2.25rem, 1.30rem + 3.1vw, 4.25rem);
  --fs-d3: clamp(1.75rem, 1.25rem + 1.7vw, 2.75rem);
  --fs-h4: clamp(1.25rem, 1.10rem + 0.5vw, 1.5rem);

  /* Layout */
  --maxw: 1280px;
  --maxw-wide: 1440px;
  --maxw-text: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 8vw, 9rem);

  /* Radii + elevation */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(6, 58, 56, .05), 0 4px 14px rgba(6, 58, 56, .05);
  --shadow-md: 0 10px 30px rgba(6, 58, 56, .08);
  --shadow-lg: 0 24px 60px rgba(6, 58, 56, .12);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .22s;
  --t: .38s;
  --t-slow: .7s;

  --header-h: 84px;
  --topbar-h: 40px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; line-height: 1.12; color: var(--ink); }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

::selection { background: var(--teal-100); color: var(--teal-900); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1300;
  background: var(--primary);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: var(--r-sm);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--maxw-wide); }
.container--narrow { max-width: 900px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }
.section--flush-top { padding-top: 0; }

.section--tinted { background: var(--surface-2); }
.section--mint { background: var(--surface-3); }

.section--dark {
  background: var(--teal-900);
  color: rgba(255, 255, 255, .82);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.stack > * + * { margin-top: 1.15em; }

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.35rem;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}
.eyebrow--center { justify-content: center; }
.section--dark .eyebrow { color: var(--secondary-soft); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.06;
}
.display--1 { font-size: var(--fs-d1); }
.display--2 { font-size: var(--fs-d2); }
.display--3 { font-size: var(--fs-d3); line-height: 1.14; }

.display em { font-style: italic; color: var(--primary); }
.section--dark .display em,
.page-hero .display em { color: var(--secondary-soft); }

.h-sans {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -.015em;
  font-size: var(--fs-h4);
  line-height: 1.3;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--muted);
  max-width: var(--maxw-text);
}
.section--dark .lead,
.section--dark .prose { color: rgba(255, 255, 255, .78); }

.prose { color: var(--muted); max-width: var(--maxw-text); }
.prose--wide { max-width: 72ch; }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

.rule {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 1.75rem 0 0;
}
.rule--center { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1rem 1.6rem;
  border-radius: var(--r-pill);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .005em;
  border: 1px solid transparent;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: color var(--t) var(--ease),
              border-color var(--t) var(--ease),
              transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}

.btn__icon {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform var(--t) var(--ease-out);
}
.btn:hover .btn__icon,
.btn:focus-visible .btn__icon { transform: translateX(4px); }

/* animated fill */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--t) var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(3, 111, 103, .22);
}
.btn--primary::before { background: var(--teal-900); }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(6, 58, 56, .28); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--outline::before { background: var(--ink); }
.btn--outline:hover,
.btn--outline:focus-visible { color: #fff; border-color: var(--ink); transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--teal-900); }
.btn--light::before { background: var(--secondary); }
.btn--light:hover,
.btn--light:focus-visible { color: #fff; transform: translateY(-2px); }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: var(--border-light);
}
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover,
.btn--ghost-light:focus-visible { color: var(--teal-900); border-color: #fff; transform: translateY(-2px); }

.btn--sm { padding: .7rem 1.15rem; font-size: .875rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.25rem;
}

/* text link with sliding arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--primary);
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: left bottom;
  transition: background-size var(--t) var(--ease-out), color var(--t) var(--ease);
}
.link-arrow:hover,
.link-arrow:focus-visible { background-size: 100% 1px; }
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--t) var(--ease-out); }
.link-arrow:hover svg,
.link-arrow:focus-visible svg { transform: translateX(4px); }

.section--dark .link-arrow { color: var(--secondary-soft); }

/* --------------------------------------------------------------------------
   6. Scroll progress
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--primary), var(--teal-400) 60%, var(--secondary));
  z-index: 1200;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. Header + navigation
   -------------------------------------------------------------------------- */
/* top utility bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--teal-900), var(--primary) 55%, var(--teal-500));
  color: #fff;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.top-bar__contacts {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, .92);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
}

a.top-bar__item:hover { color: #fff; }

.top-bar__item svg { width: 15px; height: 15px; flex: none; opacity: .85; }

.top-bar__social {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.top-bar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  transition: background var(--t-fast) var(--ease);
}

.top-bar__social a:hover { background: rgba(255, 255, 255, .28); }
.top-bar__social svg { width: 13px; height: 13px; }

.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height var(--t) var(--ease);
}

/* solid state */
.site-header.is-solid {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 26px rgba(6, 58, 56, .06);
}
.site-header.is-solid .site-header__inner { height: 70px; }

/* Pinned header: pages whose hero is a dark photograph keep the light glass
   bar from the very top, so the full-colour logo always sits on a light
   surface and is never recoloured or knocked out. */
.site-header--pinned {
  background: rgba(255, 255, 255, .90);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.brand__logo {
  height: 46px;
  width: auto;
  transition: height var(--t) var(--ease), filter var(--t) var(--ease);
}
.site-header.is-solid .brand__logo { height: 38px; }

/* primary nav */
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav__item { position: relative; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--t) var(--ease-out);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__item.is-active > .nav__link::after { transform: scaleX(1); transform-origin: left center; }
.nav__link:hover,
.nav__item.is-active > .nav__link { color: var(--primary); }

.nav__caret { width: 11px; height: 11px; transition: transform var(--t-fast) var(--ease); }
.nav__item--has-menu:hover .nav__caret,
.nav__item--has-menu:focus-within .nav__caret { transform: rotate(180deg); }

/* dropdown */
.nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  min-width: 292px;
  padding: .55rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
.nav__item--has-menu:hover > .nav__menu,
.nav__item--has-menu:focus-within > .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav__menu a {
  display: block;
  padding: .7rem .85rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              padding-left var(--t-fast) var(--ease);
}
.nav__menu a:hover,
.nav__menu a:focus-visible {
  background: var(--teal-50);
  color: var(--primary);
  padding-left: 1.15rem;
}

.header-cta { display: inline-flex; }

/* burger */
.nav__toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  padding: .5rem;
  color: var(--ink);
  border-radius: var(--r-sm);
}
.burger { display: grid; gap: 5px; width: 24px; }
.burger span {
  display: block;
  height: 1.8px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t) var(--ease),
              opacity var(--t-fast) var(--ease),
              background var(--t) var(--ease);
}
body.nav-open .burger span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + var(--topbar-h) + 1.5rem) var(--gutter) 2.5rem;
  background: var(--background);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
body.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-nav__list { display: grid; gap: .15rem; }
.mobile-nav__list > li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
body.nav-open .mobile-nav__list > li { opacity: 1; transform: none; }
body.nav-open .mobile-nav__list > li:nth-child(1) { transition-delay: .06s; }
body.nav-open .mobile-nav__list > li:nth-child(2) { transition-delay: .11s; }
body.nav-open .mobile-nav__list > li:nth-child(3) { transition-delay: .16s; }
body.nav-open .mobile-nav__list > li:nth-child(4) { transition-delay: .21s; }
body.nav-open .mobile-nav__list > li:nth-child(5) { transition-delay: .26s; }
body.nav-open .mobile-nav__list > li:nth-child(6) { transition-delay: .31s; }

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: .95rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  text-align: left;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.mobile-nav__link:hover { color: var(--primary); }
.mobile-nav__link svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform var(--t) var(--ease);
}
.mobile-nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.mobile-nav__sub {
  display: grid;
  gap: .1rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t) var(--ease), padding var(--t) var(--ease);
}
.mobile-nav__sub.is-open { max-height: 420px; padding: .5rem 0 1rem 1rem; }
.mobile-nav__sub a {
  display: block;
  padding: .5rem 0;
  font-size: .95rem;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease);
}
.mobile-nav__sub a:hover { color: var(--primary); }

.mobile-nav__foot { margin-top: auto; padding-top: 2.5rem; display: grid; gap: .75rem; }
.mobile-nav__foot .btn { width: 100%; }
.mobile-nav__contact { font-size: .9rem; color: var(--muted); }
.mobile-nav__contact a { color: var(--primary); font-weight: 600; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--topbar-h) + clamp(2rem, 5vw, 4.5rem));
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 82% 12%, rgba(20, 169, 154, .10), transparent 62%),
    radial-gradient(46% 46% at 6% 78%, rgba(192, 138, 46, .09), transparent 65%),
    var(--background);
}

.hero__grid {
  display: grid;
  gap: clamp(2.75rem, 5vw, 4rem);
  align-items: center;
}

.hero__title { margin-bottom: 1.4rem; }
.hero__tagline {
  font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.hero__text { color: var(--muted); max-width: 56ch; }

/* hero media composition */
.hero__media { position: relative; }

.figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface-2);
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.figure--hover:hover img { transform: scale(1.045); }

.hero__figure { aspect-ratio: 4 / 4.5; box-shadow: var(--shadow-lg); }

.hero__inset {
  position: absolute;
  right: -6%;
  bottom: -1%;
  width: min(46%, 250px);
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  border: 7px solid var(--background);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__inset img { width: 100%; height: 100%; object-fit: cover; }

/* soft organic shapes */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: .55;
}
.hero__blob-a {
  width: 190px;
  height: 190px;
  left: -78px;
  top: 8%;
  border: 1px solid rgba(3, 111, 103, .16);
  animation: drift 17s var(--ease) infinite alternate;
}
.hero__blob-b {
  width: 130px;
  height: 130px;
  right: 10%;
  top: -46px;
  background: radial-gradient(circle at 30% 30%, rgba(224, 171, 85, .30), transparent 68%);
  animation: drift 21s var(--ease) infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(18px, -22px, 0) scale(1.08); }
}

/* page hero (inner pages, photo band) */
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(430px, 62vh, 640px);
  padding-top: calc(var(--header-h) + var(--topbar-h) + 3rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background: var(--teal-900);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 58, 56, .58) 0%, rgba(6, 58, 56, .42) 42%, rgba(6, 58, 56, .90) 100%),
    linear-gradient(90deg, rgba(6, 58, 56, .62), transparent 74%);
}
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .eyebrow { color: var(--secondary-soft); }
.page-hero__text { color: rgba(255, 255, 255, .84); max-width: 60ch; margin-top: 1.5rem; }

/* breadcrumb */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 1.4rem;
}
.crumb a { transition: color var(--t-fast) var(--ease); }
.crumb a:hover { color: #fff; }
.crumb [aria-current] { color: #fff; }

/* --------------------------------------------------------------------------
   9. Split / editorial sections
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.split__media { position: relative; }
.split__figure { aspect-ratio: 5 / 6; box-shadow: var(--shadow-md); }
.split__figure--wide { aspect-ratio: 16 / 11; }

.split__badge {
  position: absolute;
  left: -14px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-width: 80%;
}
.split__badge svg { width: 26px; height: 26px; color: var(--primary); flex: none; }
.split__badge span {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

/* decorative frame behind media */
.frame-accent { position: relative; }
.frame-accent::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  z-index: -1;
}

/* --------------------------------------------------------------------------
   10. Section headers
   -------------------------------------------------------------------------- */
.section-head { margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.section-head--split { display: grid; gap: clamp(1.25rem, 3vw, 3rem); align-items: end; }
.section-head--center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

/* --------------------------------------------------------------------------
   11. Service cards
   -------------------------------------------------------------------------- */
.service-grid { display: grid; gap: clamp(1.25rem, 2vw, 1.75rem); }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(3, 111, 103, .28);
}
.service-card:hover::after,
.service-card:focus-within::after { transform: scaleX(1); }

.service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 58, 56, .34));
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.service-card:hover .service-card__media::after { opacity: 1; }

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.5rem, 2.2vw, 2rem);
}
.service-card__title { margin-bottom: .7rem; }
.service-card__desc { color: var(--muted); font-size: .9688rem; margin-bottom: 1.35rem; }

.tick-list { display: grid; gap: .6rem; margin-bottom: 1.75rem; }
.tick-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: .9375rem;
  color: var(--text);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(3, 111, 103, .12);
}
.service-card__body .link-arrow { margin-top: auto; align-self: flex-start; }

/* icon tile */
.icon-tile {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--teal-50);
  color: var(--primary);
  margin-bottom: 1.35rem;
  transition: background var(--t) var(--ease),
              color var(--t) var(--ease),
              transform var(--t) var(--ease-out);
}
.icon-tile svg { width: 26px; height: 26px; }
.service-card:hover .icon-tile,
.feature-card:hover .icon-tile { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   12. Approach — numbered dark band
   -------------------------------------------------------------------------- */
.approach {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 88% 6%, rgba(20, 169, 154, .20), transparent 60%),
    radial-gradient(52% 52% at 4% 96%, rgba(192, 138, 46, .16), transparent 62%),
    var(--teal-900);
}

.approach-grid { display: grid; gap: 0; margin-top: clamp(2rem, 4vw, 3rem); }

.approach-item {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--border-light);
  display: grid;
  gap: .5rem 2rem;
}
.approach-item:last-child { border-bottom: 1px solid var(--border-light); }
.approach-item::before {
  content: attr(data-num);
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 1;
  color: rgba(255, 255, 255, .05);
  pointer-events: none;
  transition: color var(--t-slow) var(--ease);
}
.approach-item:hover::before { color: rgba(224, 171, 85, .16); }

.approach-item__num {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--secondary-soft);
}
.approach-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem);
  color: #fff;
  line-height: 1.15;
}
.approach-item__text { color: rgba(255, 255, 255, .72); max-width: 46ch; }

@media (min-width: 860px) {
  .approach-item {
    grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
  }
  .approach-item__num { grid-column: 1; }
  .approach-item__title { grid-column: 2; }
  .approach-item__text { grid-column: 3; padding-right: clamp(3rem, 9vw, 9rem); }
}

/* --------------------------------------------------------------------------
   13. Feature / benefit cards
   -------------------------------------------------------------------------- */
.feature-grid { display: grid; gap: clamp(1.25rem, 2vw, 1.75rem); }

.feature-card {
  position: relative;
  padding: clamp(1.6rem, 2.4vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(3, 111, 103, .26);
}
.feature-card__index {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--teal-100);
  margin-bottom: 1rem;
  transition: color var(--t) var(--ease);
}
.feature-card:hover .feature-card__index { color: var(--secondary-soft); }
.feature-card h3 { margin-bottom: .6rem; }
.feature-card p { color: var(--muted); font-size: .9688rem; }

/* --------------------------------------------------------------------------
   14. "Who we care for" chips
   -------------------------------------------------------------------------- */
.care-chips { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }

.care-chip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: .9063rem;
  font-weight: 500;
  color: var(--text);
  transition: transform var(--t) var(--ease),
              border-color var(--t) var(--ease),
              background var(--t) var(--ease),
              color var(--t) var(--ease);
}
.care-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  flex: none;
  transition: background var(--t) var(--ease);
}
.care-chip:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.care-chip:hover::before { background: #fff; }

/* --------------------------------------------------------------------------
   15. Detailed service blocks (inner pages)
   -------------------------------------------------------------------------- */
.detail-list { display: grid; gap: clamp(3.5rem, 7vw, 7rem); }

.detail-item { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.detail-item__figure { aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.detail-item__index {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.detail-item__index::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--border-strong);
}
.detail-item h3 { margin-bottom: 1.1rem; }

@media (min-width: 900px) {
  .detail-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .detail-item:nth-child(even) .detail-item__media { order: 2; }
}

/* --------------------------------------------------------------------------
   16. Highlight / statement panels
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.panel--mint { background: var(--surface-3); border-color: rgba(3, 111, 103, .14); }

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.4rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: 26ch;
}
.statement--wide { max-width: 32ch; }

.pull-quote {
  position: relative;
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
  border-left: 2px solid var(--secondary);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.05rem + 1.2vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
}
.section--dark .pull-quote { color: #fff; }

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding-block: clamp(4.5rem, 8vw, 8rem);
  background: var(--teal-900);
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 90% at 78% 24%, rgba(20, 169, 154, .30), transparent 60%),
    linear-gradient(100deg, rgba(6, 58, 56, .95) 6%, rgba(6, 58, 56, .84) 48%, rgba(6, 58, 56, .70) 100%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .82); }

/* soft animated glow */
.glow {
  position: absolute;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 169, 154, .32), transparent 68%);
  filter: blur(30px);
  animation: pulse-glow 9s var(--ease) infinite alternate;
  pointer-events: none;
}
.glow--a { right: -80px; top: -140px; }
.glow--b {
  left: -120px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(192, 138, 46, .26), transparent 68%);
  animation-duration: 12s;
}
@keyframes pulse-glow {
  from { opacity: .55; transform: scale(1); }
  to   { opacity: .95; transform: scale(1.16); }
}

/* contact strip */
.contact-strip {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.25rem);
  background: linear-gradient(115deg, var(--surface-3), var(--surface));
  border: 1px solid rgba(3, 111, 103, .16);
  border-radius: var(--r-xl);
}
.contact-strip .btn-row { margin-top: 0; }

@media (min-width: 860px) {
  .contact-strip { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; }
}

/* --------------------------------------------------------------------------
   18. Contact page
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

@media (min-width: 980px) {
  .contact-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}

.info-list { display: grid; gap: 1.5rem; margin-top: 2.25rem; }
.info-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: 0; padding-bottom: 0; }
.info-item__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--primary);
}
.info-item__icon svg { width: 20px; height: 20px; }
.info-item__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: .35rem;
}
.info-item__value { font-size: 1rem; color: var(--ink); line-height: 1.6; }
.info-item__value a { transition: color var(--t-fast) var(--ease); }
.info-item__value a:hover { color: var(--primary); }
.info-item__value address { font-style: normal; }

/* form */
.form-card {
  padding: clamp(1.65rem, 3vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; gap: 1.15rem; }
.field--full { grid-column: 1 / -1; }

@media (min-width: 620px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.field .req { color: var(--secondary); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .5rem 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: .9375rem;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 80px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.4rem; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(3, 111, 103, .12);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field--select { position: relative; }
.field--select::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: calc(50% + .45rem);
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.field-error { font-size: .8125rem; color: #b3261e; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #b3261e; }

.form-note { font-size: .8125rem; color: var(--muted-2); margin-top: 1.25rem; }

.form-status {
  display: none;
  gap: .75rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--teal-50);
  border: 1px solid rgba(3, 111, 103, .2);
  font-size: .9063rem;
  color: var(--teal-800);
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; color: var(--primary); }
.form-status .form-status__icon-error { display: none; }
.form-status.is-error {
  background: #fbeceb;
  border-color: rgba(179, 38, 30, .25);
  color: #7a2019;
}
.form-status.is-error .form-status__icon-success { display: none; }
.form-status.is-error .form-status__icon-error { display: block; color: #b3261e; }

.btn[disabled] { opacity: .65; cursor: not-allowed; pointer-events: none; }

/* map */
.map-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
  aspect-ratio: 21 / 9;
  min-height: 320px;
}
@media (max-width: 560px) {
  .map-frame { aspect-ratio: 4 / 5; min-height: 0; }
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.92); }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}
.footer-grid { display: grid; gap: clamp(2.25rem, 4vw, 3.5rem); padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }

@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) {
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.25fr); }
}

.footer-brand__logo { height: 52px; width: auto; margin-bottom: 1.5rem; }
.footer-brand p { color: var(--muted); font-size: .9375rem; max-width: 42ch; }

.footer-col__title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.footer-links { display: grid; gap: .7rem; }
.footer-links a {
  display: inline-block;
  font-size: .9375rem;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.footer-links a:hover { color: var(--primary); transform: translateX(3px); }

.footer-contact { display: grid; gap: 1.15rem; font-size: .9375rem; color: var(--muted); }
.footer-contact a { transition: color var(--t-fast) var(--ease); }
.footer-contact a:hover { color: var(--primary); }
.footer-contact address { font-style: normal; line-height: 1.6; }

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

.footer-contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--primary);
  flex: none;
  padding-top: 0.7rem;

}
.footer-contact__icon svg { width: 17px; height: 17px; }

.footer-contact__text { padding-top: .35rem; line-height: 1.6; }
.footer-contact__text a { display: block; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .8438rem;
  color: var(--muted-2);
}

/* back to top */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 900;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t) var(--ease),
              transform var(--t) var(--ease),
              visibility var(--t),
              background var(--t) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-900); }
.to-top svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   20. Scroll + load animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* .reveal-mask {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition: clip-path 1.1s var(--ease-out), opacity .6s var(--ease-out);
}
.reveal-mask.is-in { clip-path: inset(0 0 0 0); opacity: 1; } */

/* stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(1) { transition-delay: .04s; }
.stagger.is-in > *:nth-child(2) { transition-delay: .12s; }
.stagger.is-in > *:nth-child(3) { transition-delay: .20s; }
.stagger.is-in > *:nth-child(4) { transition-delay: .28s; }
.stagger.is-in > *:nth-child(5) { transition-delay: .36s; }
.stagger.is-in > *:nth-child(6) { transition-delay: .44s; }
.stagger.is-in > *:nth-child(7) { transition-delay: .52s; }
.stagger.is-in > *:nth-child(8) { transition-delay: .60s; }
.stagger.is-in > *:nth-child(n+9) { transition-delay: .66s; }

/* page-load intro */
.load-in { opacity: 0; transform: translateY(20px); }
body.is-ready .load-in { animation: load-up .95s var(--ease-out) forwards; }
body.is-ready .load-in--1 { animation-delay: .05s; }
body.is-ready .load-in--2 { animation-delay: .16s; }
body.is-ready .load-in--3 { animation-delay: .27s; }
body.is-ready .load-in--4 { animation-delay: .38s; }
body.is-ready .load-in--5 { animation-delay: .49s; }

@keyframes load-up { to { opacity: 1; transform: none; } }

.load-mask { clip-path: inset(0 0 100% 0); }
body.is-ready .load-mask { animation: mask-up 1.25s var(--ease-out) .28s forwards; }
@keyframes mask-up { to { clip-path: inset(0 0 0 0); } }

/* parallax target */
.parallax { will-change: transform; }

/* --------------------------------------------------------------------------
   21. Responsive grid rules
   -------------------------------------------------------------------------- */
@media (min-width: 620px) {
  .service-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .split--media-left { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .split--media-right { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--media-right .split__media { order: 2; }

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

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); }
  .service-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .service-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- Tablet / mobile navigation switch ---- */
@media (max-width: 1023px) {
  .nav,
  .header-cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

@media (min-width: 1024px) {
  .mobile-nav { display: none; }
}

/* ---- Small screens ---- */
@media (max-width: 899px) {
  :root { --header-h: 72px; --topbar-h: 0px; }
  .top-bar { display: none; }
  .frame-accent::before { inset: 18px -14px -18px 18px; }
  .split__badge { left: 12px; bottom: 14px; max-width: calc(100% - 24px); }
  .hero__figure { aspect-ratio: 4 / 4.4; }
  .hero__inset { width: 42%; right: -2%; bottom: -22px; border-width: 6px; }
}

@media (max-width: 560px) {
  :root { --fs-body: 1rem; --fs-lead: 1.0625rem; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .mobile-nav__link { font-size: 1.5rem; }
  .hero__inset { width: 46%; }
  .footer-bottom { justify-content: flex-start; }
  .info-item { grid-template-columns: 40px minmax(0, 1fr); gap: .9rem; }
  .info-item__icon { width: 40px; height: 40px; border-radius: 12px; }
}

/* --------------------------------------------------------------------------
   21b. Request Care modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(6, 20, 19, .58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility 0s linear var(--t);
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t) var(--ease), visibility 0s;
}
.modal-overlay[hidden] { display: flex; }

.request-modal {
  position: relative;
  display: grid;
  align-items: stretch;
  width: 100%;
  max-width: 920px;
  height: min(760px, 94vh);
  max-height: min(760px, 94vh);
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(18px) scale(.96);
  opacity: 0;
  transition: transform var(--t) var(--ease-out), opacity var(--t) var(--ease-out);
}
.modal-overlay.is-open .request-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (min-width: 760px) {
  .request-modal { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}

.request-modal__media {
  position: relative;
  display: none;
  min-height: 0;
}
@media (min-width: 760px) { .request-modal__media { display: block; } }
.request-modal__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.request-modal__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(3, 111, 103, .55), rgba(6, 58, 56, .78));
}
.request-modal__media-caption {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
}
.request-modal__media-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: .5rem;
}
.request-modal__media-caption span { color: rgba(255, 255, 255, .82); font-size: .9375rem; }

.request-modal__body {
  min-height: 0;
  padding: clamp(1.5rem, 2.5vw, 1.25rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-content: center;
}

.request-modal__title { margin: .4rem 0 1.35rem; }

.request-modal__form { display: grid; gap: .9rem; }
.request-modal__row { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 480px) {
  .request-modal__row { grid-template-columns: 1fr 1fr; }
}
.request-modal__submit { width: 100%; justify-content: center; margin-top: .15rem; }
.request-modal__form textarea { min-height: 70px; }

/* Below the media-panel breakpoint the form is the whole modal — trim
   spacing so the compact 2-up layout fits without an internal scroll. */
@media (max-width: 759px) {
  .request-modal__body { padding: 1.35rem 1.35rem 1.6rem; }
  .request-modal__title { margin: .3rem 0 1rem; }
  .request-modal__form,
  .request-modal__row { gap: .65rem; }
  .field { gap: .3rem; }
  .field input,
  .field select,
  .field textarea { padding: .5rem .85rem; }
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.modal__close:hover { background: #fff; transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   22. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .stagger > *,
  .load-in {
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal-mask,
  .load-mask { clip-path: none !important; opacity: 1 !important; }
  .blob,
  .glow { animation: none !important; }
  .parallax { transform: none !important; }
  .figure--hover:hover img,
  .service-card:hover .service-card__media img { transform: none; }
}

/* --------------------------------------------------------------------------
   23. Print
   -------------------------------------------------------------------------- */
@media print {
  .top-bar,
  .site-header,
  .modal-overlay,
  .mobile-nav,
  .to-top,
  .scroll-progress,
  .cta-band__bg,
  .page-hero__bg { display: none !important; }

  body { background: #fff; }
  .reveal,
  .stagger > * { opacity: 1 !important; transform: none !important; }
}
