/* =============================================================================
   PEREGRINE CLEAN, MAIN STYLESHEET
   Version: 1.0 | Brand: Teal/Navy | Font: Inter
   ============================================================================= */

/* -------------------------
   1. CUSTOM PROPERTIES
   ------------------------- */
:root {
  /* Brand Colours */
  --primary:        #2E7FA8;
  --primary-dark:   #1e6b92;
  --primary-xdark:  #165878;
  --primary-light:  #4a9ec4;
  --primary-pale:   #e6f4fb;

  /* Backgrounds */
  --navy:           #09162a;
  --navy-mid:       #112240;
  --navy-card:      #192d4d;
  --navy-light:     #1e355f;
  --white:          #ffffff;
  --off-white:      #f8fafc;
  --grey-light:     #f1f5f9;
  --grey:           #e2e8f0;
  --grey-mid:       #cbd5e1;

  /* Text */
  --text-dark:      #0f172a;
  --text-body:      #334155;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --text-on-dark:   #e2e8f0;
  --text-on-dark-muted: #94a3b8;

  /* Typography */
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radius */
  --radius-xs:  3px;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-md:  0 8px 24px rgba(0,0,0,.12);
  --shadow-lg:  0 16px 40px rgba(0,0,0,.14);
  --shadow-teal:0 6px 24px rgba(46,127,168,.28);

  /* Transitions */
  --t-fast:   .15s ease;
  --t:        .25s ease;
  --t-med:    .4s ease;
  --t-slow:   .6s ease;

  /* Spacing */
  --section:        96px;
  --section-mobile: 64px;
  --container:      1440px;
  --container-sm:   960px;
}

/* -------------------------
   2. RESET & BASE
   ------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* -------------------------
   3. TYPOGRAPHY SCALE
   ------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem);  font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem,  2.5vw, 1.6rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem;     font-weight: 600; }

p { line-height: 1.75; }

.label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
}

/* -------------------------
   4. LAYOUT UTILITIES
   ------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.container--sm {
  max-width: var(--container-sm);
}

.section {
  padding: var(--section) 0;
}
.section--sm {
  padding: 64px 0;
}

.text-center { text-align: center; }
.text-teal   { color: var(--primary); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--text-muted); }

.section-header {
  margin-bottom: 56px;
}
.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 16px auto 0;
}
.section-header--left p { margin-left: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* -------------------------
   5. BUTTONS
   ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -.01em;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 32px rgba(46,127,168,.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-outline-teal {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-teal:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: .875rem;
}

/* -------------------------
   6. NAVBAR
   ------------------------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(9,22,42,.0);
  backdrop-filter: blur(0);
  transition: background var(--t-med), box-shadow var(--t-med), backdrop-filter var(--t-med);
  padding: 20px 0;
}

#navbar.scrolled {
  background: rgba(17,34,64,.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 4px 24px rgba(0,0,0,.25);
  padding: 14px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar__logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.navbar__logo-img {
  height: 96px;
  width: auto;
  flex-shrink: 0;
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar__logo-name {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--white);
  text-transform: uppercase;
}

.navbar__logo-tagline {
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
}

/* Nav links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__links a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
  letter-spacing: -.01em;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

/* Nav right */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.navbar__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__social {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  transition: all var(--t);
  flex-shrink: 0;
}

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

.navbar__social svg {
  width: 15px; height: 15px;
}

.navbar__phone {
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t);
}
.navbar__phone:hover { color: var(--white); }

.navbar__phone svg {
  width: 14px; height: 14px;
  stroke: currentColor;
}

.navbar__cta {
  padding: 10px 20px;
  font-size: .8125rem;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(100%);
  transition: transform var(--t-med);
}

.navbar__mobile.open {
  transform: translateX(0);
}

.navbar__mobile a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  padding: 12px 24px;
  letter-spacing: -.02em;
  transition: color var(--t);
}

.navbar__mobile a:hover { color: var(--primary-light); }

.navbar__mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  color: var(--white);
  padding: 8px;
}

.navbar__mobile .btn-primary {
  margin-top: 16px;
  font-size: 1rem;
}

