/* =====================================================
   VBharat theme — colors taken from the VBharat logo
   (saffron -> white -> green)
   ===================================================== */

:root {
  /* Brand colors */
  --saffron: #f26a28;
  --saffron-dark: #d4561a;
  --saffron-light: #f7a06f;
  --cream: #fbeee2;
  --white: #ffffff;
  --green: #1e6b35;
  --green-dark: #154d26;
  --green-light: #8fae94;

  /* Logo gradient */
  --brand-gradient: linear-gradient(180deg, var(--saffron) 0%, var(--cream) 50%, var(--green) 100%);
  --brand-gradient-h: linear-gradient(90deg, var(--saffron) 0%, var(--saffron-light) 35%, var(--green-light) 65%, var(--green) 100%);

  /* UI colors */
  --bg: #fffaf5;
  --surface: #ffffff;
  --text: #1f2a22;
  --text-muted: #5b6660;
  --border: #eadfd4;

  --radius: 12px;
  --shadow: 0 4px 16px rgba(31, 42, 34, 0.08);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Sora", var(--font);
}

/* All headings use Sora; body text stays Poppins */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--saffron-dark); text-decoration: none; }
a:hover { color: var(--green); }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* ---------- Header / Navbar ---------- */
.site-header {
  background: #f6f6f6;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
/* Added by JS once the page is scrolled */
.site-header.scrolled {
  background: rgba(246, 246, 246, 0.92); /* #f6f6f6, slightly see-through */
  box-shadow: 0 6px 24px rgba(31, 42, 34, 0.1);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  position: relative;
  transition: padding 0.3s ease;
}
.site-header.scrolled .navbar { padding-block: 8px; }

/* Logo */
.logo img {
  height: 28px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
.logo:hover img { transform: scale(1.06); }

/* ---------- Liquid glass menu (desktop) ----------
   Layers inside .nav, back to front:
   .lq-glass (frosted pill) -> .lq-water (WebGL water) or .lq-drop (CSS fallback) -> links */
.nav {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lq-glass {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(1.3) brightness(1.06);
  -webkit-backdrop-filter: blur(12px) saturate(1.3) brightness(1.06);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(31, 42, 34, 0.06),
    0 12px 32px -14px rgba(140, 60, 10, 0.35),
    0 2px 6px rgba(31, 42, 34, 0.06);
}
/* Canvas is bigger than the pill (14px each side) so ripples and shadows can bleed */
.lq-water {
  position: absolute;
  left: -14px;
  top: -14px;
  z-index: -1;
  pointer-events: none;
}
.nav[data-gl="off"] .lq-water { display: none; }
.lq-drop {
  display: none;
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  will-change: transform, width;
  background:
    radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 55%),
    rgba(242, 106, 40, 0.5);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -2px 6px rgba(212, 86, 26, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 6px 16px -6px rgba(212, 86, 26, 0.5);
}
.nav[data-gl="off"] .lq-drop { display: block; }

.nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.25s;
}
.nav a:hover { color: var(--saffron-dark); }
.nav a.active { color: var(--text); }
.nav a:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }

/* Smooth scrolling to sections, leaving room for the sticky header */
html { scroll-behavior: smooth; }
/* Lenis smooth scroll (static/js/smooth.js) takes over from the browser's own */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
section[id] { scroll-margin-top: 80px; }

/* ---------- Phone button ----------
   Hover: saffron fills in from where the cursor enters, the number rolls up
   letter by letter, icon shakes. The button itself stays in place.
   --x/--y (fill origin) are set by navbar.js. */
.btn-call {
  --x: 50%;
  --y: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  animation: callPulse 2.4s ease-out infinite;
  transition: transform 0.15s ease;
}
.btn-call:hover { color: var(--white); }
.btn-call:active { transform: scale(0.95); }

/* Saffron circle that grows from the cursor's entry point */
.call-fill {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: -1;
  width: 240%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--saffron);
  transform: translate(-50%, -50%) scale(0);
  /* leaving: color drains away */
  transition: transform 0.8s cubic-bezier(0.45, 0, 0.25, 1);
  pointer-events: none;
}
/* entering: color spreads slowly across the button */
.btn-call:hover .call-fill {
  transform: translate(-50%, -50%) scale(1);
  transition: transform 1.2s cubic-bezier(0.45, 0, 0.25, 1);
}

.call-icon,
.call-text {
  position: relative;
  display: inline-flex;
}

.call-icon svg { animation: phoneRing 3s ease-in-out infinite; }
.btn-call:hover .call-icon svg { animation: phoneShake 0.45s ease-in-out infinite; }

/* Letter roll: each letter has a copy below it (text-shadow) and slides up */
.call-text {
  overflow: hidden;
  height: 1.3em;
  line-height: 1.3em;
}
.call-text .ch {
  display: inline-block;
  white-space: pre;
  text-shadow: 0 1.3em 0 currentColor;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  transition-delay: calc(var(--i) * 20ms);
}
.btn-call:hover .call-text .ch { transform: translateY(-1.3em); }

@keyframes phoneShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-16deg) scale(1.1); }
  75% { transform: rotate(16deg) scale(1.1); }
}

