/* ============================================================
   AMBIANCE – SPECIALISED MASSAGE THERAPY
   style.css — Full Design System
   Author: DevIgnite
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ------------------------------------------------------------ */
:root {
  /* Brand Colours */
  --clr-primary:       #1C5161;
  --clr-primary-dark:  #163e4c;
  --clr-primary-light: #2a6578;
  --clr-secondary:     #2F7E8F;
  --clr-accent:        #E6F4F6;
  --clr-accent-mid:    #cce8ed;
  --clr-text:          #1F2A30;
  --clr-text-muted:    #4a6570;
  --clr-text-light:    #7a9aa5;
  --clr-bg:            #F8FBFC;
  --clr-bg-alt:        #eef6f8;
  --clr-white:         #ffffff;
  --clr-border:        #d0e6ea;
  --clr-error:         #c0392b;
  --clr-success:       #1a7a4a;

  /* Typography */
  --font-heading: 'Quicksand', system-ui, sans-serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  1.875rem;  /* 30px */
  --text-3xl:  2.25rem;   /* 36px */
  --text-4xl:  2.75rem;   /* 44px */
  --text-5xl:  3.5rem;    /* 56px */
  --text-6xl:  4.5rem;    /* 72px */

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 2rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Section spacing */
  --section-py: clamp(4rem, 8vw, 7rem);

  /* Borders */
  --radius-sm:   0.375rem;
  --radius-md:   0.75rem;
  --radius-lg:   1.25rem;
  --radius-xl:   2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(28,81,97,0.06), 0 1px 2px rgba(28,81,97,0.04);
  --shadow-sm:  0 4px 12px rgba(28,81,97,0.08), 0 2px 6px rgba(28,81,97,0.05);
  --shadow-md:  0 8px 24px rgba(28,81,97,0.12), 0 4px 10px rgba(28,81,97,0.07);
  --shadow-lg:  0 16px 40px rgba(28,81,97,0.15), 0 6px 16px rgba(28,81,97,0.08);
  --shadow-xl:  0 24px 64px rgba(28,81,97,0.18), 0 8px 24px rgba(28,81,97,0.10);

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --trans-fast:  180ms var(--ease-in-out);
  --trans-base:  300ms var(--ease-in-out);
  --trans-slow:  500ms var(--ease-out);

  /* Layout */
  --container-max: 1200px;
  --container-px:  clamp(1rem, 4vw, 2.5rem);

  /* Nav — 70 px on mobile, overridden to 100 px at ≥ 768 px */
  --nav-height: 70px;
}

/* ------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden; /* Global guard — prevents any child from causing horizontal scroll */
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove list styling when used for navigation */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Focus-visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--clr-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Prevent layout shift for images with known dimensions */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
  height: auto;
}

/* Reduced motion — disable all animations and the caustics canvas */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Hide animated caustics canvas — JS also paints a static fallback */
  #caustics-canvas { display: none; }
}

/* ------------------------------------------------------------
   3. Layout Utilities
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
}

/* ------------------------------------------------------------
   4. Typography Utilities
   ------------------------------------------------------------ */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  background: var(--clr-accent);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.15;
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--clr-text-muted);
  max-width: 52ch;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}

.section-header .section-subtitle {
  margin-inline: auto;
}

.text-accent {
  color: var(--clr-secondary);
}

/* ------------------------------------------------------------
   5. Button System
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--trans-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 44px;           /* WCAG 2.1 AA accessible touch target */
  touch-action: manipulation; /* Remove 300 ms tap delay on mobile */
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--trans-fast);
}

.btn:hover::after {
  background: rgba(255,255,255,0.08);
}

.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}

.btn-primary:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.5);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: var(--text-xs);
  padding: 0.625rem 1.25rem;
}

.btn-full {
  width: 100%;
}

/* ------------------------------------------------------------
   6. Navigation
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  /* Header itself is always transparent — the pill lives on .navbar */
}

