/* ==========================================================================
   DIAL 650 — Distribution Centre marketing site
   Design tokens extracted from Figma export (figma-export.css)
   ========================================================================== */

:root {
  /* Brand colours */
  --c-orange:   #FF9412;
  --c-cyan:     #99E0F2;
  --c-navy:     #0B0A23;
  --c-white:    #FFFFFF;
  --c-black:    #000000;
  --c-peach:    #FFD7A6;
  --c-red-tint: #ECA69C;
  --c-tan:      #E4CCA4;
  --c-blue-tint:#BBD6E0;

  /* Gradients */
  --grad-brand:  linear-gradient(215.25deg, #FF9412 46.75%, #99E0F2 89.09%);
  --grad-brand2: linear-gradient(219.79deg, #FF9412 9.01%, #99E0F2 90.72%);

  /* Type */
  --font: 'Helvetica Neue', 'Helvetica', 'Arial', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-w: 1600px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 10px;
  --radius-pill: 100px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* offset anchored sections so the fixed nav bar doesn't cover their tops
   when a nav link is clicked */
:target,
#intro, #specification, #accommodation, #location, #demographics, #contact {
  scroll-margin-top: 90px;
}
@media (max-width: 720px) {
  #intro, #specification, #accommodation, #location, #demographics, #contact {
    scroll-margin-top: 64px;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--c-navy);
  background: var(--c-white);
  line-height: 1.4;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
/* <picture> wrappers must behave like their <img> for layout/sizing.
   display:contents removes the wrapper's box; the width rule ensures the
   inner <img> scales to its container (child combinators still see <picture>
   as the img's parent, so we size the img directly). */
picture { display: contents; }
picture > img { width: 100%; height: auto; }

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

h1, h2, h3, h4, p { margin: 0; }

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

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

/* ==========================================================================
   SCROLL REVEAL — subtle fade + rise as elements enter the viewport.
   JS toggles .is-visible via IntersectionObserver; grids stagger children.
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0s);
  /* NOTE: no `will-change` — promoting these to their own compositing layer
     made text blank out after the transition on some GPUs. */
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* once revealed & settled, drop the transform entirely so no orphan layer
   lingers (belt-and-braces against the disappearing-text repaint bug) */
.reveal.reveal-done {
  opacity: 1 !important;
  transform: none !important;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Dual-line section heading: italic light line + bold line */
.section-head { text-align: center; }
.section-head .line-1 {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-head .line-2 {
  display: block;
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-head .lede {
  max-width: 760px;                 /* wider so ledes fit in 2 lines, no orphans */
  margin: 22px auto 0;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 300;                 /* sub-header base weight */
  line-height: 1.55;
}
.section-head .lede strong { font-weight: 400; }   /* bolded parts (e.g. DIAL 650) */
.section-head.on-dark,
.section-head.on-dark .lede { color: var(--c-white); }

/* Orange accent inside numbers/labels */
.accent { color: var(--c-orange); }

/* 3px white divider between every section (not above the hero) */
body > section:not(.hero),
body > footer {
  border-top: 3px solid var(--c-white);
}

/* NOTE: `content-visibility: auto` was removed — on iOS Safari its reserved
   intrinsic-size placeholder didn't match the real (tall, image-heavy) section
   heights, which stretched the demographics background across several scrolls.
   The image optimisation already delivers the main performance win. */

/* ==========================================================================
   NAV — transparent overlay at top; becomes a compact frosted sticky bar
   (logo left / links right) once you scroll past the hero.
   ========================================================================== */
.site-nav {
  position: fixed;                 /* sticky to the top */
  inset: 0 0 auto 0;
  z-index: 40;
  transition: background .35s ease, backdrop-filter .35s ease, padding .35s ease;
}
.site-nav .container {
  display: flex;
  justify-content: center;
  padding-top: 34px;
  transition: padding .35s ease;
}
.nav-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.55);
  padding-bottom: 26px;
  transition: border-color .35s ease, padding .35s ease;
}
/* brand logo — hidden until the bar is stuck */
.nav-brand {
  display: none;
  align-items: center;
}
.nav-brand img { height: 30px; width: auto; }
.nav-list {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 62px);
  flex-wrap: wrap;
}
.nav-list a {
  color: var(--c-white);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 400;
  transition: opacity .2s ease;
}
.nav-list a:hover { opacity: .65; }

/* logo + close button only appear inside the full-screen mobile menu */
.nav-list__logo,
.nav-close { display: none; }

.nav-toggle { display: none; }

/* --- STUCK state: compact, frosted, minimalistic; logo left / links right --- */
.site-nav.is-stuck {
  background: rgba(11, 10, 35, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* no borders, no shadows — minimalistic */
}
.site-nav.is-stuck .container { padding-top: 0; }
.site-nav.is-stuck .nav-inner {
  max-width: var(--max-w);
  justify-content: space-between;   /* logo left, links right */
  border-bottom: none;
  padding: 12px 0;                  /* compact */
}
.site-nav.is-stuck .nav-brand { display: inline-flex; }
.site-nav.is-stuck .nav-list {
  justify-content: flex-end;
  flex: 1;
  margin-left: auto;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--c-white);
  background: var(--c-navy);
  overflow: visible;
  padding-bottom: clamp(30px, 6vh, 90px);
}
.hero::after { /* subtle warm gradient wash top-left like the mock */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,90,60,0.55) 0%, rgba(255,148,18,0.10) 32%, rgba(153,224,242,0.10) 60%, rgba(11,10,35,0) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(130px, 15vh, 150px);
}
.hero__logo {
  width: clamp(220px, 24vw, 343px);
  height: auto;
  margin-bottom: clamp(28px, 4vw, 46px);
}
.hero__logo :is(path, polygon, rect, line) { fill: var(--c-white); }
.br-mobile { display: none; }   /* extra line breaks only on mobile */
.hero__tagline {
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.25;
}
.hero__tagline strong { font-weight: 300; }
.hero__tagline .l2 { font-weight: 400; }

/* --- Hero entrance: logo then tagline fade + rise in on load --- */
.hero__logo,
.hero__tagline {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1),
              transform .9s cubic-bezier(.22,.61,.36,1);
}
.hero__tagline { transition-delay: .22s; }         /* comes in after the logo */
.hero.hero-in .hero__logo,
.hero.hero-in .hero__tagline {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .hero__logo, .hero__tagline {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ==========================================================================
   ACCESS — orange gradient band + labelled aerial
   ========================================================================== */
.access {
  position: relative;
  /* blurred aerial @ 85% opacity over white */
  background:
    linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)),
    image-set(url("../images/blured-bg.webp") type("image/webp"), url("../images/blured-bg.jpg") type("image/jpeg")) center center / 200% no-repeat #FFFFFF;
  color: var(--c-white);
  text-align: center;
  padding: 50px 0;
}
.access__head .line-1 { font-style: italic; font-weight: 300; }
.access__head .line-2 { font-weight: 700; }
.access__head .line-1,
.access__head .line-2 {
  display: block;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.1;
}
.access__lede {
  max-width: 760px;
  margin: 26px auto 0;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 300;
  line-height: 1.6;
}
.access__lede strong { font-weight: 400; }

