/* ═══════════════════════════════════════════════════════════
   ANCHOREACH LIMITED — main.css
   Engineering Excellence. Consulting Integrity.
   Brand: Outfit (primary) · Cormorant Garamond (display)
   Accent: #00C8A0 · Navy: #1B2E37 · Teal: #30454C
═══════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,600&display=swap');

/* ── CSS TOKENS ────────────────────────────────────────── */
:root {
  --accent:        #00C8A0;
  --accent-faded:  #B3EFE3;
  --accent-dark:   #009E7E;
  --teal:          #30454C;
  --teal-dark:     #1B2E37;
  --navy:          #0C1B33;
  --white:         #ffffff;
  --black:         #111820;
  --light-gray:    #DBE2E6;
  --mid-gray:      #8A95A9;
  --dark-gray:     #B7C9D4;
  --bg-light:      #F3F6F7;
  --bg-section:    #EEF2F4;
  --banner-height: 83px;
  --mobile-padding: 5vw;
  --font:     'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 12px rgba(27,46,55,0.08);
  --shadow-md: 0 6px 30px rgba(27,46,55,0.12);
  --shadow-lg: 0 16px 60px rgba(27,46,55,0.16);
  --transition: 0.25s ease;
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--teal);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: 0; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── SCROLL ANIMATIONS ─────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.8s ease; }
.fade-in.visible { opacity: 1; }
.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger > *.visible { opacity: 1; transform: translateY(0); }
.slide-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.slide-left.visible { opacity: 1; transform: translateX(0); }
.slide-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.slide-right.visible { opacity: 1; transform: translateX(0); }

/* ── PAGE TRANSITIONS ──────────────────────────────────── */
.page-transition { animation: pageIn 0.4s ease forwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════════════════════════════════
   1. NAVIGATION
══════════════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--banner-height);
  display: flex; align-items: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
#nav.scrolled { background: var(--white); box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
#nav.nav-solid { background: var(--white); box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 1rem;
}
.nav-logo-wrap { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo-link {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #0099CC);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff;
  flex-shrink: 0; letter-spacing: -0.02em;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(0,200,160,0.3);
}
.nav-logo-link:hover .logo-mark { transform: scale(1.06); box-shadow: 0 4px 14px rgba(0,200,160,0.45); }
.logo-wordmark {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.95);
  transition: color var(--transition);
  white-space: nowrap;
}
#nav.scrolled .logo-wordmark,
#nav.nav-solid .logo-wordmark { color: var(--teal-dark); }

.nav-links {
  display: flex; align-items: center;
  gap: 0; height: 100%; flex: 1; justify-content: center;
}
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-item > a {
  padding: 0 0.8rem; height: 100%;
  display: flex; align-items: center;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  transition: color var(--transition);
  position: relative;
}
#nav.scrolled .nav-item > a,
#nav.nav-solid .nav-item > a { color: var(--teal); }
.nav-item > a::after {
  content: ''; position: absolute; bottom: 0; left: 0.8rem; right: 0.8rem;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-item:hover > a::after,
.nav-item:focus-within > a::after,
.nav-item > a.active::after { transform: scaleX(1); }
.nav-item:hover > a { color: #fff; }
#nav.scrolled .nav-item:hover > a,
#nav.nav-solid .nav-item:hover > a { color: var(--teal-dark); }
.nav-item > a.active { color: var(--accent) !important; }

/* Dropdowns */
.nav-dropdown {
  display: none; position: absolute; top: var(--banner-height); left: 0;
  min-width: 240px;
  background: var(--white);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  border-top: 3px solid var(--accent);
  padding: 0.6rem 0; z-index: 901;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: block; }
.nav-dropdown a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.8rem; font-weight: 500;
  color: var(--teal);
  transition: color var(--transition), background var(--transition);
}
.nav-dropdown a:hover { color: var(--accent); background: var(--bg-light); }
.dd-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.nav-dropdown a:hover .dd-dot { background: var(--accent-dark); transform: rotate(45deg); }
.dd-dot svg { width: 9px; height: 9px; stroke: #fff; fill: none; stroke-width: 2.5; transform: rotate(-45deg); }

.nav-right { display: flex; align-items: center; gap: 0.4rem; }
.nav-icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition), background var(--transition); cursor: pointer;
}
#nav.scrolled .nav-icon-btn,
#nav.nav-solid .nav-icon-btn { color: var(--teal); }
.nav-icon-btn:hover { color: var(--accent); background: rgba(0,200,160,0.08); }
.nav-icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; }

.theme-pill {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.28rem 0.65rem; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85); cursor: pointer;
  transition: all var(--transition);
}
#nav.scrolled .theme-pill,
#nav.nav-solid .theme-pill { border-color: var(--light-gray); color: var(--teal); }
.theme-pill:hover { border-color: var(--accent); color: var(--accent); }
.theme-pill svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
#nav.scrolled .nav-burger span,
#nav.nav-solid .nav-burger span { background: var(--teal); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── OVERLAYS ──────────────────────────────────────────── */
.search-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(27,46,55,0.97);
  align-items: center; justify-content: center; flex-direction: column;
}
.search-overlay.open { display: flex; }
.search-close {
  position: absolute; top: 1.5rem; right: 2rem;
  color: #fff; font-size: 2.5rem; opacity: 0.6; cursor: pointer; background: none; border: 0;
  line-height: 1; transition: opacity var(--transition);
}
.search-close:hover { opacity: 1; }
.search-form {
  width: 90%; max-width: 640px;
  display: flex; align-items: center;
  border-bottom: 2px solid var(--accent); gap: 0.5rem;
}
.search-input {
  flex: 1; background: none; border: 0; outline: 0;
  font-size: 2rem; font-family: var(--font); color: #fff; padding: 0.5rem 0;
}
.search-input::placeholder { color: rgba(255,255,255,0.3); }
.search-submit { background: none; border: 0; cursor: pointer; color: #fff; opacity: 0.6; padding: 0.5rem; }
.search-submit:hover { opacity: 1; }
.search-submit svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; }
.search-hint { margin-top: 1rem; font-size: 0.8rem; color: rgba(255,255,255,0.3); max-width: 640px; width: 90%; }

.mobile-menu {
  display: none; position: fixed;
  top: var(--banner-height); left: 0; right: 0; bottom: 0;
  z-index: 899; background: var(--teal-dark);
  overflow-y: auto; flex-direction: column;
  padding: 1.5rem 0 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 1rem var(--mobile-padding);
  font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent); }

