/* ==========================================================================
   KW&K Engineering — Main Stylesheet
   Theme: Modern & Clean · Navy / Sky Blue / White
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #051129;
  --navy-900: #0a1f44;
  --navy-800: #0e2b5c;
  --navy-700: #143a78;
  --blue-600: #1e56c8;
  --blue-500: #2a6be6;
  --sky-500: #0ea5e9;
  --sky-400: #38bdf8;
  --sky-200: #bae6fd;
  --sky-100: #e0f2fe;
  --sky-50: #f2f8fe;
  --white: #ffffff;
  --ink: #0b1b33;
  --body: #3e4e66;
  --muted: #647389;
  --line: #e2e9f2;
  --success: #0f8a5f;
  --danger: #d23b50;

  --font-head: 'Prompt', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Thai', 'Prompt', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(10, 31, 68, 0.06);
  --shadow: 0 14px 34px -10px rgba(10, 31, 68, 0.16);
  --shadow-lg: 0 26px 60px -14px rgba(10, 31, 68, 0.28);

  --container: 1200px;
  --topbar-h: 40px;
  /* Floating pill header: --pill-h is the capsule, --header-gap the air above and
     below it. --header-h is the whole block the header occupies — heroes offset by
     it, and it drives scroll-margin and the sticky legal TOC. */
  --pill-h: 64px;
  --header-gap: 14px;
  --header-h: calc(var(--pill-h) + var(--header-gap) * 2);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Shared hero overlay (home banner + all page heroes): dark behind the text on the left, clear on the right */
  --hero-overlay: linear-gradient(90deg, rgba(5, 17, 41, 0.78) 0%, rgba(10, 31, 68, 0.6) 38%, rgba(10, 31, 68, 0.22) 60%, rgba(10, 31, 68, 0) 82%);
  --hero-overlay-mobile: linear-gradient(90deg, rgba(5, 17, 41, 0.72) 0%, rgba(10, 31, 68, 0.58) 60%, rgba(10, 31, 68, 0.35) 100%);
  --hero-text-shadow: 0 2px 14px rgba(5, 17, 41, 0.55);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--blue-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sky-500); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 2px; }

::selection { background: var(--sky-200); color: var(--navy-900); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 1001;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--white); }

body.no-scroll { overflow: hidden; }

/* Language switch pending (prevents flashing Thai text for EN visitors) */
html.i18n-pending body { opacity: 0; }

/* Component placeholders reserve space to avoid layout shift */
[data-component="header"] { display: block; min-height: var(--header-h); }
[data-component="footer"] { display: block; min-height: 480px; background: var(--navy-950); }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; }

/* CSS mask icons used by the shared components. Components avoid inline <svg>
   because dev servers (Live Server) inject a reload script before every
   </svg> and then send a wrong Content-Length, truncating the file. */