/* Pill navbar on scroll */
.site-header.scrolled .navbar {
  background: rgba(248, 251, 252, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(28, 81, 97, 0.14),
    0 2px 8px rgba(28, 81, 97, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(28, 81, 97, 0.1);
  border-radius: var(--radius-full);
  /* Centered floating pill */
  width: min(calc(100% - 3rem), var(--container-max));
  max-width: var(--container-max);
  margin: 10px auto 0;
  height: calc(var(--nav-height) - 20px);
  padding-inline: 1.75rem;
}

.site-header.scrolled .nav-link {
  color: var(--clr-text);
}

.site-header.scrolled .nav-logo .logo-text {
  color: var(--clr-text);
}

.site-header.scrolled .logo-mark {
  /* logo image handles its own appearance */
}

.navbar {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  /* Smooth pill transition */
  border-radius: 0;
  transition:
    background 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    border-radius 0.4s var(--ease-out),
    margin 0.4s var(--ease-out),
    height 0.4s var(--ease-out),
    padding 0.4s var(--ease-out),
    max-width 0.4s var(--ease-out),
    border 0.4s var(--ease-out);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 48px;  /* Mobile-first — scales to 100 px at ≥ 768 px */
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--trans-base);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: -0.01em;
  transition: color var(--trans-base);
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: color var(--trans-fast), background var(--trans-fast);
  text-decoration: none;
  touch-action: manipulation;
}

.nav-link:hover {
  color: var(--clr-white);
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-white);
  background: var(--clr-primary);
  border: 2px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  margin-left: var(--sp-2);
  transition: all var(--trans-base);
  text-decoration: none;
  touch-action: manipulation;
}

.nav-cta:hover {
  background: var(--clr-white);
  color: var(--clr-primary);
  border-color: var(--clr-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Scrolled nav CTA */
.site-header.scrolled .nav-cta {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}

.site-header.scrolled .nav-cta:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;  /* Accessible touch target size */
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  transition: background var(--trans-fast);
  touch-action: manipulation;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.site-header.scrolled .nav-toggle:hover {
  background: var(--clr-accent);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: all var(--trans-base);
  transform-origin: center;
}

.site-header.scrolled .hamburger-line {
  background: var(--clr-text);
}

/* Hamburger → X animation */
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ------------------------------------------------------------
   7. Hero Section
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--nav-height) * 0.5);
  /* Solid brand colour beneath overlay — works even when no bg image is present */
  background-color: var(--clr-primary);
}

/* Hero background */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 81, 97, 0.82) 0%,
    rgba(28, 81, 97, 0.55) 50%,
    rgba(47, 126, 143, 0.40) 100%
  );
}

/* Caustic light canvas — full-bleed layer above the overlay
   mix-blend-mode: screen adds luminosity to the dark teal beneath,
   reproducing the look of refracted sunlight on a pool surface.
   Tweak opacity in script.js (MAX_OPACITY constant). */
#caustics-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;            /* above img + overlay, inside hero-media */
  pointer-events: none;
  mix-blend-mode: screen; /* adds light — never darkens */
}

/* Reduced-motion: canvas is hidden via the global block in section 2 */

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-16);
  /* Full viewport width so the heading margins are relative to the vw */
  width: 100%;
  max-width: 100vw;
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* centres badge, subtitle, buttons, stats */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(230, 244, 246, 0.15);
  border: 1px solid rgba(230, 244, 246, 0.3);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-6);
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.8s var(--ease-out) 0.2s both;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1.08;
  color: var(--clr-white);
  margin-bottom: var(--sp-6);
  letter-spacing: -0.02em;
  /* Span from 25 vw to 75 vw — first line left-aligned within that band */
  align-self: flex-start;
  width: 50vw;
  margin-left: 25vw;
  text-align: left;
  animation: fadeInUp 0.9s var(--ease-out) 0.4s both;
}

.hero-title-accent {
  color: var(--clr-accent);
  display: block;
  /* Right edge of accent aligns to the right edge of the 50 vw band (~75 vw) */
  text-align: right;
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-md));
  color: rgba(255,255,255,0.82);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: var(--sp-10);
  text-align: center;
  animation: fadeInUp 0.9s var(--ease-out) 0.55s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
  margin-bottom: var(--sp-16);
  animation: fadeInUp 0.9s var(--ease-out) 0.7s both;
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  animation: fadeInUp 0.9s var(--ease-out) 0.9s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 56px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  animation: fadeIn 1s var(--ease-out) 1.2s both;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--clr-white);
  border-radius: 50%;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(-10px); opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ------------------------------------------------------------
   8. About Section
   ------------------------------------------------------------ */
