/* ============================================================
   A.T WASTE MANAGEMENT — ENTERPRISE DESIGN SYSTEM
   ============================================================ */

:root {
  /* Brand palette */
  --forest: #1E5B43;
  --forest-dark: #143D2E;
  --forest-deep: #0D2B20;
  --emerald: #2E8B57;
  --emerald-light: #3FA56B;
  --gold: #D4AF37;
  --gold-soft: #E5C963;
  --charcoal: #1A1A1A;
  --slate: #5E6A71;
  --white: #FFFFFF;
  --offwhite: #F8FAF8;
  --mist: #EDF3EE;
  --line: rgba(30, 91, 67, 0.12);

  /* Typography */
  --font-head: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(13, 43, 32, 0.06);
  --shadow-md: 0 12px 40px rgba(13, 43, 32, 0.10);
  --shadow-lg: 0 24px 80px rgba(13, 43, 32, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------
   Reset & base
------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--offwhite);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: var(--forest); color: var(--white); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.015em;
}

/* ------------------------------------------------------------
   Layout helpers
------------------------------------------------------------ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 28px; }

.section { padding: 110px 0; position: relative; }
.section-tight { padding: 80px 0; }
.section-dark { background: var(--forest-deep); color: rgba(255,255,255,0.85); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-mist { background: var(--mist); }
.section-white { background: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--gold);
}
.section-dark .eyebrow { color: var(--gold-soft); }

.section-title {
  font-size: clamp(34px, 4.6vw, 56px);
  max-width: 18ch;
  margin-bottom: 26px;
}
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-lede {
  font-size: 19px;
  color: var(--slate);
  max-width: 64ch;
  margin-bottom: 56px;
}
.section-dark .section-lede { color: rgba(255,255,255,0.72); }
.section-lede.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head-center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ------------------------------------------------------------
   Buttons
------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 17px 34px;
  border-radius: 100px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--forest) 100%);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(30, 91, 67, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(30, 91, 67, 0.45); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.45);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-3px); }

.btn-outline-dark {
  border: 1.5px solid var(--forest);
  color: var(--forest);
}
.btn-outline-dark:hover { background: var(--forest); color: var(--white); transform: translateY(-3px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--forest-deep);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(212, 175, 55, 0.45); }

/* ------------------------------------------------------------
   Header
------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s, padding 0.4s;
  padding: 18px 0;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(13, 43, 32, 0.07);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--white);
  display: grid; place-items: center;
  padding: 5px;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(13, 43, 32, 0.25);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.scrolled .brand-mark, .solid .brand-mark { box-shadow: 0 0 0 1px var(--line), 0 4px 12px rgba(13, 43, 32, 0.08); }
.brand-text { line-height: 1.15; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  color: var(--white);
  transition: color 0.3s;
  white-space: nowrap;
}
.brand-tag {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s;
  font-weight: 500;
}
.scrolled .brand-name, .solid .brand-name { color: var(--forest-deep); }
.scrolled .brand-tag, .solid .brand-tag { color: var(--slate); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.92);
  transition: color 0.3s, background 0.3s;
}
.main-nav > li > a:hover, .main-nav > li > a.active { background: rgba(255,255,255,0.12); }
.scrolled .main-nav > li > a, .solid .main-nav > li > a { color: var(--charcoal); }
.scrolled .main-nav > li > a:hover, .solid .main-nav > li > a:hover,
.scrolled .main-nav > li > a.active, .solid .main-nav > li > a.active { background: var(--mist); color: var(--forest); }

.main-nav .caret { width: 10px; height: 10px; opacity: 0.7; }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 290px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s var(--ease);
  z-index: 100;
}
.main-nav li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--charcoal);
  transition: background 0.25s, color 0.25s, padding-left 0.25s;
}
.dropdown a:hover { background: var(--mist); color: var(--forest); padding-left: 22px; }
.dropdown a span { display: block; font-size: 12px; color: var(--slate); font-weight: 400; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.9);
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  transition: all 0.3s;
}
.lang-btn svg { width: 15px; height: 15px; }
.scrolled .lang-btn, .solid .lang-btn { color: var(--charcoal); border-color: var(--line); }
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 8px;
  min-width: 160px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.3s var(--ease);
  z-index: 110;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; width: 100%;
  padding: 10px 14px;
  font-size: 14px; font-weight: 500;
  border-radius: 9px;
  color: var(--charcoal);
  transition: background 0.2s;
}
.lang-menu button:hover, .lang-menu button.active { background: var(--mist); color: var(--forest); }

.header-cta { padding: 12px 24px; font-size: 13.5px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  place-items: center;
  color: var(--white);
}
.scrolled .nav-toggle, .solid .nav-toggle { color: var(--forest-deep); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--forest-deep);
  z-index: 2000;
  padding: 90px 32px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-close {
  position: absolute; top: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: grid; place-items: center;
}
.mobile-nav-close svg { width: 22px; height: 22px; }
.mobile-nav a {
  display: block;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  color: var(--white);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav .sub a { font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.7); padding: 10px 0 10px 18px; border: none; }
.mobile-nav .btn { margin-top: 30px; }

/* ------------------------------------------------------------
   Hero (cinematic)
------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--forest-deep);
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media .hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero--slideshow .hero-canvas { opacity: 0; pointer-events: none; }

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
}
.hero-slide.active img {
  animation: hero-kenburns 7s ease-out forwards;
}
.hero-slide--video.active video {
  animation: hero-kenburns 10s ease-out forwards;
}
@keyframes hero-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hero-slide-ui {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: 72px;
  z-index: 3;
  pointer-events: none;
}
.hero-slide-caption {
  position: absolute;
  top: clamp(88px, 12vh, 112px);
  right: clamp(20px, 4vw, 48px);
  z-index: 3;
  margin: 0;
  max-width: min(420px, 42vw);
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: right;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(7, 28, 20, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 3px solid var(--gold-soft);
  border-radius: 8px 0 0 8px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.hero-slide-caption.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-slide-caption[hidden] { display: none; }
.hero-slide-dots {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}
.hero-slide-dot {
  width: 36px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.35s, transform 0.35s;
}
.hero-slide-dot:hover { background: rgba(255, 255, 255, 0.5); }
.hero-slide-dot.active {
  background: var(--gold-soft);
  transform: scaleX(1.15);
}

.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(13,43,32,0.94) 0%, rgba(13,43,32,0.78) 45%, rgba(13,43,32,0.42) 100%),
    linear-gradient(0deg, rgba(13,43,32,0.92) 0%, transparent 35%);
  z-index: 1;
}
.hero--slideshow .hero-scrim {
  background:
    linear-gradient(110deg, rgba(13,43,32,0.93) 0%, rgba(13,43,32,0.75) 48%, rgba(13,43,32,0.25) 100%),
    linear-gradient(0deg, rgba(13,43,32,0.88) 0%, transparent 38%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; padding: 140px 0 110px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
  padding: 9px 18px;
  border-radius: 100px;
  margin-bottom: 26px;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.5); }
  50% { box-shadow: 0 0 0 7px rgba(212,175,55,0); }
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 62px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 22ch;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 60%, #b8932a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(15.5px, 1.3vw, 18px);
  color: rgba(255,255,255,0.78);
  max-width: 62ch;
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.65;
}

.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-counters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(14px);
}
.hero-counter {
  background: rgba(13, 43, 32, 0.55);
  padding: 22px 22px;
  transition: background 0.35s;
}
.hero-counter:hover { background: rgba(30, 91, 67, 0.55); }
.hero-counter .num {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  display: flex; align-items: baseline; gap: 3px;
}
.hero-counter .num .unit { font-size: 0.55em; color: var(--gold-soft); font-weight: 700; }
.hero-counter .num .num-avg {
  font-size: 0.42em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  margin-right: 2px;
}
.hero-counter .label {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 2.2s infinite var(--ease);
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 220px 0 110px;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(46,139,87,0.35), transparent 65%),
    radial-gradient(800px 420px at 8% 110%, rgba(212,175,55,0.12), transparent 60%),
    var(--forest-deep);
  color: var(--white);
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(32px, 3.8vw, 50px);
  color: var(--white);
  max-width: 20ch;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.page-hero p { font-size: 19px; color: rgba(255,255,255,0.72); max-width: 62ch; font-weight: 300; }
.breadcrumb {
  display: flex; gap: 10px; align-items: center;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
}
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb .sep { color: var(--gold); }

.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ------------------------------------------------------------
   Cards & grids
------------------------------------------------------------ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(46,139,87,0.35); }

.icon-tile {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(46,139,87,0.14), rgba(30,91,67,0.08));
  color: var(--forest);
  margin-bottom: 26px;
  transition: all 0.4s var(--ease);
}
.icon-tile svg { width: 28px; height: 28px; }
.card:hover .icon-tile {
  background: linear-gradient(135deg, var(--emerald), var(--forest));
  color: var(--white);
  transform: scale(1.06) rotate(-4deg);
}

.leader-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 26px;
  border: 3px solid rgba(46, 139, 87, 0.2);
  box-shadow: 0 10px 28px rgba(13, 43, 32, 0.14);
  flex-shrink: 0;
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.card:hover .leader-photo { border-color: rgba(46, 139, 87, 0.45); }

.card h3 { font-size: 21px; margin-bottom: 13px; }
.card p { font-size: 15.5px; color: var(--slate); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
}
.card-link svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.card:hover .card-link svg, .card-link:hover svg { transform: translateX(5px); }

.card-topline::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card-topline:hover::before { transform: scaleX(1); }

/* Stat band */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-item { text-align: center; padding: 10px; }
.stat-item .num {
  font-family: var(--font-head);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 800;
  color: var(--forest);
  line-height: 1.05;
}
.section-dark .stat-item .num { color: var(--gold-soft); }
.stat-item .num .unit { font-size: 0.5em; vertical-align: 8px; margin-left: 2px; }
.stat-item .label {
  font-size: 14px;
  color: var(--slate);
  margin-top: 10px;
  font-weight: 500;
}
.section-dark .stat-item .label { color: rgba(255,255,255,0.65); }