.i {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.i-pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.i-phone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.i-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.i-send { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E"); }
.i-arrow-up { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E"); }
.i-facebook { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E"); }
.i-close { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.i-chat { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8z'/%3E%3C/svg%3E"); }

.topbar .i { width: 15px; height: 15px; color: var(--sky-400); }
.btn .i, .footer-contact .i { width: 18px; height: 18px; }
.footer-contact .i { margin-top: 0.3em; color: var(--sky-400); }
.fab__btn .i { width: 22px; height: 22px; }

.icon-box {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--sky-100);
  color: var(--blue-600);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.icon-box svg { width: 26px; height: 26px; }
.icon-box--lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-box--lg svg { width: 30px; height: 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--blue-600), var(--sky-500));
  /* Paint the gradient across the transparent 2px border too, so it doesn't tile and leave seams at the edges */
  background-origin: border-box;
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(30, 86, 200, 0.55);
}
.btn--primary:hover { color: var(--white); box-shadow: 0 16px 32px -8px rgba(30, 86, 200, 0.6); }

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

.btn--light { border-color: rgba(255, 255, 255, 0.45); color: var(--white); background: rgba(255, 255, 255, 0.04); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--navy-900); }

.btn--white { background: var(--white); color: var(--navy-900); }
.btn--white:hover { color: var(--blue-600); box-shadow: var(--shadow); }

.btn--sm { padding: 10px 18px; font-size: 0.925rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding-block: 104px; position: relative; }
.section--tint { background: var(--sky-50); }
.section--navy {
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.16), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(30, 86, 200, 0.28), transparent 45%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: rgba(255, 255, 255, 0.75);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.section--navy .eyebrow { color: var(--sky-400); }

.section-title { font-size: clamp(1.75rem, 1.15rem + 2vw, 2.6rem); margin-bottom: 16px; text-wrap: balance; }
.split .section-title { font-size: clamp(1.7rem, 1.1rem + 1.7vw, 2.25rem); }
.section-lead { font-size: 1.075rem; color: var(--muted); margin: 0; text-wrap: balance; }
.section--navy .section-lead { color: rgba(255, 255, 255, 0.72); }

.section-actions { margin-top: 48px; text-align: center; }

/* ---------- Top bar ---------- */
.topbar {
  height: var(--topbar-h);
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__list { display: flex; align-items: center; gap: 28px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.topbar a.topbar__item:hover { color: var(--white); }
.topbar svg { width: 15px; height: 15px; color: var(--sky-400); }

/* ---------- Header (floating pill) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: var(--header-gap);
  padding-inline: 20px;
  background: transparent;
  /* The bar spans the full width but only the capsule is painted, so clicks in the
     transparent gutter must reach the hero underneath. */
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  position: relative;
  height: var(--pill-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-inline: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 12px 32px -14px rgba(10, 31, 68, 0.3), 0 2px 8px rgba(10, 31, 68, 0.06);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled .navbar {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 44px -16px rgba(10, 31, 68, 0.36), 0 2px 10px rgba(10, 31, 68, 0.08);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: block;
  padding: 9px 15px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--blue-600); background: var(--sky-50); }
.nav__link.is-active { color: var(--blue-600); background: var(--sky-100); }
.nav__extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--sky-50);
}
.lang-switch button {
  border: 0;
  background: none;
  padding: 6px 11px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button:hover { color: var(--blue-600); }
.lang-switch button[aria-pressed="true"] { background: var(--navy-900); color: var(--white); }

/* Solid navy pill closing the capsule — the dark CTA from the reference, in the
   site's palette instead of black. */
.header-cta.btn--primary {
  padding: 11px 20px;
  background: var(--navy-900);
  box-shadow: none;
}
.header-cta.btn--primary:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--sky-500));
  background-origin: border-box;
  box-shadow: 0 10px 22px -8px rgba(30, 86, 200, 0.5);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { transform: translateY(-6px); }
.nav-toggle__bar::after { transform: translateY(6px); }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: rotate(-45deg); }

/* ---------- Home hero (banner) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 88vh, 820px);
  /* The floating header overlays the banner: pull up under it, pad the text back down */
  margin-top: calc(var(--header-h) * -1);
  padding-block: calc(110px + var(--header-h)) 170px;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
/* Banner is a wide illustration: keep the outdoor units and workers (right side) in frame; text sits over the left */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-overlay);
}
.hero__content { max-width: 700px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}

.hero__title {
  color: var(--white);
  font-size: clamp(1.85rem, 1.15rem + 3.4vw, 3.65rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 22px;
}
.accent {
  background: linear-gradient(90deg, var(--sky-400), #93dcfd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { max-width: 610px; margin-bottom: 36px; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem); color: rgba(255, 255, 255, 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__checks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.88); }
.hero__checks li { display: flex; align-items: center; gap: 10px; }
.hero__checks svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(56, 189, 248, 0.2); color: var(--sky-400); }

/* ---------- Highlights (overlaps hero) ---------- */
.highlights { position: relative; z-index: 2; margin-top: -96px; }
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.highlight { display: flex; align-items: flex-start; gap: 16px; padding: 30px 26px; border-right: 1px solid var(--line); transition: background 0.3s; }
.highlight:last-child { border-right: 0; }
.highlight:hover { background: var(--sky-50); }
.highlight:hover .icon-box { background: var(--blue-600); color: var(--white); }
.highlight h2 { font-size: 1.05rem; margin-bottom: 4px; }
.highlight p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--muted); }

/* ---------- Scrolling keyword band ----------
   Two identical groups sit side by side inside the track; the track slides
   exactly -50% (= one group) and restarts, so the loop has no visible seam. */