.about {
  background: var(--clr-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
  align-items: center;
  margin-bottom: var(--sp-20);
}

/* Image */
.about-image-wrap {
  position: relative;
}

.about-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/5;
  max-height: 560px;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(28, 81, 97, 0.3) 100%
  );
  z-index: 1;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-image-badge {
  position: absolute;
  bottom: var(--sp-6);
  left: var(--sp-6);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--clr-white);
  color: var(--clr-primary);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Content */
.about-content .section-title {
  margin-top: var(--sp-2);
}

.about-lead {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--clr-text);
  line-height: 1.65;
  margin-bottom: var(--sp-4);
}

.about-body {
  font-size: var(--text-base);
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.about-body:last-of-type {
  margin-bottom: var(--sp-8);
}

/* About Cards */
.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.about-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  transform: scaleX(0);
  transition: transform var(--trans-base);
  transform-origin: left;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-accent-mid);
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card-icon {
  width: 52px;
  height: 52px;
  background: var(--clr-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  margin-bottom: var(--sp-4);
  transition: all var(--trans-base);
}

.about-card:hover .about-card-icon {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.about-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
}

.about-card-text {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   9. Services Section
   ------------------------------------------------------------ */
.services {
  background: var(--clr-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  transition: all var(--trans-base);
  cursor: default;
}

.service-card-inner {
  padding: var(--sp-8);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: border-color var(--trans-base);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::after {
  border-color: var(--clr-accent-mid);
}

.service-icon {
  width: 58px;
  height: 58px;
  background: var(--clr-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  margin-bottom: var(--sp-5);
  transition: all var(--trans-base);
}

.service-card:hover .service-icon {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(28,81,97,0.2);
}

.service-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-3);
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

.service-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  background: var(--clr-accent);
  padding: 3px var(--sp-3);
  border-radius: var(--radius-full);
  transition: all var(--trans-base);
}

.service-card:hover .service-tag {
  background: var(--clr-accent-mid);
  color: var(--clr-primary);
}

/* ------------------------------------------------------------
   10. Benefits Section
   ------------------------------------------------------------ */
.benefits {
  background: var(--clr-primary);
  position: relative;
  overflow: hidden;
}

.benefits::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(47,126,143,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.benefits::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 35%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(230,244,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.benefits .section-label {
  background: rgba(230,244,246,0.12);
  color: var(--clr-accent);
}

.benefits .section-title {
  color: var(--clr-white);
}

.benefits .section-subtitle {
  color: rgba(255,255,255,0.72);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4); /* Was var(--sp-1) = 0.25 rem — too tight between cards */
  position: relative;
  z-index: 1;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-6);
  padding: var(--sp-8);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--trans-base);
}

.benefit-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateX(6px);
}

.benefit-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(230,244,246,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  transition: all var(--trans-base);
}

.benefit-item:hover .benefit-icon {
  background: var(--clr-secondary);
  color: var(--clr-white);
}

.benefit-title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--sp-2);
}

.benefit-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   11. Location Section
   ------------------------------------------------------------ */
.location {
  background: var(--clr-white);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: start;
}

.location-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  min-height: 320px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.location-details .section-title {
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.location-address {
  font-style: normal;
  margin-bottom: var(--sp-8);
}

.location-address-line {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.location-address-line svg {
  flex-shrink: 0;
  color: var(--clr-primary);
  margin-top: 3px;
}

.location-address-line strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--clr-text);
  display: block;
  margin-bottom: var(--sp-1);
}

.location-address-line p,
.location-address-line div {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.75;
}

.location-hours {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-8);
}

.location-hours-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
}

.location-hours-title svg {
  color: var(--clr-primary);
}

.hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--clr-border);
}

.hours-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hours-day {
  color: var(--clr-text);
  font-weight: 500;
}

.hours-time {
  color: var(--clr-secondary);
  font-weight: 600;
  font-family: var(--font-heading);
}

.hours-closed .hours-time {
  color: var(--clr-text-light);
}

.location-details .btn {
  display: inline-flex;
}