@keyframes callPulse {
  0%   { box-shadow: 0 0 0 0 rgba(30, 107, 53, 0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(30, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 107, 53, 0); }
}
@keyframes phoneRing {
  0%, 76%, 100% { transform: rotate(0); }
  80% { transform: rotate(-15deg); }
  84% { transform: rotate(15deg); }
  88% { transform: rotate(-10deg); }
  92% { transform: rotate(10deg); }
}

/* Page-load entrance: items drop in one after another */
.navbar > .logo,
.navbar > .nav,
.navbar > .btn-call,
.navbar > .nav-toggle {
  animation-name: navDrop;
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: backwards;
}
.navbar > .nav { animation-delay: 0.1s; }
.navbar > .btn-call {
  animation: navDrop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards,
             callPulse 2.4s ease-out 0.8s infinite;
}
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hamburger button (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, background 0.2s;
}
/* hover only on devices with a mouse, so it doesn't stick after a tap */
@media (hover: hover) {
  .nav-toggle:hover { border-color: var(--saffron); }
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.2s, background 0.2s; }
.nav-toggle.open { border-color: var(--saffron); background: var(--cream); }
.nav-toggle.open span { background: var(--saffron); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Tablet: hide phone number text, keep the icon */
@media (max-width: 1100px) {
  .nav a { padding: 0 11px; }
  /* icon-only round call button, same size as the menu button */
  .btn-call {
    width: 42px;
    height: 42px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }
  .navbar > .btn-call { animation: navDrop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards; } /* no pulse halo */
  .call-text { display: none; }
}

/* ---------- Mobile: menu becomes a side drawer ---------- */
@media (max-width: 860px) {
  .navbar { gap: 10px; }
  .nav-toggle { display: flex; order: 3; margin-left: 0; }
  .btn-call { order: 2; }
  .logo { margin-right: auto; }
  .navbar > .nav { animation: none; }
  /* backdrop-filter would trap the fixed drawer inside the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* Liquid effect is desktop-only */
  .lq-glass, .lq-water, .lq-drop, .nav[data-gl="off"] .lq-drop { display: none; }

  /* Drawer slides in from the right, full height */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
    width: min(86vw, 360px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 24px;
    border-radius: 0;
    background: var(--white);
    box-shadow: -24px 0 48px -24px rgba(31, 42, 34, 0.35);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.45s;
  }
  .nav.open {
    transform: none;
    visibility: visible;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  }

  /* Top row of the drawer, lined up with the ✕ button */
  .m-head {
    display: flex;
    align-items: center;
    flex: none;
    height: 70px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
  }
  .m-head img { display: block; height: 26px; width: auto; }

  /* Links: large rows with thin dividers */
  .nav > a {
    --d: 0s;
    position: relative;
    overflow: hidden;
    flex: none;
    justify-content: space-between;
    height: auto;
    padding: 18px 2px;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.2s, transform 0.2s, color 0.25s;
  }
  .nav > a:nth-of-type(1) { --d: 0.12s; }
  .nav > a:nth-of-type(2) { --d: 0.17s; }
  .nav > a:nth-of-type(3) { --d: 0.22s; }
  .nav > a:nth-of-type(4) { --d: 0.27s; }
  .nav > a:nth-of-type(5) { --d: 0.32s; }
  .nav > a:nth-of-type(6) { --d: 0.37s; }
  .nav.open > a {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s, padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d), var(--d), 0s, 0s;
  }
  .nav > a.active { color: var(--saffron); font-weight: 600; padding-left: 16px; }

  /* Saffron bar on the left of the current link */
  .nav > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 3px;
    background: var(--saffron);
    transform: translateY(-50%);
    transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav > a.active::before { height: 24px; }

  /* Chevron on the right */
  .nav > a::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-top: 1.8px solid #c2c2c2;
    border-right: 1.8px solid #c2c2c2;
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s;
  }
  .nav > a.active::after { border-color: var(--saffron); }
  @media (hover: hover) {
    .nav > a:not(.active):hover { color: var(--saffron-dark); }
    .nav > a:hover::after { border-color: var(--saffron); transform: translateX(3px) rotate(45deg); }
  }

  /* Soft grey ripple where a link is tapped */
  .tap-ripple {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: rgba(31, 42, 34, 0.08);
    transform: scale(0);
    animation: tapRipple 0.6s ease-out forwards;
    pointer-events: none;
  }
  @keyframes tapRipple { to { transform: scale(40); opacity: 0; } }

  /* Bottom of the drawer: call and booking buttons */
  .m-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: none;
    margin-top: auto;
    padding: 28px 0 32px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav.open .m-foot {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease 0.42s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.42s;
  }
  .m-foot small {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .m-foot a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.25s, color 0.25s, transform 0.15s;
  }
  .m-foot a:active { transform: scale(0.98); }
  .nav .m-call { background: var(--green); color: var(--white); }
  .nav .m-call:hover { background: var(--green-dark); color: var(--white); }
  .nav .m-book { border: 1.5px solid var(--saffron); color: var(--saffron-dark); }
  .nav .m-book:hover { background: var(--saffron); color: var(--white); }

  /* ☰ stays on top of the drawer and turns into ✕ */
  .nav-toggle {
    position: relative;
    z-index: 102;
    transition: border-color 0.2s, background 0.2s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .nav-toggle.open { transform: rotate(180deg); }

  /* Dim the page (and header) behind the drawer; tapping it closes the menu */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(20, 28, 22, 0.38);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0s linear 0.4s;
  }
  body.menu-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity 0.4s, visibility 0s; }
  body.menu-open { overflow: hidden; }
}

/* Mobile-only parts are hidden on desktop */
@media (min-width: 861px) {
  .m-head, .m-foot, .nav-backdrop { display: none; }
}

/* Respect users who turn off animations in their system settings */
@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-header *::before,
  .site-header *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--saffron); color: var(--white); }
.btn-primary:hover { background: var(--saffron-dark); color: var(--white); }
.btn-secondary { background: var(--green); color: var(--white); }
.btn-secondary:hover { background: var(--green-dark); color: var(--white); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ---------- Hero (home page top) ---------- */
.hero {
  /* Height comes from the content + padding (no full-screen stretch) */
  display: flex;
  align-items: center;
  background: #f6f6f6;
  padding: 40px 0 0; /* hero ends right at the bottom of the photo */
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero-grid > * { min-width: 0; } /* stop wide content from stretching the page */

/* Left: text */
.hero-title {
  margin: 0 0 22px;
  font-size: clamp(1.6rem, 2.7vw, 2.3rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-title .accent { color: var(--saffron); }
.hero-text {
  margin: 0 0 36px;
  max-width: 430px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

/* Hero buttons
   Hover: "water fill" - liquid rises from the bottom with a slowly rolling,
   wavy top edge. The button itself doesn't move. */
.hero-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 30px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.4s, border-color 0.4s, transform 0.15s;
}
.hero-btn:active { transform: scale(0.97); }
.hero-btn:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }

/* The water: a big, slightly square-ish blob below the button that rises
   on hover and keeps turning, so its top edge looks like a moving wave */
.hero-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 320%; /* far enough below that its rotating corners never peek in */
  z-index: -1;
  width: 230%;
  aspect-ratio: 1;
  border-radius: 42%;
  transform: translateX(-50%) rotate(0deg);
  transition: top 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  animation: heroWave 5s linear infinite;
}
.hero-btn:hover::before { top: -45%; }
@keyframes heroWave {
  to { transform: translateX(-50%) rotate(360deg); }
}

.hero-btn-primary {
  background: var(--saffron);
  color: var(--white);
}
.hero-btn-primary::before { background: var(--saffron-dark); }
.hero-btn-primary:hover { color: var(--white); }

.hero-btn-outline {
  background: var(--white);
  color: var(--text);
  border: 1px solid #dcdcdc;
}
.hero-btn-outline::before { background: var(--green); }
.hero-btn-outline:hover {
  color: var(--white);
  border-color: var(--green);
}

@media (prefers-reduced-motion: reduce) {
  .hero-btn::before { animation: none; transition: none; }
}

/* Trust card: avatars + rating */
.trust-card {
  display: inline-block;
  padding: 12px 16px 12px 12px;
  background: var(--white);
  border: 1px solid #e3e3e3;
  border-radius: 12px;
}
.trust-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatars { display: flex; }

/* Round face photos. Each source photo is a wide shot, so it is zoomed in on
   the face: --size = how far to zoom, --pos = where the face is. */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px #dcdcdc; /* thin grey ring outside the white border */
  background-color: #eef0f2;
  background-repeat: no-repeat;
  background-image: var(--img);
  background-size: var(--size);
  background-position: var(--pos);
}
.avatar + .avatar { margin-left: -8px; }
.avatar-1 { --img: url("../images/avtar_4.jpg"); --size: 294%; --pos: 49% 11%; }
.avatar-2 { --img: url("../images/avtar_3.jpg"); --size: 202%; --pos: 46% 34%; }
.avatar-3 { --img: url("../images/avtar_2.jpg"); --size: 417%; --pos: 60% 10%; }
.avatar-4 { --img: url("../images/avtar_1.jpg"); --size: 303%; --pos: 69% 7%; }

.rating { line-height: 1.15; }
.rating strong {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.rating strong svg { color: var(--saffron); }
.rating small { display: block; font-size: 0.65rem; color: var(--text-muted); }
.trust-card p { margin: 0; font-size: 0.75rem; color: var(--text); }
.trust-card p b { font-weight: 600; }

/* Right: photo with a soft panel behind it */
.hero-media {
  position: relative;
  justify-self: center;
  /* also limited by screen height so short laptop screens still fit */
  width: min(100%, 440px, calc(100svh - var(--header-h, 74px) - 150px));
}
.hero-media::before {
  content: "";
  position: absolute;
  top: 32%;
  left: -16%;
  right: -16%;
  bottom: -600px; /* runs past the section and is cut flat by overflow: hidden */
  z-index: 0;
  border-radius: 40px;
  background: var(--cream);
}
.hero-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto; /* let aspect-ratio decide, not the height="" attribute */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 72% center;
  border-radius: 40px;
  box-shadow: 0 20px 40px -20px rgba(31, 42, 34, 0.35);
}

/* Tablet and mobile: stack text above the photo */
@media (max-width: 900px) {
  .hero { padding: 24px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-actions { gap: 16px; margin-bottom: 36px; }
}
@media (max-width: 480px) {
  .hero-btn { flex: 1; min-width: 0; padding: 0 16px; }
}

/* Desktop: the hero is only as tall as its content, with small top/bottom
   space. Text and photo are centred together; the grey panel behind the
   photo runs down to the bottom edge and is cut flat there. */
@media (min-width: 901px) {
  .hero { padding: 32px 0 52px; } /* 52px: strip of grey panel under the photo */
  .hero-media {
    /* square photo (up to 440px, 600px on large screens); the screen-height
       limit keeps it fitting on short laptop screens */
    width: min(100%, var(--hero-photo-max, 440px),
               calc(100svh - var(--header-h, 74px) - 150px));
  }
}

/* ---------- Sections & cards ---------- */
.section { padding: 64px 0; }
.section-title { text-align: center; margin: 0 0 40px; font-size: 2rem; }
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--brand-gradient-h);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--saffron);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card:nth-child(even) { border-top-color: var(--green); }
.card h3 { margin-top: 0; color: var(--green-dark); }