.video-modal {
  display: none; position: fixed; inset: 0; z-index: 1001;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal-box { position: relative; width: 90%; max-width: 960px; aspect-ratio: 16/9; background: #000; }
.video-modal-close {
  position: absolute; top: -3rem; right: 0;
  color: #fff; font-size: 2rem; opacity: 0.6; cursor: pointer; background: none; border: 0;
  transition: opacity var(--transition);
}
.video-modal-close:hover { opacity: 1; }
.video-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1rem;
  color: rgba(255,255,255,0.4); font-size: 1rem;
}

.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
  background: var(--teal-dark); color: #fff;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; line-height: 1.5;
  transform: translateY(0); transition: transform 0.4s;
}
.cookie-bar.hidden { transform: translateY(100%); }
.cookie-bar a { color: var(--accent); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* ── COOKIE & BACK-TO-TOP BUTTONS ──────────────────────── */
.btn-accept {
  background: var(--accent); color: var(--teal-dark);
  padding: 0.45rem 1.1rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.btn-accept:hover { background: var(--accent-dark); }
.btn-essential {
  background: none; border: 1px solid rgba(255,255,255,0.3); color: #fff;
  padding: 0.45rem 1.1rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.btn-essential:hover { border-color: rgba(255,255,255,0.7); }

#backToTop {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 800;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,200,160,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background var(--transition);
  cursor: pointer;
}
#backToTop.visible { opacity: 1; pointer-events: all; }
#backToTop:hover { background: var(--accent-dark); transform: translateY(-2px); }
#backToTop svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* WhatsApp Widget */
.wa-widget {
  position: fixed; bottom: 5.5rem; right: 2rem; z-index: 800;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.wa-widget:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
.wa-widget svg { width: 28px; height: 28px; fill: #fff; }

/* ══════════════════════════════════════════════════════════
   2. TYPOGRAPHY
══════════════════════════════════════════════════════════ */
.eyebrow {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.display-heading { font-family: var(--font-display); font-weight: 600; font-style: italic; }

/* ══════════════════════════════════════════════════════════
   3. LAYOUT UTILITIES
══════════════════════════════════════════════════════════ */
.section-wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem); }
.section-narrow { max-width: 860px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem); }

/* ── INNER PAGE HERO ────────────────────────────────────── */
.page-hero {
  padding-top: var(--banner-height);
  background: var(--navy);
  min-height: 340px;
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12,27,51,0.55) 0%, rgba(12,27,51,0.88) 100%);
}
.page-hero-body {
  position: relative; z-index: 1;
  width: 100%; padding: clamp(2.5rem,5vw,4.5rem) clamp(1rem,3vw,2.5rem);
  max-width: 1440px; margin: 0 auto;
}
.page-hero-body .eyebrow { margin-bottom: 0.6rem; }
.page-hero-body h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.025em; color: #fff;
  line-height: 1.0; margin-bottom: 1.2rem;
}
.page-hero-body p { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 600px; line-height: 1.7; }

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.3); }
.breadcrumb .current { color: rgba(255,255,255,0.8); }

/* ══════════════════════════════════════════════════════════
   4. COMPONENTS
══════════════════════════════════════════════════════════ */

/* CTA Arrow Button */
.cta-arrow {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent); text-transform: uppercase;
  transition: gap 0.25s; cursor: pointer;
}
.cta-arrow:hover { gap: 1.2rem; }
.cta-arrow .c-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.cta-arrow:hover .c-btn { background: var(--accent-dark); }
.cta-arrow .c-btn svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; transform: rotate(-45deg); }
.cta-arrow.on-dark { color: #fff; }
.cta-arrow.on-dark .c-btn { background: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  padding: 0.7rem 1.6rem; cursor: pointer;
  transition: all var(--transition);
  outline: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--teal-dark); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,200,160,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--teal-dark); border-color: var(--teal-dark); }