/* -------------------------
   7. HERO
   ------------------------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(9,22,42,.93) 0%, rgba(21,34,54,.82) 50%, rgba(46,127,168,.45) 100%),
    url('../images/hero-cleaner.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(46,127,168,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(9,22,42,.4) 0%, transparent 50%);
}

/* Geometric grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .6;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 160px 0 100px;
  max-width: 780px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46,127,168,.2);
  border: 1px solid rgba(46,127,168,.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}

.hero__title {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 720px;
}

.hero__title em {
  font-style: normal;
  color: var(--primary-light);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,.72);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__stat-item {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.04em;
  line-height: 1;
}

.hero__stat-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-top: 4px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.35);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* -------------------------
   8. TRUST BAR
   ------------------------- */
#trust-bar {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
  overflow: hidden;
}

.trust-bar__track {
  display: flex;
  gap: 0;
  animation: trust-scroll 28s linear infinite;
  width: max-content;
}

.trust-bar__track:hover { animation-play-state: paused; }

@keyframes trust-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: .02em;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.trust-bar__item svg {
  width: 16px; height: 16px;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* -------------------------
   9. ABOUT / CORE FOCUS
   ------------------------- */
#about {
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  position: relative;
}

.about__image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.about__accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 220px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--white);
  box-shadow: var(--shadow-teal);
}

.about__accent-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

.about__accent-text {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  margin-top: 6px;
  line-height: 1.4;
}

.about__text .label { margin-bottom: 12px; }
.about__text h2 { margin-bottom: 20px; }
.about__text p { margin-bottom: 18px; color: var(--text-body); }

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about__value {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 3px solid var(--primary);
  transition: all var(--t);
}

.about__value:hover {
  background: var(--primary-pale);
  transform: translateY(-2px);
}

.about__value h5 {
  color: var(--text-dark);
  margin-bottom: 6px;
  font-size: .9375rem;
}

.about__value p {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.55;
}

/* -------------------------
   10. SECTORS
   ------------------------- */
#sectors {
  background: var(--grey-light);
}

.sectors__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sector-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--grey);
  transition: all var(--t-med);
  cursor: default;
}

.sector-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.sector-card__icon {
  width: 48px;
  height: 48px;
  background: var(--primary-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background var(--t);
}

.sector-card:hover .sector-card__icon {
  background: var(--primary);
}

.sector-card__icon svg {
  width: 22px; height: 22px;
  color: var(--primary);
  transition: color var(--t);
}

.sector-card:hover .sector-card__icon svg {
  color: var(--white);
}

.sector-card h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.sector-card p {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* -------------------------
   11. HOW WE WORK
   ------------------------- */
#how-we-work {
  background: var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  opacity: .25;
}

.process-step {
  padding: 0 24px;
  text-align: center;
}

.process-step__num {
  width: 72px;
  height: 72px;
  background: var(--primary-pale);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  position: relative;
  z-index: 1;
  background: var(--white);
  transition: all var(--t-med);
}

.process-step:hover .process-step__num {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: var(--shadow-teal);
}

.process-step h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.process-step p {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* -------------------------
   12. COMPLIANCE
   ------------------------- */
#compliance {
  background: var(--navy);
  color: var(--text-on-dark);
}

#compliance h2 { color: var(--white); }
#compliance .section-header p { color: var(--text-on-dark-muted); }

.compliance__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.compliance-badge {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--t);
}

.compliance-badge:hover {
  background: rgba(46,127,168,.12);
  border-color: rgba(46,127,168,.4);
  transform: translateY(-2px);
}

.compliance-badge__check {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.compliance-badge__check svg {
  width: 14px; height: 14px;
  color: var(--white);
}

.compliance-badge h5 {
  color: var(--white);
  font-size: .9375rem;
  margin-bottom: 4px;
}

.compliance-badge p {
  font-size: .8rem;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
  margin: 0;
}

/* -------------------------
   13. PROJECTS
   ------------------------- */
#projects {
  background: var(--grey-light);
}

/* ── Logo Marquee ─────────────────────────────────────── */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  margin: 40px 0 56px;
  padding: 24px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: 96px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (max-width: 768px) {
  .logo-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }
  .logo-marquee__track {
    gap: 48px;
    animation-duration: 20s;
  }
  .logo-marquee__item img {
    height: 44px;
    max-width: 120px;
  }
}

.logo-marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-marquee__item img {
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-marquee__item.hovered img {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-marquee__item {
  cursor: pointer;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey);
  transition: all var(--t-med);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}

.project-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__tag {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary-dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.project-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.project-card p {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* -------------------------
   14. STATS BAR
   ------------------------- */
#stats-bar {
  background: var(--navy-mid);
  padding: 64px 0;
}

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

.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,.1);
}

