/* =========================
   DESIGN TOKENS (BASE)
   ========================= */
:root {
  /* Brand spectrum (used by some comps; themes can remap freely) */
  --blue-900: #0b1f3b;
  --blue-800: #11335e;
  --blue-700: #18497f;
  --blue-600: #1e5fb0;
  --blue-300: #e6f0ff;

  /* Semantic palette (themes should mainly override these) */
  --bg: #ffffff;
  /* page canvas */
  --bg-light: #f7f7f7;
  /* cards / surfaces */
  --text: #333333;
  /* primary text */
  --muted: #556070;
  /* secondary text */
  --border: #e6eaf1;
  /* hairlines */

  --color-primary: var(--blue-900);
  /* headings, brand ink */
  --color-secondary: var(--blue-600);
  /* CTAs, accents */
  --accent: #f4d35e;
  /* optional highlight */

  /* Component helpers */
  --hero-overlay: rgba(0, 0, 0, .45);
  --hero-fg: #ffffff;
  /* text atop hero */
  --surface: var(--bg-light);
  /* generic surface */
  --on-surface: var(--text);
  /* text atop surface */
  --button-bg: var(--color-secondary);
  --button-fg: #ffffff;
  --nav-bg: var(--blue-900);
  --nav-link: #ffffff;
  --nav-link-hover: var(--accent);
  --switcher-ink: var(--hero-fg);

  /* Back-compat aliases (older selectors reference these) */
  --color-bg: var(--bg);
  --color-bg-light: var(--bg-light);
  --color-border: var(--border);
  --color-muted: var(--muted);
}

/* ========== Reset / Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== Hero ========== */
.hero {
  background: var(--hero-img) no-repeat center center/cover;
  color: var(--hero-fg);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 16, 29, 0.78) 0%, rgba(6, 16, 29, 0.58) 38%, rgba(6, 16, 29, 0.28) 100%),
    var(--hero-overlay);
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: background .2s, transform .2s, border-color .2s;
}

.hero-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
}

.hero-content {
  max-width: 720px;
  text-align: left;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 370px);
  gap: 2.5rem;
  align-items: end;
}

.hero-lead {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

/* ========== CTA Button ========== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s, filter .2s, box-shadow .2s, background .2s;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.cta-button:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
}

/* ========== Header + Nav ========== */
.hero-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  padding: 1.2rem 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 1.5rem;
  color: #ffffff;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.hero-panel-label {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.hero-panel p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
}

.hero-panel a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-main {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--hero-fg);
}

.brand-sub {
  font-size: .9rem;
  color: rgba(255, 255, 255, .9);
  margin-top: .15rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition: color .2s, opacity .2s;
}

.nav-links a:hover {
  color: #ffffff;
  opacity: 0.78;
}

.menu-toggle {
  position: absolute;
  left: -9999px;
}

.menu-icon {
  display: none;
  font-size: 2rem;
  color: var(--hero-fg);
  cursor: pointer;
}