.btn-secondary:hover { background: var(--teal-dark); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 0.88rem; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* Tags / Badges */
.tag {
  display: inline-block;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.65rem; border-radius: 20px;
  background: var(--accent-faded); color: var(--accent-dark);
}
.tag-dark { background: rgba(27,46,55,0.1); color: var(--teal-dark); }

/* Stats Row */
.stats-row {
  display: flex; gap: clamp(2rem, 4vw, 5rem);
  flex-wrap: wrap;
}
.stat-item {}
.stat-num {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900; letter-spacing: -0.03em;
  color: var(--teal-dark); line-height: 1;
  background: linear-gradient(135deg, #0099CC, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid-gray); margin-top: 0.3rem; }

/* Section headers */
.section-hdr { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.section-hdr h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; color: var(--teal-dark); }

/* Divider */
.divider { height: 1px; background: var(--light-gray); margin: 0; }

/* ══════════════════════════════════════════════════════════
   5. FORMS
══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.4rem; }
.form-label {
  display: block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 0.5rem;
}
.form-label .required { color: var(--accent); margin-left: 2px; }
.form-control {
  width: 100%; padding: 0.8rem 1rem;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.95rem; color: var(--teal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,200,160,0.12); }
.form-control.error { border-color: #E53E3E; box-shadow: 0 0 0 3px rgba(229,62,62,0.1); }
.form-control.success { border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { cursor: pointer; }
.form-error { font-size: 0.75rem; color: #E53E3E; margin-top: 0.35rem; display: none; }
.form-error.show { display: block; }
.form-success {
  padding: 1.2rem 1.4rem;
  background: rgba(0,200,160,0.1); border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  font-size: 0.92rem; color: var(--accent-dark); font-weight: 600;
  display: none;
}
.form-success.show { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* Newsletter */
.newsletter-form {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.newsletter-form .form-control {
  flex: 1; min-width: 240px;
}

/* ══════════════════════════════════════════════════════════
   6. FOOTER
══════════════════════════════════════════════════════════ */
footer {
  background: var(--teal-dark);
  padding: 4rem 0 2.5rem;
  border-top: 3px solid var(--accent);
}
/* Privacy/Terms footer layout */
.site-footer {
  background: #1B2E37;
  padding: 4rem 0 0;
  border-top: 3px solid var(--accent);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: flex; flex-wrap: wrap; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { flex: 1.5; min-width: 200px; }
.footer-brand > p { font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.7; margin: 0.5rem 0 0; }
.footer-cols { display: flex; flex: 3; gap: 2.5rem; flex-wrap: wrap; }
.footer-col { min-width: 120px; flex: 1; }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; margin-bottom: 1rem;
}
.footer-col > a {
  display: block; font-size: 0.82rem; color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem; text-decoration: none; transition: color var(--transition);
}
.footer-col > a:hover { color: var(--accent); }
.site-footer .footer-bottom {
  max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  font-size: 0.75rem; color: rgba(255,255,255,0.3);
}
.footer-legal-links { display: flex; gap: 1.2rem; }
.footer-legal-links a { font-size: 0.72rem; color: rgba(255,255,255,0.3); transition: color var(--transition); text-decoration: none; }
.footer-legal-links a:hover { color: var(--accent); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr 1fr;
  gap: 2rem; margin-bottom: 3rem;
}
.footer-logo-wrap {
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 1.25rem; text-decoration: none;
}
.footer-logo-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #0099CC);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff;
  flex-shrink: 0; letter-spacing: -0.02em;
}
.footer-wordmark {
  font-size: 1.0rem; font-weight: 700;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}
.footer-brand-text { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 0.6rem; }
.fc-head { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a { font-size: 0.82rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-bottom-left { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { font-size: 0.72rem; color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-legal a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 0.7rem; }
.footer-social {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); transition: all var(--transition);
}
.footer-social:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,200,160,0.1); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Footer newsletter */
.footer-newsletter { margin-top: 1.2rem; }
.footer-newsletter input {
  width: 100%; padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: #fff;
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.3); }
.footer-newsletter input:focus { outline: none; border-color: var(--accent); }
.footer-newsletter button {
  width: 100%; padding: 0.55rem;
  background: var(--accent); color: var(--teal-dark);
  font-family: var(--font); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: background var(--transition);
}
.footer-newsletter button:hover { background: var(--accent-dark); }

/* ══════════════════════════════════════════════════════════
   7. HOME PAGE SECTIONS
══════════════════════════════════════════════════════════ */

/* Hero */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(27,46,55,0.3) 0%, rgba(27,46,55,0.5) 50%, rgba(27,46,55,0.75) 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920&q=85') center/cover no-repeat;
}
.hero-body {
  position: relative; z-index: 1;
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: clamp(5rem,10vw,9rem) clamp(1rem,3vw,2.5rem) clamp(3rem,5vw,4.5rem);
  display: grid; grid-template-columns: 1fr auto;
  align-items: flex-end; gap: clamp(2rem,5vw,6rem);
}
.hero-h1 {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; color: #fff;
  margin-bottom: 1.5rem;
}
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.78); max-width: 480px; line-height: 1.7; margin-bottom: 2rem; }
.hero-scroll { display: flex; align-items: center; gap: 0.7rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.hero-scroll svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.4); fill: none; stroke-width: 2; }

/* Hero Card */
.hero-card {
  width: 300px; background: var(--white);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.hero-card-head {
  padding: 0.8rem 1rem;
  background: var(--bg-light);
  display: flex; align-items: center; border-bottom: 1px solid var(--light-gray);
}
.hero-card-logo { height: 36px; width: auto; }
.hero-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.hero-card-body { padding: 1rem; }
.hero-card-body p { font-size: 0.82rem; color: var(--teal); line-height: 1.5; margin-bottom: 0.8rem; font-weight: 500; }
.hero-card-nav { display: flex; gap: 0.4rem; }
.hero-card-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); transition: all var(--transition); background: none;
}
.hero-card-arrow:hover { border-color: var(--accent); color: var(--accent); }
.hero-card-arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* Carousel */
#carousel-section {
  background: var(--white);
  padding: clamp(3rem,5vw,5rem) 0;
  border-top: 1px solid var(--light-gray);
  overflow: hidden;
}
.carousel-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem,3vw,2.5rem);
  margin-bottom: 2rem; max-width: 1440px; margin-left: auto; margin-right: auto;
}
.carousel-hdr h2 { font-size: clamp(1.8rem,3vw,2.5rem); font-weight: 800; letter-spacing: -0.02em; color: var(--teal-dark); }
.carousel-nav { display: flex; gap: 0.6rem; }
.cr-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); transition: all var(--transition); background: none;
}
.cr-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: rgba(0,200,160,0.06); }
.cr-btn:disabled { opacity: 0.3; cursor: default; }
.cr-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.carousel-overflow { overflow: hidden; padding: 0 clamp(1rem,3vw,2.5rem); }
.carousel-track { display: flex; gap: 1rem; transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); }
.proj-card-c { flex-shrink: 0; width: min(500px,80vw); cursor: pointer; position: relative; }
.proj-card-c:hover .pcc-img { transform: scale(1.04); filter: saturate(1.1); }
.pcc-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: saturate(0.82); display: block; transition: transform 0.5s ease, filter 0.4s; }
.pcc-body { padding: 1rem 0.2rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.pcc-loc { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-gray); margin-bottom: 0.3rem; }
.pcc-name { font-size: 0.98rem; font-weight: 700; color: var(--teal-dark); line-height: 1.3; }
.pcc-btn { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; transition: background var(--transition), transform var(--transition); margin-top: 0.3rem; }
.proj-card-c:hover .pcc-btn { background: var(--accent-dark); transform: rotate(45deg); }
.pcc-btn svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; transform: rotate(-45deg); }
.proj-card-c:hover .pcc-btn svg { transform: rotate(45deg); }