.stat-item:last-child { border-right: none; }

.stat-item__num {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__num span {
  color: var(--primary-light);
}

.stat-item__label {
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* -------------------------
   15. SUSTAINABILITY
   ------------------------- */
#sustainability {
  background: var(--white);
}

.sustainability__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sustainability__content .label { margin-bottom: 12px; }
.sustainability__content h2    { margin-bottom: 20px; }
.sustainability__content p     { color: var(--text-body); margin-bottom: 16px; }

.sustainability__pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.sustainability__pillar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--grey-light);
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all var(--t);
}

.sustainability__pillar:hover {
  background: var(--primary-pale);
  color: var(--primary-dark);
}

.sustainability__pillar svg {
  width: 20px; height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.sustainability__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
}

.sustainability__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sustainability__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(46,127,168,.15), transparent);
}

/* -------------------------
   16. CTA BANNER
   ------------------------- */
#cta-banner {
  background: linear-gradient(135deg, var(--primary-xdark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
}

.cta-banner__content h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.cta-banner__content p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-banner__actions .btn-primary {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.cta-banner__actions .btn-primary:hover {
  background: var(--off-white);
  transform: translateY(-2px);
}

/* -------------------------
   17. FOOTER
   ------------------------- */
#footer {
  background: var(--navy-mid);
  padding: 72px 0 0;
  color: var(--text-on-dark-muted);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand .navbar__logo {
  margin-bottom: 20px;
}

.footer__brand p {
  font-size: .875rem;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  max-width: 300px;
  margin-bottom: 24px;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark-muted);
  transition: all var(--t);
}

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

.footer__social svg {
  width: 16px; height: 16px;
}

.footer__col h6 {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul a {
  font-size: .875rem;
  color: var(--text-on-dark-muted);
  transition: color var(--t);
}

.footer__col ul a:hover { color: var(--white); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: .875rem;
}

.footer__contact-item svg {
  width: 16px; height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-item a:hover { color: var(--white); }

.footer__bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  margin: 0;
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
}

.footer__bottom-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  transition: color var(--t);
}

.footer__bottom-links a:hover { color: var(--white); }

.footer__aoc {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.04);
  text-align: center;
}

.footer__aoc p {
  font-size: .75rem;
  color: rgba(255,255,255,.22);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* -------------------------
   18. ANIMATIONS
   ------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.fade-up.animated { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transition: opacity var(--t-slow);
}

.fade-in.animated { opacity: 1; }

.fade-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.fade-left.animated { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.fade-right.animated { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }
.delay-6 { transition-delay: .6s; }
.delay-7 { transition-delay: .7s; }
.delay-8 { transition-delay: .8s; }

/* -------------------------
   19. PAGE HERO (inner pages)
   ------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, rgba(46,127,168,.35) 100%);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero .label { color: var(--primary-light); margin-bottom: 12px; }
.page-hero h1     { color: var(--white); margin-bottom: 16px; }
.page-hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin: 0 auto;
}

/* -------------------------
   20. SERVICES PAGE
   ------------------------- */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-entry {
  padding: 64px 0;
  border-bottom: 1px solid var(--grey);
}

.service-entry:last-child { border-bottom: none; }

.service-entry:nth-child(even) .service-entry__grid {
  direction: rtl;
}

.service-entry:nth-child(even) .service-entry__grid > * {
  direction: ltr;
}

.service-entry__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.service-entry__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
}

.service-entry__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.service-entry:hover .service-entry__visual img {
  transform: scale(1.04);
}

.service-entry__icon {
  width: 56px; height: 56px;
  background: var(--primary-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.service-entry__icon svg {
  width: 26px; height: 26px;
  color: var(--primary);
}

.service-entry h3 { margin-bottom: 16px; }

.service-entry p  { color: var(--text-body); margin-bottom: 20px; }

.service-inclusions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.service-inclusions li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-body);
}

.service-inclusions li::before {
  content: '';
  width: 18px; height: 18px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6L5 9L10 3' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* -------------------------
   21. ABOUT PAGE
   ------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: visible;
  border: 1px solid var(--grey);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
  text-align: center;
  cursor: pointer;
}

/* hover handled via JS to avoid fade-up transform conflict */

.team-card__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  object-position: top center;
  background: var(--grey-light);
}

.team-card__avatar {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-card));
}

.team-card__initials {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,.2);
  letter-spacing: -.04em;
}