/* ------------------------------------------------------------
   Timeline
------------------------------------------------------------ */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--emerald), var(--gold));
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 48px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -38px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--emerald);
  box-shadow: 0 0 0 5px rgba(46,139,87,0.15);
}
.timeline-item .year {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.timeline-item h4 { font-size: 20px; margin: 8px 0 10px; }
.timeline-item p { color: var(--slate); font-size: 15.5px; max-width: 60ch; }
.section-dark .timeline-item p { color: rgba(255,255,255,0.68); }
.section-dark .timeline-item::before { background: var(--forest-deep); }

/* ------------------------------------------------------------
   Homepage — gallery photo accents
------------------------------------------------------------ */
.home-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.home-photo-cell {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.home-photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.home-photo-cell:hover img { transform: scale(1.04); }

.about-video-wrap {
  margin-bottom: 28px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--forest-deep);
  border: 1px solid rgba(30, 91, 67, 0.12);
}
.about-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: top;
  background: var(--forest-deep);
}

.card--media { padding: 0 !important; }
.card--media .card-photo {
  overflow: hidden;
  line-height: 0;
}
.card--media .card-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.card--media:hover .card-photo img { transform: scale(1.05); }
.card--media .icon-tile { margin: 24px 26px 0; }
.card--media h3,
.card--media p,
.card--media .card-link { margin-left: 26px; margin-right: 26px; }
.card--media h3 { margin-top: 18px; }
.card--media p { margin-bottom: 18px; }
.card--media .card-link { margin-bottom: 26px; display: inline-flex; }