/* ---------- About section ---------- */
.about {
  overflow-x: clip; /* hide the slide-in offset of revealed items */
  background: var(--white);
  padding: 40px 0 32px;
}
.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 72px;
}

/* Small grey label above section headings, e.g. "ABOUT COMPANY" */
.section-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 20px;
  border-radius: 10px;
  background: #eeeeee;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.about-title {
  max-width: 470px;
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}
.about-highlight {
  justify-self: end;
  width: min(100%, 470px);
  margin: 0;
  padding: 30px 28px;
  border-radius: 10px;
  background: var(--saffron);
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.stat-num {
  font-size: clamp(2rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--saffron);
  font-variant-numeric: tabular-nums; /* digits keep the same width while counting */
}
.stat-num::after {
  content: "";
  display: block;
  max-width: 240px;
  margin: 22px 0 20px;
  border-top: 1px solid #dddddd;
}
.stat-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}
.stat-text {
  max-width: 280px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #9a9a9a;
}

@media (max-width: 900px) {
  .about { padding: 32px 0 28px; }
  .about-top { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .about-highlight { justify-self: stretch; width: 100%; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .stat-num::after, .stat-text { max-width: none; }
}

/* =====================================================
   Scroll reveal (driven by static/js/reveal.js)
   Add data-reveal to any element:
     data-reveal          fade up
     data-reveal="left"   slide in from the left
     data-reveal="right"  slide in from the right
     data-reveal="zoom"   scale up
     data-reveal="words"  heading: words slide up one by one from a mask
     data-reveal="scrub"  heading: words fill in as you scroll (and un-fill back up)
   Optional delay: style="--rd: 0.2s"
   Elements are only hidden when JS is running (html.js), so the page
   still shows everything if JS fails.
   ===================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s ease var(--rd, 0s),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--rd, 0s);
}
.js [data-reveal="left"]  { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="zoom"]  { transform: scale(0.92); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Word-by-word heading reveal */
.js [data-reveal="words"] { opacity: 1; transform: none; }
.rw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em; /* room for letters like g, y */
  margin-bottom: -0.1em;
}
.rw > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--rd, 0s) + var(--wi, 0) * 55ms);
}
.is-visible .rw > span { transform: none; }

/* Scroll-linked fill: words fade in as you scroll (opacity set by reveal.js) */
.js [data-reveal="scrub"] { opacity: 1; transform: none; transition: none; }
.sw { opacity: 0.15; transition: opacity 0.15s linear; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .rw > span { transform: none; transition: none; }
}

/* ---------- Large desktop screens ---------- */
@media (min-width: 1440px) {
  .container { width: min(1280px, 100% - 64px); }

  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
  .hero-title { font-size: 2.65rem; }
  .hero-text { max-width: 500px; font-size: 1.12rem; }
  .hero-btn { height: 54px; padding: 0 34px; font-size: 0.9rem; }
  .hero-media { --hero-photo-max: 600px; } /* bigger hero photo on wide screens */

  .about { padding: 56px 0 40px; }
  .about-top { margin-bottom: 88px; }
  .about-title { max-width: 560px; font-size: 2.3rem; }
  .about-highlight { width: min(100%, 540px); padding: 34px 32px; font-size: 1.02rem; }
  .stat-num { font-size: 2.9rem; }
  .stat-title { font-size: 1.15rem; }
  .stat-text { max-width: 320px; font-size: 0.95rem; }
}

/* =====================================================
   Services section (tabs + cards; behaviour in static/js/services.js)
   ===================================================== */
.services {
  overflow-x: clip;
  padding: 36px 0 48px;
  background: #f6f6f6;
}
.sec-title {
  max-width: 13em; /* breaks as: We Provide Most Popular / Repair Services */
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}
.services .section-tag { background: var(--white); text-transform: none; letter-spacing: 0; font-size: 0.75rem; }
.services-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}
.services-intro {
  max-width: 300px;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: right;
  color: var(--text-muted);
}
.services-body {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: stretch; /* tabs column grows to the cards' height */
  gap: 36px;
}
.services-body > :first-child { display: flex; flex-direction: column; }

/* ---------- Tabs ---------- */
.svc-tabs { flex: 1; display: flex; flex-direction: column; gap: 22px; margin-top: 14px; }
.svc-tab {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: block;
  width: 100%;
  flex: 1; /* tabs share the full height */
  min-height: 62px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--white);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.35s;
}
.svc-tab:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
/* Saffron fill: a circle that spreads out from where the tab was clicked
   (--x/--y, set by services.js) and shrinks back into that point when the
   tab is left. Keyboard use starts from near the number. */