/* Labelled aerial photo with brand/route markers */
.aerial-map {
  position: relative;
  width: 100%;
}
.aerial-map img { width: 100%; height: auto; display: block; }
.aerial-map .marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--c-white);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: clamp(9px, 0.9vw, 13px);
  font-weight: 700;
  color: var(--c-navy);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.aerial-map .marker--dark { background: var(--c-navy); color: var(--c-white); }
.aerial-map .marker--pill {
  border-radius: var(--radius-pill);
  background: var(--c-orange);
  color: var(--c-white);
}

/* ==========================================================================
   LOCATION AERIAL (boundary map)
   ========================================================================== */
.location-aerial {
  position: relative;
  background: var(--c-navy);
}
.location-aerial img { width: 100%; height: auto; }

/* ==========================================================================
   SPECIFICATION — circular icon grid on blurred bg
   ========================================================================== */
.spec {
  position: relative;
  padding: 50px 0;
  /* blurred aerial @ 85% opacity over white */
  background:
    linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)),
    image-set(url("../images/blured-bg.webp") type("image/webp"), url("../images/blured-bg.jpg") type("image/jpeg")) center / cover no-repeat #FFFFFF;
}
.spec .container { position: relative; z-index: 1; }
.spec-panel {
  background: rgba(30, 30, 30, 0.3);
  backdrop-filter: blur(200px);
  -webkit-backdrop-filter: blur(200px);
  border-radius: 30px;
  padding: clamp(30px, 4vw, 56px) clamp(24px, 3vw, 48px);
}
.spec-grid {
  display: grid;
  /* 30 cols = LCM(5,6) so rows can be 5 / 6 / 5 items wide */
  grid-template-columns: repeat(30, 1fr);
  gap: clamp(24px, 3vw, 48px) 0;
}
/* Row 1: 5 items -> span 6 cols each */
.spec-grid .spec-item:nth-child(-n+5) { grid-column: span 6; }
/* Row 2: 6 items -> span 5 cols each */
.spec-grid .spec-item:nth-child(n+6):nth-child(-n+11) { grid-column: span 5; }
/* Row 3: 5 items -> span 6 cols each */
.spec-grid .spec-item:nth-child(n+12) { grid-column: span 6; }
.spec-item { text-align: center; color: var(--c-white); }
.spec-item__icon {
  width: clamp(84px, 9vw, 130px);
  margin: 0 auto 16px;
  aspect-ratio: 1;
}
.spec-item__icon img { width: 100%; height: 100%; }
.spec-item__label {
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.spec-item__label small {
  display: block;
  font-weight: 400;
  opacity: .85;
  text-transform: none;
}

/* ==========================================================================
   PRODUCTION — heading + 3-image slider
   ========================================================================== */
.production {
  padding: 50px 0;
  text-align: center;
}
.production .section-head { margin-bottom: clamp(34px, 4vw, 56px); }
.slider {
  position: relative;
  overflow: hidden;
}
.slider__track {
  --per: 3;                    /* slides per view — kept in sync by JS */
  --slider-gap: clamp(16px, 2vw, 30px);
  display: flex;
  gap: var(--slider-gap);
  transition: transform .5s ease;
}
.slider__slide {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--slider-gap)) / var(--per));
  border-radius: 4px;
  overflow: hidden;
}
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__progress {
  margin-top: 30px;
  height: 2px;
  background: rgba(0,0,0,.12);
  position: relative;
  border-radius: 2px;
}
.slider__progress span {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: var(--c-orange);
  border-radius: 2px;
  transition: width .4s ease, transform .4s ease;
}

