/* ==========================================================================
   Rising Ray Renewables | India Pvt Ltd — style.css
   Order: tokens → reset → base → layout → components → sections → utilities → media queries
   Mobile-first. Breakpoints: 576px, 768px, 992px, 1200px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   Colours are taken from the logo (assets/img/rising-logo.jpeg):
   navy wordmark, green "renewables", gold/amber sun. See CLAUDE.md §5.
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --clr-primary: #0A1F4E;       /* logo navy: headings, header, footer */
  --clr-primary-600: #13306F;   /* navy hover / lighter panels */
  --clr-primary-900: #06142F;   /* deepest navy: footer bottom, overlays */
  --clr-photo-bg:     #F3F5F7;  /* director photo circle background */
  --clr-photo-line:   #E6E9EE;  /* director photo circle border */
  --clr-green: #0B7A1A;         /* logo green: eyebrows, icons, ticks */
  --clr-green-300: #6FCF7A;     /* green on dark backgrounds */
  --clr-accent: #F5A623;        /* solar amber: CTAs, highlights */
  --clr-accent-600: #E08E0B;    /* CTA hover */
  --clr-accent-100: #FEF3DE;    /* soft amber tint */
  --clr-sky: #EEF6F1;           /* soft mint section backgrounds */
  --clr-ink: #1B2333;           /* body text */
  --clr-muted: #566175;         /* secondary text */
  --clr-line: #E2E8EF;          /* borders */
  --clr-on-dark: #C9D3E6;       /* body text on navy */
  --clr-white: #FFFFFF;
  --clr-error: #B42318;
  --clr-hero-navy: #011D4C;     /* matches the empty lower half of hero-banner */

  /* Gradients */
  --grad-band: linear-gradient(120deg, var(--clr-primary) 0%, var(--clr-primary-600) 60%, #0E4A3A 100%);

  /* Typography */
  --ff-heading: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-h1: clamp(2.2rem, 5vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.6rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.05rem, 1.6vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: .875rem;
  --fs-xs: .75rem;
  --lh-body: 1.7;
  --lh-heading: 1.2;

  /* Spacing scale: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96 px */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  /* Header: logo height + 12px above and below (24px). Phones 48 / tablet 56 / desktop 64
     (54 when the desktop header shrinks on scroll). */
  --logo-h: 48px;
  --logo-h-scrolled: 48px;
  --header-h: 72px;
  --points-half: 48px;
  --about-photo-h: 280px;       /* About photo card: 280px phones, up to 560px desktop */
  --float-size: 48px;           /* floating call / WhatsApp / back-to-top buttons */
  --float-gap: var(--sp-3);
  --float-edge: var(--sp-4);          /* half the key-points card height: (24 + 48 + 24) / 2 */

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(10, 31, 78, .08);
  --shadow-hover: 0 18px 40px rgba(10, 31, 78, .14);
  --shadow-sm: 0 2px 8px rgba(10, 31, 78, .08);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 600ms;
  --dur-fast: 200ms;
  --dur-slow: 700ms;
  --dur-zoom: 6s;               /* About photo: slow zoom-out when it scrolls into view */

  /* Layers */
  --z-header: 50;
  --z-nav: 60;
  --z-toggle: 70;
  --z-float: 40;
}

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

* {
  margin: 0;
}

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

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

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

:where(ul, ol)[role="list"] {
  list-style: none;
  padding: 0;
}

p,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--clr-ink);
  background-color: var(--clr-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-heading);
  line-height: var(--lh-heading);
  color: var(--clr-primary);
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

h4 {
  font-size: var(--fs-body);
  font-weight: 600;
}

a {
  color: var(--clr-green);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--clr-primary);
}

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

::selection {
  background: var(--clr-accent);
  color: var(--clr-primary);
}

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

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--tint {
  background-color: var(--clr-sky);
}

.section--dark {
  background: var(--grad-band);
  color: var(--clr-on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--clr-white);
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

.stack > * + * {
  margin-top: var(--sp-4);
}

/* --------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */

/* 5.0 WebP wrapper: <picture class="pic"> adds no box of its own, so the <img> inside
   is laid out exactly as if it were a direct child (flex sliders, cover tiles, logos). */
.pic {
  display: contents;
}

/* 5.1 Section heading: eyebrow + h2 + lead */
.section-head {
  max-width: 46rem;
  margin-bottom: var(--sp-7);
}

.section-head--center {
  max-width: 54rem;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  font-family: var(--ff-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-green);
}

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

.section--dark .eyebrow {
  color: var(--clr-green-300);
}

.section-head__sub {
  margin-bottom: var(--sp-2);
  font-family: var(--ff-heading);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--clr-green);
}

.section-head__lead {
  margin-top: var(--sp-4);
  font-size: var(--fs-lead);
  color: var(--clr-muted);
}