/* ------------------------------------------------------------
   12. Contact Section
   ------------------------------------------------------------ */
.contact {
  background: var(--clr-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: start;
}

/* Form */
.contact-form-wrap {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--sp-8), 4vw, var(--sp-12));
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

/* Floating label fields */
.form-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-input {
  width: 100%;
  padding: 1.1rem var(--sp-4) 0.5rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast), background var(--trans-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--clr-primary);
  background: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(28,81,97,0.1);
}

.form-input.has-error {
  border-color: var(--clr-error);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

/* Floating labels */
.form-label {
  position: absolute;
  top: 50%;
  left: var(--sp-4);
  transform: translateY(-50%);
  font-size: var(--text-sm);
  color: var(--clr-text-light);
  pointer-events: none;
  transition: all var(--trans-fast);
  background: transparent;
  padding: 0 var(--sp-1);
  line-height: 1;
}

/* Float label up when input has value or is focused */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: 10px;
  transform: translateY(0);
  font-size: var(--text-xs);
  color: var(--clr-primary);
  font-weight: 600;
}

/* Textarea adjustment */
.form-textarea {
  resize: vertical;
  min-height: 130px;
  padding-top: 1.5rem;
  line-height: 1.6;
}

.form-textarea + .form-label {
  top: 1.4rem;
  transform: none;
}

.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
  top: 10px;
  transform: none;
}

/* Select field */
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a6570' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-label-select {
  top: 50%;
  transform: translateY(-50%);
}

.form-select + .form-label-select,
.form-select:not([value=""]) + .form-label-select {
  top: 10px;
  transform: none;
  font-size: var(--text-xs);
  color: var(--clr-primary);
  font-weight: 600;
}

/* Workaround: float select label when a real value is chosen */
.form-select.is-filled + .form-label-select {
  top: 10px;
  transform: none;
  font-size: var(--text-xs);
  color: var(--clr-primary);
  font-weight: 600;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--clr-error);
  margin-top: var(--sp-1);
  min-height: 1em;
  font-weight: 500;
}

/* Submit button loading state */
.btn[data-loading="true"] {
  pointer-events: none;
  opacity: 0.75;
}

.form-status {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(26, 122, 74, 0.1);
  color: var(--clr-success);
  border: 1px solid rgba(26, 122, 74, 0.25);
}

.form-status.error {
  display: block;
  background: rgba(192, 57, 43, 0.08);
  color: var(--clr-error);
  border: 1px solid rgba(192, 57, 43, 0.2);
}

/* Contact info */
.contact-info-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--sp-8), 4vw, var(--sp-12));
  box-shadow: var(--shadow-sm);
}

.contact-info-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--clr-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  margin-top: 2px;
}

.contact-info-item strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--clr-text);
  font-size: var(--text-sm);
  display: block;
  margin-bottom: var(--sp-1);
}

.contact-info-item p {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.contact-social-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.social-links {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--clr-text-muted);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--trans-base);
  min-height: 44px; /* Touch target */
  touch-action: manipulation;
}

.social-link:hover {
  color: var(--clr-white);
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--clr-text);
  color: var(--clr-white);
  padding-block: var(--sp-16) var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--sp-8);
}

.footer-brand .nav-logo {
  margin-bottom: var(--sp-4);
}

.footer-logo .logo-mark {
  /* logo image adapts naturally in the footer */
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--trans-fast);
}

.footer-nav a:hover {
  color: var(--clr-white);
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;  /* Accessible touch target */
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  transition: all var(--trans-base);
  touch-action: manipulation;
}

.footer-social a:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: center;
  text-align: center;
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
}

