/* =========================================================================
   Kleenmates Ltd design system v4
   Photography led corporate style. Deep navy plus a fresh lime green
   pulled from the client's own logo, soft rounded shapes, real job site
   photography carrying the visual weight. Oswald for headlines,
   IBM Plex Sans for body copy. Supports light and dark themes through
   the --* custom properties below (see the [data-theme="dark"] block).
   ========================================================================= */

:root {
  --ink:            #0E2A3D;
  --ink-soft:       #3B4B54;
  --muted:          #66757D;
  --bg:             #FFFFFF;
  --surface:        #FFFFFF;
  --paper-2:        #F3F6F8;
  --line:           rgba(14,42,61,.12);

  --primary:        #0E2A3D;
  --primary-dark:   #081C29;
  --primary-tint:   #E8F1F5;
  --accent:         #7AC142;
  --accent-dark:    #5C9A2E;
  --accent-tint:    #EFF8E7;
  --sky:            #1CAEDD;
  --warn:           #D6402C;

  --gold:           #7AC142;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 4px 16px rgba(14,42,61,.08);
  --shadow-md: 0 12px 32px rgba(14,42,61,.12);
  --shadow-lg: 0 24px 60px rgba(14,42,61,.16);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- dark theme ----------
   Toggled by adding data-theme="dark" to <html> (see the theme switch in
   the header and main.js). Only the surface/ink tokens flip; --accent and
   the always-dark sections (hero, footer, nav overlay) stay the same. */
[data-theme="dark"] {
  --ink:            #F2F5F7;
  --ink-soft:       #D4DCE0;
  --muted:          #92A0A7;
  --bg:             #0E1B24;
  --surface:        #142631;
  --paper-2:        #182D39;
  --line:           rgba(242,245,247,.12);

  --primary-tint:   #1B3542;
  --accent-tint:    #1E3323;

  --shadow-sm: 0 4px 16px rgba(0,0,0,.28);
  --shadow-md: 0 12px 32px rgba(0,0,0,.34);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.4);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  font-size: 16.5px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: uppercase;
}

h5, h6 { font-family: var(--font-body); font-weight: 700; color: var(--ink); text-transform: none; }

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

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

.container-wide {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 992px) {
  .container-wide { padding-inline: 2.5rem; }
}

section { position: relative; }

.bg-surface { background: var(--surface); }
.bg-tint { background: var(--paper-2); }
.bg-ink { background: var(--primary-dark); color: rgba(255,255,255,.72); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }
.text-accent { color: var(--accent-dark); }
.text-primary-brand { color: var(--ink); }

/* =========================================================================
   Preloader
   ========================================================================= */
html:not(.is-loaded) { overflow: hidden; height: 100%; }
html.nav-open { overflow: hidden; }
#preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .55s var(--ease), visibility .55s var(--ease);
}
#preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-word {
  font-family: var(--font-display);
  font-weight: 900;
  color: #fff;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  letter-spacing: .04em;
  margin-bottom: 1.6rem;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
.preloader-bar {
  width: min(260px, 60vw);
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .18s linear;
}
.preloader-pct {
  margin-top: .9rem;
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--accent);
  font-weight: 700;
}
@keyframes preloaderPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .preloader-word { animation: none; } }

/* ---------- kicker / eyebrow labels ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  width: 24px; height: 3px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
}
.bg-ink .kicker { color: var(--accent); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.mx-auto { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; text-transform: none; }

.section-pad { padding-block: clamp(4rem, 8vw, 7rem); }

/* ---------- buttons: primary / secondary hierarchy ---------- */
.btn-brand, .btn-brand-outline, .btn-ghost, .btn-brand-light {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-brand {
  background: var(--accent);
  color: #fff;
}
.btn-brand:hover { background: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }

.btn-brand-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-brand-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn-brand-light {
  background: #fff;
  color: #0E2A3D;
  border-color: rgba(14,42,61,.12);
}
.btn-brand-light:hover { background: #F3F6F8; }

.btn-icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .82rem;
  transition: transform .25s var(--ease);
}
a:hover .btn-icon-circle, button:hover .btn-icon-circle { transform: translateX(3px); }

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding-block: 1.4rem;
  opacity: 0;
  transform: translateY(-16px);
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), opacity .6s var(--ease), transform .6s var(--ease);
}
html.is-loaded .site-header { opacity: 1; transform: none; }
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header .brand img { height: 34px; width: auto; }
.site-header.is-solid {
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-sm);
  padding-block: .85rem;
}