.facility-photo {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  line-height: 0;
}
.facility-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.facility-map:has(.facility-photo) iframe { border-radius: 0 0 var(--radius) var(--radius); }

.home-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.home-mosaic-item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.home-mosaic-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.home-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-innovation-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.home-innovation-photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,0.08);
}
.home-innovation-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-thumb .news-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .home-mosaic { grid-template-columns: repeat(2, 1fr); }
  .home-innovation-strip { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .home-photo-grid { grid-template-columns: 1fr; }
  .home-mosaic { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------
   Circular economy diagram
------------------------------------------------------------ */
.eco-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.eco-svg-holder { position: relative; }
.eco-svg-holder svg { width: 100%; height: auto; }

.eco-steps { display: flex; flex-direction: column; gap: 6px; }
.eco-step {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.35s, transform 0.35s var(--ease);
  border: 1px solid transparent;
}
.eco-step:hover, .eco-step.active {
  background: rgba(255,255,255,0.06);
  border-color: rgba(212,175,55,0.25);
  transform: translateX(8px);
}
.eco-step .n {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(212,175,55,0.14);
  color: var(--gold-soft);
  border: 1px solid rgba(212,175,55,0.35);
  transition: all 0.35s;
}
.eco-step.active .n { background: var(--gold); color: var(--forest-deep); }
.eco-step h4 { font-size: 17.5px; color: var(--white); margin-bottom: 5px; }
.eco-step p { font-size: 14px; color: rgba(255,255,255,0.62); }

/* ------------------------------------------------------------
   Facilities / map
------------------------------------------------------------ */
.facility-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.facility-tab {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 600;
  padding: 13px 26px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  color: var(--slate);
  background: var(--white);
  transition: all 0.3s;
}
.facility-tab:hover { border-color: var(--emerald); color: var(--forest); }
.facility-tab.active {
  background: linear-gradient(135deg, var(--emerald), var(--forest));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(30,91,67,0.3);
}

.facility-panel { display: none; }
.facility-panel.active { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; animation: fade-up 0.6s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.facility-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  min-height: 430px;
  background: var(--mist);
}
.facility-map iframe { width: 100%; height: 100%; min-height: 430px; border: 0; display: block; }

.facility-info h3 { font-size: 27px; margin-bottom: 8px; }
.facility-info .addr { color: var(--slate); font-size: 15px; margin-bottom: 28px; display: flex; gap: 9px; align-items: flex-start; }
.facility-info .addr svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; color: var(--emerald); }

.spec-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec-list .spec {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.spec-list .spec dt { color: var(--slate); font-weight: 500; }
.spec-list .spec dd { font-weight: 600; text-align: right; color: var(--charcoal); }

.facility-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ------------------------------------------------------------
   ESG dashboard
------------------------------------------------------------ */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.dash-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, background 0.3s;
}
.dash-card:hover { border-color: rgba(212,175,55,0.45); background: rgba(255,255,255,0.075); }
.dash-card.span4 { grid-column: span 4; }
.dash-card.span6 { grid-column: span 6; }
.dash-card.span8 { grid-column: span 8; }
.dash-card.span12 { grid-column: span 12; }
.dash-card h4 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.dash-card h4 svg { width: 16px; height: 16px; color: var(--gold-soft); }
.dash-value {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.dash-value .unit { font-size: 0.45em; color: var(--gold-soft); margin-left: 4px; }
.dash-value .num-avg {
  font-size: 0.38em;
  color: var(--gold-soft);
  font-weight: 700;
  margin-right: 6px;
  letter-spacing: 0.06em;
}
.dash-trend { font-size: 13.5px; margin-top: 12px; color: rgba(255,255,255,0.55); line-height: 1.45; }
.dash-trend svg { width: 14px; height: 14px; }
.dash-card canvas { width: 100%; margin-top: 14px; }

.gauge-wrap { position: relative; display: grid; place-items: center; padding: 6px 0; }
.gauge-wrap svg { width: 170px; height: auto; }
.gauge-center {
  position: absolute;
  text-align: center;
}
.gauge-center .v { font-family: var(--font-head); font-size: 33px; font-weight: 800; color: var(--white); }
.gauge-center .l { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

.sdg-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.sdg-chip {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 9px;
  color: var(--white);
  letter-spacing: 0.03em;
}

/* Progress bars */
.bar-row { margin-bottom: 18px; }
.bar-row .bar-head { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 8px; color: rgba(255,255,255,0.75); }
.bar-row .bar-head b { color: var(--white); }
.bar-track { height: 8px; border-radius: 100px; background: rgba(255,255,255,0.12); overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--emerald-light), var(--gold-soft));
  width: 0;
  transition: width 1.6s var(--ease);
}

/* ------------------------------------------------------------
   Logo wall / clients
------------------------------------------------------------ */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 50px; }
.filter-btn {
  font-family: var(--font-head);
  font-size: 13.5px; font-weight: 600;
  padding: 11px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  color: var(--slate);
  background: var(--white);
  transition: all 0.3s;
}
.filter-btn:hover { border-color: var(--emerald); color: var(--forest); }
.filter-btn.active {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.logo-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 20px;
  text-align: center;
  transition: all 0.4s var(--ease);
}
.logo-cell:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); border-color: rgba(46,139,87,0.3); }
.logo-cell .mono {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--forest);
  letter-spacing: 0.02em;
}
.logo-cell .cat {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}
.logo-cell.hidden { display: none; }

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.client-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
  text-align: center;
  transition: all 0.4s var(--ease);
}
.client-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: rgba(46, 139, 87, 0.3);
}
.client-card .client-logo {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.client-card .client-logo img {
  max-height: 82px;
  max-width: 100%;
  object-fit: contain;
}
.client-card .client-logo--more span {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--forest);
  line-height: 1;
}
.client-card .client-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.client-card .client-cat {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}
.client-card--more .client-name { color: var(--forest); }
.client-card.hidden { display: none; }

