/* ==========================================================================
   Malik Crane Services Pvt. Ltd. — global stylesheet
   Colours sampled directly from the Wix mockup screenshots.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Figtree — self-hosted variable font, weights 400–900 in one file.
   Stands in for Wix Madefor, which isn't licensable off-platform.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy: #0b2d72;         /* logo + wordmark — the core brand colour */
  --accent: #e63a17;       /* buttons, stat figures, rules */
  --accent-dark: #c42d0f;  /* accent hover */
  --yellow: #fcd900;       /* footer */
  --ink: #1a1a1a;          /* headings, dark panel */
  --bg: #f4f4f4;           /* page background */
  --card: #dcdcdc;         /* stat card fill */
  --white: #fff;
  --body: #3a3a3a;         /* body copy */
  --rule: rgba(26, 26, 26, .14);

  --wrap: 1040px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --header-h: 78px;

  --r-sm: 3px;
  --r-md: 6px;
  --pill: 999px;

  --shadow: 0 1px 3px rgba(26, 26, 26, .1), 0 8px 24px rgba(26, 26, 26, .06);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

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

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Skip link for keyboard + screen-reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}
.skip-link:focus {
  left: .5rem;
  top: .5rem;
  text-decoration: none;
}

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

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* Centred section heading with the short accent rule beneath it */
.section-head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 { margin-bottom: 0; }
.section-head p {
  max-width: 62ch;
  margin: 1.1rem auto 0;
}
.rule {
  width: 62px;
  height: 4px;
  margin: 1.6rem auto 0;
  border: 0;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.btn--solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

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

.btn--square { border-radius: var(--r-sm); }

/* --------------------------------------------------------------------------
   Button hover: a dot grows to fill the button, the label slides out and a
   copy slides in behind an arrow. Structure is built by js/site.js, so a
   button still looks and works correctly if that never runs.
   -------------------------------------------------------------------------- */
.btn--fx {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn__label,
.btn__hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  position: relative;
  z-index: 2;
  transition: transform .3s ease, opacity .3s ease;
}

.btn__label { transform: translateX(2px); }

.btn__hover {
  position: absolute;
  inset: 0;
  transform: translateX(2.75rem);
  opacity: 0;
}

.btn--fx:hover .btn__label,
.btn--fx:focus-visible .btn__label {
  transform: translateX(2.75rem);
  opacity: 0;
}

.btn--fx:hover .btn__hover,
.btn--fx:focus-visible .btn__hover {
  transform: translateX(0);
  opacity: 1;
}

.btn__arrow { width: 17px; height: 17px; flex: 0 0 auto; }

/* The growing dot. It rests inside the button's left padding rather than at
   20% across, which on these wider buttons would sit on top of the label. */
.btn__dot {
  position: absolute;
  left: .95rem;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  z-index: 1;
  border-radius: var(--pill);
  transition: all .3s ease;
  pointer-events: none;
}

.btn--fx:hover .btn__dot,
.btn--fx:focus-visible .btn__dot {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform: scale(1.8);       /* overshoot so the corners fill completely */
}

/* Filled buttons are already accent, so the dot arrives in ink */
.btn--solid .btn__dot { background: var(--ink); }
.btn--solid.btn--fx:hover { background: var(--accent); border-color: var(--accent); }

/* Outlined buttons fill with accent, and their label turns white as it does */
.btn--outline .btn__dot { background: var(--accent); }
.btn--outline.btn--fx:hover,
.btn--outline.btn--fx:focus-visible { background: transparent; }
.btn--outline.btn--fx:hover .btn__hover,
.btn--outline.btn--fx:focus-visible .btn__hover { color: var(--white); }

/* Marks a button that leaves the site */
.btn__external {
  width: 15px;
  height: 15px;
  margin-left: .45rem;
  vertical-align: -2px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Logo lockup: navy monogram + navy wordmark */
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo img { height: 34px; width: auto; }
.logo__mark { height: 38px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  color: var(--ink);
  font-size: .98rem;
  font-weight: 500;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav__link:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
  text-decoration: none;
}
.nav__link[aria-current='page'] {
  font-weight: 700;
  border-bottom-color: var(--accent);
}

/* Hamburger — hidden until the mobile breakpoint */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero — two columns on desktop, stacked on mobile
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 8vw, 5.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  align-items: start;
}

.hero__lede {
  font-size: 1.02rem;
  max-width: 54ch;
}

.hero__media img {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Stat cards
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.75rem);
}