.section--dark .section-head__lead,
.section--dark .section-head__sub {
  color: var(--clr-on-dark);
}

/* 5.2 Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-5);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--ff-heading);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background-color: var(--clr-accent);
  color: var(--clr-primary);
  box-shadow: 0 8px 20px rgba(245, 166, 35, .35);
}

.btn--primary:hover {
  background-color: var(--clr-accent-600);
  color: var(--clr-primary);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: currentColor;
  color: var(--clr-primary);
}

.btn--outline:hover {
  background-color: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}

.btn--ghost {
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .45);
  color: var(--clr-white);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background-color: var(--clr-white);
  border-color: var(--clr-white);
  color: var(--clr-primary);
}

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

/* 5.3 Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px; /* touch target */
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-green);
  text-decoration: none;
}

.link-arrow svg {
  width: 1em;
  height: 1em;
  transition: transform var(--dur-fast) var(--ease);
}

.link-arrow:hover {
  color: var(--clr-primary);
}

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

/* 5.4 Icon badge */
.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--clr-accent-100);
  color: var(--clr-accent-600);
}

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

.icon-badge--green {
  background: var(--clr-sky);
  color: var(--clr-green);
}

/* 5.5 Tag / pill */
.tag {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  background: var(--clr-accent);
  color: var(--clr-primary);
  font-family: var(--ff-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}

/* 5.6 Card: image top, icon badge, title, text, text-link; lifts on hover */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--clr-line);
  border-radius: var(--radius);
  background: var(--clr-white);
  box-shadow: var(--shadow);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--clr-sky);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__media .tag {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
}

.card__body .icon-badge {
  margin-top: calc(-1 * var(--sp-5) - 28px);
  position: relative;
  box-shadow: var(--shadow-sm);
  background: var(--clr-white);
}

.card__title {
  font-size: var(--fs-h3);
}

.card__text {
  color: var(--clr-muted);
}

.card__body .link-arrow {
  margin-top: auto;
  padding-top: var(--sp-2);
}

/* 5.7 Skip link */
.skip-link {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  background: var(--clr-accent);
  color: var(--clr-primary);
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform var(--dur-fast) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* 5.8 Inline SVG icons */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 5.9 Social icon list */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--clr-white);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.social a:hover {
  background: var(--clr-accent);
  color: var(--clr-primary);
}

.social .icon {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */

/* 6.2 Sticky header + navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-line);
  transition: box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(10, 31, 78, .1);
  border-bottom-color: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
  transition: min-height var(--dur-fast) var(--ease);
}

.site-header.is-scrolled .site-header__inner {
  min-height: calc(var(--logo-h-scrolled) + 24px);
}

.site-header__logo {
  display: block;
  flex-shrink: 0;
}

.site-header__logo img {
  width: auto;
  height: var(--logo-h);
  transition: height var(--dur-fast) var(--ease);
}

.site-header.is-scrolled .site-header__logo img {
  height: var(--logo-h-scrolled);
}

.nav-toggle {
  position: relative;
  z-index: var(--z-toggle);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--clr-sky);
  color: var(--clr-primary);
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
  grid-area: 1 / 1;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.site-nav__link {
  position: relative;
  display: block;
  padding: var(--sp-3) var(--sp-2);
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-primary);
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--clr-green);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: var(--sp-2);
  right: var(--sp-2);
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.site-nav__cta {
  margin-top: var(--sp-5);
}

/* Mobile panel (JS on) */
.js .site-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  flex-direction: column;
  width: min(86vw, 360px);
  height: 100vh;
  height: 100dvh;
  padding: calc(var(--header-h) + var(--sp-4)) var(--sp-5) var(--sp-6);
  overflow-y: auto;
  background: var(--clr-white);
  box-shadow: -20px 0 40px rgba(10, 31, 78, .18);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}

.js .site-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--dur) var(--ease), visibility 0s;
}

.js .site-nav .site-nav__link {
  border-bottom: 1px solid var(--clr-line);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(6, 20, 47, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur) var(--ease), visibility 0s;
}

body.nav-open {
  overflow: hidden;
}

/* No-JS fallback: nav stays visible as a scrollable row under the logo */
.no-js .nav-toggle,
.no-js .nav-backdrop {
  display: none;
}

.no-js .site-header__inner {
  flex-wrap: wrap;
  padding-block: var(--sp-2);
}

.no-js .site-nav {
  width: 100%;
  overflow-x: auto;
}

.no-js .site-nav__list {
  flex-direction: row;
}

.no-js .site-nav__link {
  white-space: nowrap;
}

.no-js .site-nav__cta {
  display: none;
}