.marquee {
  --marquee-duration: 34s;
  position: relative;
  margin-top: 88px;
  overflow: hidden;
  padding-block: 16px;
  background: linear-gradient(90deg, var(--navy-950), var(--navy-800) 50%, var(--navy-950));
  border-block: 1px solid rgba(56, 189, 248, 0.18);
}
/* Soften both edges so items slide in and out instead of popping */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 110px;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--navy-950), rgba(5, 17, 41, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--navy-950), rgba(5, 17, 41, 0)); }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.marquee__group li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline-end: 46px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--white);
}
/* "#" sits tight in front of its own text; the space between items comes from
   padding-inline-end, so the loop seam keeps the same rhythm */
.marquee__group li::before {
  content: '#';
  flex-shrink: 0;
  color: var(--sky-400);
  font-weight: 700;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Split layout / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--reverse > :first-child { order: 2; }

.about-media { position: relative; padding: 0 56px 56px 0; }
/* 3 / 4 matches both photos exactly (1108x1477), so they fill the frame whole —
   nothing is cropped and the frame's own radius rounds the corners. */
.about-media__main { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 3 / 4; background: var(--sky-50); box-shadow: var(--shadow); }
.about-media__main img, .about-media__sub img { width: 100%; height: 100%; object-fit: cover; }
/* The inset thumbnail is a button: clicking it swaps it with the main image */
.about-media__sub {
  position: absolute; right: 0; bottom: 0;
  width: 46%; aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 6px solid var(--white);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.about-media__sub:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 30px 66px -14px rgba(10, 31, 68, 0.38); }
.about-media__swap {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(5, 17, 41, 0.72);
  color: var(--white);
  transition: background 0.3s var(--ease);
}
.about-media__swap svg { width: 17px; height: 17px; }
.about-media__sub:hover .about-media__swap,
.about-media__sub:focus-visible .about-media__swap { background: var(--blue-600); }

/* Quick cross-fade so the swap reads as a change, not a glitch */
.about-media.is-swapping .about-media__main img,
.about-media.is-swapping .about-media__sub img { animation: about-media-swap 0.4s var(--ease); }
@keyframes about-media-swap {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: none; }
}
.about-media__badge {
  position: absolute; left: 24px; bottom: 88px;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.about-media__badge strong { display: block; font-family: var(--font-head); font-size: 1.6rem; line-height: 1.1; color: var(--sky-400); }
.about-media__badge span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }

.media-frame { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.check-list { display: grid; gap: 12px; margin: 24px 0 32px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.28em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e56c8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list--2col { grid-template-columns: 1fr 1fr; gap: 12px 20px; }

.info-note {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--sky-200);
  background: var(--sky-50);
  font-size: 0.925rem;
}
.info-note svg { width: 22px; height: 22px; color: var(--blue-600); }
.info-note strong { color: var(--ink); font-weight: 600; }

/* ---------- Team cards ---------- */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.team-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(145deg, var(--sky-100), var(--white) 70%); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.team-card:hover .team-card__media img { transform: scale(1.05); }
.team-card__media--product img { object-fit: contain; padding: 34px 48px; mix-blend-mode: multiply; }
.team-card__tag {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
}
.team-card__tag svg { width: 16px; height: 16px; color: var(--sky-400); }
.team-card__body { flex: 1; display: flex; flex-direction: column; padding: 34px; }
.team-card__body h3 { font-size: 1.55rem; }
.team-card__body p { color: var(--muted); }
.team-card__body .check-list { margin-top: 8px; }
.team-card__body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.feature h3 { margin-top: 22px; font-size: 1.15rem; }
.feature p { margin: 0; font-size: 0.95rem; }
.feature:hover { transform: translateY(-6px); }
.section--navy .feature { border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); }
.section--navy .feature:hover { border-color: rgba(56, 189, 248, 0.45); background: rgba(255, 255, 255, 0.07); }
.section--navy .icon-box { background: rgba(56, 189, 248, 0.14); color: var(--sky-400); }
.section--navy .feature:hover .icon-box { background: var(--sky-400); color: var(--navy-950); }