/* Client slider (homepage) */
.client-slider {
  position: relative;
  padding: 0 52px;
}
.client-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}
.client-slider-track::-webkit-scrollbar { display: none; }
.client-slider-track .client-card {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
  min-width: 0;
}
.client-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--forest);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
  z-index: 2;
}
.client-slider-btn:hover {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}
.client-slider-btn--prev { left: 0; }
.client-slider-btn--next { right: 0; }
.client-slider-btn svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------
   Case studies
------------------------------------------------------------ */
.case-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s;
}
.case-card:hover { box-shadow: var(--shadow-md); }
.case-card + .case-card { margin-top: 40px; }
.case-visual {
  position: relative;
  min-height: 360px;
  background: linear-gradient(135deg, var(--forest-dark), var(--emerald));
  display: flex;
  align-items: flex-end;
  padding: 36px;
  color: var(--white);
  overflow: hidden;
}
.case-visual .big {
  font-family: var(--font-head);
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
}
.case-visual .big span { display: block; font-size: 15px; font-weight: 500; opacity: 0.8; margin-top: 8px; letter-spacing: 0.04em; }
.case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(120deg, black, transparent 65%);
}
.case-body { padding: 44px 46px; }
.case-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  background: rgba(46,139,87,0.1);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.case-body h3 { font-size: 25px; margin-bottom: 22px; }
.case-rows { display: grid; gap: 14px; }
.case-rows .row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; font-size: 14.5px; }
.case-rows .row .k {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 2px;
}
.case-rows .row .v { color: var(--slate); }