/* 6.3 Hero: single banner image
   Phones: image zoomed 1.3x (centred, outer edges trimmed), clipped to its photo collage;
   headline + buttons start 24px below it on navy.
   >= 768px: whole image (no crop); text centred in its empty navy lower half.
   If the text needs more height (tablets), the section continues in the same navy
   and the image's bottom edge fades into it. */
.hero {
  position: relative;
}

.hero__stage {
  background: var(--clr-hero-navy);
}

/* Image layer + photo treatment (CSS only; text and cards above stay untouched).
   Isolated so the blend modes only mix with the image and its navy backdrop:
   picture::after = vignette, .hero__media::before = warm tint, ::after = film grain. */
.hero__media {
  position: relative;
  isolation: isolate;
  background: var(--clr-hero-navy);
}

.hero__media > picture {
  position: relative;
  display: block;
  aspect-ratio: 1774 / 634;     /* image width : 55% of its height (887) x 1.3 zoom */
  overflow: hidden;
}

/* 1.3x zoom, centred: 15% of the strip width hangs off each side; the picture clips
   that and the empty navy lower part */
.hero__banner {
  display: block;
  width: 130%;
  max-width: none;
  height: auto;
  margin-left: -19%;
  filter: saturate(.7) contrast(.95) brightness(.97);
}

.hero__media > picture::after,
.hero__media::before,
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Vignette + navy fade over the bottom 30% (dims the glowing light streak) */
.hero__media > picture::after {
  background:
    linear-gradient(to top, rgba(1, 29, 76, .8) 0%, rgba(1, 29, 76, .45) 15%, rgba(1, 29, 76, 0) 30%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .15) 100%);
}

.hero__media::before {
  z-index: 1;
  background: #F2E6D0;
  opacity: .1;
  mix-blend-mode: soft-light;
}

.hero__media::after {
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: .12;
  mix-blend-mode: overlay;
}

.hero__content {
  padding-block: var(--sp-5) var(--sp-7);
  text-align: center;
  color: var(--clr-white);
}

.hero__title {
  max-width: 60rem;
  margin-inline: auto;
  font-family: var(--ff-heading);
  font-size: clamp(1.9rem, 8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
  color: var(--clr-white);
}

.hero__text {
  margin-top: var(--sp-3);
  color: var(--clr-on-dark);
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

/* Service cards: dark glass tiles. Phones 3 x 3; 768-1199px 5 + 4 centred;
   1200px+ one row of 9. They fade up one after another on load. */
.hero__services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.hero__services > li {
  min-width: 0;
  animation: hero-card-in var(--dur) var(--ease) both;
}

.hero__services > li:nth-child(2) { animation-delay: 60ms; }

.hero__services > li:nth-child(3) { animation-delay: 120ms; }

.hero__services > li:nth-child(4) { animation-delay: 180ms; }

.hero__services > li:nth-child(5) { animation-delay: 240ms; }

.hero__services > li:nth-child(6) { animation-delay: 300ms; }

.hero__services > li:nth-child(7) { animation-delay: 360ms; }

.hero__services > li:nth-child(8) { animation-delay: 420ms; }

.hero__services > li:nth-child(9) { animation-delay: 480ms; }

@keyframes hero-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 100%;
  min-height: 88px;
  padding: var(--sp-3) var(--sp-2);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: rgba(10, 31, 78, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--clr-white);
  text-align: center;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.hero-card:hover,
.hero-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--clr-accent);
  box-shadow: 0 10px 28px rgba(245, 166, 35, .28);
  color: var(--clr-white);
}

.hero-card__icon {
  width: 22px;
  height: 22px;
  color: var(--clr-accent);
  transition: transform var(--dur-fast) var(--ease);
}

.hero-card:hover .hero-card__icon,
.hero-card:focus-visible .hero-card__icon {
  transform: scale(1.15);
}

.hero-card__label {
  font-family: var(--ff-heading);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.25;
  /* long words ("Manufacturing", "Infrastructure") may not fit narrow cards */
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Key points: white card; below the hero on mobile, overlapping it from 768px */
.hero__points {
  position: relative;
  z-index: 3;
  margin-top: var(--sp-5);
  padding-inline: var(--gutter);
}

.hero__points-list {
  display: grid;
  gap: var(--sp-4);
  max-width: 1100px;
  margin-inline: auto;
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--clr-white);
  box-shadow: var(--shadow-hover);
}

.hero__points-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.hero__points-list li + li {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-line);
}

.hero__point-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--clr-accent-100);
  color: var(--clr-accent-600);
}

.hero__point-text {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  line-height: 1.4;
}

.hero__point-text strong {
  display: block;
  font-family: var(--ff-heading);
  font-size: 1.1rem;
}

/* 6.4 About
   Mobile-first: everything stacks. >= 768px: split intro, side-by-side directors,
   horizontal timeline. >= 992px: 3 story columns. */