/* ---------- Process steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.steps::before {
  content: "";
  position: absolute; top: 34px; left: 10%; right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--sky-200) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; }
.step__num {
  position: relative;
  display: grid; place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 2px solid var(--sky-200);
  background: var(--white);
  box-shadow: 0 0 0 10px var(--white);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blue-600);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.step:hover .step__num { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: 0.925rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { border-color: var(--sky-400); color: var(--blue-600); }
.filter-btn.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--sky-100);
  color: var(--white);
}
.gallery-item[hidden] { display: none; }
.gallery--compact { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 17, 41, 0.88));
  transition: opacity 0.3s;
}
.gallery-item__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 22px;
  transform: translateY(6px);
  transition: transform 0.35s var(--ease);
}
.gallery-item__cat {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--sky-400);
  color: var(--navy-950);
  font-size: 0.78rem;
  font-weight: 600;
}
.gallery-item__title { display: block; font-family: var(--font-head); font-size: 1.05rem; font-weight: 500; line-height: 1.45; }
.gallery-item__zoom {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-900);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.gallery-item__zoom svg { width: 18px; height: 18px; }
.gallery-item:hover { color: var(--white); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-item__caption { transform: none; }
.gallery-item:hover .gallery-item__zoom,
.gallery-item:focus-visible .gallery-item__zoom { opacity: 1; transform: none; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  padding: 34px 30px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review::before {
  content: "\201C";
  position: absolute; top: 6px; right: 26px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--sky-100);
}
.stars { display: flex; gap: 3px; color: #f5b301; }
.stars svg { width: 18px; height: 18px; }
.review__text { flex: 1; margin: 0; color: var(--body); }
.review__author { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar {
  display: grid; place-items: center;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  /* The gradient still shows for any card that falls back to an initial */
  background: linear-gradient(135deg, var(--blue-600), var(--sky-500));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  object-fit: cover;
}
.review__name { display: block; font-family: var(--font-head); font-weight: 600; line-height: 1.35; color: var(--ink); }
.review__role { display: block; font-size: 0.85rem; color: var(--muted); }

/* ---------- Reviews slider (home page only; portfolio keeps the plain grid) ---------- */
.review-slider { position: relative; }
/* Vertical padding leaves room for the cards' hover lift and shadow, which would
   otherwise be clipped by the viewport's overflow: hidden. */
.review-slider__viewport { overflow: hidden; padding-block: 6px; }

/* Two classes, so this beats the single-class `.reviews` grid rules — including the
   breakpoint overrides further down the Responsive section — without !important. */
.review-slider__viewport .reviews {
  --per-view: 3;
  --slide-gap: 24px;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--slide-gap)) / var(--per-view));
  gap: var(--slide-gap);
  transition: transform 0.5s var(--ease);
}

.review-slider__nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.review-slider__btn {
  display: grid; place-items: center;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy-900);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.review-slider__btn:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); transform: translateY(-2px); }
.review-slider__btn svg { width: 20px; height: 20px; }

.review-slider__dots { display: flex; align-items: center; gap: 8px; }
.review-slider__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s;
}
.review-slider__dot:hover { background: var(--sky-400); }
.review-slider__dot[aria-current="true"] { width: 26px; background: linear-gradient(90deg, var(--blue-600), var(--sky-400)); }

@media (max-width: 1024px) { .review-slider__viewport .reviews { --per-view: 2; } }
@media (max-width: 768px) { .review-slider__viewport .reviews { --per-view: 1; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  overflow: hidden;
  padding: 60px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 8%, rgba(56, 189, 248, 0.38), transparent 44%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: rgba(255, 255, 255, 0.8);
}
.cta::after {
  content: "";
  position: absolute; right: -130px; bottom: -240px; z-index: -1;
  width: 440px; height: 440px;
  border-radius: 50%;
  border: 64px solid rgba(255, 255, 255, 0.04);
}
.cta__text { max-width: 620px; }
.cta h2 { color: var(--white); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); margin-bottom: 10px; }
.cta p { margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-block: calc(92px + var(--header-h)) 128px;
  background: var(--navy-900);
  color: var(--white);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--hero-overlay);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 1.35rem + 2.5vw, 3.1rem); font-weight: 700; margin-bottom: 14px; }
.page-hero p { max-width: 660px; margin: 0; font-size: 1.08rem; color: rgba(255, 255, 255, 0.82); }

/* Services banner photo: keep the subject on the right in frame */
.page-hero--banner .page-hero__media img { object-position: 70% 30%; }
/* Portfolio banner photo: keep the three people on the right in frame */
.page-hero--portfolio .page-hero__media img { object-position: 88% 30%; }
/* Contact banner photo: keep the two staff with headsets on the right in frame */
.page-hero--contact .page-hero__media img { object-position: 80% 30%; }