/* ==========================================================================
   ACCOMMODATION — siteplan + area table
   Geometry from figma-export.css: canvas 1440; panel (Rectangle 3)
   33,3973 1374x1347 r10 rgba(30,30,30,.3) blur(100); plan 112,4239 1204x890;
   table (Rect 5) 64,4918 387x371; north 64,4226 61x70;
   "Site Area" right-aligned to x1380, rgba(255,255,255,.6) 60px w500.
   ========================================================================== */
.accommodation {
  position: relative;
  /* blurred aerial @ 85% opacity over white (15% white veil = same result) */
  background:
    linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)),
    image-set(url("../images/blured-bg.webp") type("image/webp"), url("../images/blured-bg.jpg") type("image/jpeg")) center center / cover no-repeat;
  color: var(--c-white);
  padding: 50px 0;
}

/* Panel — translucent dark rect over the section bg (Figma Rectangle 3) */
.site-panel {
  position: relative;
  background: rgba(30, 30, 30, 0.3);
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(100px);
  border-radius: var(--radius);          /* 10px in Figma */
  overflow: hidden;
  /* top 60px to heading; bottom 191px of breathing space under the plan */
  padding: clamp(28px, 4.2vw, 60px) 0 clamp(80px, 13.3vw, 191px);
}
.site-panel__head { margin-bottom: clamp(28px, 4.2vw, 61px); }  /* 61px gap to plan */
.site-panel__head .line-1 { font-style: italic; font-weight: 300; }
.site-panel__head .line-2 { font-weight: 700; }

/* Plan image — 1204/1374 = 87.6% of panel width, centred, in normal flow */
.accommodation__plan {
  width: 87.6%;
  margin-inline: auto;
}
.accommodation__plan > img { width: 100%; height: auto; display: block; }

/* --- North indicator: panel-anchored top-left (64-33=31px → 2.26%) --- */
.siteplan-ui { position: absolute; z-index: 3; }
.siteplan-ui svg { width: 100%; height: 100%; display: block; }
.siteplan-ui--north {
  left: 2.26%;
  top: 18.8%;                            /* 253/1347 */
  width: clamp(30px, 4.2vw, 61px);
  aspect-ratio: 61 / 70;
}

/* ==========================================================================
   AREA TABLE — fully self-contained, id-scoped so nothing cascades in.
   #siteAreaTable (id specificity) + !important on the visual props to
   guarantee the light, translucent look regardless of the stacking context.
   ========================================================================== */