/* ------------------------------------------------------------
   Certifications
------------------------------------------------------------ */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-grid--iso {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1080px;
  margin-inline: auto;
  gap: 32px;
}
.cert-grid--epa {
  grid-template-columns: 1.35fr 1fr;
  max-width: 1080px;
  margin-inline: auto;
  gap: 32px;
  align-items: stretch;
}
.cert-card--compact .cert-code { font-size: 17px; line-height: 1.3; }
.cert-card--compact .cert-name { font-size: 13.5px; margin-bottom: 10px; }
.cert-card--compact .cert-meta { font-size: 12px; line-height: 1.65; }
.cert-card--compact { padding: 24px 20px; }
.cert-card--compact .cert-img-frame--portrait img { height: 320px; }
.cert-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cert-card .cert-ribbon {
  position: absolute;
  top: 0; right: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--forest-deep);
  padding: 7px 16px;
  border-radius: 0 0 0 14px;
}
.cert-card .cert-code {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 6px;
}
.cert-card .cert-name { font-size: 15px; font-weight: 600; margin-bottom: 14px; color: var(--charcoal); }
.cert-card .cert-meta { font-size: 13.5px; color: var(--slate); line-height: 1.8; }
.cert-card .cert-meta b { color: var(--charcoal); }
.cert-img-frame {
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-top: 20px;
  background: var(--mist);
}
.cert-protected {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.cert-protected img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
  -webkit-touch-callout: none;
}
.cert-watermark-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='140' viewBox='0 0 240 140'%3E%3Ctext x='120' y='72' fill='rgba(13%2C43%2C32%2C0.13)' font-family='Montserrat%2CArial%2Csans-serif' font-size='13' font-weight='700' letter-spacing='2' text-anchor='middle' transform='rotate(-32 120 72)'%3EATWM · VIEW ONLY%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 240px 140px;
}
.cert-protected::after {
  content: "ATWM · PRIVATE";
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: clamp(15px, 3vw, 24px);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(13, 43, 32, 0.16);
  transform: rotate(-28deg);
  pointer-events: none;
  white-space: nowrap;
}
.cert-shield {
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: zoom-in;
  background: transparent;
}
.cert-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 18px auto 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(13, 43, 32, 0.06);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
}
.cert-privacy-badge svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--forest); }
.cert-img-frame img { width: 100%; height: 230px; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease); }
.cert-img-frame--portrait img {
  height: 420px;
  object-fit: contain;
  object-position: center top;
  background: #fff;
}
.cert-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.cert-pages .cert-img-frame img { height: 300px; }
.cert-page-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--slate);
  text-align: center;
}
.cert-card--document { display: flex; flex-direction: column; }
.cert-card--document .cert-pages { flex: 1; }
.cert-card:hover .cert-img-frame img { transform: scale(1.04); }
.cert-img-frame { position: relative; }
.cert-img-frame.cert-protected { cursor: zoom-in; }
.cert-zoom-hint { z-index: 5; }
.cert-zoom-hint {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 12px 11px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  background: linear-gradient(to top, rgba(13, 43, 32, 0.88), transparent);
  pointer-events: none;
  transition: padding 0.3s var(--ease);
}
.cert-zoom-hint svg { width: 15px; height: 15px; flex-shrink: 0; }
.cert-img-frame:hover .cert-zoom-hint { padding-bottom: 15px; }

.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px 18px;
  background: rgba(8, 24, 18, 0.93);
  backdrop-filter: blur(6px);
}
.cert-lightbox.open { display: flex; animation: lbFade 0.25s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.cert-lightbox figure { margin: 0; max-width: min(94vw, 920px); text-align: center; }
.cert-lb-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  background: var(--white);
}
.cert-lb-wrap img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  background: var(--white);
}
.cert-lb-wrap::after {
  font-size: clamp(18px, 4vw, 28px);
  color: rgba(13, 43, 32, 0.2);
}
.cert-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  background: var(--white);
  box-shadow: none;
}
.cert-lightbox-privacy {
  margin: 14px auto 0;
  max-width: 520px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}
.cert-lightbox figcaption {
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}
.cert-lightbox .lb-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s, transform 0.25s;
}
.cert-lightbox .lb-close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }
[dir="rtl"] .cert-lightbox .lb-close { right: auto; left: 26px; }

@media print {
  .cert-protected img,
  .cert-lb-wrap img { display: none !important; }
  .cert-protected::after,
  .cert-watermark-layer { display: none !important; }
  .cert-img-frame::before {
    content: "Certificate preview withheld — visit atwm.com.pk/certifications.html for verification.";
    display: block;
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    color: #333;
  }
}

.verify-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 50px;
  max-width: 760px;
  margin: 0 auto;
}
.verify-box .row { display: flex; gap: 14px; }
.verify-box input {
  flex: 1;
  padding: 17px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  font-size: 15.5px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.verify-box input:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(46,139,87,0.12); }
.verify-result {
  margin-top: 26px;
  border-radius: 16px;
  padding: 24px 28px;
  font-size: 15px;
  display: none;
}
.verify-result.ok { display: block; background: rgba(46,139,87,0.08); border: 1px solid rgba(46,139,87,0.3); color: var(--forest-dark); }
.verify-result.fail { display: block; background: rgba(180, 50, 50, 0.06); border: 1px solid rgba(180,50,50,0.25); color: #8a3030; }
.verify-result b { display: block; font-size: 16.5px; margin-bottom: 6px; }

/* ------------------------------------------------------------
   News
------------------------------------------------------------ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.news-thumb {
  height: 190px;
  background: linear-gradient(135deg, var(--forest), var(--emerald));
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
}
.news-thumb svg { width: 52px; height: 52px; opacity: 0.9; }
.news-thumb .date-chip {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(13,43,32,0.7);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 12px; font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
}
.news-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.news-body .cat { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.news-body h3 { font-size: 18.5px; line-height: 1.35; margin-bottom: 12px; }
.news-body p { font-size: 14.5px; color: var(--slate); flex: 1; }

/* ------------------------------------------------------------
   Careers
------------------------------------------------------------ */
.job-list { display: grid; gap: 18px; }
.job-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 32px;
  transition: all 0.35s var(--ease);
}
.job-row:hover { border-color: rgba(46,139,87,0.4); box-shadow: var(--shadow-sm); transform: translateX(6px); }
.job-row h3 { font-size: 18.5px; }
.job-row .dept { font-size: 13px; color: var(--slate); margin-top: 4px; }
.job-pill {
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--mist);
  color: var(--forest);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Forms / contact