/* Shared hero text shadow + phone overlay (home banner and all page heroes) */
.hero__badge, .hero__title, .hero__lead, .hero__checks,
.page-hero .breadcrumb, .page-hero h1, .page-hero p { text-shadow: var(--hero-text-shadow); }
.hero .accent { text-shadow: none; }
@media (max-width: 768px) {
  .hero::before,
  .page-hero::before { background: var(--hero-overlay-mobile); }
}

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.breadcrumb a { color: rgba(255, 255, 255, 0.88); }
.breadcrumb a:hover { color: var(--sky-400); }

/* ---------- Services page ---------- */
.team-switch { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: -64px; }
.team-switch__card {
  display: flex; align-items: center; gap: 20px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.team-switch__card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-switch__card:hover .icon-box { background: var(--blue-600); color: var(--white); }
.team-switch__text { flex: 1; }
.team-switch__label { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--blue-600); }
.team-switch__title { display: block; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.team-switch__arrow { width: 24px; height: 24px; color: var(--blue-600); transition: transform 0.3s var(--ease); }
.team-switch__card:hover .team-switch__arrow { transform: translateY(4px); }

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.service-card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.service-card::before {
  content: "";
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--sky-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .icon-box { background: var(--blue-600); color: var(--white); }
.service-card__body { padding: 32px 30px; }
.service-card h3 { margin-top: 20px; font-size: 1.2rem; }
.service-card__media + .service-card__body h3 { margin-top: 0; }
.service-card p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.service-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky-100); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.06); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card__media {
  display: grid; place-items: center;
  aspect-ratio: 1;
  padding: 26px;
  background: linear-gradient(160deg, var(--sky-50), var(--white));
}
.product-card__media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { padding: 4px 22px 28px; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.product-card p { margin: 0; font-size: 0.925rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq details {
  padding: 0 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq details[open] { border-color: var(--sky-200); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e56c8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding-bottom: 22px; color: var(--muted); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.service-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- AC cleaning price tables ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.price-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.price-card__head {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.25), transparent 50%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: rgba(255, 255, 255, 0.75);
}
.price-card__head > div:last-child { padding: 20px 28px 22px; }
/* Product showcase: large, centred product photo on a light panel */
.price-card__media {
  /* Flex (not grid) so the image's max-height: 100% resolves against the fixed panel height */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  padding: 18px 40px;
  background: var(--white);
}
.price-card__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Lifts the photos' slightly off-white background to pure white so no box shows on the white panel */
  filter: brightness(1.02) contrast(1.04);
  transition: transform 0.5s var(--ease);
}
.price-card:hover .price-card__media img { transform: scale(1.05); }
.price-card__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 4px; font-size: 1.35rem; color: var(--white); }
.price-card__type { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: var(--sky-400); }
.price-card__head p { margin: 0; font-size: 0.9rem; line-height: 1.6; }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--sky-50);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
}
.price-table td { padding: 14px 28px; border-bottom: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; }
.price-table th:last-child, .price-table td:last-child { text-align: right; white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr { transition: background 0.2s; }
.price-table tbody tr:hover { background: var(--sky-50); }
.price-table strong { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--blue-600); }
.price-table td span { font-size: 0.9rem; color: var(--muted); }
.price-table .price-table__up { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--sky-100); font-size: 0.78rem; font-weight: 500; color: var(--navy-800); }

.price-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--sky-200);
  background: var(--white);
}
.price-cta p { margin: 0; font-family: var(--font-head); font-weight: 500; color: var(--ink); }
.price-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1180px) {
  .service-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .price-card__head > div:last-child { padding: 16px 20px 18px; }
  .price-card__media { height: 210px; padding: 16px 24px; }
  .price-card__title { font-size: 1.15rem; }
  .price-table th, .price-table td { padding-inline: 18px; }
  .price-cta { padding: 20px; }
  .price-cta__actions, .price-cta__actions .btn { width: 100%; }
}