#siteAreaTable {
  position: absolute;
  left: 2.26%;                                 /* 31/1374 */
  bottom: 2.3%;                                /* 31/1347 */
  z-index: 3;
  width: 28.2%;                                /* 387/1374 */
  min-width: 240px;
  background: rgba(33, 33, 33, 0.2) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  /* border: 1px solid rgba(255, 255, 255, 0.14) !important; */
  border-radius: var(--radius);
  overflow: hidden;
  padding: clamp(10px, 1.46vw, 21px) clamp(14px, 2.08vw, 30px) clamp(10px, 1.39vw, 20px);
  font-size: clamp(9px, .97vw, 14px);          /* 14px @1440 */
  font-weight: 400;
  color: #FFFFFF;
}
#siteAreaTable .area-table__row {
  display: grid;
  grid-template-columns: 1.55fr 1.1fr .6fr;    /* 147 / 70 / 52 col plan */
  align-items: center;
  line-height: clamp(20px, 2.08vw, 30px);      /* 30px rows @1440 */
  border-bottom: 0.75px solid #99E0F2;         /* cyan separators (Figma) */
  background: transparent;
}
/* only the text is inset — small pad on first/last cell so the cyan lines +
   colored fills run all the way to the table border */
#siteAreaTable .area-table__row > span:first-child { padding-left: clamp(12px, 1.8vw, 26px); }
#siteAreaTable .area-table__row > span:last-child  { padding-right: clamp(12px, 1.8vw, 26px); }
#siteAreaTable .area-table__row--head  { font-weight: 700; }
#siteAreaTable .area-table__row--total { font-weight: 700; border-bottom: none; }
/* colored rows: solid fills span the full table width + dark text */
#siteAreaTable .area-table__row.is-chiller,
#siteAreaTable .area-table__row.is-freezer,
#siteAreaTable .area-table__row.is-cold { color: var(--c-navy) !important; }
#siteAreaTable .area-table__row.is-chiller  { background: #BBD6E0 !important; }
#siteAreaTable .area-table__row.is-freezer  { background: #ECA69C !important; }
#siteAreaTable .area-table__row.is-cold     { background: #E4CCA4 !important; }

/* --- Site Area: panel-anchored bottom-right; translucent white TEXT --- */
.site-area {
  position: absolute;
  right: 2%;                             /* 27/1374 */
  bottom: 1.2%;                          /* 16/1347 */
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.6);       /* Figma text colour */
}
.site-area__label {
  font-size: clamp(26px, 4.17vw, 60px);  /* 60px @1440 */
  font-weight: 500;
}
.site-area__value {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 4.17vw, 60px);
}