/* Split intro: photo card with amber accent + floating badge | text */
.about-intro {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

.about-intro__media {
  position: relative;
  --accent-offset: var(--sp-3);
}

/* Amber block behind the photo's bottom-left corner */
.about-intro__media::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--accent-offset));
  top: calc(var(--about-photo-h) * .45 + var(--accent-offset));
  width: 55%;
  height: calc(var(--about-photo-h) * .55);
  border-radius: var(--radius-lg);
  background: var(--clr-accent);
}

.about-intro__figure {
  position: relative;
  z-index: 1;
  height: var(--about-photo-h);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--clr-primary);
  box-shadow: var(--shadow-hover);
}

.about-intro__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slow zoom-out once in view (JS adds .is-inview; reduced motion zeroes the duration) */
.js .about-intro__img {
  transform: scale(1.08);
  transition: transform var(--dur-zoom) var(--ease);
}

.js .about-intro__figure.is-inview .about-intro__img {
  transform: scale(1);
}

/* Phones: badge sits below the photo (clear of the amber block) */
.about-intro__badge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: calc(var(--accent-offset) + var(--sp-5));
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  background: var(--clr-white);
  box-shadow: var(--shadow-hover);
}

.about-intro__badge .icon-badge {
  flex-shrink: 0;
}

.about-intro__badge-title {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--clr-primary);
}

.about-intro__text > * + * {
  margin-top: var(--sp-4);
}

.about-intro__text h2 {
  margin-top: var(--sp-2);
}

.about-intro__text .eyebrow + .section-head__sub {
  margin-top: 0;
}

.about-intro__text .about-intro__btn {
  margin-top: var(--sp-6);
}

/* Company story (#about-company): full-bleed navy band with a faint grid and an amber
   glow (background layers, so no overflow clipping that would break the sticky column).
   Phones/tablet: one column. >= 992px: 40/60, heading block sticky. */
.story {
  margin-top: var(--sp-9);
  padding-block: var(--sp-8);
  overflow-x: clip; /* rows slide in from the right; clip (not hidden) keeps sticky working */
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 166, 35, .2) 0%, rgba(245, 166, 35, 0) 40%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    var(--clr-primary);
  background-size: auto, 48px 48px, 48px 48px, auto;
  color: var(--clr-on-dark);
}

.story__inner {
  display: grid;
  gap: var(--sp-7);
}

.story__eyebrow {
  font-family: var(--ff-heading);
  font-weight: 600;
  color: var(--clr-accent);
}

.story__title {
  margin-top: var(--sp-3);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-white);
}

/* Pull-quote: big amber quotation mark (generated), white italic, amber rule */
.story__quote {
  position: relative;
  margin-top: var(--sp-7);
  padding-left: var(--sp-5);
  border-left: 2px solid var(--clr-accent);
  font-size: var(--fs-lead);
  font-style: italic;
  line-height: 1.6;
  color: var(--clr-white);
}

.story__quote::before {
  content: "\201C";
  display: block;
  height: .5em;
  margin-bottom: var(--sp-3);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  font-style: normal;
  line-height: 1;
  color: var(--clr-accent);
}

.story__quote br {
  display: none;
}

/* Rows: CSS-counter numbers (outlined, fill amber when the row is centred) */
.story__list {
  counter-reset: story;
}

.story__row {
  counter-increment: story;
  display: grid;
  gap: var(--sp-3);
  padding-block: var(--sp-6);
}

.story__row:first-child {
  padding-top: 0;
}

.story__row + .story__row {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.story__row::before {
  content: counter(story, decimal-leading-zero);
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--clr-accent);
  transition: color var(--dur) var(--ease);
}

.story__row.is-current::before {
  color: var(--clr-accent);
}

.story__row p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .8);
}

@supports not (-webkit-text-stroke: 1px black) {
  .story__row::before {
    color: var(--clr-accent);
  }
}

/* The About section ends with the directors band (it has its own padding) */
.about {
  padding-bottom: 0;
}

/* Directors: compact centred cards, 280px wide (round photo | name, tag, phone link).
   Stacked on phones; side by side, centred, from 768px. */
.directors {
  padding-block: var(--sp-8);
  background: var(--clr-white);
}

.directors__grid {
  display: grid;
  grid-template-columns: minmax(0, 280px);
  grid-auto-rows: 1fr; /* every card gets the height of the tallest, stacked or side by side */
  justify-content: center;
  gap: var(--sp-6);
}

.dir-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--clr-line);
  border-radius: 16px;
  background: var(--clr-white);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.dir-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Round photo: 140px on phones, 160px from 768px. The image is scaled 1.3x and centred;
   in both portraits the hair starts at 12.5% of the image height (= 16.25% of the circle
   at 1.3x), so moving it up by that and down 10px puts the top of the hair 10px below the
   circle's top edge. The shoulders still run past the bottom of the circle, and both heads
   come out the same size. */