/* ---------- Contact page ---------- */
.contact-cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -64px; }
.contact-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.contact-card h2 { margin: 0; font-size: 1.05rem; }
.contact-card p { margin: 0; font-size: 0.95rem; color: var(--body); line-height: 1.65; }
.contact-card a { color: var(--ink); font-weight: 500; word-break: break-word; }
.contact-card a:hover { color: var(--blue-600); }
.contact-card small { display: block; color: var(--muted); font-size: 0.85rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.form-card { padding: 44px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.form-card > p { color: var(--muted); }

/* Contact details list (contact page info card) */
.contact-list { display: grid; margin-top: 8px; }
.contact-item { display: flex; align-items: flex-start; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-item:hover .icon-box { background: var(--blue-600); color: var(--white); }
.contact-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.contact-item p { margin: 0; line-height: 1.65; color: var(--body); }
.contact-item a { color: var(--ink); word-break: break-word; }
.contact-item a:hover { color: var(--blue-600); }
.contact-item__value { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.contact-item small { display: block; margin-top: 2px; font-size: 0.875rem; color: var(--muted); }
.contact-item p.contact-item__sub { margin-top: 12px; }
.contact-item address { font-style: normal; }
.nowrap { white-space: nowrap; }

@media (max-width: 600px) {
  .form-card.contact-info { padding: 26px 20px; }
  .qr-card { padding: 30px 20px; }
  .contact-item { gap: 14px; }
  .contact-item .icon-box { width: 44px; height: 44px; border-radius: 12px; }
  .contact-item .icon-box svg { width: 22px; height: 22px; }
  .contact-item__value { font-size: 1.05rem; }
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: 0.925rem; font-weight: 500; color: var(--ink); }
.req { color: var(--danger); }

.input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--sky-50);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: #94a2b6; }
.input:focus { outline: none; border-color: var(--sky-500); background: var(--white); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16); }
textarea.input { min-height: 150px; resize: vertical; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23647389' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-note { margin: 0; font-size: 0.85rem; color: var(--muted); }
.form-status { margin: 14px 0 0; font-size: 0.95rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }
.site-footer .form-status.is-success { color: #5ee0a8; }
.site-footer .form-status.is-error { color: #ff8b9b; }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }

.map-card { display: flex; flex-direction: column; overflow: hidden; min-height: 460px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--sky-50); box-shadow: var(--shadow-sm); }
.qr-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 44px; text-align: center; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.qr-card img { width: 100%; max-width: 320px; height: auto; border-radius: 16px; }
.qr-card h3 { margin: 0 0 6px; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); }
.qr-card p { margin: 0; max-width: 34ch; color: var(--muted); }
.map-card--wide { grid-column: 1 / -1; }
.map-card iframe { flex: 1; width: 100%; min-height: 360px; border: 0; }
.map-card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; background: var(--white); border-top: 1px solid var(--line); }
.map-card__footer p { margin: 0; font-size: 0.925rem; color: var(--body); }
.map-card__footer strong { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; }

/* ---------- Legal pages (privacy policy) ---------- */
.page-hero--compact { padding-block: calc(72px + var(--header-h)) 80px; }

.legal-layout { display: grid; grid-template-columns: 270px 1fr; gap: 56px; align-items: start; }
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--sky-50);
}
.legal-toc__title { margin-bottom: 12px; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.legal-toc ol { display: grid; gap: 4px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 8px; padding: 4px 0; font-size: 0.925rem; line-height: 1.5; color: var(--body); }
.legal-toc a::before { content: counter(toc) "."; min-width: 1.5em; font-weight: 600; color: var(--blue-600); }
.legal-toc a:hover { color: var(--blue-600); }

.legal { max-width: 800px; counter-reset: legal; }
.legal__updated {
  display: inline-block;
  margin-bottom: 32px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--sky-100);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-800);
}
.legal section { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.legal h2 { font-size: 1.4rem; counter-increment: legal; }
.legal h2::before { content: counter(legal) ". "; color: var(--blue-600); }
.legal ul { display: grid; gap: 6px; margin: 0 0 1em; padding-left: 1.4em; list-style: disc; }
.legal li::marker { color: var(--sky-500); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal-contact { padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--sky-50); color: var(--ink); }

.newsletter-note { margin: 10px 0 0 20px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
.newsletter-note a, .form-note a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1024px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
}

/* ---------- 500 (self-contained error page) ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: var(--sky-50); }
.error-card {
  width: 100%;
  max-width: 620px;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.error-card__logo img { height: 64px; width: auto; margin: 0 auto 20px; }
.error-card__en { color: var(--muted); font-size: 0.95rem; }
.error-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 16px; }
.error-card__contact { margin: 0; font-size: 0.95rem; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.not-found__code { font-family: var(--font-head); font-size: clamp(5rem, 3rem + 8vw, 9rem); font-weight: 700; line-height: 1; margin-bottom: 12px; }
.not-found p { color: var(--muted); max-width: 520px; margin: 0 auto 32px; }
.not-found .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-950); color: rgba(255, 255, 255, 0.68); font-size: 0.95rem; }
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: var(--sky-400); }

.footer-newsletter { padding-block: 52px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { color: var(--white); font-size: 1.55rem; margin-bottom: 6px; }
.newsletter p { margin: 0; }
.newsletter-form {
  display: flex; gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-form:focus-within { border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15); }
.newsletter-form input { flex: 1; min-width: 0; padding: 10px 18px; border: 0; background: transparent; color: var(--white); }
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-form input:focus { outline: none; }

.footer-main { display: grid; grid-template-columns: 1.5fr 0.9fr 1.1fr 1.4fr; gap: 44px; padding-block: 64px 44px; }
.footer-logo { display: inline-block; margin-bottom: 20px; padding: 10px 14px; border-radius: 14px; background: var(--white); }
.footer-logo img { height: 48px; width: auto; }
.footer-about p { margin-bottom: 12px; }
.footer-legal { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }
.footer-title { margin-bottom: 18px; font-size: 1.05rem; color: var(--white); }
.footer-links { display: grid; gap: 10px; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 0.3em; color: var(--sky-400); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom p { margin: 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* Floating actions */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab__btn {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
}
.fab__btn svg { width: 22px; height: 22px; }
.fab__btn:hover { transform: translateY(-3px); }
.fab__call { position: relative; background: linear-gradient(135deg, var(--blue-600), var(--sky-500)); color: var(--white); }
.fab__call:hover { color: var(--white); }
.fab__call::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--sky-400);
  animation: pulse 2.2s var(--ease) infinite;
}
.fab__top { background: var(--white); color: var(--navy-900); opacity: 0; visibility: hidden; transform: translateY(10px); }
.fab__top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Contact speed-dial: the call FAB opens every channel instead of dialling
   straight away. The menu is absolute against .fab so it clears the whole
   button stack, and `visibility: hidden` keeps the links out of the tab order
   while it is closed. */