.header-cta { display: flex; align-items: center; gap: 1.4rem; }
.header-phone {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .86rem;
  letter-spacing: .01em;
  color: #fff;
}
.site-header.is-solid .header-phone { color: #0E2A3D; }
.header-phone i { color: var(--accent); font-size: .95rem; }
.site-header.is-solid .header-phone i { color: var(--accent-dark); }
.site-header.is-solid .header-cta .btn-brand-outline { color: #0E2A3D; border-color: rgba(14,42,61,.12); }
.site-header.is-solid .header-cta .btn-brand-outline:hover { background: #F3F6F8; border-color: #0E2A3D; }

/* ---------- theme toggle ---------- */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.site-header.is-solid .theme-toggle { color: #0E2A3D; }
.theme-toggle:hover { background: rgba(122,193,66,.15); }
.theme-toggle-light { display: none; }
[data-theme="dark"] .theme-toggle-dark { display: none; }
[data-theme="dark"] .theme-toggle-light { display: inline; }

/* ---------- menu trigger: replaces the generic hamburger ---------- */
.menu-trigger {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  transition: background .3s var(--ease);
}
.site-header.is-solid .menu-trigger { color: #0E2A3D; }
.menu-trigger:hover { background: rgba(122,193,66,.15); }
.menu-trigger-label {
  font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  padding-left: .3rem;
}
.menu-trigger-icon {
  display: flex; flex-direction: column; gap: 5px;
  width: 30px; height: 22px;
  justify-content: center;
  border-radius: 8px;
  padding: 0 5px;
}
.menu-trigger-icon span { display: block; height: 2px; width: 100%; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-trigger:hover .menu-trigger-icon span:first-child { transform: translateX(3px); }
.menu-trigger:hover .menu-trigger-icon span:last-child { transform: translateX(-3px); }

/* ---------- full-screen nav overlay (same pattern on every device) ---------- */
.nav-overlay {
  position: fixed; inset: 0;
  z-index: 1100;
  background: var(--primary-dark);
  visibility: hidden;
  opacity: 0;
  clip-path: circle(3% at calc(100% - 48px) 40px);
  transition: opacity .5s var(--ease), visibility .5s var(--ease), clip-path .6s var(--ease);
  overflow-y: auto;
}
.nav-overlay.is-open {
  visibility: visible;
  opacity: 1;
  clip-path: circle(150% at calc(100% - 48px) 40px);
}
.nav-overlay-close {
  position: absolute; top: 1.6rem; right: clamp(1.5rem, 4vw, 3rem);
  display: flex; align-items: center; gap: .6rem;
  background: transparent; border: none; color: #fff;
  font-size: 1.1rem; cursor: pointer;
  z-index: 2;
  padding: .5rem;
  border-radius: 999px;
  transition: background .3s var(--ease);
}
.nav-overlay-close:hover { background: rgba(122,193,66,.18); }
.nav-overlay-close .menu-trigger-label { font-size: .8rem; }
.nav-overlay-inner {
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(5rem, 12vw, 3rem) clamp(1.5rem, 8vw, 6rem);
}
.nav-overlay-links { display: flex; flex-direction: column; }
.nav-overlay-links a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 1.3;
  padding-block: .1em;
  border-bottom: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: baseline; gap: 1.2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s var(--ease), padding-left .3s var(--ease);
}
.nav-overlay.is-open .nav-overlay-links a { opacity: 1; transform: none; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(1) { transition-delay: .12s; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(2) { transition-delay: .2s; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(3) { transition-delay: .28s; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(4) { transition-delay: .36s; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(5) { transition-delay: .44s; }
.nav-overlay-links a::before {
  content: attr(data-num);
  font-size: .26em;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .04em;
}
.nav-overlay-links a:hover, .nav-overlay-links a.active { color: var(--accent); padding-left: .5em; }
.nav-overlay-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.nav-overlay-contact { display: flex; flex-direction: column; gap: .45rem; color: rgba(255,255,255,.7); font-size: .9rem; line-height: 1.5; }
.nav-overlay-contact a { color: #fff; font-weight: 700; }
.nav-overlay-contact a:hover { color: var(--accent); }

@media (max-width: 575.98px) {
  .menu-trigger-label { display: none; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s ease, transform 8s linear;
  z-index: 0;
  display: flex;
  align-items: center;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,28,41,.90) 0%, rgba(8,28,41,.78) 32%, rgba(8,28,41,.42) 62%, rgba(8,28,41,.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 5;
  color: #fff;
  max-width: 700px;
}
.hero-content .kicker { color: var(--accent); }
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  margin-bottom: 1.3rem;
}
.hero-content p.lead-text {
  color: rgba(255,255,255,.82);
  font-size: 1.14rem;
  max-width: 560px;
  margin-bottom: 2.2rem;
  text-transform: none;
}

/* Staggered entrance once the preloader clears (see #preloader / .is-loaded) */
.hero-content .kicker, .hero-content h1, .hero-content .lead-text, .hero-content .hero-cta {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.is-loaded .hero-content .kicker { opacity: 1; transform: none; transition-delay: .1s; }
html.is-loaded .hero-content h1 { opacity: 1; transform: none; transition-delay: .24s; }
html.is-loaded .hero-content .lead-text { opacity: 1; transform: none; transition-delay: .42s; }
html.is-loaded .hero-content .hero-cta { opacity: 1; transform: none; transition-delay: .56s; }
.hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.hero-dots {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 2.6rem;
  z-index: 6;
  display: flex; gap: .5rem;
}
.hero-dots button {
  width: 26px; height: 4px; border-radius: 999px;
  border: none; background: rgba(255,255,255,.35);
  transition: background .3s var(--ease), width .3s var(--ease);
}
.hero-dots button.is-active { background: var(--accent); width: 36px; }

.hero-nav-labels {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: 2.8rem;
  z-index: 6;
  display: flex; gap: 2.2rem;
}
.hero-nav-labels button {
  background: none; border: none;
  color: rgba(255,255,255,.5);
  font-weight: 700; font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase;
  padding-bottom: .5rem;
  border-bottom: 3px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.hero-nav-labels button.is-active { color: #fff; border-color: var(--accent); }
@media (max-width: 767.98px) { .hero-nav-labels { display: none; } }

.scroll-cue {
  position: absolute; z-index: 6;
  left: clamp(1.5rem, 4vw, 4rem); bottom: 2.8rem;
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: .7rem;
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
}
.scroll-cue .line { width: 1px; height: 34px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollLine 2.2s infinite ease-in-out;
}
@keyframes scrollLine { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }
@media (max-width: 767.98px) { .scroll-cue { display: none; } }

/* =========================================================================
   Stat strip
   ========================================================================= */
.stat-strip {
  position: relative;
  z-index: 4;
  margin-top: -5.5rem;
}
.stat-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.6rem clamp(1.5rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-item { text-align: center; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: none; }
.stat-item .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
}
.stat-item .lbl { font-size: .8rem; color: var(--muted); font-weight: 700; margin-top: .6rem; text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 767.98px) {
  .stat-card { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
}

/* =========================================================================
   Numbered index rows (services)
   ========================================================================= */
.index-row {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.8rem, 4vw, 2.6rem) 1.2rem;
  margin-inline: -1.2rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  transition: background .35s var(--ease);
}
.index-row:first-child { border-top: 1px solid var(--line); }
.index-row:hover { background: var(--paper-2); }
.index-row .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--line);
  line-height: 1;
  flex-shrink: 0;
  width: clamp(60px, 7vw, 90px);
  transition: color .35s var(--ease);
}
.index-row:hover .num { color: var(--accent); }
.index-row .thumb {
  width: clamp(90px, 12vw, 140px);
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.index-row .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.index-row:hover .thumb img { transform: scale(1.08); }
.index-row .body { flex: 1; min-width: 240px; }
.index-row h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: .5rem; }
.index-row p { color: var(--muted); margin-bottom: 0; text-transform: none; max-width: 620px; }
.index-row .arrow {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.index-row:hover .arrow { background: var(--accent); color: #fff; transform: rotate(-45deg); }

/* =========================================================================
   Cards: services / team / gallery
   ========================================================================= */
.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card .img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.service-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .img-wrap img { transform: scale(1.08); }
.service-card .icon-badge {
  position: absolute; left: 1.2rem; bottom: -24px;
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.service-card .body { padding: 2.4rem 1.6rem 1.8rem; }

.icon-badge-inline {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-tint); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: .7rem; }
.service-card .more-link { font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: .5rem; }

/* Team "badge": name/role captioned over the photo, softened corners */
.team-card { position: relative; }
.team-card .photo {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease);
}
.team-card:hover .photo { box-shadow: var(--shadow-md); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .photo img { transform: scale(1.06); }
.team-card .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(8,28,41,.92) 15%, rgba(8,28,41,.5) 70%, transparent);
  padding: 2.2rem 1rem .9rem;
  color: #fff;
}
.team-card h5 { margin-bottom: .25rem; font-size: 1rem; font-weight: 700; color: #fff; }
.team-card .role {
  display: inline-block;
  color: var(--accent);
  font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em;
}

.gallery-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease);
}
.gallery-tile:hover { box-shadow: var(--shadow-md); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-tile:hover img { transform: scale(1.08); }
.gallery-tile .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,28,41,.85), rgba(8,28,41,0) 55%);
  display: flex; align-items: flex-end;
  padding: 1.2rem;
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery-tile:hover .overlay { opacity: 1; }
.gallery-tile .overlay span { color: #fff; font-weight: 700; font-size: .88rem; text-transform: none; }
.gallery-tile .zoom-ico {
  position: absolute; top: 1rem; right: 1rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.7);
  transition: all .35s var(--ease);
}
.gallery-tile:hover .zoom-ico { opacity: 1; transform: scale(1); }

/* ---------- USP list ---------- */
.usp-list { list-style: none; padding: 0; margin: 0; }
.usp-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.usp-list li:first-child { border-top: 1px solid var(--line); }
.usp-list .tick {
  flex-shrink: 0; width: 20px;
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  margin-top: .15rem;
}

.badge-pill {
  display: inline-flex; align-items: center;
  color: rgba(255,255,255,.85);
  font-weight: 600; font-size: .85rem;
  margin: 0 1.1rem .6rem 0;
}
.badge-pill::after {
  content: "\2022";
  color: rgba(255,255,255,.3);
  margin-left: 1.1rem;
}
.badge-pill:last-child { margin-right: 0; }
.badge-pill:last-child::after { content: none; }

/* =========================================================================
   Trusted-by marquee
   ========================================================================= */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-chip {
  background: #fff;
  border-radius: var(--radius-md);
  padding: .9rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.logo-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.marquee-track img { height: 34px; width: auto; max-width: 130px; object-fit: contain; }

/* =========================================================================
   Split / feature sections
   ========================================================================= */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.with-badge { margin-bottom: 1.5rem; }
.floating-badge {
  position: absolute; left: -1rem; bottom: -1.2rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.3rem 1.6rem;
  display: flex; align-items: center; gap: 1rem;
  max-width: 280px;
}
@media (max-width: 767.98px) { .floating-badge { left: .75rem; bottom: -1.2rem; padding: 1rem 1.2rem; } }
.floating-badge .ico { width: 42px; height: 42px; border-radius: 12px; background: #EFF8E7; color: #5C9A2E; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.floating-badge strong { display: block; font-size: .95rem; color: #0E2A3D; }
.floating-badge span { font-size: .8rem; color: #66757D; }

.shape-divider { position: absolute; left: 0; right: 0; line-height: 0; z-index: 2; pointer-events: none; }
.shape-divider svg { width: 100%; height: auto; display: block; }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary-dark);
  padding: clamp(2.6rem, 6vw, 4.5rem);
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: .8rem; }
.cta-band p { color: rgba(255,255,255,.75); margin-bottom: 0; text-transform: none; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.68); }
.site-footer a { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: var(--accent); }
.site-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; margin-bottom: 1.3rem; font-weight: 700; }
.site-footer .brand img { height: 32px; margin-bottom: 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.footer-contact li { display: flex; gap: .8rem; align-items: flex-start; }
.footer-contact .ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.social-row { display: flex; gap: .6rem; margin-top: 1.4rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.social-row a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 3rem; padding-top: 1.6rem; font-size: .84rem; }

/* =========================================================================
   Page header (inner pages)
   ========================================================================= */
.page-header {
  position: relative;
  padding-top: clamp(8rem, 16vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 140%);
  color: #fff;
}
.page-header .kicker { color: var(--accent); }
.page-header h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: .8rem; }
.breadcrumb-row { display: flex; gap: .6rem; align-items: center; color: rgba(255,255,255,.65); font-weight: 700; font-size: .85rem; }
.breadcrumb-row a { color: rgba(255,255,255,.65); }
.breadcrumb-row a:hover { color: var(--accent); }

/* ---------- legal page body (Privacy / Terms) ---------- */
.legal-body h4 {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0;
  color: var(--ink);
  margin-top: 2.2rem;
  margin-bottom: .6rem;
}
.legal-body p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.legal-body p:first-of-type { color: var(--muted); font-size: .95rem; }

/* =========================================================================
   Forms
   ========================================================================= */
.form-control, .form-select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  font-family: var(--font-body);
  background: var(--surface);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-tint);
}
label.form-label { font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: .4rem; }

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.contact-info-card {
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  height: 100%;
}
.contact-info-card .kicker { color: var(--accent); }
.contact-info-card h3 { color: #fff; }
.contact-info-card .footer-contact .ico { background: rgba(255,255,255,.1); }

/* =========================================================================
   Misc utility / animation helpers
   ========================================================================= */
.divider-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); display: inline-block; }

.back-to-top {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s var(--ease);
  border: none;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); }

::selection { background: var(--accent); color: #fff; }

.aos-init { will-change: transform, opacity; }

/* ---------- mobile legibility pass ----------
   Nothing a visitor actually reads should sit below 16px on a phone,
   full stop. Small "meta" labels (kickers, badges, footer headings)
   get pushed right up to that floor rather than left to sit under it. */
@media (max-width: 767.98px) {
  body { font-size: 17px; line-height: 1.75; }

  .kicker { font-size: 1rem; line-height: 1.5; }
  .badge-pill { font-size: 1rem; }
  .team-card .role { font-size: 1rem; }
  .team-card h5 { font-size: 1.15rem; }
  .stat-item .lbl { font-size: 1rem; line-height: 1.4; }
  .stat-item .num { font-size: 2.1rem; }
  .breadcrumb-row { font-size: 1rem; }
  .site-footer h6 { font-size: 1rem; }
  .footer-links, .footer-contact { font-size: 1.05rem; }
  .footer-bottom { font-size: 1rem; line-height: 1.6; }
  label.form-label { font-size: 1rem; }
  .floating-badge span { font-size: 1rem; line-height: 1.45; }
  .floating-badge strong { font-size: 1.15rem; }
  .footer-contact li span, .nav-overlay-contact span, .nav-overlay-contact a { font-size: 1.05rem; line-height: 1.55; }
  .nav-overlay-links a::before { font-size: .32em; }
  .index-row .body p, .index-row p { font-size: 1.05rem; }
  .usp-list li span { font-size: 1.05rem; }
  .usp-list li { padding: 1.2rem 0; }
  .form-control, .form-select { font-size: 1rem; }
  .btn-brand, .btn-brand-outline, .btn-ghost, .btn-brand-light { font-size: 1rem; }
  .service-card .more-link { font-size: 1rem; }
  .header-phone .txt { font-size: 1rem; }
  .menu-trigger-label { font-size: 1rem; }
}

@media (max-width: 575.98px) {
  .stat-card { padding: 2.2rem 1.6rem; }
}