/* News */
#news-section { background: var(--bg-light); padding: clamp(3.5rem,6vw,6rem) 0; border-top: 1px solid var(--light-gray); }
.news-hdr { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.news-hdr h2 { font-size: clamp(2rem,3.5vw,2.8rem); font-weight: 800; letter-spacing: -0.02em; color: var(--teal-dark); line-height: 1.1; }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.8rem; }
.news-card { background: var(--white); cursor: pointer; transition: box-shadow var(--transition); text-decoration: none; display: block; border-radius: var(--radius-sm); overflow: hidden; }
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: saturate(0.9); display: block; transition: filter var(--transition); }
.news-card:hover img { filter: saturate(1.05); }
.nc-body { padding: 1.2rem 1.4rem 1.6rem; }
.nc-cat { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.nc-title { font-size: 0.95rem; font-weight: 700; line-height: 1.4; color: var(--teal-dark); margin-bottom: 0.8rem; }
.nc-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); transition: gap var(--transition); }
.nc-link:hover { gap: 0.8rem; }
.nc-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* Extraordinary Teams */
#extraordinary { background: var(--white); padding: clamp(4rem,7vw,7rem) 0; }
.ext-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,6vw,7rem); align-items: center; }
.ext-text h2 { font-size: clamp(2rem,3.5vw,3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--teal-dark); margin-bottom: 1.5rem; }
.ext-text p { font-size: 1rem; line-height: 1.75; color: var(--teal); margin-bottom: 1rem; }
.ext-text .cta-arrow { margin-top: 1.2rem; }
.vid-thumb { position: relative; cursor: pointer; overflow: hidden; }
.vid-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; filter: saturate(0.85) brightness(0.9); transition: transform 0.5s, filter 0.3s; }
.vid-thumb:hover img { transform: scale(1.03); filter: saturate(1) brightness(0.82); }
.vid-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.7rem; }
.vid-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; transition: background var(--transition), transform var(--transition); box-shadow: 0 4px 20px rgba(0,200,160,0.4); }
.vid-thumb:hover .vid-circle { background: var(--accent-dark); transform: scale(1.08); }
.vid-circle svg { width: 22px; height: 22px; fill: #fff; stroke: none; margin-left: 3px; }
.vid-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

/* Defined */
#defined { position: relative; min-height: 90vh; display: flex; align-items: flex-end; overflow: hidden; }
.defined-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,rgba(27,46,55,0.15) 0%,rgba(27,46,55,0.45) 50%,rgba(27,46,55,0.88) 100%),
    url('https://images.unsplash.com/photo-1560250097-0dc05ae1dbef?w=1920&q=85') center 30%/cover no-repeat;
}
.defined-body {
  position: relative; z-index: 1; width: 100%;
  max-width: 1440px; margin: 0 auto;
  padding: clamp(3rem,6vw,6rem) clamp(1rem,3vw,2.5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,5rem); align-items: end;
}
.defined-left h2 { font-size: clamp(2.5rem,4.5vw,4.5rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.025em; color: #fff; margin-bottom: 1.5rem; }
.defined-right p { font-size: 1rem; line-height: 1.75; color: rgba(255,255,255,0.82); margin-bottom: 1rem; }

/* Tomorrow */
#tomorrow { background: var(--white); padding: clamp(6rem,10vw,10rem) 0; border-top: 1px solid var(--light-gray); }
.tomorrow-inner { max-width: 860px; margin: 0 auto; padding: 0 clamp(1rem,3vw,2.5rem); text-align: center; }
.tomorrow-inner h2 { font-size: clamp(2.2rem,4vw,3.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; color: var(--teal-dark); margin-bottom: 2rem; }
.tomorrow-inner p { font-size: 1rem; line-height: 1.8; color: var(--teal); max-width: 720px; margin: 0 auto 1rem; }
.tomorrow-inner .cta-arrow { margin-top: 2.5rem; justify-content: center; }

/* We Are */
#weare { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.weare-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(27,46,55,0.9) 0%, rgba(27,46,55,0.6) 50%, rgba(27,46,55,0.3) 100%),
    url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920&q=85') center/cover no-repeat;
}
.weare-body {
  position: relative; z-index: 1; width: 100%;
  max-width: 1440px; margin: 0 auto;
  padding: clamp(5rem,8vw,8rem) clamp(1rem,3vw,2.5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,5vw,6rem); align-items: end;
}
.weare-left h2 { font-size: clamp(3rem,5vw,5rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; color: #fff; margin-bottom: 2rem; }
.weare-play { display: flex; align-items: center; gap: 1rem; cursor: pointer; }
.wc { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.weare-play:hover .wc { background: var(--accent-dark); transform: scale(1.08); }
.wc svg { width: 20px; height: 20px; fill: #fff; stroke: none; margin-left: 3px; }
.wt strong { display: block; font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
.wt span { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.weare-right p { font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,0.78); margin-bottom: 1.2rem; }

/* Impact */
#impact { padding: clamp(5rem,8vw,8rem) 0; }
.impact-inner { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(3rem,6vw,7rem); align-items: start; }
.impact-left h2 { font-size: clamp(2.5rem,4.5vw,4.5rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.025em; color: var(--teal-dark); margin-bottom: 2.5rem; }
.impact-left .cta-arrow { margin-top: 2rem; }
.impact-right p { font-size: 1rem; line-height: 1.8; color: var(--teal); margin-bottom: 1rem; }

/* Featured Projects Grid (dark) */
#fp-section { background: var(--teal-dark); padding: clamp(4rem,6vw,6rem) 0; }
.fp-hdr { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap; }
.fp-hdr h2 { font-size: clamp(2rem,3vw,2.8rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.fp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 2rem; }
.fp-card { position: relative; overflow: hidden; cursor: pointer; display: block; text-decoration: none; }
.fp-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: saturate(0.8); display: block; transition: transform 0.5s ease, filter 0.35s; }
.fp-card:hover img { transform: scale(1.05); filter: saturate(1.05); }
.fp-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(27,46,55,0.88) 0%,rgba(27,46,55,0.2) 50%,transparent 100%); }
.fp-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.2rem; }
.fp-loc { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.3rem; }
.fp-name { font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.3; }
.fp-circle { position: absolute; bottom: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; transition: background var(--transition), transform var(--transition); }
.fp-card:hover .fp-circle { background: var(--accent-dark); transform: rotate(45deg) scale(1.08); }
.fp-circle svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; transform: rotate(-45deg); }
.fp-card:hover .fp-circle svg { transform: rotate(45deg); }
.fp-pag { display: flex; align-items: center; gap: 0.7rem; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.fp-btn { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: all var(--transition); cursor: pointer; background: none; }
.fp-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,200,160,0.06); }
.fp-btn:disabled { opacity: 0.3; cursor: default; }
.fp-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Legacy */
#legacy { background: var(--white); padding: clamp(4.5rem,7vw,7rem) 0; border-top: 1px solid var(--light-gray); }
.legacy-h { font-size: clamp(3rem,6vw,6rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; color: var(--teal-dark); margin-bottom: 3.5rem; }
.legacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,6vw,7rem); }
.legacy-text p { font-size: 1rem; line-height: 1.8; color: var(--teal); margin-bottom: 1.2rem; max-width: 520px; }
.legacy-text .cta-arrow { margin-top: 2rem; }
.timeline { display: flex; gap: 2.5rem; }
.tl-yrs { display: flex; flex-direction: column; gap: 0; flex-shrink: 0; border-left: 2px solid var(--light-gray); padding-top: 0.2rem; }
.tl-y { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--dark-gray); padding: 0.4rem 0 0.4rem 0.75rem; cursor: pointer; transition: color var(--transition); border-left: 2px solid transparent; margin-left: -2px; }
.tl-y:hover:not(.active) { color: var(--teal); }
.tl-y.active { color: var(--accent); border-left-color: var(--accent); }
.tl-card { flex: 1; position: relative; overflow: hidden; }
.tl-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: opacity 0.3s; }
.tl-ov { position: absolute; inset: 0; background: linear-gradient(to top,rgba(27,46,55,0.88) 0%,transparent 60%); }
.tl-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.2rem; }
.tl-loc { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.3rem; }
.tl-name { font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 0.5rem; }
.tl-desc { font-size: 0.8rem; color: rgba(255,255,255,0.7); line-height: 1.55; }
.tl-btn { position: absolute; bottom: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition), transform var(--transition); }
.tl-btn:hover { background: var(--accent-dark); transform: rotate(45deg); }
.tl-btn svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.5; transform: rotate(-45deg); }