.svc-tab {
  --x: 15%;
  --y: 70%;
  --mx: 50%;
  --my: 50%;
}
.svc-tab::before {
  content: "";
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: -1;
  width: max(260%, 360px); /* big enough to cover the tab from any corner */
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--saffron);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1);
}
.svc-tab.is-active::before { transform: translate(-50%, -50%) scale(1); }
/* soft saffron glow that follows the cursor over inactive tabs */
@media (hover: hover) {
  .svc-tab:not(.is-active):hover {
    background:
      radial-gradient(circle 140px at var(--mx) var(--my), rgba(242, 106, 40, 0.14), rgba(242, 106, 40, 0) 70%),
      var(--white);
  }
}

/* big number, half hidden below the bottom edge */
.svc-num {
  position: absolute;
  left: 28px;
  bottom: -0.3em;
  font-size: 5.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #e4e4e4;
  transition: color 0.45s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-label {
  position: absolute;
  left: 46%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a8a8;
  transition: color 0.4s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
/* small square dot that appears to the left of the label (like the reference) */
.svc-label::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 2px;
  background: var(--saffron);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.35s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s;
}
@media (hover: hover) {
  .svc-tab:not(.is-active):hover { box-shadow: 0 10px 24px -14px rgba(31, 42, 34, 0.35); }
  .svc-tab:not(.is-active):hover .svc-num { color: rgba(242, 106, 40, 0.28); transform: translateY(-0.1em); }
  .svc-tab:not(.is-active):hover .svc-label { color: var(--text); transform: translate(14px, -50%); }
  .svc-tab:not(.is-active):hover .svc-label::before { opacity: 1; transform: scale(1); }
}
.svc-tab.is-active .svc-num { color: rgba(255, 255, 255, 0.95); transform: translateY(-0.12em); }
.svc-tab.is-active .svc-label { color: var(--white); transform: translate(14px, -50%); }
.svc-tab.is-active .svc-label::before { opacity: 1; transform: scale(1); background: var(--white); }


/* ---------- Cards ---------- */
.svc-panels { display: grid; }
.svc-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.35s;
  perspective: 1000px; /* depth for the hover tilt */
}
.svc-panel.is-active { visibility: visible; pointer-events: auto; transition: none; }

/* Reveal (each time the panel becomes active), per card, one after another:
   1. 3D flip-in: the card swings up from lying flat (hinged at its bottom edge)
   2. title rises into place
   3. description fades in
   The flip uses the separate "rotate"/"translate" properties so it doesn't
   clash with the hover tilt, which uses "transform"
   Hover: card tilts toward the cursor with a light glare (--rx/--ry/--gx/--gy
   set by services.js). */
.svc-card {
  --d: 0s;
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  opacity: 0;
  transform-origin: 50% 100%;
  rotate: x 75deg;
  translate: 0 40px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition:
    opacity 0.25s ease,
    rotate 0.35s ease-in,
    translate 0.35s ease-in,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s;
}
.svc-panel.is-active .svc-card {
  opacity: 1;
  rotate: x 0deg;
  translate: 0 0;
  transition:
    opacity 0.5s ease var(--d),
    rotate 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--d),
    translate 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--d),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s;
}
.svc-panel.is-active .svc-card.is-tilting { transition-duration: 0.5s, 1.1s, 1.1s, 0.12s, 0.35s; }
.svc-panel.is-active .svc-card:nth-child(1) { --d: 0.15s; }
.svc-panel.is-active .svc-card:nth-child(2) { --d: 0.27s; }
.svc-panel.is-active .svc-card:nth-child(3) { --d: 0.39s; }
.svc-panel.is-active .svc-card:nth-child(4) { --d: 0.51s; }

/* light glare that follows the cursor */
.svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(circle 220px at var(--gx) var(--gy), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.svc-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.svc-img img {
  display: block;
  width: 100%;
  height: 100%;
  height: 120% !important; /* taller than the frame so the parallax drift never shows an edge */
  margin-top: -10%;
  object-fit: cover;
  transition: scale 1.2s cubic-bezier(0.22, 1, 0.36, 1); /* hover zoom */
}
/* dark fade at the bottom so the white title stays readable */
.svc-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}
.svc-img h3 {
  position: absolute;
  left: 14px;
  bottom: 10px;
  z-index: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.2s, transform 0.2s;
}
.svc-panel.is-active .svc-img h3 {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease calc(var(--d) + 0.5s), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--d) + 0.5s);
}
/* saffron underline that grows under the title on hover */
.svc-img h3::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--saffron);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-card p {
  margin: 0;
  padding: 10px 12px 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}
.svc-panel.is-active .svc-card p {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease calc(var(--d) + 0.6s), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--d) + 0.6s);
}
@media (hover: hover) {
  .svc-card:hover { box-shadow: 0 22px 40px -22px rgba(31, 42, 34, 0.5); }
  .svc-card:hover::after { opacity: 1; }
  .svc-card:hover .svc-img img { scale: 1.08; }
  .svc-card:hover .svc-img h3::after { width: 32px; }
}

/* ---------- Tablet & mobile ---------- */
@media (max-width: 900px) {
  .services { padding: 28px 0 36px; }
  .services-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
  .services-intro { text-align: left; max-width: none; }
  .services-body { grid-template-columns: 1fr; gap: 20px; }
  .svc-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 0; }
  .svc-tab { flex: none; min-height: 0; height: 64px; border-radius: 12px; }
  .svc-num { left: 12px; bottom: -14px; font-size: 2.6rem; }
  .svc-label, .svc-tab.is-active .svc-label { left: 12px; top: 12px; transform: none !important; font-size: 0.68rem; letter-spacing: 0.06em; }
  .svc-label::before { display: none; }
  .svc-tab.is-active .svc-num { transform: translateY(-6px); }
}
@media (max-width: 560px) {
  .svc-panel { grid-template-columns: 1fr; }
}

/* ---------- Large desktop ---------- */
@media (min-width: 1440px) {
  .services { padding: 44px 0 56px; }
  .sec-title { font-size: 2.3rem; }
  .services-intro { font-size: 0.95rem; max-width: 340px; }
  .services-body { gap: 48px; }
  .svc-tab { min-height: 72px; }
  .svc-num { font-size: 6.4rem; }
  .svc-label { font-size: 1.15rem; }
  .svc-card p { font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-tab::before, .svc-num, .svc-label, .svc-card, .svc-img, .svc-img img, .svc-img h3, .svc-card p { transition: none !important; }
  .svc-card { transform: none !important; rotate: none !important; translate: none !important; }
}

/* =====================================================
   Gallery slider (behaviour in static/js/gallery.js)
   ===================================================== */
.gallery {
  overflow: hidden;
  padding: 40px 0 16px;
  background: var(--white);
}
.gallery-head { text-align: center; margin-bottom: 36px; }
.gallery .section-tag { text-transform: none; letter-spacing: 0; font-size: 0.75rem; }
.gallery-title { max-width: 16em; margin: 0 auto; }

.g-viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y; /* vertical page scroll still works on phones */
  user-select: none;
  -webkit-user-select: none;
}
.g-viewport.is-dragging { cursor: grabbing; }
.g-track {
  --skew: 0deg;
  display: flex;
  column-gap: 16px;
  width: max-content;
  padding: 8px 0 12px;
  will-change: transform;
}

