/* ==========================================================================
   HSF Facilities Management — global.css
   Shared design system: variables, reset, typography, buttons, header,
   mobile menu, footer, floating WhatsApp button, animation helpers.
   Loaded on every page BEFORE the page-specific stylesheet.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours (taken from the HSF logo) */
  --navy: #082a57;
  --navy-900: #061e3f;
  --teal: #118d95;
  --teal-300: #35b4bc;
  --ink: #0e1726;
  --muted: #5b6b82;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --line: #e2e8f0;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);

  /* Support tokens */
  --teal-050: #eaf6f7;
  --navy-050: #eef2f8;

  /* Typography */
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(8, 42, 87, 0.06);
  --shadow: 0 10px 30px rgba(8, 42, 87, 0.08);
  --shadow-lg: 0 22px 50px rgba(8, 42, 87, 0.16);
  --shadow-teal: 0 14px 34px rgba(17, 141, 149, 0.28);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.2s var(--ease);
  --t: 0.35s var(--ease);
}

/* --------------------------------------------------------------------------
   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) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--navy);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  font-weight: 600;
}

p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

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

strong {
  color: var(--ink);
  font-weight: 600;
}

/* Visible, consistent focus ring for keyboard users */
:focus-visible {
  outline: 3px solid var(--teal-300);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 4vw, 3.25rem);
  text-align: center;
}

.section-head p {
  font-size: 1.05rem;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* Decorative water-drop motif borrowed from the logo */
.drop-motif {
  position: absolute;
  inset-inline-end: -60px;
  inset-block-start: -60px;
  width: 220px;
  height: 220px;
  border-radius: 60% 60% 55% 55% / 70% 70% 45% 45%;
  background: radial-gradient(circle at 35% 30%, rgba(53, 180, 188, 0.22), rgba(8, 42, 87, 0.05));
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: 1rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-align: center;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
    background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  box-shadow: var(--shadow-teal);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #0d757c;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(17, 141, 149, 0.38);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Outline button placed on dark imagery / navy panels */
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn--sm {
  padding: 0.75rem 1.2rem;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

/* Text link with an arrow that slides on hover */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--teal);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-fast);
}

.link-arrow:hover svg,
.link-arrow:focus-visible svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. Site header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color var(--t), box-shadow var(--t), padding var(--t);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

/* Logo: two stacked images — white knockout on transparent header,
   full-colour once the header turns solid. */
.brand {
  position: relative;
  display: block;
  flex: none;
  line-height: 0;
}

.brand img {
  width: auto;
  height: 46px;
  transition: opacity var(--t), height var(--t);
}

.brand__light {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.site-header.is-scrolled .brand__light,
.site-header.is-solid .brand__light {
  opacity: 0;
}

.site-header.is-scrolled .brand__dark,
.site-header.is-solid .brand__dark {
  opacity: 1;
}

/* Transparent state (over the hero / page banner) */
.site-header:not(.is-scrolled) .brand__light {
  opacity: 1;
}

.site-header:not(.is-scrolled) .brand__dark {
  opacity: 0;
}

/* Scrolled state */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 6px 24px rgba(8, 42, 87, 0.1);
}

.site-header.is-scrolled .brand img {
  height: 40px;
}

.site-nav {
  margin-inline-start: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
}

.site-nav__link {
  position: relative;
  font-family: var(--font-head);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--white);
  padding-block: 0.4rem;
  transition: color var(--t-fast);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--teal-300);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header.is-scrolled .site-nav__link {
  color: var(--navy);
}

.site-header.is-scrolled .site-nav__link:hover,
.site-header.is-scrolled .site-nav__link[aria-current="page"] {
  color: var(--teal);
}

.header-cta {
  flex: none;
  margin-inline-start: clamp(0.75rem, 2vw, 1.75rem);
}

/* Over the hero / banner the teal fill can blend into the gradient,
   so the CTA switches to a glass outline until the header turns solid. */
.site-header:not(.is-scrolled) .header-cta {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.62);
  color: var(--white);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.site-header:not(.is-scrolled) .header-cta:hover,
.site-header:not(.is-scrolled) .header-cta:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex: none;
  margin-inline-start: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  position: relative;
}

.site-header.is-scrolled .nav-toggle {
  background: var(--navy-050);
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transform: translateX(-50%);
  transition: transform var(--t), opacity var(--t-fast), background-color var(--t-fast);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--navy);
}