/* ══════════════════════════════════════════════════════════
   8. INNER PAGE COMPONENTS
══════════════════════════════════════════════════════════ */

/* Section padding helpers */
.section-pad { padding: clamp(4rem,7vw,7rem) 0; }
.section-pad-sm { padding: clamp(2.5rem,4vw,4rem) 0; }

/* Two-column content grid */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,6vw,7rem); align-items: center; }
.two-col.reversed { }
.two-col img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.two-col-text h2 { font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 800; letter-spacing: -0.02em; color: var(--teal-dark); margin-bottom: 1.2rem; line-height: 1.1; }
.two-col-text p { font-size: 1rem; line-height: 1.8; color: var(--teal); margin-bottom: 1rem; }
.two-col-text .cta-arrow { margin-top: 1.5rem; }

/* Service Cards */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.service-card {
  padding: 2rem 1.8rem; background: var(--white);
  border: 1px solid var(--light-gray); border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(0,200,160,0.1); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; transition: background var(--transition);
}
.service-card:hover .service-icon { background: var(--accent); }
.service-icon svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.5; transition: stroke var(--transition); }
.service-card:hover .service-icon svg { stroke: #fff; }
.service-num { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.5rem; }
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 0.8rem; line-height: 1.3; }
.service-card p { font-size: 0.85rem; color: var(--teal); line-height: 1.7; }

/* Team Cards */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.team-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--light-gray);
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.team-card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: saturate(0.85); transition: filter var(--transition); }
.team-card:hover .team-card-img { filter: saturate(1); }
.team-card-body { padding: 1.2rem; }
.team-card-name { font-size: 0.95rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 0.2rem; }
.team-card-role { font-size: 0.78rem; color: var(--accent); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.6rem; }
.team-card-bio { font-size: 0.8rem; color: var(--teal); line-height: 1.6; }

/* Project Cards Grid */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.project-card { position: relative; overflow: hidden; cursor: pointer; display: block; text-decoration: none; border-radius: var(--radius-sm); }
.project-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: saturate(0.8); display: block; transition: transform 0.5s, filter 0.35s; }
.project-card:hover img { transform: scale(1.06); filter: saturate(1.05); }
.project-card-ov { position: absolute; inset: 0; background: linear-gradient(to top,rgba(27,46,55,0.92) 0%,rgba(27,46,55,0.2) 60%,transparent 100%); }
.project-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.4rem; }
.project-card-tags { display: flex; gap: 0.4rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.project-card-tag { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.5rem; background: rgba(0,200,160,0.2); color: var(--accent); border-radius: 2px; }
.project-card-loc { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.4rem; }
.project-card-name { font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 0.5rem; }
.project-card-value { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.project-card-arrow { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.8); transition: all var(--transition); }
.project-card:hover .project-card-arrow { opacity: 1; transform: scale(1); }
.project-card-arrow svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; transform: rotate(-45deg); }

/* Blog Cards */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.8rem; }
.blog-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--light-gray); transition: box-shadow var(--transition), transform var(--transition); display: block; text-decoration: none; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: saturate(0.9); display: block; transition: filter var(--transition); }
.blog-card:hover .blog-card-img { filter: saturate(1.05); }
.blog-card-body { padding: 1.4rem; }
.blog-card-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.blog-card-cat { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.blog-card-date { font-size: 0.72rem; color: var(--mid-gray); }
.blog-card h3 { font-size: 1rem; font-weight: 700; color: var(--teal-dark); line-height: 1.4; margin-bottom: 0.7rem; }
.blog-card p { font-size: 0.85rem; color: var(--teal); line-height: 1.65; margin-bottom: 1rem; }
.blog-card-link { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 0.4rem; transition: gap var(--transition); }
.blog-card-link:hover { gap: 0.7rem; }
.blog-card-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* Sector Tabs */
.sector-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.sector-tab {
  padding: 0.5rem 1.1rem; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1.5px solid var(--light-gray); color: var(--teal);
  cursor: pointer; transition: all var(--transition); background: none;
}
.sector-tab:hover { border-color: var(--accent); color: var(--accent); }
.sector-tab.active { background: var(--accent); border-color: var(--accent); color: var(--teal-dark); }

/* Values Grid */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.value-item { }
.value-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 0.6rem; }
.value-item p { font-size: 0.9rem; color: var(--teal); line-height: 1.75; }
.value-num { font-size: 2.5rem; font-weight: 900; color: var(--accent-faded); letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.5rem; }

/* Client Logos */
.clients-row { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; padding: 2rem 0; border-top: 1px solid var(--light-gray); border-bottom: 1px solid var(--light-gray); }
.client-logo { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid-gray); opacity: 0.7; transition: opacity var(--transition); }
.client-logo:hover { opacity: 1; color: var(--teal-dark); }