/* ========== Mobile Nav ========== */
@media (max-width: 900px) {
  .header-row {
    grid-template-columns: auto 1fr auto;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82vw, 340px);
    background: rgba(8, 22, 38, 0.96);
    padding: 6rem 1.5rem 2rem;
    box-shadow: -12px 0 30px rgba(0, 0, 0, .35);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 40;
    justify-self: end;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .nav-links a {
    font-size: 1.05rem;
  }

  .menu-icon {
    display: block;
    justify-self: end;
    z-index: 50;
    padding: .25rem .5rem;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle:checked+.menu-icon+.nav-menu {
    transform: translateX(0);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
  }

  .hero-shell {
    padding: 8.5rem 0 3.5rem;
  }

  .brand-logo {
    width: 74px;
    height: 74px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 4rem);
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-panel {
    max-width: 500px;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-button,
  .hero-secondary {
    width: 100%;
  }

  .hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero-shell {
    padding-top: 8.5rem;
  }

  .hero-panel {
    margin-top: 0.25rem;
  }
}

/* ========== Values Strip ========== */
.home-values-strip {
  background: var(--blue-900);
  color: var(--hero-fg);
  padding: 1.25rem 0;
}

.home-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.values-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: color-mix(in srgb, #fff 6%, transparent);
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  border-radius: 10px;
  padding: .9rem 1rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.values-text h4 {
  font-size: 1rem;
  margin-bottom: .15rem;
  font-weight: 700;
}

.values-text p {
  font-size: .85rem;
  color: #e9eef6;
}

/* ========== Safety Bar ========== */
.safety-bar {
  background: transparent;
  padding: 1.5rem 0 2rem;
}

.safety-inner {
  background: var(--blue-800);
  color: var(--hero-fg);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

/* ========== Projects ========== */
.projects {
  padding: 5.5rem 0;
  background: #f5f7fb;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}

.section-intro {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 31, 59, 0.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(15, 31, 59, 0.12);
  border-color: rgba(30, 95, 176, 0.18);
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem 1.2rem 1.35rem;
  text-align: left;
}

.project-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(30, 95, 176, 0.08);
}

.project-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--color-primary);
}

.project-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}

.project-card--more {
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(30, 95, 176, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.project-card--more .project-card-body {
  justify-content: center;
}

.project-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.15rem;
  color: var(--color-secondary);
  font-weight: 700;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .projects {
    padding: 4.25rem 0;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card img {
    height: 220px;
  }

  .project-card-body {
    padding: 1.05rem 1rem 1.2rem;
  }

  .project-card h3 {
    font-size: 1.18rem;
  }

  .section-intro {
    font-size: 0.98rem;
  }
}

/* ========== Services ========== */
.services-section {
  padding: 5.5rem 0 6rem;
  background: #ffffff;
}

.services-heading {
  margin-bottom: 3.25rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 31, 59, 0.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 31, 59, 0.12);
  border-color: rgba(30, 95, 176, 0.18);
}

.service-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.3rem 1.25rem 1.4rem;
  text-align: left;
}

.service-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 0.65rem;
  margin-bottom: 0.95rem;
  border-radius: 999px;
  background: rgba(30, 95, 176, 0.08);
  color: var(--color-secondary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--color-primary);
}

.service-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--muted);
}

.service-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.2rem;
  color: var(--color-secondary);
  font-weight: 700;
  text-decoration: none;
}

.service-link:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
  }

  .service-media img {
    height: 100%;
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .services-section {
    padding: 4.25rem 0 4.75rem;
  }

  .services-heading {
    margin-bottom: 2rem;
  }

  .service-card {
    display: flex;
  }

  .service-media img {
    height: 220px;
    min-height: 0;
  }

  .service-body {
    padding: 1.1rem 1rem 1.2rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-card p {
    font-size: 0.96rem;
  }
}

/* ========== Mobile adjustments for values grid ========== */
@media (max-width:520px) {
  .home-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .values-item {
    padding: .75rem .8rem;
  }

  .values-text h4 {
    font-size: .95rem;
  }

  .values-text p {
    font-size: .80rem;
  }
}

/* ========== Under Construction Overlay ========== */
.uc-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 10, 18, .72);
  backdrop-filter: blur(6px);
  z-index: 1000;
  padding: 1rem;
}

.uc-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  color: var(--on-surface);
  width: min(540px, 92vw);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  padding: 2rem 1.75rem;
  text-align: center;
  animation: uc-fade-in 200ms ease-out;
}