.fab__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.fab.is-contact-open .fab__menu { opacity: 1; visibility: visible; }

.fab__item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.fab.is-contact-open .fab__item { opacity: 1; transform: none; }
/* Stagger upward from the button that was tapped */
.fab.is-contact-open li:nth-last-child(1) .fab__item { transition-delay: 0.03s; }
.fab.is-contact-open li:nth-last-child(2) .fab__item { transition-delay: 0.07s; }
.fab.is-contact-open li:nth-last-child(3) .fab__item { transition-delay: 0.11s; }
.fab.is-contact-open li:nth-last-child(4) .fab__item { transition-delay: 0.15s; }
.fab.is-contact-open li:nth-last-child(5) .fab__item { transition-delay: 0.19s; }

.fab__item-label {
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--navy-900);
}
.fab__item-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-600);
  box-shadow: var(--shadow-lg);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.fab__item-icon .i { width: 20px; height: 20px; }
.fab__item:hover .fab__item-icon,
.fab__item:focus-visible .fab__item-icon { background: var(--blue-600); color: var(--white); }
.fab__item--primary .fab__item-icon { background: linear-gradient(135deg, var(--blue-600), var(--sky-500)); color: var(--white); }

/* Tap-anywhere-else target; sits behind the buttons inside .fab's stacking context */
.fab__scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(5, 17, 41, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.fab.is-contact-open .fab__scrim { opacity: 1; visibility: visible; }

/* Chat icon rotates out, close icon rotates in */
.fab__call .i { grid-area: 1 / 1; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.fab__call .i-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.fab.is-contact-open .fab__call .i-chat { opacity: 0; transform: rotate(90deg) scale(0.5); }
.fab.is-contact-open .fab__call .i-close { opacity: 1; transform: none; }
.fab.is-contact-open .fab__call::before { display: none; }

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 80px;
  background: rgba(5, 17, 41, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1100px, 100%); }
.lightbox__img { width: auto; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__caption { text-align: center; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.lightbox__btn {
  position: absolute;
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal-delay="2"] { transition-delay: 0.16s; }
.js [data-reveal-delay="3"] { transition-delay: 0.24s; }
.js [data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root { --pill-h: 56px; --header-gap: 12px; }

  [data-component="header"] { min-height: var(--header-h); }
  .topbar { display: none; }
  .brand img { height: 36px; }

  .nav-toggle { display: inline-flex; }
  /* The menu drops as a rounded card under the capsule, echoing its shape */
  .nav {
    position: absolute;
    top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    max-height: calc(100vh - var(--header-h) - 28px);
    max-height: calc(100dvh - var(--header-h) - 28px);
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { padding: 14px 18px; border-radius: 16px; font-size: 1.05rem; }
  .nav__link.is-active { background: var(--sky-50); }
  .nav__extra { display: grid; gap: 14px; }
  .nav__extra .btn { width: 100%; }

  .section { padding-block: 84px; }
  .hero { min-height: 0; padding-block: calc(96px + var(--header-h)) 170px; }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(2) { border-right: 0; }
  .highlight:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .split { grid-template-columns: 1fr; gap: 52px; }
  .split--reverse > :first-child { order: 0; }
  .about-media { max-width: 620px; }

  .teams { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 10px; bottom: 10px; left: 33px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--sky-200) 0 8px, transparent 8px 16px); }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 0 22px; align-items: center; text-align: left; }
  .step__num { grid-row: span 2; margin: 0; }
  .step h3 { align-self: end; }
  .step p { align-self: start; }

  .reviews { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .section { padding-block: 68px; }
  .section-head { margin-bottom: 40px; }
  .marquee { --marquee-duration: 24s; margin-top: 56px; padding-block: 12px; }
  .marquee::before, .marquee::after { width: 56px; }
  .marquee__group li { gap: 5px; padding-inline-end: 30px; font-size: 0.92rem; }
  .hero { padding-block: calc(72px + var(--header-h)) 150px; }
  .hero__checks { margin-top: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-item__caption { padding: 16px; }
  .gallery-item__title { font-size: 0.95rem; }
  .reviews { grid-template-columns: 1fr; }
  .cta { padding: 44px 28px; }
  .page-hero { padding-block: calc(64px + var(--header-h)) 110px; }
  .team-switch { grid-template-columns: 1fr; gap: 14px; margin-top: -56px; }
  .form-card { padding: 30px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 72px 12px 96px; }
  .lightbox__img { max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 22px; transform: none; }
  .lightbox__prev { left: calc(50% - 62px); }
  .lightbox__next { right: calc(50% - 62px); }
}

@media (max-width: 600px) {
  .header-cta { display: none; }
  .highlights { margin-top: -110px; }
  .highlights__grid { grid-template-columns: 1fr; }
  .highlight { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .highlight:last-child { border-bottom: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .about-media { padding: 0 28px 28px 0; }
  .about-media__badge { left: 14px; bottom: 44px; padding: 12px 16px; }
  .about-media__badge strong { font-size: 1.3rem; }
  .check-list--2col { grid-template-columns: 1fr; }
  .features, .service-grid, .contact-cards { grid-template-columns: 1fr; }
  .product-grid { gap: 14px; }
  .product-card__media { padding: 16px; }
  .product-card__body { padding: 2px 14px 20px; }
  .product-card h3 { font-size: 1rem; }
  .product-card p { font-size: 0.85rem; }
  .team-card__body { padding: 26px 22px; }
  .team-card__media--product img { padding: 22px 30px; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .fab__menu { gap: 9px; }
  .fab__item-label { padding: 7px 13px; font-size: 0.8rem; }
  .fab__item-icon { width: 42px; height: 42px; }
  .fab__item-icon .i { width: 18px; height: 18px; }
  .newsletter-form { flex-direction: column; border-radius: 20px; }
  .newsletter-form .btn { width: 100%; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .map-card__footer .btn { width: 100%; }
  .form-footer .btn { width: 100%; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 4 / 4.2; }
  .gallery--compact { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery--compact .gallery-item { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  /* Marquee stops animating above; drop the duplicate copy and let it scroll by hand */
  .marquee { overflow-x: auto; }
  .marquee__group[aria-hidden='true'] { display: none; }
}