.team-card__initial-mark {
  width: 80px; height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.team-card__body {
  padding: 24px;
}

.team-card h4 { font-size: 1.125rem; margin-bottom: 4px; }

.team-card__role {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Timeline / Story */
.company-story {
  max-width: 800px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-pale));
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 14px; height: 14px;
  background: var(--primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item__year {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-item h4 { margin-bottom: 8px; }

.timeline-item p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* -------------------------
   22. CONTACT PAGE
   ------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 36px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-detail__icon {
  width: 44px; height: 44px;
  background: var(--primary-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-detail__icon svg {
  width: 20px; height: 20px;
  color: var(--primary);
}

.contact-detail h5 {
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-detail p, .contact-detail a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0;
}

.contact-detail a:hover { color: var(--primary); }

.contact-map {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
  border: 1px solid var(--grey);
}

.contact-map iframe {
  display: block;
  border-radius: var(--radius);
}

.contact-map svg {
  width: 32px; height: 32px;
  color: var(--primary);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form h3 { margin-bottom: 6px; }

.contact-form > p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey);
  border-radius: var(--radius);
  font-size: .9375rem;
  color: var(--text-dark);
  background: var(--off-white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,127,168,.12);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-submit {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border-radius: var(--radius);
  margin-top: 8px;
  justify-content: center;
}

.form-note {
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success svg {
  width: 56px; height: 56px;
  color: var(--primary);
  margin: 0 auto 16px;
}

.form-success h4 { margin-bottom: 8px; }
.form-success p  { color: var(--text-muted); }

/* -------------------------
   23. CAREERS PAGE
   ------------------------- */
.careers-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.perk-card {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--t);
}

.perk-card:hover {
  background: var(--primary-pale);
  transform: translateY(-2px);
}

.perk-card svg {
  width: 24px; height: 24px;
  color: var(--primary);
  margin-bottom: 10px;
}

.perk-card h5 { font-size: .9375rem; margin-bottom: 4px; }
.perk-card p  { font-size: .8125rem; color: var(--text-muted); margin: 0; }

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: all var(--t);
}

.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.job-card__left {
  flex: 1;
}

.job-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.job-card__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.job-card__tag {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--grey-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.job-card__tag--green {
  background: rgba(34,197,94,.1);
  color: #15803d;
}

/* -------------------------
   24. RESPONSIVE
   ------------------------- */
@media (max-width: 1100px) {
  .sectors__grid    { grid-template-columns: repeat(3, 1fr); }
  .footer__top      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root {
    --section: var(--section-mobile);
  }

  .navbar__links,
  .navbar__phone  { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar__mobile    { display: flex; }

  .hero__stats    { gap: 24px; }

  .about__grid            { grid-template-columns: 1fr; gap: 40px; }
  .about__visual          { order: -1; }
  .about__accent          { display: none; }

  .sectors__grid          { grid-template-columns: repeat(2, 1fr); }
  .process-steps          { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before  { display: none; }

  .compliance__grid       { grid-template-columns: 1fr 1fr; }
  .projects__grid         { grid-template-columns: repeat(2, 1fr); }
  .stats-grid             { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-item              { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 24px; }
  .stat-item:nth-child(2n){ border-right: none; }

  .sustainability__grid   { grid-template-columns: 1fr; }
  .sustainability__visual { height: 280px; }

  .service-entry__grid    { grid-template-columns: 1fr; gap: 32px; }
  .service-entry:nth-child(even) .service-entry__grid { direction: ltr; }

  .team-grid          { grid-template-columns: 1fr 1fr; }
  .contact-layout     { grid-template-columns: 1fr; }
  .careers-intro      { grid-template-columns: 1fr; }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .hero__ctas     { flex-direction: column; align-items: flex-start; }
  .hero__stats    { flex-direction: column; gap: 20px; }

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

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

  .process-steps  { grid-template-columns: 1fr; }

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

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

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

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .form-row       { grid-template-columns: 1fr; }

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

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

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__bottom-links {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: center;
    padding-bottom: 4px;
  }
  .footer__bottom-links::-webkit-scrollbar { display: none; }
  .footer__bottom-links a { flex-shrink: 0; }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar__cta { display: none; }
}

/* -------------------------
   25. PRINT / MISC
   ------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .fade-up, .fade-in, .fade-left, .fade-right {
    opacity: 1;
    transform: none;
  }
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