------------------------------------------------------------ */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 50px;
}
.form-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.form-tab {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600;
  padding: 11px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  color: var(--slate);
  transition: all 0.3s;
}
.form-tab.active { background: var(--forest); color: var(--white); border-color: var(--forest); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--charcoal); }
.field input, .field select, .field textarea {
  padding: 15px 18px;
  border-radius: 13px;
  border: 1.5px solid var(--line);
  font-size: 15px;
  background: var(--offwhite);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--emerald);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(46,139,87,0.1);
}
.form-note { font-size: 13px; color: var(--slate); margin-top: 18px; }
.form-success {
  display: none;
  margin-top: 22px;
  background: rgba(46,139,87,0.08);
  border: 1px solid rgba(46,139,87,0.3);
  color: var(--forest-dark);
  border-radius: 14px;
  padding: 20px 26px;
  font-size: 15px;
}
.form-success.show { display: block; animation: fade-up 0.5s var(--ease); }

.contact-side { display: flex; flex-direction: column; gap: 22px; }
.contact-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  gap: 20px;
}
.contact-tile .icon-tile { margin: 0; width: 50px; height: 50px; flex-shrink: 0; }
.contact-tile .icon-tile svg { width: 23px; height: 23px; }
.contact-tile h4 { font-size: 16px; margin-bottom: 7px; }
.contact-tile p, .contact-tile a { font-size: 14.5px; color: var(--slate); display: block; line-height: 1.7; }
.contact-tile a:hover { color: var(--forest); }

/* ------------------------------------------------------------
   CTA band
------------------------------------------------------------ */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 90% 10%, rgba(212,175,55,0.22), transparent 60%),
    linear-gradient(120deg, var(--forest-dark), var(--forest) 55%, var(--emerald));
  color: var(--white);
  padding: 80px 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 42px); max-width: 22ch; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 52ch; font-size: 16.5px; }
.cta-band .actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------
   Photo gallery
------------------------------------------------------------- */
.gallery-filters { max-width: 980px; margin-left: auto; margin-right: auto; }
.gallery-cat { margin-bottom: 72px; }
.gallery-cat:last-of-type { margin-bottom: 0; }
.gallery-cat.hidden { display: none; }
.gallery-cat-head { margin-bottom: 28px; max-width: 720px; }
.gallery-cat-head h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  color: var(--forest-deep);
  margin-bottom: 8px;
}
.gallery-cat-head p { font-size: 15.5px; color: var(--slate); line-height: 1.65; }

.gallery-subfilters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.gallery-subfilter-btn {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.gallery-subfilter-btn:hover { border-color: var(--emerald); color: var(--forest); }
.gallery-subfilter-btn.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

.gallery-sub { margin-bottom: 44px; }
.gallery-sub:last-child { margin-bottom: 0; }
.gallery-sub.hidden { display: none; }
.gallery-sub-head { margin-bottom: 20px; padding-left: 14px; border-left: 3px solid var(--emerald); }
.gallery-sub-head h3 { font-size: 18px; color: var(--forest-deep); margin-bottom: 4px; }
.gallery-sub-head p { font-size: 14px; color: var(--slate); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gallery-item.hidden { display: none; }
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  text-align: center;
  background: linear-gradient(145deg, var(--mist), rgba(46, 139, 87, 0.06));
  border: 2px dashed rgba(46, 139, 87, 0.22);
}
.gallery-placeholder svg { width: 42px; height: 42px; color: var(--emerald); opacity: 0.75; }
.gallery-placeholder span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--forest-deep);
  line-height: 1.4;
}
.gallery-placeholder small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.gallery-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  position: relative;
}
.gallery-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-photo:hover img { transform: scale(1.05); }
.gallery-photo--video { cursor: pointer; }
.gallery-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(13, 43, 32, 0.82);
  border: 2px solid rgba(212, 175, 55, 0.9);
  pointer-events: none;
}
.gallery-play::after {
  content: "";
  position: absolute;
  left: 21px; top: 15px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--gold-soft);
}
.gallery-lightbox figure video {
  max-width: min(92vw, 1100px);
  max-height: 72vh;
  width: 100%;
  border-radius: var(--radius-md);
  background: #000;
}
.gallery-lightbox figure img[hidden],
.gallery-lightbox figure video[hidden] { display: none !important; }
.gallery-cap {
  position: absolute;
  left: 12px; bottom: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(13, 43, 32, 0.78);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 6px 12px;
}

.gallery-note {
  margin-top: 48px;
  text-align: center;
  font-size: 15px;
  color: var(--slate);
}
.gallery-note a { color: var(--forest); font-weight: 600; }
.gallery-note code {
  font-size: 13px;
  background: var(--mist);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--forest);
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-filters .filter-btn { font-size: 12px; padding: 8px 14px; }
  .gallery-subfilter-btn { font-size: 11.5px; padding: 7px 13px; }
  .gallery-cat { margin-bottom: 56px; }
}

/* ------------------------------------------------------------
   International visits — homepage cards
------------------------------------------------------------- */
.visits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.visit-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(13, 43, 32, 0.08);
  box-shadow: 0 6px 24px rgba(13, 43, 32, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.visit-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(13, 43, 32, 0.14); }