.g-card {
  --i: 0;
  position: relative;
  flex: none;
  width: clamp(230px, 21vw, 320px);
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #eee;
  cursor: inherit;
  font-family: inherit;
  transform: skewX(var(--skew));
  -webkit-tap-highlight-color: transparent;
}
.g-card:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
.g-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: scale 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
/* caption slides up over a dark fade on hover */
.g-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.g-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.g-caption::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--saffron);
}
@media (hover: hover) {
  .g-card:hover img { scale: 1.07; }
  .g-card:hover::after, .g-card:hover .g-caption { opacity: 1; }
  .g-card:hover .g-caption { transform: none; }
}
@media (hover: none) {
  .g-card::after, .g-caption { opacity: 1; }
  .g-caption { transform: none; }
}

/* Entrance: cards rise and straighten one after another */
.js .g-card {
  opacity: 0;
  translate: 0 90px;
  rotate: 5deg;
}
.gallery.is-revealed .g-card {
  opacity: 1;
  translate: 0 0;
  rotate: 0deg;
  transition:
    opacity 0.7s ease calc(var(--i) * 0.08s),
    translate 1.1s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.08s),
    rotate 1.1s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.08s);
}

/* Full-screen photo */
.g-lightbox {
  max-width: min(92vw, 1100px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
}
.g-lightbox::backdrop { background: rgba(10, 14, 12, 0.78); backdrop-filter: blur(4px); }
.g-lightbox[open] { animation: gZoom 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes gZoom { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
.g-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  object-fit: contain;
}
.g-lightbox-caption {
  margin: 0;
  padding: 14px 20px;
  color: var(--white);
  font-weight: 500;
}
.g-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.g-close:hover { background: var(--saffron); color: var(--white); }

@media (max-width: 900px) {
  .gallery { padding: 32px 0 12px; }
  .g-card { width: 66vw; border-radius: 16px; }
}
@media (min-width: 1440px) {
  .gallery { padding: 48px 0 20px; }
  .g-track { column-gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .g-card { opacity: 1; translate: none; rotate: none; }
  .g-lightbox[open] { animation: none; }
}

/* =====================================================
   Why Choose section (behaviour in static/js/why.js)
   One card per row is open: wide, saffron, with its photo showing.
   The column widths and the photo animate when another card opens.
   ===================================================== */
.why {
  overflow-x: clip; /* hide the slide-in offset of the rows */
  padding: 28px 0 40px;
  background: var(--white);
}
.why .section-tag { text-transform: none; letter-spacing: 0; font-size: 0.75rem; }
.why-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}
.why-title { max-width: 11em; }
.why-intro {
  max-width: 380px;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: right;
  color: var(--text-muted);
}
.why-rows { display: flex; flex-direction: column; gap: 16px; }
.why-row {
  display: flex;
  gap: 16px;
  height: 270px;
}

.why-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 0fr; /* text | photo (hidden) */
  overflow: hidden;
  border-radius: 14px;
  background: #f3f3f3;
  color: var(--text);
  cursor: pointer;
  transition:
    flex-grow 0.75s cubic-bezier(0.65, 0, 0.35, 1),
    grid-template-columns 0.75s cubic-bezier(0.65, 0, 0.35, 1),
    color 0.4s,
    box-shadow 0.4s;
}
/* saffron fill rises from the bottom when a card opens */
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--saffron);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.why-card.is-open {
  flex-grow: 1.9;
  grid-template-columns: 1fr 1fr;
  color: var(--white);
  cursor: default;
  box-shadow: 0 18px 36px -22px rgba(212, 86, 26, 0.6);
}
.why-card.is-open::before { transform: scaleY(1); transform-origin: top; }

.why-body {
  position: relative;
  z-index: 1;
  min-width: 260px; /* keep text from squashing while the card resizes */
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
}
.why-body h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}
.why-body p {
  max-width: 320px;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.85;
}
.why-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  align-self: flex-start;
  margin-top: auto;
  padding: 12px 30px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.35s, border-color 0.35s;
}
/* button fill slides in from the left on hover */
.why-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.why-btn:hover { color: var(--white); border-color: var(--saffron); }
.why-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.why-card.is-open .why-btn { color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.why-card.is-open .why-btn::before { background: var(--white); }
.why-card.is-open .why-btn:hover { color: var(--saffron-dark); border-color: var(--white); }

.why-media {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
}
.why-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.2);
  transition: opacity 0.5s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.why-card.is-open .why-media img {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease 0.2s, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
@media (hover: hover) {
  .why-card:not(.is-open):hover { box-shadow: 0 14px 28px -20px rgba(31, 42, 34, 0.4); }
}

/* Tablet & mobile: cards stack; the open card shows its photo underneath */
@media (max-width: 900px) {
  .why { padding: 20px 0 32px; }
  .why-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
  .why-intro { text-align: left; max-width: none; }
  .why-row { flex-direction: column; height: auto; }
  .why-card,
  .why-card.is-open {
    flex: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto 0fr;
  }
  .why-card { transition: grid-template-rows 0.7s cubic-bezier(0.65, 0, 0.35, 1), color 0.4s, box-shadow 0.4s; }
  .why-card.is-open { grid-template-rows: auto 1fr; }
  .why-body { min-width: 0; padding: 24px 22px 22px; }
  .why-btn { margin-top: 18px; }
  .why-media { min-height: 0; }
  .why-media img { height: 200px; }
}

@media (min-width: 1440px) {
  .why { padding: 32px 0 48px; }
  .why-row { height: 300px; }
  .why-body h3 { font-size: 1.2rem; }
  .why-body p { font-size: 0.92rem; max-width: 360px; }
  .why-intro { font-size: 0.95rem; max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .why-card, .why-card::before, .why-media img, .why-btn::before { transition: none !important; }
}

/* =====================================================
   Location section (behaviour in static/js/location.js)
   ===================================================== */
.location {
  overflow-x: clip;
  padding: 40px 0 56px;
  background: #f6f6f6;
}
.location .section-tag { text-transform: none; letter-spacing: 0; font-size: 0.75rem; background: var(--white); }
.loc-head { text-align: center; margin-bottom: 24px; }
.loc-title { max-width: none; margin: 0 auto; }


.loc-card {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 2fr;
  overflow: hidden;
  border: 1px solid #f0e6db;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 30px 60px -40px rgba(140, 60, 10, 0.35);
}

/* ---------- info list ---------- */
.loc-info {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 24px 28px;
}
.loc-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: start;
  gap: 14px;
  margin: 0 -10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.35s;
}
.loc-hours { cursor: default; }
.loc-item:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }

.loc-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--saffron);
  transition: background 0.35s, color 0.35s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.loc-text { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.loc-text strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
}
.loc-text > span { font-size: 0.92rem; line-height: 1.55; color: var(--text-muted); }

/* small hint that slides in on hover ("Click to copy", "Tap to call"...) */
.loc-hint {
  max-height: 0;
  overflow: hidden;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--saffron-dark);
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.4s ease, opacity 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.loc-item.is-copied .loc-hint { color: var(--green); }
.loc-item.is-copied .loc-hint::before { content: "✓ Copied — "; }