.footer-made {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.footer-made a {
  color: var(--clr-accent);
  font-weight: 600;
  transition: color var(--trans-fast);
}

.footer-made a:hover {
  color: var(--clr-white);
}

/* ------------------------------------------------------------
   14. Scroll Reveal Animations
   ------------------------------------------------------------ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translate(0);
}

/* Entry animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==============================================================
   RESPONSIVE DESIGN — Mobile-first cascade
   Breakpoints: ≤479 | ≤767 | ≥640 | ≥768 | ≥1024 | ≥1280
   Special: landscape phones, touch devices, print, dark mode
   ============================================================== */

/* ── GLOBAL OVERFLOW GUARD ──────────────────────────────────────────────
   Belt-and-braces: none of these containers should ever be
   wider than the viewport on any screen size.               */
.container,
.hero-content,
.about-grid,
.services-grid,
.benefits-grid,
.location-grid,
.contact-grid,
.footer-grid { max-width: 100%; }

/* ── TOUCH DEVICES — disable hover transforms ─────────────────────
   On touch screens hover states have no real trigger —
   transforms applied on tap can get “stuck”. This modifier
   targets touch-only devices via the pointer media feature.  */
@media (hover: none) {
  .about-card:hover,
  .service-card:hover,
  .benefit-item:hover,
  .social-link:hover,
  .footer-social a:hover  { transform: none; box-shadow: none; }
  .about-card:hover::before { transform: scaleX(0); }
  .btn-primary:hover,
  .btn-ghost:hover          { transform: none; box-shadow: none; }
}

/* ── ALL PHONES + SMALL TABLETS (≤ 767px) ───────────────────────
   Mobile navigation, hero text centring, and section layout
   adjustments for viewports up to 767px.                     */
@media (max-width: 767px) {
  /* Show hamburger; desktop nav items are pushed off-screen */
  .nav-toggle { display: flex; }

  /* Tighter pill margin on narrow viewports */
  .site-header.scrolled .navbar {
    width: min(calc(100% - 1.5rem), var(--container-max));
    padding-inline: 1rem;
  }

  /* Full-screen slide-in overlay menu */
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--clr-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-4) var(--sp-6);
    /* iOS safe area: stop content hiding behind home indicator */
    padding-bottom: calc(var(--sp-8) + env(safe-area-inset-bottom, 0px));
    transform: translateX(100%);
    transition: transform var(--trans-slow);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }
  .nav-menu.is-open { transform: translateX(0); }

  /* Large, finger-friendly nav links (52 px tap target) */
  .nav-link {
    color: var(--clr-text);
    font-size: var(--text-md);
    padding: var(--sp-4);
    min-height: 52px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--clr-border);
    border-radius: 0;
  }
  .nav-link:hover { background: var(--clr-accent); color: var(--clr-primary); }

  /* “Book Now”: full-width block button */
  .nav-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--sp-4) 0 0;
    width: 100%;
    padding: var(--sp-4);
    min-height: 52px;
    border-radius: var(--radius-md);
    border-color: var(--clr-primary);
    color: var(--clr-white);
    background: var(--clr-primary);
    font-size: var(--text-md);
  }

  /* Hero: safe-edge padding + centred heading */
  .hero-content { padding-inline: 1.25rem; }
  .hero-title   { width: 100%; margin-left: 0; text-align: center; }
  .hero-title-accent { text-align: center; }
  .hero-subtitle     { max-width: 100%; }

  /* About: cap image height so it doesn’t dominate small screens */
  .about-image-frame { max-height: 420px; }

  /* Benefits: tighter padding, no horizontal-slide on touch */
  .benefit-item { padding: var(--sp-5) var(--sp-4); gap: var(--sp-4); }
  .benefit-item:hover { transform: none; }
}

/* ── TINY PHONES (≤ 479px) ──────────────────────────────────────────────
   iPhone SE 1st gen (320px), entry Android phones (360px)    */
@media (max-width: 479px) {
  /* Stack hero CTAs — each button is full-width and easy to tap */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-inline: 1.25rem;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Stats bar: wrap into two rows, hide decorative dividers */
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: var(--sp-4); }
  .hero-stat-divider { display: none; }

  /* Badge: shrink to prevent overflow on 320px screens */
  .hero-badge { font-size: 0.65rem; padding: var(--sp-1) var(--sp-3); text-align: center; }

  /* Service cards: tighter padding to fit 2-up on small tablets */
  .service-card-inner { padding: var(--sp-6); }

  /* Location CTA: full width */
  .location-details .btn { width: 100%; justify-content: center; }

  /* Social links: stack vertically for easier tapping */
  .social-links { flex-direction: column; }
  .social-link  { justify-content: center; }
}