.dir-card__photo {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  overflow: hidden;
  border: 1px solid var(--clr-photo-line);
  border-radius: 50%;
  background: var(--clr-photo-bg);
}

.dir-card__img {
  position: absolute;
  top: calc(9px - 16.25%); /* 9px + the 1px border = 10px */
  left: -15%;
  display: block;
  width: 130%;
  max-width: none;
  height: 130%;
  object-fit: cover;
}

.dir-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin-top: var(--sp-5);
}

.dir-card__name {
  margin-bottom: var(--sp-2);
  font-size: 1.15rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  color: var(--clr-primary);
}

/* Small text link (44px tall tap target) */
.dir-card__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  margin-top: var(--sp-2);
  color: var(--clr-green);
  font-size: .875rem; /* 14px: body-text minimum */
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.dir-card__phone .icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.dir-card__phone:hover,
.dir-card__phone:focus-visible {
  color: var(--clr-primary);
  text-decoration: underline;
}

/* 6.5 CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, .28) 0%, rgba(245, 166, 35, 0) 70%);
}

.cta-band__inner {
  position: relative;
  max-width: 60rem;
  margin-bottom: 0;
}

.cta-band .section-head__sub {
  color: var(--clr-accent);
}

.cta-band .btn {
  margin-top: var(--sp-6);
}

/* 6.6 Services */
.feature-grid {
  margin-bottom: var(--sp-8);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
  padding: var(--sp-6) var(--sp-5);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  background: var(--clr-white);
  box-shadow: var(--shadow);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.feature:hover {
  transform: translateY(-6px);
  border-top-color: var(--clr-accent);
  box-shadow: var(--shadow-hover);
}

.feature h3 {
  margin-top: var(--sp-2);
}

.feature p {
  color: var(--clr-muted);
}

.feature .link-arrow {
  margin-top: auto;
}

.service-grid {
  margin-bottom: var(--sp-8);
}

.mini-slider {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--clr-sky);
}

.mini-slider__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.mini-slider__track::-webkit-scrollbar {
  display: none;
}

.mini-slider__track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}

.mini-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  transform: translateX(-50%);
}

/* Small dark pill behind the dots; the 44px buttons extend beyond it as touch targets */
.mini-slider__dots::before {
  content: "";
  position: absolute;
  inset: 10px 10px;
  border-radius: var(--radius-pill);
  background: rgba(6, 20, 47, .45);
}

.mini-slider__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.mini-slider__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .6);
  transition: width var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.mini-slider__dot[aria-current="true"]::before {
  width: 18px;
  background: var(--clr-accent);
}

.gallery {
  position: relative;
}

.gallery__nav:not([hidden]) {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.gallery__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--clr-line);
  border-radius: 50%;
  background: var(--clr-white);
  color: var(--clr-primary);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.gallery__arrow:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.gallery__track {
  display: flex;
  gap: var(--sp-4);
  padding-bottom: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-accent) transparent;
}

.gallery__item {
  flex: 0 0 min(72vw, 260px);
  scroll-snap-align: start;
}

.gallery__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 360 / 490;
  text-decoration: none;
}

.gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.gallery__link:hover img {
  transform: scale(1.06);
}

.gallery__caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-8) var(--sp-4) var(--sp-4);
  background: linear-gradient(180deg, rgba(6, 20, 47, 0) 0%, rgba(6, 20, 47, .92) 100%);
}

.gallery__title {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--clr-white);
}

/* 6.7 Stats */
.stats {
  position: relative;
  padding-block: var(--sp-8);
  background-color: var(--clr-primary);
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 22px 22px;
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6) var(--sp-4);
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  text-align: center;
}

.stats__icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--sp-2);
  color: var(--clr-green-300);
}

.stats__num {
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--clr-accent);
  font-variant-numeric: tabular-nums;
}

.stats__label {
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--clr-on-dark);
}

/* 6.8 CTA banner */
.cta-banner {
  position: relative;
  padding-block: var(--section-y);
  overflow: hidden;
  color: var(--clr-white);
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(6, 20, 47, .95) 0%, rgba(10, 31, 78, .85) 55%, rgba(11, 122, 26, .55) 100%);
}

.cta-banner__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-6);
}

.cta-banner .section-head__sub {
  margin-bottom: var(--sp-3);
  color: var(--clr-accent);
}

.cta-banner h2 {
  color: var(--clr-white);
}

/* 6.9 Contact */
.contact__grid {
  display: grid;
  gap: var(--sp-6);
}

.contact__info {
  padding: var(--sp-7) var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--grad-band);
  color: var(--clr-on-dark);
}