.nav-toggle span:nth-child(1) {
  top: 16px;
}

.nav-toggle span:nth-child(2) {
  top: 22px;
}

.nav-toggle span:nth-child(3) {
  top: 28px;
}

.nav-toggle[aria-expanded="true"] span {
  background: var(--navy);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateX(-50%) translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}

/* Slide-in mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 86vw);
  z-index: 110;
  background: var(--white);
  box-shadow: -20px 0 60px rgba(8, 42, 87, 0.22);
  padding: 1.4rem var(--gutter) 2rem;
  transform: translateX(105%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  visibility: hidden;
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__head img {
  height: 40px;
  width: auto;
}

.mobile-menu__close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color var(--t-fast), color var(--t-fast);
}

.mobile-menu__close:hover {
  background: var(--navy);
  color: var(--white);
}

.mobile-menu__close svg {
  width: 20px;
  height: 20px;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu__list a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy);
  padding: 0.85rem 0.75rem;
  border-radius: var(--r-sm);
  transition: background-color var(--t-fast), color var(--t-fast),
    transform var(--t-fast);
}

.mobile-menu__list a:hover,
.mobile-menu__list a[aria-current="page"] {
  background: var(--teal-050);
  color: var(--teal);
  transform: translateX(4px);
}

.mobile-menu__contact {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.mobile-menu__contact a {
  color: var(--muted);
  font-weight: 500;
}

.mobile-menu__contact a:hover {
  color: var(--teal);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(6, 30, 63, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 900px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   6. Shared page banner (inner pages)
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 5.5rem));
  padding-bottom: clamp(3rem, 7vw, 5rem);
  background: var(--gradient);
  color: var(--white);
  isolation: isolate;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 78% 15%, rgba(53, 180, 188, 0.45), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(6, 30, 63, 0.6), transparent 60%);
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 40rem;
  font-size: 1.06rem;
}

.breadcrumb {
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb [aria-current="page"] {
  color: var(--white);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Shared CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  color: var(--white);
  padding-block: clamp(3rem, 7vw, 4.75rem);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(53, 180, 188, 0.4), transparent 55%);
}

.cta-band .container {
  position: relative;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.6rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.cta-band .btn--primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 14px 34px rgba(6, 30, 63, 0.35);
}

.cta-band .btn--primary:hover {
  background: var(--bg-soft);
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: 0.95rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: var(--teal-300);
}

.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 1.1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 32ch;
}

.footer-slogan {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--teal-300);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-list li + li {
  margin-top: 0.6rem;
}

.footer-contact li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.footer-contact li + li {
  margin-top: 0.85rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.28rem;
  color: var(--teal-300);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: background-color var(--t-fast), transform var(--t-fast);
}

.footer-social a:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  color: inherit;
  margin: 0;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr;
  }
}

/* --------------------------------------------------------------------------
   9. Floating WhatsApp button
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 95;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.42);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: wa-pulse 2.6s var(--ease) infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: var(--white);
  box-shadow: 0 16px 38px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   10. Shared card + icon styles
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(17, 141, 149, 0.35);
  box-shadow: var(--shadow-lg);
}

.icon-badge {
  width: 58px;
  height: 58px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--teal-050);
  color: var(--teal);
  margin-bottom: 1.1rem;
  transition: background-color var(--t), color var(--t), transform var(--t);
}

.icon-badge svg {
  width: 28px;
  height: 28px;
}

.card:hover .icon-badge {
  background: var(--teal);
  color: var(--white);
  transform: scale(1.06) rotate(-4deg);
}

/* Media placeholder — shown until the client drops a real photo in /assets */
.media-ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}

.media-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22), transparent 55%);
}

.media-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Once a real photo is in place, drop the placeholder gradient + sheen */
.media-ph:has(img) {
  background: var(--white);
}

.media-ph:has(img)::after {
  content: none;
}

/* --------------------------------------------------------------------------
   11. Stats (used on Home + About)
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.stat {
  background: var(--white);
  padding: clamp(1.4rem, 3vw, 2.2rem) 1rem;
  text-align: center;
}

.stat__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1;
  color: var(--navy);
  display: block;
  margin-bottom: 0.45rem;
}

.stat__num .suffix {
  color: var(--teal);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   12. Scroll-reveal animation helper (see global.js)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translateX(-30px);
}

[data-reveal="right"] {
  transform: translateX(30px);
}

[data-reveal="zoom"] {
  transform: scale(0.94);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