.stat {
  padding: 2.25rem 1.75rem;
  background: var(--card);
  border-radius: var(--r-sm);
  text-align: center;
}
.stat__figure {
  display: block;
  color: var(--accent);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .7rem;
}
.stat__label {
  margin: 0;
  color: var(--navy);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   Dark "trusted by" panel
   -------------------------------------------------------------------------- */
.trust {
  padding: clamp(2.25rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  background: var(--ink);
  border-radius: var(--r-sm);
  text-align: center;
}
.trust h3 {
  color: var(--white);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
}
.trust__clients {
  padding: 1.35rem 1.5rem;
  border: 1px dashed rgba(255, 255, 255, .35);
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .92);
  font-size: .95rem;
  line-height: 1.9;
}
.trust .btn { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Project carousel — CSS scroll-snap, JS only drives the arrows
   -------------------------------------------------------------------------- */
.carousel {
  position: relative;
  display: flex;
  flex-direction: column;
}

.carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: .5rem;
  /* hide the scrollbar but keep the scrolling */
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__item {
  position: relative;
  flex: 0 0 auto;
  width: clamp(210px, 44vw, 260px);
  margin: 0;
  scroll-snap-align: start;
  border-radius: var(--r-sm);
  overflow: hidden;          /* keeps the caption inside the rounded corners */
}
.carousel__item img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--card);
}

/* Category name, revealed on hover. The marquee already pauses on hover, so
   the photo holds still while the label is being read. */
.carousel__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.75rem .9rem .85rem;
  background: linear-gradient(to top, rgba(26, 26, 26, .88) 30%, transparent);
  color: var(--white);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}

.carousel__item:hover .carousel__label,
.carousel__item:focus-within .carousel__label {
  opacity: 1;
  transform: none;
}

/* No hover on touch, so show the label there rather than hide it for good */
@media (hover: none) {
  .carousel__label { opacity: 1; transform: none; }
}

.carousel__btn {
  position: absolute;
  top: calc(130px - 22px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--pill);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background-color .18s ease;
}
.carousel__btn:hover { background: var(--bg); }
.carousel__btn[disabled] { opacity: .35; cursor: default; }
.carousel__btn--prev { left: -14px; }
.carousel__btn--next { right: -14px; }
.carousel__btn svg { width: 18px; height: 18px; stroke: var(--ink); }

/* While the marquee is running, snapping would fight the drift. */
.carousel__track.is-marquee {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

/* --------------------------------------------------------------------------
   Product panels
   The Products page sits on a darker ground so the cards read as cards.
   -------------------------------------------------------------------------- */
.page--tinted { background: var(--card); }
.page--tinted .site-header { background: var(--card); }

/* Card width chosen so three 280px photos fill it the way the mockup does
   (~95% of the panel's inner width) rather than floating in empty space. */
.products {
  max-width: 1060px;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  padding-block: clamp(2rem, 5vw, 3.25rem);
}

.panel {
  padding: clamp(1.75rem, 4.5vw, 3rem) clamp(1.25rem, 4vw, 2.75rem);
  background: var(--bg);
  border: 1px solid rgba(26, 26, 26, .09);
  border-radius: var(--r-sm);
  box-shadow: 0 1px 2px rgba(26, 26, 26, .05), 0 6px 18px rgba(26, 26, 26, .05);
  text-align: center;
}

.panel__title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin: 0;
}

/* Scales with the card, roughly the 47% the mockup uses */
.panel__rule {
  width: clamp(220px, 47%, 660px);
  height: 0;
  margin: 1.6rem auto 0;
  border: 0;
  border-top: 1px solid #b0b0b0;
}

.panel__lede {
  max-width: 1120px; /* wide enough to sit on one line on a large screen */
  margin: 1.75rem auto 0;
  font-size: .98rem;
}

/* One grid rhythm for the whole page: every image cell is the same width and
   the same shape, whether the panel holds two photos or three. That
   uniformity is what makes the page read as tidy. */
.panel__media {
  --gap: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  justify-content: center;
}

.panel__media figure {
  margin: 0;
  width: 100%;
}

/* The files themselves are square, so no CSS cropping is involved — every
   photo is the same shape and the same size, everywhere on the page. */
.panel__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  background: var(--card);
}

.panel__cta { margin-top: clamp(1.75rem, 4vw, 2.5rem); }