.uc-eyebrow {
  display: inline-block;
  margin-bottom: .9rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.uc-card h3 {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: .75rem;
}

.uc-card p {
  color: var(--color-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.uc-contact {
  margin-bottom: 1.25rem;
}

.uc-card a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 700;
}

.uc-card button {
  background: var(--button-bg);
  color: var(--button-fg);
  border: 0;
  min-height: 48px;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, filter .2s;
}

.uc-card button:hover {
  transform: translateY(-2px);
  filter: brightness(0.97);
}

@keyframes uc-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.uc-overlay.hidden {
  display: none;
}

body.uc-locked {
  overflow: hidden;
}

/* ========== Theme Switcher UI ========== */
.theme-switcher {
  position: fixed;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  font: 600 14px/1.2 Segoe UI, sans-serif;
}

.theme-switcher details {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: .5rem .75rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.theme-switcher summary {
  list-style: none;
  cursor: pointer;
  color: var(--switcher-ink);
}

.theme-switcher summary::-webkit-details-marker {
  display: none;
}

.theme-menu {
  margin-top: .5rem;
  display: grid;
  gap: .35rem;
}

.theme-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  color: var(--on-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: .45rem .6rem;
  cursor: pointer;
}

.theme-btn[aria-current="true"] {
  font-weight: 800;
  text-decoration: underline;
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
  background: var(--surface);
}

/* =========================
   THEME OVERRIDES (examples)
   Keep your existing t1–t6 blocks here; they now
   only need to set semantic tokens above.
   ========================= */

/* t1 — Baseline (unchanged sample) */
:root[data-theme="t1"] {
  --blue-900: #0b1f3b;
  --blue-800: #11335e;
  --blue-700: #18497f;
  --blue-600: #1e5fb0;
  --blue-300: #e6f0ff;
  --bg: #fff;
  --bg-light: #f7f7f7;
  --text: #333;
  --muted: #556070;
  --border: #e6eaf1;
  --color-primary: var(--blue-900);
  --color-secondary: var(--blue-600);
  --hero-overlay: rgba(0, 0, 0, .45);
  --hero-fg: #fff;
  --nav-bg: var(--blue-900);
  --nav-link: #fff;
  --nav-link-hover: var(--accent);
}

/* t2 — Deep Night (example shows dark remaps you already use) */
:root[data-theme="t2"] {
  --blue-900: #091225;
  --blue-800: #0c1a34;
  --blue-700: #153055;
  --blue-600: #3b82f6;
  --blue-300: #beddff;
  --bg: #0a0f19;
  --bg-light: #101827;
  --text: #e8edf5;
  --muted: #a7b4c8;
  --border: #1f2a40;
  --color-primary: #9fccff;
  --color-secondary: #3b82f6;
  --hero-overlay: rgba(0, 0, 0, .62);
  --hero-fg: #eaf2ff;
  --nav-bg: #0a0f19;
  --nav-link: #eaf2ff;
  --nav-link-hover: #9fccff;
  --button-bg: #3b82f6;
  --button-fg: #0a0f19;
  --surface: var(--bg-light);
  --on-surface: var(--text);
}

/* t3–t6: keep your improved themes; just ensure they set
   semantic tokens like --bg/--text/--surface/etc. */
/* ================== THEMES (drop-in) ================== */
/* t1 — Baseline */
:root[data-theme="t1"] {
  --blue-900: #0b1f3b;
  --blue-800: #11335e;
  --blue-700: #18497f;
  --blue-600: #1e5fb0;
  --blue-300: #e6f0ff;
  --text: #333;
  --muted: #556070;
  --bg: #fff;
  --bg-light: #f7f7f7;
  --border: #e6eaf1;
  --color-primary: var(--blue-900);
  --color-secondary: var(--blue-600);
  --hero-overlay: rgba(0, 0, 0, .45);
}

/* t2 — Deep Night (true dark, icy accents) */
:root[data-theme="t2"] {
  --blue-900: #091225;
  --blue-800: #0c1a34;
  --blue-700: #153055;
  --blue-600: #3b82f6;
  --blue-300: #beddff;
  --bg: #0a0f19;
  --bg-light: #101827;
  --text: #e8edf5;
  --muted: #a7b4c8;
  --border: #1f2a40;
  --color-primary: #9fccff;
  --color-secondary: #3b82f6;
  --hero-overlay: rgba(0, 0, 0, .62);
}

:root[data-theme="t2"] .nav-menu {
  background: var(--bg)
}

:root[data-theme="t2"] .values-item {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12)
}

:root[data-theme="t2"] .project-card h3 {
  color: var(--text)
}

:root[data-theme="t2"] .safety-inner {
  background: var(--blue-800)
}

:root[data-theme="t2"] .proj-arrow {
  background: var(--bg);
  border-color: var(--border)
}

:root[data-theme="t2"] footer {
  color: var(--muted)
}

/* t3 — Cool Ice (light canvas, punchy CTAs) */
:root[data-theme="t3"] {
  --blue-900: #0a2a4a;
  --blue-800: #123a63;
  --blue-700: #1b4b7d;
  --blue-600: #3b82f6;
  --blue-300: #d6e8ff;
  --bg: #ecf4ff;
  --bg-light: #ffffff;
  --text: #0e1726;
  --muted: #4b5d74;
  --border: #c9d9ef;
  --color-primary: #0a2a4a;
  --color-secondary: #3b82f6;
  --hero-overlay: rgba(10, 30, 60, .30);
}

:root[data-theme="t3"] .nav-menu {
  background: var(--blue-900)
}

:root[data-theme="t3"] .hero::before {
  background: rgba(10, 30, 60, .38)
}

:root[data-theme="t3"] .values-item {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(10, 30, 60, .10);
  box-shadow: 0 6px 18px rgba(16, 35, 70, .12);
  backdrop-filter: blur(6px)
}

:root[data-theme="t3"] .values-text h4 {
  color: #0e1726
}

:root[data-theme="t3"] .values-text p {
  color: #3e5066
}

:root[data-theme="t3"] .safety-inner {
  background: linear-gradient(180deg, var(--blue-800), var(--blue-700));
  color: #fff
}

:root[data-theme="t3"] .proj-arrow {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 6px 18px rgba(16, 35, 70, .12)
}

:root[data-theme="t3"] .project-card {
  background: var(--bg-light);
  border-color: var(--border);
  box-shadow: 0 10px 28px rgba(16, 35, 70, .14)
}

:root[data-theme="t3"] .project-card h3 {
  color: var(--color-primary)
}

:root[data-theme="t3"] .cta-button {
  background: var(--color-secondary);
  box-shadow: 0 8px 20px rgba(59, 130, 246, .28)
}

:root[data-theme="t3"] .cta-button:hover {
  filter: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(59, 130, 246, .35)
}

:root[data-theme="t3"] footer {
  color: #5a6a80
}

:root[data-theme="t3"] :focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px
}

/* t4 — Copper Sand (warm neutrals, amber CTAs — non-blue) */
:root[data-theme="t4"] {
  --blue-900: #2f2a25;
  --blue-800: #3c342c;
  --blue-700: #5a4636;
  --blue-600: #d97706;
  --blue-300: #fde8c0;
  --bg: #f7efe6;
  --bg-light: #ffffff;
  --text: #231f1b;
  --muted: #6b5e55;
  --border: #eadfd3;
  --color-primary: #5a4636;
  --color-secondary: #d97706;
  --hero-overlay: rgba(60, 35, 15, .32);

}

:root[data-theme="t4"] .nav-menu {
  background: var(--blue-900)
}

:root[data-theme="t4"] .home-values-strip {
  background: var(--blue-900);
  /* keep strip color */
  color: #fff;
  /* force high-contrast headings */
}

:root[data-theme="t4"] .values-item {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 20px rgba(90, 70, 54, .12)
}

:root[data-theme="t4"] .values-text h4 {
  color: #ffffff;
}

:root[data-theme="t4"] .values-text p {
  color: #eaf2ff;
}

:root[data-theme="t4"] .safety-inner {
  background: linear-gradient(180deg, #6b513f, #4a3a2e)
}

:root[data-theme="t4"] .proj-arrow {
  background: #fff;
  border-color: var(--border)
}

:root[data-theme="t4"] .project-card {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 10px 26px rgba(73, 57, 45, .12)
}

:root[data-theme="t4"] .project-card h3 {
  color: #3d2f26
}

:root[data-theme="t4"] .cta-button {
  background: var(--blue-600);
  box-shadow: 0 10px 24px rgba(217, 119, 6, .26)
}

:root[data-theme="t4"] footer {
  color: #7a6d64
}

/* t5 — Emerald Mist (mint canvas, teal accents — non-blue) */
:root[data-theme="t5"] {
  --blue-900: #0f3b39;
  --blue-800: #115e59;
  --blue-700: #0f766e;
  --blue-600: #10b981;
  --blue-300: #d1fae5;
  --bg: #eef6f3;
  --bg-light: #ffffff;
  --text: #0f1b18;
  --muted: #3f5a54;
  --border: #cfe6df;
  --color-primary: #115e59;
  --color-secondary: #10b981;
  --hero-overlay: rgba(12, 64, 54, .30);
}

:root[data-theme="t5"] .nav-menu {
  background: var(--blue-900)
}

:root[data-theme="t5"] .values-item {
  background: rgba(0, 0, 0, 0.24);
  border-color: rgba(0, 0, 0, 0.32);
  box-shadow: 0 8px 18px rgba(17, 94, 89, .12);
  backdrop-filter: blur(6px)
}

:root[data-theme="t5"] .home-values-strip {
  background: var(--blue-900);
  color: #fff;
}

:root[data-theme="t5"] .values-text h4 {
  color: #ffffff;
}

:root[data-theme="t5"] .values-text p {
  color: #f0f6ff;
}

:root[data-theme="t5"] .safety-inner {
  background: linear-gradient(180deg, #0f766e, #115e59)
}

:root[data-theme="t5"] .proj-arrow {
  background: #fff;
  border-color: var(--border)
}

:root[data-theme="t5"] .project-card {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 10px 26px rgba(17, 94, 89, .12)
}

:root[data-theme="t5"] .project-card h3 {
  color: var(--color-primary)
}

:root[data-theme="t5"] .cta-button {
  background: var(--color-secondary);
  box-shadow: 0 10px 24px rgba(16, 185, 129, .26)
}

:root[data-theme="t5"] footer {
  color: #4c6b64
}

/* t6 — Aubergine Noir (purple-black dark, violet CTAs — non-blue) */
:root[data-theme="t6"] {
  --blue-900: #140a1f;
  --blue-800: #1d1230;
  --blue-700: #2a1947;
  --blue-600: #a855f7;
  --blue-300: #e9d5ff;
  --bg: #0f0a14;
  --bg-light: #171020;
  --text: #eee7f5;
  --muted: #b8a8c9;
  --border: #2a1f36;
  --color-primary: #e9d5ff;
  --color-secondary: #a855f7;
  --hero-overlay: rgba(8, 4, 14, .62);
}

:root[data-theme="t6"] .nav-menu {
  background: var(--bg)
}

:root[data-theme="t6"] .values-item {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12)
}

:root[data-theme="t6"] .safety-inner {
  background: linear-gradient(180deg, #221431, #1a0f28)
}

:root[data-theme="t6"] .proj-arrow {
  background: var(--bg);
  border-color: var(--border)
}

:root[data-theme="t6"] .project-card {
  background: #150e21;
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(168, 85, 247, .12)
}

:root[data-theme="t6"] .project-card h3 {
  color: #f4eaff
}

:root[data-theme="t6"] .cta-button {
  background: var(--color-secondary);
  box-shadow: 0 10px 26px rgba(168, 85, 247, .28)
}

:root[data-theme="t6"] footer {
  color: var(--muted)
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: background .2s, transform .2s, border-color .2s;
}

.header-cta:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

.brand-logo {
  margin: 0 auto;
}

/* ensure image centers */

/* Keep nav/menu on the right */
.nav-menu {
  justify-self: center;
}

.menu-icon {
  grid-column: 3;
  justify-self: end;
}

/* mobile hamburger */

/* ========== Footer ========== */
.site-footer {
  background:
    radial-gradient(circle at 75% 30%, rgba(30, 95, 176, 0.16), transparent 35%),
    linear-gradient(135deg, #071a2f 0%, #08233f 55%, #0b2b45 100%);
  color: #ffffff;
  margin-top: 4rem;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 4rem;
  padding: 3.25rem 0 2.25rem;
  align-items: start;
}

.footer-column h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-column p {
  margin: 0.35rem 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.footer-column strong {
  color: #ffffff;
  font-weight: 700;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  padding: 1.2rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-legal-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.98rem;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.96rem;
}

/* ========== Mobile Footer ========== */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0 1.75rem;
  }

  .footer-column h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .footer-column p {
    font-size: 0.97rem;
    line-height: 1.65;
  }

  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
  }

  .footer-bottom {
    padding: 1rem 0 1.35rem;
  }

  .footer-bottom p {
    font-size: 0.92rem;
  }
}

.footer-address,
.footer-certifications {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}