.vc-photos { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 230px; gap: 4px; }
.vc-photos.wide { grid-template-columns: 1fr; grid-template-rows: 113px 113px; }
.vc-photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.vc-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.vc-chip {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(46, 139, 87, 0.1);
  border: 1px solid rgba(46, 139, 87, 0.22);
  border-radius: 100px;
  padding: 6px 13px;
  margin-bottom: 16px;
}
.visit-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--forest-deep); }
.visit-card p { font-size: 14.5px; color: var(--slate); line-height: 1.65; margin-bottom: 18px; }
.vc-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--forest);
}
.vc-link svg { width: 17px; height: 17px; transition: transform 0.3s ease; }
.visit-card:hover .vc-link svg { transform: translateX(5px); }
[dir="rtl"] .visit-card:hover .vc-link svg { transform: translateX(-5px); }

/* ------------------------------------------------------------
   International visits — detail page rows
------------------------------------------------------------- */
.visit-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}
.visit-row.flip .visit-media { order: 2; }
.visit-row.flip .visit-info { order: 1; }
.visit-media { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.visit-media figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(13, 43, 32, 0.18);
  height: 380px;
}
.visit-media figure.offset { transform: translateY(30px); }
.visit-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visit-media.stack { grid-template-columns: 1fr; }
.visit-media.stack figure { height: auto; transform: none; }
.visit-media.stack img { height: auto; }
.visit-chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(46, 139, 87, 0.1);
  border: 1px solid rgba(46, 139, 87, 0.22);
  border-radius: 100px;
  padding: 7px 15px;
  margin-bottom: 20px;
}
.visit-info h2 { font-size: clamp(26px, 2.6vw, 36px); color: var(--forest-deep); margin-bottom: 14px; }
.visit-person {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--forest);
  margin-bottom: 16px;
  line-height: 1.55;
}
.visit-info > p { color: var(--slate); margin-bottom: 26px; }
.card-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: rgba(255, 255, 255, 0.68); }
.card-dark .icon-tile { background: rgba(255, 255, 255, 0.08); color: var(--gold-soft); }

@media (max-width: 1020px) {
  .visits-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .visit-row { grid-template-columns: 1fr; gap: 48px; }
  .visit-row.flip .visit-media { order: 0; }
  .visit-row.flip .visit-info { order: 0; }
  .visit-media figure { height: 300px; }
  .visit-media figure.offset { transform: none; }
}
@media (max-width: 560px) {
  .vc-photos { height: 190px; }
  .visit-media { grid-template-columns: 1fr; }
  .visit-media figure { height: 260px; }
}

/* ------------------------------------------------------------
   CEO message
------------------------------------------------------------- */
.ceo-section { position: relative; overflow: hidden; }
.ceo-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ceo-photo-wrap { position: relative; max-width: 360px; }
.ceo-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.ceo-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 43, 32, 0.45), transparent 45%);
  z-index: 1;
  pointer-events: none;
}
.ceo-photo img { width: 100%; display: block; aspect-ratio: 4 / 4.6; object-fit: cover; }
.ceo-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.ceo-card {
  position: relative;
  margin: -34px 20px 0;
  background: var(--white);
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  z-index: 2;
  text-align: center;
}
.ceo-card .name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--forest-deep);
}
.ceo-card .role {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep, #9a7b1e);
  font-weight: 600;
  margin-top: 3px;
}
.ceo-message .quote-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 110px;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.85;
  margin: 26px 0 6px;
}
.ceo-message blockquote {
  font-family: var(--font-head);
  font-size: clamp(21px, 2.2vw, 31px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
  letter-spacing: -0.01em;
  max-width: 24em;
  margin-bottom: 38px;
}
.ceo-sign { display: flex; align-items: center; gap: 18px; }
.ceo-sign .sign-line {
  width: 54px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  flex-shrink: 0;
}
.ceo-sign b {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--white);
}
.ceo-sign span:not(.sign-line) {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}
[dir="rtl"] .ceo-sign .sign-line { background: linear-gradient(270deg, var(--gold), transparent); }

@media (max-width: 1020px) {
  .ceo-grid { grid-template-columns: 1fr; gap: 56px; }
  .ceo-photo-wrap { max-width: 300px; margin: 0 auto; }
  .ceo-message { text-align: center; }
  .ceo-message .eyebrow::before { display: none; }
  .ceo-message .quote-mark { margin-left: auto; margin-right: auto; }
  .ceo-message blockquote { margin-left: auto; margin-right: auto; }
  .ceo-sign { justify-content: center; }
  .ceo-sign .sign-line { display: none; }
  .ceo-sign div { text-align: center; }
}

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.7);
  padding: 90px 0 0;
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 14.5px; margin-top: 20px; max-width: 38ch; color: rgba(255,255,255,0.6); }
.footer-certrow { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.footer-certrow span {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,0.35);
  color: var(--gold-soft);
}
.site-footer h5 {
  color: var(--white);
  font-size: 13.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14.5px; color: rgba(255,255,255,0.65); transition: color 0.25s, padding-left 0.25s; }