@media (hover: hover) {
  a.loc-item:hover, button.loc-item:hover { background: #fdf5ee; }
  a.loc-item:hover .loc-icon, button.loc-item:hover .loc-icon {
    background: var(--saffron);
    color: var(--white);
    transform: rotate(-8deg) scale(1.06);
  }
  a.loc-item:hover .loc-hint, button.loc-item:hover .loc-hint { max-height: 20px; opacity: 1; transform: none; }
  .loc-hours:hover .loc-icon svg { animation: locTick 1.2s ease-in-out; }
}
.loc-item.is-copied .loc-hint { max-height: 20px; opacity: 1; transform: none; }
@keyframes locTick { 0% { transform: rotate(0); } 50% { transform: rotate(-25deg); } 100% { transform: rotate(0); } }

/* live open / closed badge */
.loc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: #f3f3f3;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}
.loc-status:empty { display: none; }
.loc-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b5b5b5;
}
.loc-status.is-open { background: #e8f3ec; color: var(--green); }
.loc-status.is-open::before { background: #2f9e55; animation: locPulse 1.8s ease-out infinite; }
@keyframes locPulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 85, 0.55); }
  80%, 100% { box-shadow: 0 0 0 7px rgba(47, 158, 85, 0); }
}

/* directions button reuses the hero "water fill" button */
.loc-dir {
  flex: none; /* the phone rule .hero-btn { flex: 1 } would squash its height in this column */
  gap: 10px;
  margin-top: 12px;
  width: 100%;
  height: 50px;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0.01em;
}
.loc-dir::before { top: 520%; } /* wide button: park the water further down so no corner peeks in */
.loc-dir:hover::before { top: -45%; }
/* Hover: the arrow flies across the button leaving a dotted route,
   a map pin drops in at the far end, then the arrow glides back.
   --fly (distance to the pin) is set by location.js. */
.loc-dir { --fly: 150px; }
.dir-arrow, .dir-label { position: relative; z-index: 1; display: inline-flex; }
.dir-label { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.dir-arrow { transform-origin: 50% 50%; }
.loc-dir:hover .dir-arrow { animation: dirFly 1.4s cubic-bezier(0.65, 0, 0.35, 1) both; }
.loc-dir:hover .dir-label { transform: translateX(-6px); }
@keyframes dirFly {
  0%   { transform: none; opacity: 1; }
  12%  { transform: translateX(-4px) rotate(-10deg); }           /* wind up */
  48%  { transform: translateX(var(--fly)) rotate(45deg); opacity: 1; } /* fly to the pin */
  52%  { transform: translateX(var(--fly)) rotate(45deg) scale(0.3); opacity: 0; }
  53%  { transform: translateX(-40px) scale(0.6); opacity: 0; }  /* jump back unseen */
  80%  { transform: translateX(2px); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
/* dotted route line drawn left to right */
.dir-trail {
  position: absolute;
  left: var(--trail-left, 18%);
  right: 46px;
  bottom: 11px;
  z-index: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 5px, transparent 5px 10px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.loc-dir:hover .dir-trail { transform: scaleX(1); transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.15s; }
/* map pin drops in with a bounce at the right end */
.dir-pin {
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  margin-top: -10px;
  opacity: 0;
  transform: translateY(-26px) scale(0.6);
  transition: opacity 0.25s, transform 0.3s ease;
}
.dir-pin::after {           /* little shadow that grows when the pin lands */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 10px;
  height: 3px;
  margin-left: -5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  transform: scale(0);
  transition: transform 0.3s ease 0.55s;
}
.loc-dir:hover .dir-pin {
  opacity: 1;
  transform: none;
  transition: opacity 0.2s ease 0.5s, transform 0.65s cubic-bezier(0.34, 1.8, 0.64, 1) 0.5s;
}
.loc-dir:hover .dir-pin::after { transform: scale(1); }
.loc-dir:active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) {
  .loc-dir:hover .dir-arrow { animation: none; }
  .dir-trail, .dir-pin { transition: none !important; }
}

/* "Address copied" toast */
.loc-toast {
  position: absolute;
  left: 50%;
  bottom: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.loc-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- map ---------- */
.loc-map {
  position: relative;
  min-height: 360px;
  background: #ececec;
}
.loc-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.55) contrast(1.05);
  transition: filter 0.6s ease;
}
.loc-map:hover iframe, .loc-map:not(.is-locked) iframe { filter: none; }
.loc-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.loc-map:not(.is-locked) .loc-shield { display: none; }
.loc-shield span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px -12px rgba(31, 42, 34, 0.45);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.loc-shield:hover span, .loc-shield:focus-visible span { opacity: 1; transform: none; }

/* ---------- reveal: map wipes open, info rows slide in one by one ---------- */
.js .loc-map { clip-path: inset(0 0 0 100%); }
.loc-card.is-visible .loc-map {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.35s;
}
.js .loc-info > .loc-item,
.js .loc-info > .loc-dir {
  opacity: 0;
  translate: -24px 0;
}
.loc-card.is-visible .loc-info > .loc-item,
.loc-card.is-visible .loc-info > .loc-dir {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.6s ease calc(0.3s + var(--i) * 0.1s),
    translate 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(0.3s + var(--i) * 0.1s),
    background 0.35s,
    color 0.4s;
}

/* ---------- tablet & mobile ---------- */
@media (max-width: 900px) {
  .location { padding: 32px 0 44px; }
  .loc-head { margin-bottom: 24px; }
  .loc-card { grid-template-columns: 1fr; border-radius: 22px; }
  .loc-info { padding: 22px 20px 24px; }
  .loc-map { min-height: 260px; }
  .js .loc-map { clip-path: inset(100% 0 0 0); }
  .loc-hint { display: none; }
}
@media (min-width: 1440px) {
  .location { padding: 48px 0 72px; }
  .loc-map { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .loc-map { clip-path: none; }
  .js .loc-info > .loc-item, .js .loc-info > .loc-dir { opacity: 1; translate: none; }
  .loc-status.is-open::before { animation: none; }
}

/* =====================================================
   Enquiry CTA: full-width photo banner, centred content
   ===================================================== */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 440px;
  padding: 72px 0;
  color: var(--white);
  text-align: center;
}
/* background photo: drifts with the scroll (data-parallax) and slowly zooms */
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.cta-bg img {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: 62% 40%;
  animation: ctaZoom 18s ease-in-out infinite alternate;
}
@keyframes ctaZoom { from { scale: 1; } to { scale: 1.12; } }
/* dark overlay with a warm saffron glow from below */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 50% 120%, rgba(242, 106, 40, 0.45), rgba(242, 106, 40, 0) 70%),
    linear-gradient(180deg, rgba(12, 18, 14, 0.62), rgba(12, 18, 14, 0.78));
}