/* Office Cards */
.offices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.office-card { padding: 2.5rem; background: var(--bg-light); border-radius: var(--radius-md); border-left: 4px solid var(--accent); }
.office-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 0.4rem; }
.office-card .office-type { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.office-detail { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.7rem; font-size: 0.88rem; color: var(--teal); }
.office-detail svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.office-detail a { color: var(--accent); }
.office-detail a:hover { text-decoration: underline; }

/* Job Listings */
.jobs-list { display: flex; flex-direction: column; gap: 1rem; }
.job-item {
  padding: 1.8rem 2rem; background: var(--white);
  border: 1px solid var(--light-gray); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.job-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.job-info h3 { font-size: 1rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 0.4rem; }
.job-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.job-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: 12px; background: var(--bg-light); color: var(--teal); }
.job-tag.location { background: rgba(0,200,160,0.1); color: var(--accent-dark); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testimonial-card { padding: 2rem; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--light-gray); position: relative; }
.testimonial-card::before { content: '"'; position: absolute; top: 1rem; right: 1.5rem; font-size: 4rem; font-family: var(--font-display); color: var(--accent-faded); line-height: 1; }
.testimonial-text { font-size: 0.92rem; line-height: 1.8; color: var(--teal); margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-light); flex-shrink: 0; }
.testimonial-name { font-size: 0.85rem; font-weight: 700; color: var(--teal-dark); }
.testimonial-org { font-size: 0.72rem; color: var(--mid-gray); }
.stars { display: flex; gap: 2px; margin-bottom: 0.8rem; }
.stars svg { width: 14px; height: 14px; fill: #F6A609; stroke: none; }

/* FAQ */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--light-gray); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 0; cursor: pointer; text-align: left;
  font-size: 1rem; font-weight: 600; color: var(--teal-dark);
  background: none; border: 0; font-family: inherit;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--accent); }
.faq-icon { width: 24px; height: 24px; flex-shrink: 0; border: 1.5px solid var(--light-gray); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.faq-icon svg { width: 12px; height: 12px; stroke: var(--teal-dark); fill: none; stroke-width: 2.5; transition: transform var(--transition); }
.faq-item.open .faq-icon { background: var(--accent); border-color: var(--accent); }
.faq-item.open .faq-icon svg { stroke: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-a-inner { padding: 0 0 1.2rem; font-size: 0.95rem; color: var(--teal); line-height: 1.8; }
.faq-item.open .faq-a { max-height: 600px; }

/* Contact Map */
.map-container { width: 100%; height: 420px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-light); }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* Blog post */
.post-hero { padding-top: calc(var(--banner-height) + 3rem); padding-bottom: 3rem; background: var(--navy); }
.post-hero-inner { max-width: 800px; margin: 0 auto; padding: 0 clamp(1rem,3vw,2.5rem); }
.post-content { max-width: 800px; margin: 0 auto; padding: 3rem clamp(1rem,3vw,2.5rem); }
.post-content h2 { font-size: 1.6rem; font-weight: 700; color: var(--teal-dark); margin: 2rem 0 1rem; letter-spacing: -0.015em; }
.post-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--teal-dark); margin: 1.5rem 0 0.7rem; }
.post-content p { font-size: 1rem; line-height: 1.85; color: var(--teal); margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.2rem 1.5rem; }
.post-content li { font-size: 1rem; line-height: 1.8; color: var(--teal); margin-bottom: 0.4rem; }
.post-content blockquote { border-left: 4px solid var(--accent); padding: 1rem 1.5rem; background: var(--bg-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; font-size: 1.05rem; font-style: italic; color: var(--teal-dark); }
.post-content img { width: 100%; border-radius: var(--radius-md); margin: 1.5rem 0; }
.post-share { display: flex; align-items: center; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--light-gray); margin-top: 2rem; }
.post-share span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid-gray); }

/* ══════════════════════════════════════════════════════════
   9. ADMIN DASHBOARD
══════════════════════════════════════════════════════════ */
.admin-body { background: #F0F2F5; min-height: 100vh; font-size: 0.9rem; }
.admin-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 260px;
  background: var(--navy); z-index: 100;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.admin-logo { padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-logo img { height: 38px; width: auto; background: rgba(255,255,255,0.9); padding: 4px 8px; border-radius: 3px; }
.admin-logo p { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-top: 0.6rem; }
.admin-nav { flex: 1; padding: 1rem 0; }
.admin-nav-group { margin-bottom: 0.5rem; }
.admin-nav-label { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.25); padding: 0.5rem 1.5rem 0.3rem; }
.admin-nav-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.6);
  cursor: pointer; transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-nav-item.active { background: rgba(0,200,160,0.12); color: var(--accent); border-left-color: var(--accent); }
.admin-nav-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }
.admin-main { margin-left: 260px; min-height: 100vh; }
.admin-topbar {
  background: var(--white); padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--light-gray);
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar h1 { font-size: 1.1rem; font-weight: 700; color: var(--teal-dark); }
.admin-content { padding: 2rem; }
.admin-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.admin-card-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.admin-card-hdr h2 { font-size: 1rem; font-weight: 700; color: var(--teal-dark); }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; margin-bottom: 1.5rem; }
.admin-stat { background: var(--white); border-radius: var(--radius-md); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm); border-left: 4px solid var(--accent); }
.admin-stat-num { font-size: 2rem; font-weight: 800; color: var(--teal-dark); line-height: 1; }
.admin-stat-label { font-size: 0.75rem; color: var(--mid-gray); margin-top: 0.3rem; font-weight: 500; letter-spacing: 0.04em; }
table { width: 100%; border-collapse: collapse; }
th { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid-gray); padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--light-gray); background: var(--bg-light); }
td { padding: 0.9rem 1rem; font-size: 0.88rem; color: var(--teal); border-bottom: 1px solid var(--bg-light); vertical-align: middle; }
tr:hover td { background: var(--bg-light); }
.admin-badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 12px; }
.badge-green { background: rgba(0,200,160,0.12); color: var(--accent-dark); }
.badge-yellow { background: rgba(246,166,9,0.12); color: #A05C00; }
.badge-gray { background: var(--bg-light); color: var(--mid-gray); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.72rem; }
.action-btns { display: flex; gap: 0.4rem; }

/* Login Page */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); }
.login-box { width: 100%; max-width: 420px; background: var(--white); border-radius: var(--radius-lg); padding: 3rem 2.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-logo { margin-bottom: 2rem; text-align: center; }
.login-logo img { height: 52px; width: auto; margin: 0 auto 0.8rem; }
.login-logo h2 { font-size: 1.1rem; font-weight: 700; color: var(--teal-dark); }
.login-logo p { font-size: 0.82rem; color: var(--mid-gray); }

/* ══════════════════════════════════════════════════════════
   10. UTILITY PAGES (404, Privacy, Terms)
══════════════════════════════════════════════════════════ */
.page-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); text-align: center; padding: 2rem; }
.page-404 .num { font-size: clamp(6rem,15vw,14rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(135deg,#0099CC,var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-404 h1 { font-size: clamp(1.5rem,3vw,2.5rem); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.page-404 p { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.7; }

.legal-content { max-width: 860px; margin: 0 auto; padding: clamp(3rem,5vw,5rem) clamp(1rem,3vw,2.5rem); }
.legal-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--teal-dark); margin: 2.5rem 0 0.8rem; letter-spacing: -0.01em; }
.legal-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--teal-dark); margin: 1.5rem 0 0.5rem; }
.legal-content p { font-size: 0.95rem; line-height: 1.85; color: var(--teal); margin-bottom: 1rem; }
.legal-content ul { margin: 0.8rem 0 1rem 1.5rem; }
.legal-content li { font-size: 0.95rem; color: var(--teal); line-height: 1.8; margin-bottom: 0.3rem; }
.legal-updated { font-size: 0.82rem; color: var(--mid-gray); padding: 0.8rem 1.2rem; background: var(--bg-light); border-radius: var(--radius-sm); margin-bottom: 2rem; }