.footer-links a:hover { color: var(--gold-soft); padding-left: 6px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14px; line-height: 1.6; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--gold-soft); }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a:hover { color: var(--gold-soft); }

/* ------------------------------------------------------------
   Chat assistant
------------------------------------------------------------ */
.chat-fab {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 1500;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--forest));
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 14px 40px rgba(30,91,67,0.45);
  transition: transform 0.35s var(--ease);
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 27px; height: 27px; }

.chat-panel {
  position: fixed;
  right: 26px; bottom: 102px;
  z-index: 1500;
  width: min(380px, calc(100vw - 40px));
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.97);
  transition: all 0.4s var(--ease);
}
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }
.chat-head {
  background: linear-gradient(135deg, var(--forest-dark), var(--emerald));
  color: var(--white);
  padding: 20px 24px;
}
.chat-head h4 { color: var(--white); font-size: 16px; }
.chat-head p { font-size: 12.5px; opacity: 0.8; }
.chat-log { height: 300px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--offwhite); }
.chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.55; }
.chat-msg.bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; }
.chat-msg.user { background: var(--forest); color: var(--white); border-bottom-right-radius: 5px; align-self: flex-end; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; background: var(--offwhite); }
.chat-quick button {
  font-size: 12px; font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--forest);
  transition: all 0.25s;
}
.chat-quick button:hover { background: var(--forest); color: var(--white); }
.chat-input-row { display: flex; border-top: 1px solid var(--line); background: var(--white); }
.chat-input-row input { flex: 1; border: none; outline: none; padding: 17px 20px; font-size: 14px; }
.chat-input-row button { padding: 0 22px; color: var(--forest); }
.chat-input-row button svg { width: 21px; height: 21px; }

/* ------------------------------------------------------------
   Reveal animations
------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-slide.active img,
  .hero-slide.active video { animation: none; }
  .hero-slide { transition: none; }
  .hero-slide-caption { transition: none; transform: none; opacity: 1; }
}

/* ------------------------------------------------------------
   Marquee (trust strip)
------------------------------------------------------------ */
.marquee { overflow: hidden; position: relative; }
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--slate);
  white-space: nowrap;
}
.marquee-item svg { width: 22px; height: 22px; color: var(--emerald); }

/* ------------------------------------------------------------
   Misc
------------------------------------------------------------ */
.divider-gold {
  width: 70px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 3px;
  margin: 0 0 30px;
}

.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; font-size: 15.5px; color: var(--slate); align-items: flex-start; }
.check-list li svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--emerald); margin-top: 2px; }
.section-dark .check-list li { color: rgba(255,255,255,0.72); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--forest);
}
.section-dark .tag-cloud span { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); }

.scrolltop {
  position: fixed;
  right: 26px;
  bottom: 102px;
  z-index: 1400;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--forest);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.4s var(--ease);
}
.scrolltop.show { opacity: 1; visibility: visible; transform: none; }
.scrolltop svg { width: 20px; height: 20px; }
body.chat-open .scrolltop { bottom: 430px; }

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .hero-counters { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cert-grid, .grid-3, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .client-slider { padding: 0 44px; }
  .client-slider-track .client-card { flex: 0 0 calc(50% - 10px); }
  .cert-grid--iso, .cert-grid--epa { grid-template-columns: 1fr; }
  .dash-card.span4 { grid-column: span 6; }
  .dash-card.span8 { grid-column: span 12; }
  .eco-wrap { grid-template-columns: 1fr; gap: 50px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .hero-inner { padding: 140px 0 110px; }
  .hero-slide-caption {
    top: clamp(76px, 10vh, 96px);
    max-width: min(320px, 72vw);
    font-size: 12px;
    padding: 8px 12px;
  }
  .hero-counters { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4, .cert-grid, .client-grid, .news-grid, .logo-wall { grid-template-columns: 1fr; }
  .client-slider { padding: 0 40px; }
  .client-slider-track .client-card { flex: 0 0 85%; }
  .cert-pages { grid-template-columns: 1fr; }
  .cert-img-frame--portrait img { height: 360px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .facility-panel.active { grid-template-columns: 1fr; }
  .dash-card.span4, .dash-card.span6 { grid-column: span 12; }
  .case-card { grid-template-columns: 1fr; }
  .case-visual { min-height: 230px; }
  .case-body { padding: 32px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 32px 26px; }
  .verify-box { padding: 32px 24px; }
  .verify-box .row { flex-direction: column; }
  .cta-band { padding: 50px 34px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .job-row { grid-template-columns: 1fr; gap: 12px; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .page-hero { padding: 160px 0 80px; }
  .chat-panel { right: 14px; bottom: 92px; }
  .chat-fab { right: 14px; bottom: 18px; }
  .scrolltop { display: none; }
}

@media (min-width: 1800px) {
  :root { --container: 1380px; --container-wide: 1640px; }
  body { font-size: 18px; }
}

/* RTL support (Urdu) */
html[dir="rtl"] .eyebrow::before { order: 2; }
html[dir="rtl"] .timeline { padding-left: 0; padding-right: 40px; }
html[dir="rtl"] .timeline::before { left: auto; right: 9px; }
html[dir="rtl"] .timeline-item::before { left: auto; right: -38px; }