.cta-content { display: flex; flex-direction: column; align-items: center; }
.cta-tag {
  display: inline-block;
  margin-bottom: 22px;
  padding: 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: background 0.35s, color 0.35s;
}
.cta-tag:hover { background: var(--white); color: var(--text); }
.cta-title {
  max-width: 15em;
  margin: 0 0 36px;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--white);
}
/* Book Now: hero water-fill button + a soft pulsing ring to draw the eye */
.cta-book {
  min-width: 200px;
  height: 56px;
  font-size: 0.92rem;
  animation: ctaPulse 2.6s ease-out infinite;
}
.cta-book:hover { animation: none; }
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 106, 40, 0.55); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(242, 106, 40, 0); }
}

@media (max-width: 900px) {
  .cta { min-height: 340px; padding: 56px 0; }
  .cta-title { margin-bottom: 28px; }
}
@media (min-width: 1440px) {
  .cta { min-height: 500px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-bg img, .cta-book { animation: none; }
}

/* Staggered fill hover (matches the PureVolt outline button).
   Four round blobs sit below the button; on hover they rise one after
   another (left to right, 80ms apart) and drop back the same way on leave.
   Usage: add .btn-stagger to a .hero-btn and put
   <span class="btn-stagger-fill" aria-hidden="true"><i></i><i></i><i></i><i></i></span> inside. */
.btn-stagger::before { display: none; } /* replaces the hero water fill */
.btn-stagger { --stagger-fill: var(--green); }
.btn-stagger-fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.btn-stagger-fill i {
  position: absolute;
  top: 0;
  width: 25%;
  height: 100%;
  border-radius: 50%;
  background: var(--stagger-fill);
  transform: translate3d(0, 200%, 0) scale(1.7);
  transition: transform 0.45s ease;
  will-change: transform;
}
.btn-stagger-fill i:nth-child(1) { left: 0; }
.btn-stagger-fill i:nth-child(2) { left: 25%; transition-delay: 0.08s; }
.btn-stagger-fill i:nth-child(3) { left: 50%; transition-delay: 0.16s; }
.btn-stagger-fill i:nth-child(4) { left: 75%; transition-delay: 0.24s; }

/* Mouse/trackpad hover and keyboard focus fill the button.
   Touch screens skip the hover (no stuck "filled" state after a tap)
   and keep the existing press-down scale. */
@media (hover: hover) and (pointer: fine) {
  .btn-stagger:hover .btn-stagger-fill i { transform: translate3d(0, 0, 0) scale(1.7); }
}
.btn-stagger:focus-visible .btn-stagger-fill i { transform: translate3d(0, 0, 0) scale(1.7); }

@media (prefers-reduced-motion: reduce) {
  .btn-stagger-fill i { transition: none; }
}

/* =====================================================
   Footer
   Reveal: driven by reveal.js (data-reveal on the footer and each column).
   Interactive: magnetic social icons (static/js/footer.js).
   ===================================================== */
.site-footer {
  position: relative;
  isolation: isolate;
  background: #f6f6f6; /* same as the header, so the tricolor logo stays clear */
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.92rem;
}
/* the footer itself is only a trigger: keep it visible, animate its parts */
.js .site-footer[data-reveal] { opacity: 1; transform: none; transition: none; }

/* saffron -> green strip along the top edge; draws itself left to right */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--brand-gradient-h);
  transform-origin: left;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .site-footer::before { transform: scaleX(0); }
.js .site-footer.is-visible::before { transform: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
  gap: 40px;
  padding-block: 64px 48px;
}

/* ---------- Brand column ---------- */
.footer-logo { display: inline-block; }
.footer-logo img {
  height: 34px;
  width: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-logo:hover img { transform: scale(1.06) rotate(-1.5deg); }
.footer-brand p { margin: 18px 0 22px; max-width: 280px; line-height: 1.6; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  --mx: 0px;
  --my: 0px;
  --lift: 0px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translate(var(--mx), calc(var(--my) + var(--lift)));
  transition: background 0.25s, color 0.25s, box-shadow 0.25s,
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-social a svg { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.footer-social a:hover,
.footer-social a:focus-visible {
  --lift: -3px;
  background: var(--saffron);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(242, 106, 40, 0.35);
}
.footer-social a:hover svg { transform: scale(1.12) rotate(-8deg); }

/* Icons pop in one after another once the brand column is visible.
   Uses an animation (not a transition) so the stagger delay never slows hover. */
.js .footer-social a { opacity: 0; }
.js .footer-brand.is-visible .footer-social a {
  opacity: 1;
  animation: ftPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(0.35s + var(--si, 0) * 90ms);
}
.footer-social a:nth-child(2) { --si: 1; }
.footer-social a:nth-child(3) { --si: 2; }
.footer-social a:nth-child(4) { --si: 3; }
@keyframes ftPop {
  from { opacity: 0; transform: translateY(14px) scale(0.4); }
}

/* ---------- Link columns ---------- */

.footer-col h3 {
  position: relative;
  margin: 4px 0 22px;
  padding-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
/* short saffron underline that grows in after the heading */
.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: var(--saffron);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--rd, 0s) + 0.3s),
              width 0.4s ease;
}
.js .footer-col h3::after { transform: scaleX(0); }
.js .footer-col h3.is-visible::after { transform: none; }
.footer-col:hover h3::after { width: 48px; }

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

/* list items slide in one by one */
.js .footer-col li { opacity: 0; }
.js .footer-col.is-visible li {
  opacity: 1;
  animation: ftSlide 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--rd, 0s) + 0.25s + var(--li, 0) * 80ms);
}
.footer-col li:nth-child(2) { --li: 1; }
.footer-col li:nth-child(3) { --li: 2; }
.footer-col li:nth-child(4) { --li: 3; }
@keyframes ftSlide {
  from { opacity: 0; transform: translateX(-16px); }
}

.footer-col a { color: var(--text-muted); transition: color 0.25s; }
.footer-col a:hover,
.footer-col a:focus-visible { color: var(--saffron-dark); }

/* small saffron dash that grows in front of a link on hover */
nav.footer-col a { display: inline-flex; align-items: center; }
nav.footer-col a::before {
  content: "";
  width: 0;
  height: 2px;
  margin-right: 0;
  border-radius: 2px;
  background: var(--saffron);
  transition: width 0.3s ease, margin-right 0.3s ease;
}
nav.footer-col a:hover::before,
nav.footer-col a:focus-visible::before { width: 12px; margin-right: 8px; }