/* fullscreen trigger sits above the Site Area text, right-aligned */
.siteplan-fullscreen {
  width: clamp(30px, 3.3vw, 48px);
  aspect-ratio: 71.9 / 75.4;
  margin-bottom: clamp(8px, 1vw, 14px);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.siteplan-fullscreen svg { width: 100%; height: 100%; display: block; }
.siteplan-fullscreen:hover { opacity: .7; transform: scale(1.06); }

/* ==========================================================================
   LIGHTBOX (site plan full screen)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(8, 10, 20, 0.92);
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox__close {
  position: absolute;
  top: clamp(12px, 3vw, 30px);
  right: clamp(16px, 4vw, 40px);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }

/* ==========================================================================
   PERFORMANCE — solar image + numbered feature cards
   ========================================================================== */
.performance {
  padding: 50px 0;
  background: linear-gradient(180deg, #eef6fa 0%, #ffffff 60%);
}
.performance .section-head .line-1 { font-style: italic; font-weight: 300; }
.performance .section-head .line-2 { font-weight: 700; }
.performance__intro {
  text-align: center;
  max-width: 620px;
  margin: 22px auto 4px;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 300;
  line-height: 1.5;
}
.performance__intro strong { font-weight: 400; }
.performance__note {
  text-align: center;
  font-size: 11px;
  color: #9aa4ac;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.performance__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}
/* Left image slider — fills the grid cell; cards column drives the height */
.performance__slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.performance__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.performance__slide.is-active { opacity: 1; }

/* pagination dots — bottom-right of the slider */
.perf-dots {
  position: absolute;
  right: clamp(14px, 1.6vw, 22px);
  bottom: clamp(14px, 1.6vw, 22px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.perf-dot {
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 148, 18, 0.45);   /* dim orange */
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.perf-dot:hover { background: rgba(255, 148, 18, 0.7); }
.perf-dot.is-active {
  background: var(--c-orange);            /* solid orange */
  transform: scale(1.5);                  /* larger active dot */
}

.perf-cards { display: flex; flex-direction: column; gap: 14px; }
.perf-card {
  display: grid;
  grid-template-columns: 116px 1fr 60px;   /* wider col for the 50%-larger number */
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--c-white);
  min-height: 92px;
}
/* Big number: 50% larger, weight 500, dim by default, clickable */
.perf-card__num {
  font-size: clamp(45px, 4.5vw, 66px);      /* 50% larger than the old 30–44 */
  font-weight: 500;
  line-height: 1;
  opacity: .25;                              /* dimmed default */
  color: var(--c-white);
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .5s cubic-bezier(.22,.61,.36,1);   /* smooth fade */
}
.perf-card__num:hover { opacity: .55; }
.perf-card__num.is-active { opacity: .75; }   /* lit up when its slide shows */
.perf-card__text { font-size: clamp(12px, 1vw, 14px); line-height: 1.4; }
.perf-card__icon { width: 44px; margin-left: auto; }
.perf-card__icon :is(path, circle, line, rect, polygon) { stroke: var(--c-white); }
/* gradient tint per card (teal -> orange) */
.perf-card:nth-child(1){ background: #5f7276; }
.perf-card:nth-child(2){ background: #6a706e; }
.perf-card:nth-child(3){ background: #8a7c62; }
.perf-card:nth-child(4){ background: #a5794f; }
.perf-card:nth-child(5){ background: #c56b3f; }
.perf-card:nth-child(6){ background: #e05a2f; }

/* ==========================================================================
   DEMOGRAPHICS — aerial + stat columns
   ========================================================================== */
.demographics {
  position: relative;
  color: var(--c-white);
  background: var(--c-navy);
}
.demographics__hero {
  position: relative;
}
.demographics__hero > img {
  width: 100%;
  height: auto;
  display: block;
}
/* dark scrim at the top so the white heading always reads over the bright sky */
.demographics__hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(11,10,35,0.55) 0%, rgba(11,10,35,0.22) 45%, rgba(11,10,35,0) 100%);
  pointer-events: none;
  z-index: 1;
}
.demographics__head {
  position: absolute;
  top: clamp(40px, 8vw, 110px);
  left: 0; right: 0;
  z-index: 2;                      /* above the scrim */
  text-align: center;
  padding-inline: var(--gutter);
}
.demographics__head .line-1 { font-style: italic; font-weight: 300; }
.demographics__head .line-2 { font-weight: 700; }
.demographics__head .line-1,
.demographics__head .line-2 {
  display: block;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.1;
}
.demographics__head .lede {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 300;
  line-height: 1.55;
}
.demographics__head .lede strong { font-weight: 400; }
.stats {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3vw, 40px);
  transform: translateX(-50%);
  width: min(1400px, 94%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: rgba(33, 33, 33, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 20px;
}
.stat {
  padding: clamp(9px, 1vw, 15px) clamp(14px, 1.5vw, 26px);
  /* vertical separator BEFORE each column (including the first) */
  border-left: 1px solid rgb(255 255 255 / 71%);
}
.stat__num {
  font-size: clamp(30px, 3.6vw, 56px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}
.stat__num .u { color: var(--c-orange); }
.stat__desc { font-size: clamp(11px, .95vw, 14px); line-height: 1.4; }

/* ==========================================================================
   CONNECTIVITY — distance tables + maps.
   Section background = direct-access-gb.jpg, bottom-aligned, fully visible at
   the bottom and faded to white toward the top so the content sits on white.
   ========================================================================== */
.connectivity {
  position: relative;
  padding: 50px 0 clamp(480px, 58vw, 900px);   /* bottom space reveals the bg */
  text-align: center;
  isolation: isolate;
}
.connectivity::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* white veil (top) → transparent (bottom) over the bottom-aligned aerial */
  background:
    linear-gradient(180deg,
      #ffffff 0%,
      #ffffff 34%,
      rgba(255,255,255,0.85) 46%,
      rgba(255,255,255,0.35) 60%,
      rgba(255,255,255,0) 74%),
    image-set(url("../images/direct-access-gb.webp") type("image/webp"), url("../images/direct-access-gb.jpg") type("image/jpeg")) center bottom / cover no-repeat;
  background-color: #ffffff;
}
.connectivity .section-head .line-1 { font-style: italic; font-weight: 300; }
.connectivity .section-head .line-2 { font-weight: 700; }
.connectivity .section-head { margin-bottom: clamp(30px, 4vw, 50px); }
/* 3 equal-height columns: 25% / 25% / 50% */
.conn-grid {
  display: grid;
  grid-template-columns: 25% 25% 50%;
  gap: clamp(16px, 2vw, 30px);
  align-items: stretch;              /* all columns match the tallest */
  text-align: left;
}
/* every column: same rounded surface, blurred maps-bg @ 70% (no dark tint) */
.conn-col {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: clamp(360px, 42vw, 620px);
}
/* blurred background image layer — 20px blur, 70% opacity, no tint */
.conn-col::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/maps-bg.jpg") center center / cover no-repeat;
  filter: blur(20px);
  opacity: 0.7;
  /* expand + clip so the 20px blur doesn't reveal soft edges */
  transform: scale(1.08);
}
/* keep column contents above the blurred layer */
.conn-col > * { position: relative; z-index: 1; }
/* Column 1 — tables surface: pad so the table sits inside */
.conn-col--tables {
  display: flex;
  padding: clamp(18px, 2vw, 30px);
}
/* Column 2 — UK map as a cover overlay ON TOP of the blurred maps-bg layer */
.conn-col--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("../images/uk-map.png") center center / cover no-repeat;
}
/* Range marker + "1-3 Hours" label, fixed top-right of the UK map */
.conn-range {
  position: absolute;
  top: clamp(10px, 1.4vw, 18px);
  right: clamp(10px, 1.4vw, 18px);
  z-index: 2;                       /* above the map overlay (::after) */
  display: flex;
  flex-direction: column;          /* label ABOVE the icon */
  align-items: center;
  gap: 6px;
}
.conn-range__label {
  color: var(--c-white);
  font-size: clamp(12px, 1.1vw, 16px);
  font-weight: 400;
  white-space: nowrap;
}
.conn-range__marker {
  width: clamp(30px, 3.4vw, 48px);
  height: auto;
}
/* Column 3 — map fills the surface (no bg needed, map covers it) */
.conn-col--map { padding: 0; }
.conn-map { width: 100%; height: 100%; min-height: inherit; }
/* fallback shown when no API key is set / map fails */
.conn-map--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: clamp(12px, 1vw, 14px);
  background:
    linear-gradient(rgba(11,15,26,.7), rgba(11,15,26,.7)),
    image-set(url("../images/direct-access-gb.webp") type("image/webp"), url("../images/direct-access-gb.jpg") type("image/jpeg")) center/cover no-repeat;
}

/* --- Connectivity distance table (styles copied from #siteAreaTable,
       unique classes/id so nothing is shared) --- */
#connDistTable {
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #FFFFFF;
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 400;
}
#connDistTable .conn-dist__group + .conn-dist__group { margin-top: clamp(14px, 2vw, 26px); }
#connDistTable .conn-dist__row {
  display: grid;
  grid-template-columns: 1.6fr .7fr .7fr;
  align-items: center;
  line-height: clamp(24px, 2.4vw, 34px);
  border-bottom: 0.75px solid #99E0F2;   /* cyan separators (same as siteplan) */
}
#connDistTable .conn-dist__row--head  { font-weight: 700; }
#connDistTable .conn-dist__row--last  { border-bottom: none; }

/* ==========================================================================
   FOOTER / CONTACT
   ========================================================================== */
.footer {
  background: var(--c-navy);
  color: var(--c-white);
}
.footer__aerial img { width: 100%; height: auto; display: block; }
.footer__body { padding: 50px 0; }
.footer__head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.footer__head .line-1 { font-style: italic; font-weight: 300; }
.footer__head .line-2 { font-weight: 700; }
.footer__head .line-1,
.footer__head .line-2 {
  display: block;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.1;
}
.contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 5vw, 70px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
/* each group: agency logo centred ABOVE its FIRST contact column */
.contact-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2.4vw, 34px);
  --contact-col: 180px;                 /* fixed width per contact column */
}
.contact-group__contacts {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  flex-wrap: wrap;
  justify-content: flex-start;
}
.contact-group .contact {
  width: var(--contact-col);
  text-align: center;
  font-weight: 300;
}
/* logo box = one column wide, logo centred within it -> sits over column 1 */
.contact-group .agent-logo {
  align-self: flex-start;
  width: var(--contact-col);
  object-fit: contain;
  object-position: center;
}
.agent-logo { height: 46px; }
.agent-logo :is(path, rect, polygon) { fill: var(--c-white); }
.contact { font-size: clamp(12px, 1vw, 14px); line-height: 1.6; text-align: center; }
.contact__name { font-weight: 700; margin-bottom: 4px; }
.contact__div {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,.3);
}
.btn-download {
  display: inline-block;
  background: var(--c-cyan);
  color: var(--c-navy);
  font-weight: 500;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  transition: background .2s ease, color .2s ease;
}
.btn-download:hover { background: var(--c-orange); color: var(--c-white); }
.footer__credit {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 22px;
}
.footer__legal {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 9px;
  line-height: 1.5;
  color: rgba(255,255,255,.55);
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .spec-grid .spec-item,
  .spec-grid .spec-item:nth-child(-n+5),
  .spec-grid .spec-item:nth-child(n+6):nth-child(-n+11),
  .spec-grid .spec-item:nth-child(n+12) { grid-column: auto; }
  .performance__grid { grid-template-columns: 1fr; }
  /* stacked: slider has no sibling to stretch against, so give it its own
     height (absolute slides would otherwise collapse it to 0 -> invisible) */
  .performance__slider { aspect-ratio: 16 / 10; min-height: 220px; }
  .conn-grid { grid-template-columns: 1fr 1fr; }
  .conn-grid .conn-col--map { grid-column: 1 / -1; }
  .conn-col { min-height: 340px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { border-left: 1px solid rgba(255,255,255,.25); }
  .stat:nth-child(3n+1) { border-left: none; }   /* first in each row of 3 */
  .stat:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.18); }
}