.contact__info .eyebrow {
  color: var(--clr-green-300);
}

.contact__info h3 {
  margin-bottom: var(--sp-6);
  font-size: 1.5rem;
  color: var(--clr-white);
}

.contact__list {
  display: grid;
  gap: var(--sp-5);
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.contact__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: var(--clr-primary);
}

.contact__list li > span:last-child,
.contact__list a {
  padding-top: 10px;
}

.contact__list a {
  min-height: 44px;
  color: var(--clr-white);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__list a:hover {
  color: var(--clr-accent);
}

.contact__form-card {
  padding: var(--sp-7) var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--clr-white);
  box-shadow: var(--shadow);
}

.contact__form-card h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.contact__form-card > p {
  margin-top: var(--sp-3);
}

.form {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.form__row {
  display: grid;
  gap: var(--sp-4);
}

.form input,
.form textarea {
  display: block;
  width: 100%;
  font-size: 1rem; /* 16px: below this iOS zooms in on focus */
  min-height: 52px;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--clr-line);
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  color: var(--clr-ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--clr-muted);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--clr-green);
  background: var(--clr-white);
  box-shadow: 0 0 0 4px rgba(11, 122, 26, .15);
}

.form .is-invalid {
  border-color: var(--clr-error);
}

.form .is-invalid:focus {
  border-color: var(--clr-error);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, .15);
}

.form__error {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--clr-error);
}

.form__submit {
  width: 100%;
}

.form__messages:empty {
  display: none;
}

.form__messages {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  background: #FEF3F2;
  color: var(--clr-error);
  font-size: var(--fs-sm);
}

.contact__map {
  margin-top: var(--sp-7);
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--clr-line);
}

.contact__map iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

/* 6.10 Footer */
.site-footer {
  background: var(--clr-primary-900);
  color: var(--clr-on-dark);
  font-size: .95rem;
}

.site-footer__grid {
  display: grid;
  gap: var(--sp-7);
  padding-block: var(--sp-8);
}

.site-footer__logo {
  display: inline-block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  background: var(--clr-white);
}

.site-footer__logo img {
  width: auto;
  height: 64px;
}

.site-footer__about p {
  margin-block: var(--sp-5);
}

.site-footer__title {
  position: relative;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  font-size: 1.1rem;
  color: var(--clr-white);
}

.site-footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--clr-accent);
}

.site-footer__links {
  display: grid;
}

.site-footer a {
  color: var(--clr-on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--clr-accent);
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 2px;
}

.site-footer__contact {
  display: grid;
  gap: var(--sp-4);
}

.site-footer__contact li {
  display: flex;
  gap: var(--sp-3);
}

.site-footer__contact .icon {
  margin-top: 3px;
  color: var(--clr-accent);
}

.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  vertical-align: middle;
  color: var(--clr-white);
  overflow-wrap: anywhere;
}

/* Rows with a 44px link: centre the icon on the taller line */
.site-footer__contact li:has(a) {
  align-items: center;
}

.site-footer__contact li:has(a) .icon {
  margin-top: 0;
}

.site-footer__bar {
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--fs-sm);
  text-align: center;
}

/* Phones: the floating buttons stack in the bottom-right corner, right where the copyright
   line ends up at the end of the page. Keep the (centred) line clear of that column. */
.site-footer__bar .container {
  padding-inline: calc(var(--float-size) + var(--float-edge) + var(--sp-2));
}

/* 6.11 Floating buttons + back to top */
/* Phones: one stack in the bottom-right corner: back to top, call, WhatsApp */
.floating {
  position: fixed;
  right: var(--float-edge);
  bottom: var(--float-edge);
  z-index: var(--z-float);
  display: flex;
  flex-direction: column;
  gap: var(--float-gap);
}

.floating__btn,
.to-top {
  display: grid;
  place-items: center;
  width: var(--float-size);
  height: var(--float-size);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(6, 20, 47, .28);
  transition: transform var(--dur-fast) var(--ease);
}

.floating__btn:hover,
.to-top:hover {
  transform: translateY(-3px);
}

.floating__btn .icon,
.to-top .icon {
  width: 24px;
  height: 24px;
}

.floating__btn--call {
  background: var(--clr-primary);
  color: var(--clr-accent);
}

.floating__btn--whatsapp {
  background: #128C7E;
  color: var(--clr-white);
}

.floating__btn--call:hover {
  color: var(--clr-accent);
}

.floating__btn--whatsapp:hover {
  color: var(--clr-white);
}

.to-top {
  position: fixed;
  right: var(--float-edge);
  bottom: calc(var(--float-edge) + 2 * (var(--float-size) + var(--float-gap)));
  z-index: var(--z-float);
  background: var(--clr-accent);
  color: var(--clr-primary);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast),
    transform var(--dur-fast) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-fast) var(--ease), visibility 0s, transform var(--dur-fast) var(--ease);
}