/* Always side by side, never stacked. The columns shrink on a narrow screen
   rather than wrapping a photo onto a second row. The max-widths cap them at
   the mockup's 280px once there is room. */
.panel__media--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 10px);
  max-width: 860px;              /* 3 x 280 + 2 x 10 */
  margin-inline: auto;
}

/* The mockup sets the pairs slightly further apart than the trio */
.panel__media--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 5vw, 58px);
  max-width: 618px;              /* 2 x 280 + 58 */
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   "Under construction" placeholder pages
   -------------------------------------------------------------------------- */
.uc { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3.5rem, 9vw, 6rem); }

.uc__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  text-align: center;
}

/* The crane trundles left to right across its lane and eases back, so it is
   always fully on screen — a full pass-through would leave the lane empty
   for most of the loop, since the lane is only as wide as the mockup allows. */
.uc__art-lane {
  --art: clamp(150px, 26vw, 215px);
  --lane: clamp(190px, 32vw, 300px);
  position: relative;
  flex: 0 0 auto;
  width: var(--lane);
  height: calc(var(--art) * .977); /* viewBox is 215 x 210 */
}

.uc__art {
  width: var(--art);
  height: auto;
  animation: crane-drive 6s ease-in-out infinite alternate;
}

@keyframes crane-drive {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(var(--lane) - var(--art))); }
}

.uc__title {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  max-width: 14ch;
}

.uc__message {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.3;
  text-align: center;
}

/* Buttons under the 404 message */
.uc__actions { justify-content: center; }

/* Side-by-side once there's room, matching the mockup */
@media (min-width: 760px) {
  .uc__row {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: clamp(2rem, 4vw, 3rem);
  }
  .uc__message { text-align: left; max-width: 40ch; margin-inline: auto; }
}

/* --------------------------------------------------------------------------
   Lightbox
   Built and opened by JS. Images are capped at their natural size so a
   smaller original is never blown up and blurred.
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(12, 12, 12, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.lightbox[data-open='true'] { opacity: 1; visibility: visible; }

.lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}

.lightbox__img {
  max-width: min(100%, 1400px);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: var(--r-sm);
  background: #1a1a1a;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .55);
}

.lightbox__caption {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}
.lightbox__count {
  display: block;
  margin-top: .2rem;
  color: rgba(255, 255, 255, .6);
  font-size: .85rem;
  font-weight: 500;
}

/* Controls */
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--pill);
  color: var(--white);
  cursor: pointer;
  transition: background-color .18s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

.lightbox__btn--close { top: clamp(.75rem, 3vw, 1.5rem); right: clamp(.75rem, 3vw, 1.5rem); }
.lightbox__btn--prev { left: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }

/* Stop the page behind from scrolling while the lightbox is open */
.has-lightbox { overflow: hidden; }

/* The photos are now buttons, so strip the button chrome back off */
.carousel__item {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Footer — full-bleed yellow
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--yellow);
  color: var(--ink);
  padding-block: clamp(2.75rem, 7vw, 4rem) 2rem;
}

.site-footer a { color: var(--ink); }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