/* ---------- Contact column ---------- */
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg {
  flex: none;
  margin-top: 4px;
  color: var(--saffron);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-contact li:hover svg { transform: scale(1.25) rotate(-10deg); }
.footer-contact a { color: var(--text); font-weight: 500; }

/* ---------- Bottom bar ---------- */
.footer-bottom {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 0.85rem;
}
/* Fades in with the footer. It sits at the very bottom of the page, so it
   can't have its own data-reveal (it never scrolls far enough to trigger). */
.js .footer-bottom p { opacity: 0; transition: opacity 0.8s ease 0.5s; }
.js .site-footer.is-visible .footer-bottom p { opacity: 1; }
.footer-bottom p { margin: 0; padding-block: 16px; }

/* Tablet: brand on its own row, three columns below */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 48px 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 420px; }
}
/* Phone: single column; each column animates as it scrolls in, without extra delay */
@media (max-width: 560px) {
  .site-footer { border-radius: 20px 20px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > [data-reveal] { --rd: 0s !important; }
}

@media (prefers-reduced-motion: reduce) {
  .js .site-footer::before,
  .js .footer-col h3::after { transform: none; transition: none; }
  .js .footer-social a,
  .js .footer-col li { opacity: 1; animation: none !important; }
  .js .footer-bottom p { opacity: 1; transition: none; }
  .footer-social a, .footer-social a svg, .footer-logo img, .footer-contact svg { transition: none; }
}

/* =====================================================
   Preloader — shown on every load / reload (js/preloader.js)
   Intro: letters rise from masks, counter runs 00 -> 100.
   Interactive: glow follows the cursor, word tilts toward it,
   click / tap drops a water ripple.
   Exit: text slides out, then two layers of columns lift away.
   ===================================================== */
.preloader { display: none; }
.js .preloader {
  --pl-bg: #0f1d14;
  --pl-ink: #fbeee2;
  --pl-ease: cubic-bezier(0.76, 0, 0.24, 1);
  --gx: 50vw; --gy: 50vh; --tx: 0; --ty: 0;
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9999;
  color: var(--pl-ink);
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.pl-skip .preloader { display: none !important; }
html.is-loading, html.is-loading body { overflow: hidden; }

/* Two column layers: dark in front, saffron behind for a colour flash */
.pl-cols { position: absolute; inset: 0; display: flex; }
.pl-cols span {
  flex: 1;
  margin-right: -1px; /* hide hairline gaps between columns */
  transition: transform 1s var(--pl-ease) calc(var(--c) * 70ms);
}
.pl-cols-back span  { background: var(--saffron); transition-delay: calc(var(--c) * 70ms + 160ms); }
.pl-cols-front span { background: var(--pl-bg); }
.preloader.is-leaving .pl-cols span { transform: translateY(-101%); }
.preloader.is-leaving { pointer-events: none; }

/* Cursor glow */
.pl-glow {
  position: absolute;
  left: 0; top: 0;
  width: 46vmax; height: 46vmax;
  margin: -23vmax 0 0 -23vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 106, 40, 0.30) 0%, rgba(30, 107, 53, 0.16) 40%, transparent 68%);
  transform: translate(var(--gx), var(--gy));
  pointer-events: none;
  transition: opacity 0.5s;
}
.preloader.is-done .pl-glow { opacity: 0; }

/* Masked lines of text */
.pl-line { display: inline-block; overflow: hidden; vertical-align: top; }
.pl-line > span {
  display: inline-block;
  animation: plRise 0.9s var(--pl-ease) 0.25s both;
}
.preloader.is-done .pl-line > span { animation: plOut 0.6s var(--pl-ease) both; }

.pl-top, .pl-bottom {
  position: absolute;
  left: clamp(16px, 4vw, 48px);
  right: clamp(16px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}
.pl-top { top: clamp(16px, 4vw, 40px); }
.pl-bottom { bottom: clamp(24px, 5vw, 52px); opacity: 1; justify-content: flex-end; }

/* Big word */
.pl-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  perspective: 900px;
  pointer-events: none;
}
.pl-word {
  transform: rotateX(calc(var(--ty) * -12deg)) rotateY(calc(var(--tx) * 16deg))
             translate3d(calc(var(--tx) * -14px), calc(var(--ty) * -10px), 0);
  transform-style: preserve-3d;
  will-change: transform;
}
/* Logo cut into 8 vertical strips that rise one after another */
.pl-logo {
  --n: 8;
  display: flex;
  width: min(78vw, 980px);
  aspect-ratio: 2594 / 505;
  pointer-events: auto;
  transition: scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s;
}
.pl-logo:hover { scale: 1.04; filter: drop-shadow(0 0 28px rgba(242, 106, 40, 0.35)); }
.pl-strip {
  position: relative;
  flex: 1;
  overflow: hidden;
  margin-right: -0.5px; /* hide hairline seams */
}
.pl-strip img {
  position: absolute;
  top: 0;
  left: calc(var(--i) * -100%);
  width: calc(var(--n) * 100%);
  height: 100%;
  max-width: none;
  animation: plRise 1.1s var(--pl-ease) calc(0.1s + var(--i) * 60ms) both;
}
.preloader.is-done .pl-strip img { animation: plOut 0.65s var(--pl-ease) calc(var(--i) * 35ms) both; }


/* Counter */
.pl-count {
  display: inline-flex;
  align-items: flex-start;
  overflow: hidden;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-transform: none;
}
.pl-count { padding: 0.04em 0.06em 0.06em 0; }
.pl-count small { font-size: 0.32em; line-height: 1.1; letter-spacing: 0; margin: 0.2em 0 0 0.12em; padding-right: 0.08em; color: var(--saffron); }
.pl-count-in { display: inline-flex; align-items: flex-start; }
.pl-count > * { animation: plRise 0.9s var(--pl-ease) 0.3s both; }
.preloader.is-done .pl-count > * { animation: plOut 0.6s var(--pl-ease) both; }
.preloader.is-done .pl-count { opacity: 0; transition: opacity 0.3s 0.3s; }

/* Progress bar */
.pl-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(251, 238, 226, 0.08);
}
.pl-bar i {
  display: block;
  height: 100%;
  background: var(--brand-gradient-h);
  transform: scaleX(0);
  transform-origin: left;
}
.preloader.is-done .pl-bar { opacity: 0; transition: opacity 0.4s; }

/* Click ripple */
.pl-ripple {
  position: absolute;
  width: 24px; height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  border: 2px solid var(--saffron-light);
  pointer-events: none;
  animation: plRipple 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.pl-ripple::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--green-light);
  animation: plRipple 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) 0.15s both;
}

@keyframes plRise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes plOut  { from { transform: translateY(0); }   to { transform: translateY(-110%); } }
@keyframes plRipple {
  from { transform: scale(0.2); opacity: 1; }
  to   { transform: scale(14); opacity: 0; }
}

@media (hover: none) {
  .pl-word { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .preloader { display: none; }
}

/* =====================================================
   Homepage intro (static/js/intro.js, GSAP)
   Only active while html has .has-intro (GSAP loaded, motion allowed).
   ===================================================== */
/* GSAP drives the navbar entrance instead of the CSS drop */
.has-intro .navbar > .logo,
.has-intro .navbar > .nav,
.has-intro .navbar > .nav-toggle { animation: none; }
.has-intro .navbar > .btn-call { animation: callPulse 2.4s ease-out 3s infinite; }
@media (max-width: 1100px) {
  .has-intro .navbar > .btn-call { animation: none; }
}
/* cream shape behind the hero photo, animated through CSS variables */
.has-intro .hero-media::before {
  opacity: var(--ih-shape-o, 1);
  transform: translateY(var(--ih-shape-y, 0px)) scale(var(--ih-shape-s, 1));
  transform-origin: 50% 0%;
}
/* word masks for the line-by-line text reveal (removed when it finishes) */
.ih-m {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em; /* room for g, y, p */
  margin-bottom: -0.12em;
}
.ih-w { display: inline-block; will-change: transform; }