/* ══════════════════════════════════════════════════════════
   11. DARK THEME
══════════════════════════════════════════════════════════ */

/* ── Core body & backgrounds ───────────────────────────── */
[data-theme="dark"] body { background: #0A1628; color: #C8D8E0; }

/* White/light sections become dark */
[data-theme="dark"] #carousel-section,
[data-theme="dark"] #extraordinary,
[data-theme="dark"] #tomorrow,
[data-theme="dark"] #impact,
[data-theme="dark"] #legacy { background: #0D1D35 !important; }
[data-theme="dark"] #news-section,
[data-theme="dark"] .section-bg-light { background: #0A1628 !important; }

/* Generic section helpers used with inline style attributes */
[data-theme="dark"] .section { background: #0D1D35 !important; }
[data-theme="dark"] .section-alt { background: #0A1628 !important; }

/* Keep dark-background sections unchanged */
[data-theme="dark"] #hero,
[data-theme="dark"] #defined,
[data-theme="dark"] #weare,
[data-theme="dark"] #fp-section,
[data-theme="dark"] .page-hero,
[data-theme="dark"] .stats-bar,
[data-theme="dark"] .mobile-menu,
[data-theme="dark"] footer { /* keep their own backgrounds */ }

/* ── Logo (dark mode) ──────────────────────────────────── */
[data-theme="dark"] #nav.scrolled .logo-wordmark,
[data-theme="dark"] #nav.nav-solid .logo-wordmark { color: #E8F0F4; }

/* ── Navigation ────────────────────────────────────────── */
[data-theme="dark"] #nav.scrolled,
[data-theme="dark"] #nav.nav-solid { background: #0C1B33 !important; box-shadow: 0 2px 20px rgba(0,0,0,0.4) !important; }
[data-theme="dark"] #nav.scrolled .nav-item > a,
[data-theme="dark"] #nav.nav-solid .nav-item > a { color: #C8D8E0; }
[data-theme="dark"] #nav.scrolled .nav-item:hover > a,
[data-theme="dark"] #nav.nav-solid .nav-item:hover > a { color: #fff; }
[data-theme="dark"] #nav.scrolled .nav-icon-btn,
[data-theme="dark"] #nav.nav-solid .nav-icon-btn { color: #C8D8E0; }
[data-theme="dark"] #nav.scrolled .theme-pill,
[data-theme="dark"] #nav.nav-solid .theme-pill { border-color: rgba(255,255,255,0.15); color: #C8D8E0; }
[data-theme="dark"] #nav.scrolled .nav-burger span,
[data-theme="dark"] #nav.nav-solid .nav-burger span { background: #C8D8E0; }
[data-theme="dark"] .nav-dropdown { background: #122038; border-color: rgba(0,200,160,0.5); }
[data-theme="dark"] .nav-dropdown a { color: #C8D8E0; }
[data-theme="dark"] .nav-dropdown a:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* ── Cards & containers ────────────────────────────────── */
[data-theme="dark"] .card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .job-item,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .office-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .hero-card { background: #1a2d42; border-color: rgba(255,255,255,0.09); }
[data-theme="dark"] .hero-card-head { background: #122038; border-color: rgba(255,255,255,0.08); }

/* Carousel section card bg */
[data-theme="dark"] #carousel-section { border-color: rgba(255,255,255,0.06); }

/* ── Typography ─────────────────────────────────────────── */
/* Headings — but NOT inside hero/dark sections where text is already white */
[data-theme="dark"] h2:not(.page-hero h2):not(#hero h2):not(#defined h2):not(#weare h2),
[data-theme="dark"] h3:not(.page-hero h3),
[data-theme="dark"] h4 { color: #E8F0F4; }
/* Broadly cover remaining headings (inline styles may override) */
[data-theme="dark"] .section-title,
[data-theme="dark"] .carousel-hdr h2,
[data-theme="dark"] .news-hdr h2,
[data-theme="dark"] .ext-text h2,
[data-theme="dark"] .tomorrow-inner h2,
[data-theme="dark"] .impact-left h2,
[data-theme="dark"] .legacy-h,
[data-theme="dark"] .section-hdr h2,
[data-theme="dark"] .admin-card-hdr h2,
[data-theme="dark"] .admin-topbar h1,
[data-theme="dark"] .pcc-name,
[data-theme="dark"] .nc-title,
[data-theme="dark"] .blog-card h3,
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .team-card-name,
[data-theme="dark"] .tc-name,
[data-theme="dark"] .value-card h3,
[data-theme="dark"] .office-body h3,
[data-theme="dark"] .job-info h3,
[data-theme="dark"] .testimonial-name,
[data-theme="dark"] .faq-q,
[data-theme="dark"] .two-col-text h2,
[data-theme="dark"] .post-content h2,
[data-theme="dark"] .post-content h3,
[data-theme="dark"] .tl-y.active { color: #E8F0F4; }

/* Body text */
[data-theme="dark"] .ext-text p,
[data-theme="dark"] .tomorrow-inner p,
[data-theme="dark"] .impact-right p,
[data-theme="dark"] .legacy-text p,
[data-theme="dark"] .two-col-text p,
[data-theme="dark"] .blog-card p,
[data-theme="dark"] .service-card p,
[data-theme="dark"] .team-card-bio,
[data-theme="dark"] .tc-disc,
[data-theme="dark"] .value-card p,
[data-theme="dark"] .office-detail,
[data-theme="dark"] .section-lead,
[data-theme="dark"] .testimonial-text,
[data-theme="dark"] .faq-a-inner,
[data-theme="dark"] .post-content p,
[data-theme="dark"] .post-content li,
[data-theme="dark"] .hero-card-body p,
[data-theme="dark"] .footer-brand-text { color: #C8D8E0; }

/* Muted labels / meta */
[data-theme="dark"] .pcc-loc,
[data-theme="dark"] .nc-cat,
[data-theme="dark"] .blog-card-date,
[data-theme="dark"] .blog-card-cat,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .team-card-role,
[data-theme="dark"] .tc-role,
[data-theme="dark"] .tl-y,
[data-theme="dark"] .client-logo,
[data-theme="dark"] .job-tag,
[data-theme="dark"] .footer-copy,
[data-theme="dark"] .footer-legal a { color: #7a90a8; }

/* ── Borders & dividers ─────────────────────────────────── */
[data-theme="dark"] .divider { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .clients-row { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .faq-item { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .faq-icon { border-color: rgba(255,255,255,0.15); }
[data-theme="dark"] .faq-icon svg { stroke: #C8D8E0; }
[data-theme="dark"] .tl-yrs { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .tl-y { color: #5a6b7a; }
[data-theme="dark"] .team-card img { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .value-card { border-color: rgba(255,255,255,0.09); }
[data-theme="dark"] .post-share { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .hero-card-arrow { border-color: rgba(255,255,255,0.12); color: #C8D8E0; }
[data-theme="dark"] .cr-btn { border-color: rgba(255,255,255,0.12); color: #C8D8E0; }
[data-theme="dark"] .sector-tab { border-color: rgba(255,255,255,0.12); color: #C8D8E0; }

/* ── Section colour helpers ─────────────────────────────── */
[data-theme="dark"] #carousel-section { border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .bg-white-section { background: #0D1D35 !important; }
[data-theme="dark"] .bg-light-section  { background: #0A1628 !important; }
[data-theme="dark"] .office-card { background: #1a2d42; border-color: var(--accent); }
[data-theme="dark"] .office-card h3 { color: #E8F0F4; }
[data-theme="dark"] .value-item h3 { color: #E8F0F4; }
[data-theme="dark"] .value-item p { color: #C8D8E0; }
[data-theme="dark"] .value-num { color: rgba(0,200,160,0.25); }
[data-theme="dark"] .sector-tab.active { background: var(--accent); color: #0A1628; }
[data-theme="dark"] .job-item { background: #1a2d42; border-color: rgba(255,255,255,0.09); }
[data-theme="dark"] .testimonial-card { background: #1a2d42; border-color: rgba(255,255,255,0.09); }
[data-theme="dark"] .stat-num { background: linear-gradient(135deg, #5bc4e8, #00C8A0); -webkit-background-clip: text; background-clip: text; }
[data-theme="dark"] .project-card-value { color: rgba(255,255,255,0.55); }

/* ── Forms ──────────────────────────────────────────────── */
[data-theme="dark"] .form-control,
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select { background: #1a2d42; border-color: rgba(255,255,255,0.12); color: #E8F0F4; }
[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: rgba(255,255,255,0.3); }
[data-theme="dark"] .form-label { color: #8899aa; }
[data-theme="dark"] .form-success { background: rgba(0,200,160,0.08); }

/* ── Buttons ────────────────────────────────────────────── */
[data-theme="dark"] .btn-secondary { color: #C8D8E0; border-color: rgba(255,255,255,0.25); }
[data-theme="dark"] .btn-secondary:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }

/* ── Blockquote ─────────────────────────────────────────── */
[data-theme="dark"] .post-content blockquote { background: #122038; color: #C8D8E0; }

/* ── Map container ──────────────────────────────────────── */
[data-theme="dark"] .map-container { background: #122038; }

/* ── Footer ─────────────────────────────────────────────── */
[data-theme="dark"] footer { background: #04090f; }
[data-theme="dark"] .footer-bottom { border-color: rgba(255,255,255,0.07); }

/* ── Admin (main.css admin classes) ─────────────────────── */
[data-theme="dark"] .admin-body { background: #0A1628; }
[data-theme="dark"] .admin-card,
[data-theme="dark"] .admin-stat { background: #1a2d42; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .admin-topbar { background: #0C1B33; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .admin-topbar h1 { color: #E8F0F4; }
[data-theme="dark"] th { background: #0f1e30; color: #7a90a8; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] td { color: #C8D8E0; border-color: rgba(255,255,255,0.05); }
[data-theme="dark"] tr:hover td { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .badge-gray { background: rgba(255,255,255,0.07); color: #8899aa; }
[data-theme="dark"] .badge-yellow { background: rgba(246,166,9,0.1); color: #d4a000; }

/* ── Scrollbar ──────────────────────────────────────────── */
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0A1628; }

/* ── Section backgrounds used by inner pages ─────────────── */
[data-theme="dark"] .legal-updated { background: #122038; color: #8899aa; }

/* ── Generic inline-style overrides (catch-all for hardcoded colors) ── */
[data-theme="dark"] p[style*="color:#30454C"],
[data-theme="dark"] span[style*="color:#30454C"],
[data-theme="dark"] li[style*="color:#30454C"],
[data-theme="dark"] div[style*="color:#30454C"] { color: #C8D8E0 !important; }
[data-theme="dark"] p[style*="color:#1B2E37"],
[data-theme="dark"] h2[style*="color:#1B2E37"],
[data-theme="dark"] h3[style*="color:#1B2E37"],
[data-theme="dark"] h4[style*="color:#1B2E37"],
[data-theme="dark"] span[style*="color:#1B2E37"],
[data-theme="dark"] div[style*="color:#1B2E37"] { color: #E8F0F4 !important; }

/* ══════════════════════════════════════════════════════════
   12. RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .theme-pill { display: none; }
  .services-grid,
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fp-grid { grid-template-columns: repeat(2,1fr); }
  .admin-stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .hero-body { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .ext-inner,
  .defined-body,
  .weare-body,
  .impact-inner,
  .two-col,
  .legacy-grid { grid-template-columns: 1fr; }
  .news-grid,
  .blog-grid,
  .projects-grid,
  .fp-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .values-grid,
  .offices-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .news-grid,
  .blog-grid,
  .projects-grid,
  .fp-grid,
  .services-grid,
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  #backToTop { bottom: 1.2rem; right: 1.2rem; }
  .wa-widget { bottom: 4.5rem; right: 1.2rem; }
}