.no-js .to-top {
  display: none;
}

/* While the contact form is on screen the floating buttons step aside so they never sit on
   top of a field or the send button (the contact details are right there instead). */
.floating.is-tucked,
.to-top.is-tucked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
}

.floating {
  transition: opacity var(--dur-fast) var(--ease), visibility 0s;
}

/* 6.12 Scroll reveal (only when JS is running) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease) var(--reveal-delay, 0ms),
    transform var(--dur) var(--ease) var(--reveal-delay, 0ms);
}

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

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

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

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--clr-muted);
}

/* --------------------------------------------------------------------------
   8. Media queries (mobile-first)
   -------------------------------------------------------------------------- */
@media (min-width: 576px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .form__row {
    grid-template-columns: 1fr 1fr;
  }

  /* 13 service cards: the odd last card spans the row instead of sitting alone */
  .service-grid > .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .form__submit {
    width: auto;
    justify-self: start;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__info,
  .contact__form-card {
    padding-inline: var(--sp-6);
  }
}

@media (min-width: 768px) {
  :root {
    --logo-h: 56px;
    --logo-h-scrolled: 56px;
    --header-h: 80px;
  }

  /* Floating buttons move to the two bottom corners: the copyright line no longer needs room */
  .site-footer__bar .container {
    padding-inline: var(--gutter);
  }

  /* Hero: whole banner (no crop); text centred in its empty navy lower half
     (which starts at 55% of the image height = 27.5% of its width) */
  .hero__stage {
    display: grid;
    container-type: inline-size;
  }

  .hero__media,
  .hero__content {
    grid-area: 1 / 1;
  }

  .hero__media {
    align-self: start;
  }

  .hero__media > picture {
    aspect-ratio: auto;
    overflow: visible;
  }

  .hero__banner {
    width: 100%;
    margin-left: 0;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent);
    mask-image: linear-gradient(to bottom, #000 88%, transparent);
  }

  /* Positioned so it paints above the masked image (a mask creates its own layer) */
  .hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 27.5cqw;
    padding-bottom: calc(var(--points-half) + var(--sp-6));
  }

  .hero__title {
    font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  }

  .hero__services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
  }

  .hero__services > li {
    flex: 0 0 calc((100% - 4 * var(--sp-3)) / 5);
  }

  .hero-card {
    min-height: 104px;
    padding: var(--sp-4) var(--sp-2);
  }

  .hero-card__icon {
    width: 28px;
    height: 28px;
  }

  .hero-card__label {
    font-size: .85rem;
  }

  /* Keep "Cold Storage &", "Heavy Vehicles" and "Parking Yard" on one line each */
  .hero-card__keep {
    white-space: nowrap;
  }

  /* The cards replace the buttons ("Request Quote" stays in the header) */
  .hero__actions {
    display: none;
  }

  .hero__text {
    font-size: var(--fs-lead);
  }

  .hero__points {
    margin-top: calc(-1 * var(--points-half));
  }

  .hero__points-list {
    grid-template-columns: repeat(3, 1fr);
    padding-inline: var(--sp-6);
  }

  .hero__points-list li + li {
    padding-top: 0;
    padding-left: var(--sp-5);
    border-top: 0;
    border-left: 1px solid var(--clr-line);
  }

  .grid {
    gap: var(--sp-6);
  }

  .stats__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-grid > .service-card:last-child:nth-child(odd) {
    flex-direction: row;
  }

  .service-grid > .service-card:last-child:nth-child(odd) .mini-slider {
    flex: 0 0 50%;
    aspect-ratio: auto;
    min-height: 280px;
  }

  .service-grid > .service-card:last-child:nth-child(odd) .card__body {
    justify-content: center;
    padding: var(--sp-7);
  }

  .stats__item + .stats__item {
    border-left: 1px solid rgba(255, 255, 255, .12);
  }

  .contact__map iframe {
    height: 420px;
  }

  :root {
    --float-size: 52px;
  }

  .floating {
    right: auto;
    left: var(--float-edge);
  }

  .to-top {
    bottom: var(--float-edge);
  }

  /* About: split intro (55/45), badge overlaps the photo's bottom-right corner */
  :root {
    --about-photo-h: clamp(420px, 50vw, 560px);
  }

  .about-intro {
    grid-template-columns: 55fr 45fr;
    gap: var(--sp-8);
  }

  .about-intro__media {
    --accent-offset: var(--sp-5);
    margin-bottom: var(--sp-5);
  }

  .about-intro__badge {
    position: absolute;
    right: calc(-1 * var(--sp-5));
    bottom: calc(-1 * var(--sp-5));
    max-width: 80%;
    margin-top: 0;
  }

  .story__row {
    grid-template-columns: 6rem 1fr;
    column-gap: var(--sp-6);
    align-items: start;
  }

  .story__row::before {
    font-size: 4rem;
  }

  .directors {
    padding-block: var(--sp-9);
  }

  .directors__grid {
    grid-template-columns: repeat(2, minmax(0, 280px));
  }

  .dir-card__photo {
    width: 160px;
    height: 160px;
  }
}