@media (max-width: 820px) {
  /* Demographics head drops into flow ABOVE the image, on the navy section
     bg — so text stays WHITE (navy-on-navy would be invisible). */
  .demographics__head {
    position: static;
    padding: clamp(40px, 9vw, 64px) 0 clamp(20px, 5vw, 32px);
    color: var(--c-white);
  }
  .demographics__head .lede,
  .demographics__head .line-1,
  .demographics__head .line-2 { color: var(--c-white); }
  .demographics__hero { display: flex; flex-direction: column; }
  .stats { position: static; transform: none; width: 100%; margin: 24px auto 0; border-radius: 0; }
}

@media (max-width: 720px) {
  /* --- Mobile nav: logo LEFT, burger RIGHT --- */
  .site-nav .container { padding-top: 18px; }
  .nav-inner {
    position: relative;
    border-bottom: none;            /* remove the line at the top */
    padding-bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; /* logo left, burger right */
  }
  /* brand logo shown on mobile (left side) */
  .nav-brand { display: inline-flex; z-index: 60; }
  .nav-brand img { height: 26px; }

  /* On mobile the desktop "stuck" layout must NOT apply to the menu: the
     nav-inner stays a compact bar, and the menu is always a full-screen
     fixed overlay (the stuck rules were shrinking it to the bar's size). */
  .site-nav.is-stuck .nav-inner {
    max-width: none;
    justify-content: space-between;
    padding: 0;
  }
  /* CRITICAL: while the menu is open, drop the nav's backdrop-filter.
     A backdrop-filter creates a containing block for fixed descendants,
     which was trapping the full-screen menu inside the (170px) bar. */
  .site-nav.nav-open,
  .site-nav.nav-open.is-stuck {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
  }
  /* hide the small bar logo while the menu is open (the big menu logo shows) */
  .site-nav.nav-open .nav-brand { display: none; }
  .site-nav.is-stuck .nav-list,
  .site-nav .nav-list {
    flex: none;
    margin-left: 0;
    justify-content: flex-start;   /* overridden below to column layout */
  }

  /* --- Burger button (morphs into an X when the menu is open) --- */
  .nav-toggle {
    display: block;
    position: static;
    z-index: 60;                    /* stays above the overlay */
    width: 34px; height: 26px;
    background: none; border: none; cursor: pointer;
    padding: 0;
    margin-left: auto;              /* pinned to the right */
  }
  .nav-toggle span {
    display: block;
    width: 100%; height: 2px;
    margin: 6px 0;
    background: var(--c-white);
    border-radius: 2px;
    transition: transform .4s cubic-bezier(.68,-0.4,.27,1.4),
                opacity .3s ease;
    transform-origin: center;
  }
  /* burger -> X : top bar rotates down, bottom bar rotates up, middle fades */
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(135deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-135deg); }

  /* --- Full-screen mobile menu: dark-blue overlay --- */
  .nav-list {
    display: flex;                  /* always in flow; visibility toggles it */
    position: fixed;
    inset: 0;
    z-index: 50;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(20px, 4vh, 34px);
    padding: clamp(56px, 12vh, 90px) 24px clamp(40px, 9vh, 80px);
    /* warm hero gradient wash over the navy base (opaque overlay) */
    background:
      linear-gradient(135deg,
        rgba(255, 90, 60, 0.55) 0%,
        rgba(255, 148, 18, 0.18) 34%,
        rgba(153, 224, 242, 0.14) 62%,
        rgba(11, 10, 35, 0) 100%),
      var(--c-navy);
    overflow-y: auto;
    /* closed state: background faded out, panel not interactive */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .45s ease, visibility 0s linear .45s;
  }
  .nav-list.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .45s ease, visibility 0s;
  }

  /* logo appears right after the background (small delay) */
  .nav-list__logo {
    display: block;
    width: clamp(180px, 55vw, 260px);
    height: auto;
    margin-bottom: clamp(24px, 6vh, 54px);
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity .5s ease .12s, transform .5s ease .12s;
  }
  .nav-list.is-open .nav-list__logo { opacity: 1; transform: none; }

  /* menu items: hidden, then fade + rise in one-by-one (staggered) */
  .nav-list a {
    font-size: clamp(20px, 5.5vw, 28px);
    font-weight: 300;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .45s ease, transform .45s ease;
  }
  .nav-list.is-open a { opacity: 1; transform: none; }
  /* staggered reveal delays — background+logo first, then each item */
  .nav-list.is-open a:nth-child(2) { transition-delay: .26s; }
  .nav-list.is-open a:nth-child(3) { transition-delay: .34s; }
  .nav-list.is-open a:nth-child(4) { transition-delay: .42s; }
  .nav-list.is-open a:nth-child(5) { transition-delay: .50s; }
  .nav-list.is-open a:nth-child(6) { transition-delay: .58s; }
  .nav-list.is-open a:nth-child(7) { transition-delay: .66s; }

  @media (prefers-reduced-motion: reduce) {
    .nav-list, .nav-list__logo, .nav-list a, .nav-toggle span {
      transition: none !important;
    }
  }

  /* --- Mobile hero: larger text, mobile line breaks, 5% padding --- */
  .br-mobile { display: inline; }
  .hero__content {
    padding-inline: 5%;
    padding-top: clamp(96px, 20vh, 150px);
  }
  .hero__tagline { font-size: clamp(28px, 7vw, 42px); line-height: 1.2; }

  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .conn-grid { grid-template-columns: 1fr; }
  .conn-grid .conn-col--map { grid-column: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 1px solid rgba(255,255,255,.25); }
  .stat:nth-child(2n+1) { border-left: none; }   /* first in each row of 2 */

  .perf-card { grid-template-columns: 64px 1fr 40px; padding: 14px 16px; }
  .perf-card__num { font-size: 30px; }

  /* footer: groups stack — drop the stray vertical divider */
  .contact__div { display: none; }
  .contacts { flex-direction: column; gap: clamp(28px, 6vw, 44px); }
  .contact-group { align-items: center; }
  .contact-group .agent-logo { align-self: center; }

  .footer__legal { text-align: left; }
}

/* Below ~900px the table/site-area no longer fit inside the plan gaps —
   drop them back into normal flow beneath the plan image. */
@media (max-width: 900px) {
  .site-panel { padding: 24px 16px 28px; }
  .site-panel__head { margin-bottom: 20px; }
  .accommodation__plan { width: 100%; }
  .siteplan-ui--north { display: none; }
  #siteAreaTable,
  .site-area {
    position: static;
    z-index: auto;
    width: 100%;
    min-width: 0;
    margin-top: 18px;
  }
  #siteAreaTable { font-size: clamp(11px, 2.4vw, 15px); }
  .site-area { align-items: end; text-align: center; margin-top: 24px; }
}

@media (max-width: 480px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: none; border-bottom: 1px solid rgba(255,255,255,.18); }
  .stat:last-child { border-bottom: none; }
}