/* ── PHABLET + TABLET PORTRAIT (≥ 640px) ──────────────────────────
   Two-column grids kick in; nav is still the mobile
   hamburger version until 768px.                              */
@media (min-width: 640px) {
  .form-row      { grid-template-columns: 1fr 1fr; }
  .about-cards   { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ── TABLET LANDSCAPE + SMALL LAPTOP (≥ 768px) ───────────────────
   Nav height scales to 100px; logo scales up; hero heading
   regains its asymmetric layout; sections become multi-column.*/
@media (min-width: 768px) {
  :root { --nav-height: 100px; } /* Restore full nav height */

  /* Scale logo up to match full nav height */
  .logo-mark { width: 100px; height: 100px; }

  /* Hero: asymmetric heading — start of first line at 20vw */
  .hero-title {
    align-self: flex-start;
    width: 60vw;
    margin-left: 20vw;
    text-align: left;
  }
  .hero-title-accent { text-align: right; }

  /* About: side-by-side */
  .about-grid    { grid-template-columns: 1fr 1fr; gap: var(--sp-12); }

  /* Services: 3 columns at tablet */
  .services-grid { grid-template-columns: repeat(3, 1fr); }

  /* Location: map | details side by side */
  .location-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: start; }

  /* Contact: wider form | info card */
  .contact-grid  { grid-template-columns: 1.2fr 0.8fr; gap: var(--sp-10); align-items: start; }

  /* Footer: brand (2fr) | nav | social */
  .footer-grid   { grid-template-columns: 2fr 1fr 1fr; }
}

/* ── DESKTOP (≥ 1024px) ──────────────────────────────────────────────
   Full multi-column layouts; sticky map; expanded gaps.      */
@media (min-width: 1024px) {
  .about-grid    { grid-template-columns: 1fr 1fr; gap: var(--sp-20); }
  .about-cards   { grid-template-columns: 1fr 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }

  /* Location: wider gap; map becomes sticky while details scroll */
  .location-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: start; }
  .location-map  {
    position: sticky;
    top: calc(var(--nav-height) + var(--sp-8));
    aspect-ratio: auto;
    height: 520px;
  }

  .contact-grid { grid-template-columns: 1.2fr 0.8fr; gap: var(--sp-12); }
  .footer-grid  { grid-template-columns: 2fr 1fr 1fr; align-items: start; }

  /* Hero: full asymmetric band (25vw start → 75vw end) */
  .hero-title { width: 50vw; margin-left: 25vw; }
}

/* ── WIDE DESKTOP (≥ 1280px) ──────────────────────────────────────
   Existing layouts work well — minor grid reinforcements.    */
@media (min-width: 1280px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── LANDSCAPE PHONES ──────────────────────────────────────────────
   Rotated phones can have viewport heights as low as 320px.
   min-height: 100vh forces a very tall hero — let content
   determine the height instead, and drop elements that won’t
   fit comfortably.                                           */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: auto;
    padding-block: calc(var(--nav-height) + var(--sp-8)) var(--sp-8);
    align-items: flex-start;
  }
  .hero-scroll-hint { display: none; }
  .hero-badge       { margin-bottom: var(--sp-3); }
  .hero-subtitle    { margin-bottom: var(--sp-4); }
  .hero-actions     { margin-bottom: var(--sp-5); }
  .hero-stats       { display: none; } /* Too cramped in landscape */
}

/* ── PRINT ──────────────────────────────────────────────────────────*/
@media print {
  .site-header,
  .hero-scroll-hint,
  .hero-actions,
  .nav-toggle,
  .contact-form-wrap,
  #caustics-canvas { display: none !important; }

  body   { font-size: 12pt; color: #000; background: #fff; }
  .hero  { min-height: auto; padding: 2cm 0; background: none !important; color: #000; }

  /* Print URLs after external links */
  a[href]:not([href^="#"])::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #444;
  }
}

/* ── DARK MODE AWARENESS ─────────────────────────────────────────
   No forced dark theme — signals the browser so system UI
   (scrollbars, form controls) can follow user preference.    */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light dark; }
}

/* ── FOUC guard ──────────────────────────────────────────────
   Prevent last nav item from growing during page load.       */
.nav-menu li:last-child { flex-shrink: 0; }