@media (min-width: 992px) {
  :root {
    --logo-h: 64px;
    --logo-h-scrolled: 54px;
    --header-h: 88px;
  }

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

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Service grid, 3 columns drawn as 6 half-columns (each card spans 2), so an incomplete
     last row can be centred. Card sizes are identical to repeat(3, 1fr). Adapts to any
     card count: 2 cards left over (count = 3n + 2) -> both centred; 1 card left over with
     an even count (count = 6n + 4) -> centred. An odd count still uses the full-width
     last-card rule above (it is more specific than the span below and is not matched here). */
  .service-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .service-grid > .service-card {
    grid-column: span 2;
  }

  .service-grid > .service-card:nth-child(3n + 1):nth-last-child(2) {
    grid-column: 2 / span 2;
  }

  .service-grid > .service-card:nth-child(6n + 4):last-child {
    grid-column: 3 / span 2;
  }

  /* Desktop navigation: inline, no toggle */
  .nav-toggle,
  .nav-backdrop {
    display: none;
  }

  .js .site-nav,
  .no-js .site-nav,
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-4);
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    background: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .site-nav__list,
  .no-js .site-nav__list {
    flex-direction: row;
    gap: var(--sp-1);
  }

  /* 992-1199px: tighter link padding so the bigger logo, links and button share one row */
  .site-nav__link {
    padding: var(--sp-3) var(--sp-2);
    font-size: .95rem;
    white-space: nowrap;
  }

  .site-nav__cta {
    white-space: nowrap;
  }

  .js .site-nav .site-nav__link {
    border-bottom: 0;
  }

  .site-nav__link::after {
    left: var(--sp-2);
    right: var(--sp-2);
  }

  .site-nav__cta,
  .no-js .site-nav__cta {
    display: inline-flex;
    margin-top: 0;
  }

  .no-js .site-header__inner {
    flex-wrap: nowrap;
  }

  .cta-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cta-banner .btn {
    flex-shrink: 0;
  }

  .contact__grid {
    grid-template-columns: 5fr 7fr;
    align-items: stretch;
  }

  .contact__info,
  .contact__form-card {
    padding: var(--sp-8) var(--sp-7);
  }

  .site-footer__grid {
    grid-template-columns: 1.3fr 1fr 1.25fr 1.2fr;
    gap: var(--sp-6);
  }

  .gallery__item {
    flex-basis: calc((100% - 3 * var(--sp-4)) / 4);
  }

  :root {
    --float-edge: var(--sp-5);
  }

  .story {
    padding-block: var(--sp-9);
  }

  .story__inner {
    grid-template-columns: 2fr 3fr;
    gap: var(--sp-8);
    align-items: start;
  }

  .story__head {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-6));
  }

}

@media (min-width: 1200px) {
  .hero__services {
    gap: var(--sp-2);
  }

  .hero__services > li {
    flex: 1 1 0;
  }

  .site-nav__list {
    gap: var(--sp-2);
  }

  /* same specificity as the 992px rule (the old `.site-nav` rule here never applied) */
  .js .site-nav,
  .no-js .site-nav,
  .site-nav {
    gap: var(--sp-5);
  }

  .site-nav__link {
    padding-inline: var(--sp-3);
  }

  .site-nav__link::after {
    left: var(--sp-3);
    right: var(--sp-3);
  }

  .gallery__item {
    flex-basis: calc((100% - 4 * var(--sp-4)) / 5);
  }
}

/* Every transition/animation uses the duration tokens, so zeroing them here
   switches off all non-essential motion without !important. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0ms;
    --dur-fast: 0ms;
    --dur-slow: 0ms;
    --dur-zoom: 0ms;
  }

  html {
    scroll-behavior: auto;
  }

  .mini-slider__track,
  .gallery__track {
    scroll-behavior: auto;
  }

  .card:hover,
  .feature:hover,
  .btn--primary:hover,
  .floating__btn:hover,
  .to-top:hover,
  .card:hover .card__media img,
  .gallery__link:hover img {
    transform: none;
  }

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

  .js .about-intro__img,
  .dir-card:hover,
  .hero-card:hover,
  .hero-card:focus-visible,
  .hero-card:hover .hero-card__icon,
  .hero-card:focus-visible .hero-card__icon {
    transform: none;
  }

  .hero__services > li {
    animation: none;
  }

  .story__row::before {
    transition: none;
  }}