.footer__heading {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer__address {
  max-width: 34ch;
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

/* Contact rows with inline SVG icons (the Wix originals were watermarked stock) */
.contact-line {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .6rem;
  font-size: .95rem;
}
.contact-line svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.7;
}

/* Small inset Google Maps embed, as in the mockup */
.footer__map {
  margin-top: 1rem;
  max-width: 290px;
  border: 1px solid rgba(26, 26, 26, .25);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(26, 26, 26, .06);
}
.footer__map iframe {
  display: block;
  width: 100%;
  height: 165px;
  border: 0;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  margin-top: .85rem;
  padding: .6rem 1.1rem;
  background: rgba(26, 26, 26, .07);
  border: 1px solid rgba(26, 26, 26, .2);
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
}
.map-link:hover { background: rgba(26, 26, 26, .13); text-decoration: none; }

/* Match the mail/phone icon treatment — without this the pin inherits no
   size or stroke and renders as a solid blob (or not at all). */
.map-link svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.footer__tagline {
  margin: .75rem 0 0;
  font-size: .95rem;
  font-weight: 500;
}

.socials { display: flex; gap: .65rem; margin-top: .25rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  border-radius: var(--pill);
}
.socials a:hover { background: var(--navy); }
.socials svg { width: 18px; height: 18px; fill: var(--yellow); }

/* Oversized wordmark across the bottom */
.footer__wordmark {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
  font-size: clamp(2.4rem, 11vw, 6rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1;
  color: var(--ink);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1.25rem;
  font-size: .82rem;
}
.footer__legal p { margin: 0; }

/* --------------------------------------------------------------------------
   Cursor spotlight
   A soft wash across the card surface plus a lit edge, both following the
   pointer. Coordinates are per-card and set by JS: a fixed background would
   have been cheaper, but it attaches to the element rather than the viewport
   once that element is transformed, which the product cards are.
   Starts off-canvas so nothing glows until the pointer actually moves.
   -------------------------------------------------------------------------- */
.panel,
.stat,
.trust,
.uc__row,
.panel__media figure {
  --gx: -999px;
  --gy: -999px;
  --glow-size: 900px;              /* wide enough to reach a big card's edges */
  --glow-tint: 230 58 23;          /* accent */
  --glow-wash: .20;                /* tint across the surface */
  --glow-edge: 1;                  /* brightness of the lit border */
  --glow-halo: .5;                 /* soft bloom outside the card */
  --glow-ring: 2px;
  position: relative;
  background-image: radial-gradient(
    var(--glow-size) var(--glow-size) at var(--gx) var(--gy),
    rgb(var(--glow-tint) / var(--glow-wash)), transparent 65%);
  background-repeat: no-repeat;
}

/* The lit edge: a ring drawn by masking the middle out of a gradient */
.panel::before,
.stat::before,
.trust::before,
.uc__row::before,
.panel__media figure::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: var(--glow-ring);
  z-index: 2;
  background: radial-gradient(
    var(--glow-size) var(--glow-size) at var(--gx) var(--gy),
    rgb(var(--glow-tint) / var(--glow-edge)), transparent 60%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Bloom spilling out past the edge. Sits behind the card's own background,
   so it only shows in the few pixels outside the box. */
.panel::after,
.stat::after,
.trust::after,
.uc__row::after,
.panel__media figure::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    var(--glow-size) var(--glow-size) at var(--gx) var(--gy),
    rgb(var(--glow-tint) / var(--glow-halo)), transparent 55%);
  filter: blur(12px);
  pointer-events: none;
}

/* Product cards light along the edge only — no surface wash, no outer bloom */
.panel {
  --glow-wash: 0;
  --glow-halo: 0;
}

/* Navy reads better than accent on the pale stat tiles */
.stat { --glow-tint: 11 45 114; --glow-wash: .16; }

/* Yellow is the only tint with enough contrast on the dark panel */
.trust {
  --glow-tint: 252 217 0;
  --glow-wash: .12;
  --glow-edge: .8;
  --glow-halo: .35;
}

/* The About page has no card, so light the illustration's lane instead */
.uc__row {
  --glow-wash: .14;
  --glow-edge: 0;
  --glow-halo: 0;
  border-radius: var(--r-md);
}

/* Photographs: a lit edge reads well, a wash over the image does not.
   The home carousel is deliberately left out — it is already in motion, and
   a glow travelling across moving thumbnails was too busy. */
.panel__media figure {
  --glow-size: 520px;
  --glow-wash: 0;
  --glow-halo: 0;      /* edge only, to match the card around them */
  --glow-ring: 2px;
  border-radius: 4px;
}

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

/* Fallback nav shown only when JavaScript is unavailable */
.noscript-nav {
  padding: .85rem var(--gutter);
  background: var(--ink);
  color: var(--white);
  font-size: .95rem;
}
.noscript-nav a { color: var(--yellow); margin-right: 1.1rem; }

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet and up */
@media (min-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 2.5rem 2rem; }
}

/* Desktop */
@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }
  .footer__grid { grid-template-columns: 1.1fr 1fr .7fr; }
  .carousel__btn--prev { left: -22px; }
  .carousel__btn--next { right: -22px; }
}

/* Mobile nav */
@media (max-width: 859px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav[data-open='true'] { max-height: 22rem; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav__link {
    display: block;
    padding: .8rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.05rem;
  }
  .nav__link[aria-current='page'] { border-bottom-color: var(--accent); }
}

/* Reduced motion: damp down hover transitions and smooth scrolling, but
   deliberately leave the deliberate animations (the project marquee and the
   About page crane) running — they are content, and the site owner wants
   them visible for everyone. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel__track { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
