/* ============================================================
   CBK HOLDING & MINERAL RESOURCES LIMITED — Stylesheet
   Version: 1.0.0
   ============================================================ */

/* ── Custom Properties ────────────────────────────────────── */
:root {
  /* Brand Colors */
  --clr-blue:         #1476B4;
  --clr-blue-dark:    #0D5A8C;
  --clr-blue-deeper:  #073A5F;
  --clr-blue-light:   #E8F4FD;
  --clr-gold:         #F5A623;
  --clr-gold-dark:    #D4871A;
  --clr-gold-light:   #FEF3DC;

  /* Neutrals */
  --clr-dark:         #0D1B2A;
  --clr-dark-2:       #1A2B3C;
  --clr-text:         #1F2937;
  --clr-text-muted:   #6B7280;
  --clr-border:       #E5E7EB;
  --clr-light:        #F8FAFC;
  --clr-white:        #FFFFFF;

  /* Typography */
  --font-sans:   'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Font sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --container-max:    1200px;
  --container-px:     1.5rem;
  --radius:           0.5rem;
  --radius-lg:        1rem;
  --radius-xl:        1.5rem;
  --nav-height:       4.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow:    0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.3);

  /* Transitions */
  --ease:      200ms ease;
  --ease-slow: 400ms ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body { overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
}
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
}

/* ── Focus visible ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--clr-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Utility ───────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding: var(--sp-20) 0;
}

.section--alt {
  background: var(--clr-light);
}

.section__header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-gold);
  background: var(--clr-gold-light);
  border: 1px solid var(--clr-gold);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 100px;
  margin-bottom: var(--sp-3);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  color: var(--clr-dark);
  margin-bottom: var(--sp-4);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  max-width: 640px;
  margin-inline: auto;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.75rem;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--ease);
  line-height: 1;
  white-space: nowrap;
}
.btn--primary {
  background: var(--clr-gold);
  color: var(--clr-dark);
}
.btn--primary:hover {
  background: var(--clr-gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgb(245 166 35 / 0.35);
}
.btn--outline {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--clr-white);
}
.btn--outline-blue {
  background: transparent;
  color: var(--clr-blue);
  border: 2px solid var(--clr-blue);
}
.btn--outline-blue:hover {
  background: var(--clr-blue);
  color: var(--clr-white);
}
/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--clr-white);
  box-shadow: 0 1px 0 0 var(--clr-border);
  transition: box-shadow var(--ease-slow);
}
.nav.nav--scrolled {
  box-shadow: var(--shadow-md);
}

.nav__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.nav__logo img {
  height: 52px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  transition: color var(--ease), background var(--ease);
}
.nav__link:hover {
  color: var(--clr-blue);
  background: var(--clr-blue-light);
}
.nav__link--cta {
  background: var(--clr-blue);
  color: var(--clr-white) !important;
  font-weight: 600;
  padding: var(--sp-2) var(--sp-5);
  margin-left: var(--sp-2);
}
.nav__link--cta:hover {
  background: var(--clr-blue-dark) !important;
  color: var(--clr-white) !important;
  transform: none;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  z-index: 1001;
  position: relative;
  border-radius: var(--radius);
  transition: background var(--ease);
}
.nav__toggle:hover { background: var(--clr-light); }
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s ease;
}

/* When open: bars become a visible white X */
.nav__toggle[aria-expanded="true"] span {
  background: var(--clr-white);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(7,58,95,0.97) 0%, rgba(13,27,42,0.94) 45%, rgba(20,118,180,0.88) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M50 0L100 25L100 75L50 100L0 75L0 25Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-color: var(--clr-dark);
  background-size: auto, 60px 60px;
}

/* Animated gradient orbs */
.hero__background::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,118,180,0.25) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float 12s ease-in-out infinite;
}
.hero__background::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(13,27,42,0.6) 100%);
}

.hero__container {
  position: relative;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: calc(var(--nav-height) + var(--sp-16)) var(--container-px) var(--sp-20);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
  align-items: center;
  z-index: 1;
}

.hero__content {
  max-width: 680px;
}

.hero__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-gold);
  border: 1px solid rgba(245,166,35,0.5);
  background: rgba(245,166,35,0.1);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 100px;
  margin-bottom: var(--sp-5);
  backdrop-filter: blur(8px);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.08;
  margin-bottom: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.hero__title-accent {
  color: var(--clr-gold);
}

.hero__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: var(--sp-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Stats bar */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  text-align: center;
  transition: all var(--ease);
}
.stat-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(245,166,35,0.4);
  transform: translateY(-3px);
}

.stat-card__number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 700;
  color: var(--clr-gold);
  line-height: 1;
}
.stat-card__suffix {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--clr-gold);
}
.stat-card__label {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--sp-1);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}
.hero__scroll-arrow {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1) translateY(20px); }
}

/* ── About Section ─────────────────────────────────────────── */
.about {
  background: var(--clr-white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}

.about__lead {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--clr-dark);
  line-height: 1.6;
  margin-bottom: var(--sp-5);
}
.about__text p {
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-4);
  line-height: 1.8;
}
.about__text strong { color: var(--clr-text); }

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--clr-border);
}
.highlight {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.highlight__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--clr-blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-blue);
}
.highlight__icon svg { width: 22px; height: 22px; }
.highlight h4 { font-size: var(--text-base); margin-bottom: var(--sp-1); color: var(--clr-dark); }
.highlight p  { font-size: var(--text-sm); color: var(--clr-text-muted); }

/* Values column */
.about__values {
  background: var(--clr-light);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-6));
}
.about__values h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--clr-dark);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--clr-gold);
  display: inline-block;
}
.values-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.value-item {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--clr-border);
}
.value-item:last-child { border-bottom: none; }
.value-item__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-blue);
  margin-bottom: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.value-item p { font-size: var(--text-sm); color: var(--clr-text-muted); }

/* Mission / Vision */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}
.mission-card {
  background: var(--clr-dark);
  color: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
}
.mission-card::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(20,118,180,0.2);
  top: -80px;
  right: -80px;
}
.mission-card__icon {
  width: 48px;
  height: 48px;
  background: var(--clr-gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-dark);
  margin-bottom: var(--sp-5);
}
.mission-card__icon svg { width: 24px; height: 24px; }
.mission-card h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--clr-gold);
  margin-bottom: var(--sp-4);
}
.mission-card p { color: rgba(255,255,255,0.75); line-height: 1.8; font-size: var(--text-sm); }

/* ── Services Section ──────────────────────────────────────── */
.services {
  background: var(--clr-light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.service-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  transition: all var(--ease-slow);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-blue), var(--clr-gold));
  transform: scaleX(0);
  transition: transform var(--ease-slow);
  transform-origin: left;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 60px;
  height: 60px;
  background: var(--clr-blue-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-blue);
  margin-bottom: var(--sp-5);
  transition: background var(--ease);
}
.service-card:hover .service-card__icon {
  background: var(--clr-blue);
  color: var(--clr-white);
}
.service-card__icon svg { width: 30px; height: 30px; }

.service-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--clr-dark);
  margin-bottom: var(--sp-3);
}
.service-card__desc {
  color: var(--clr-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.service-card__list li {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  padding-left: var(--sp-5);
  position: relative;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-gold);
}

/* ── Projects Section ──────────────────────────────────────── */
.projects {
  background: var(--clr-white);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.project-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  position: relative;
  transition: all var(--ease-slow);
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.project-card h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--clr-dark);
  margin-bottom: var(--sp-3);
}
.project-card p {
  color: var(--clr-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.project-card--featured {
  background: var(--clr-dark);
  border-color: transparent;
  color: var(--clr-white);
}
.project-card--featured h3 { color: var(--clr-white); }
.project-card--featured p { color: rgba(255,255,255,0.7); }
.project-card--featured strong { color: var(--clr-gold); }

.project-card__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--clr-gold);
  color: var(--clr-dark);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 100px;
  margin-bottom: var(--sp-4);
}

.project-card__amount {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 3vw, var(--text-4xl));
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: var(--sp-3);
  line-height: 1;
}

.project-card__details {
  margin-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.project-card--featured .project-card__details li {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  padding-left: var(--sp-4);
  position: relative;
}
.project-card--featured .project-card__details li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--clr-gold);
  font-weight: 700;
}

.project-card__partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.partner-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--clr-blue-light);
  color: var(--clr-blue);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 100px;
  border: 1px solid rgba(20,118,180,0.3);
}

.expertise-table {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.expertise-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--clr-light);
  border-radius: var(--radius);
  font-size: var(--text-xs);
}
.expertise-row span:first-child {
  font-weight: 600;
  color: var(--clr-blue-dark);
}
.expertise-row span:last-child { color: var(--clr-text-muted); }

/* ── Clients Section ───────────────────────────────────────── */
.clients {
  background: var(--clr-dark);
  color: var(--clr-white);
}
.clients .section__tag {
  border-color: rgba(245,166,35,0.4);
}
.clients .section__title { color: var(--clr-white); }
.clients .section__subtitle { color: rgba(255,255,255,0.6); }

.clients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-12);
}

a.client-card { text-decoration: none; cursor: pointer; }
.client-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.client-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(245,166,35,0.4);
  transform: translateY(-4px);
}
.client-card__logo {
  width: 120px;
  height: 56px;
  background: var(--clr-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.client-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.client-card h4 {
  font-size: var(--text-base);
  color: var(--clr-white);
  margin: 0;
}
.client-card p { font-size: var(--text-xs); color: rgba(255,255,255,0.5); line-height: 1.6; margin: 0; }

.affiliations {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  padding: var(--sp-8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.04);
}
.affiliations h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--clr-gold);
  margin-bottom: var(--sp-4);
}
.affiliations p { color: rgba(255,255,255,0.7); line-height: 1.8; }
.affiliations strong { color: var(--clr-white); }

/* ── Team Section ──────────────────────────────────────────── */
.team { background: var(--clr-light); }

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-10);
}

.team-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  text-align: center;
  transition: all var(--ease-slow);
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--clr-blue-light);
  transform: translateY(-3px);
}
.team-card--md {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--clr-dark), var(--clr-blue-dark));
  border: none;
  color: var(--clr-white);
  padding: var(--sp-8);
}
.team-card--md .team-card__avatar {
  width: 72px;
  height: 72px;
  font-size: var(--text-2xl);
  background: var(--clr-gold);
  color: var(--clr-dark);
  margin-inline: auto;
}
.team-card--md .team-card__name { color: var(--clr-white); font-size: var(--text-2xl); }
.team-card--md .team-card__role { color: var(--clr-gold); font-size: var(--text-base); }

.team-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-blue-light);
  color: var(--clr-blue);
  font-size: var(--text-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
}
.team-card__name {
  font-size: var(--text-base);
  color: var(--clr-dark);
  margin-bottom: var(--sp-1);
}
.team-card__role {
  font-size: var(--text-sm);
  color: var(--clr-blue);
  font-weight: 500;
}

.safety-banner {
  background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-blue-dark) 100%);
  color: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
}
.safety-banner__icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.safety-banner__icon svg { width: 26px; height: 26px; }
.safety-banner h4 { font-size: var(--text-xl); margin-bottom: var(--sp-2); color: var(--clr-gold); }
.safety-banner p { color: rgba(255,255,255,0.8); font-size: var(--text-sm); line-height: 1.7; }

/* ── Certifications Section ────────────────────────────────── */
.certifications { background: var(--clr-white); }

.certs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.cert-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: box-shadow var(--ease), transform var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.cert-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.cert-card--blue::after  { background: var(--clr-blue); }
.cert-card--green::after { background: #15803D; }
.cert-card--gold::after  { background: var(--clr-gold); }

.cert-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cert-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-1);
}
.cert-card__issuer {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}
.cert-card--blue  .cert-card__issuer { background: var(--clr-blue-light); color: var(--clr-blue-dark); }
.cert-card--green .cert-card__issuer { background: #DCFCE7; color: #15803D; }
.cert-card--gold  .cert-card__issuer { background: var(--clr-gold-light); color: var(--clr-gold-dark); }

.cert-card__type {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  text-align: right;
}

.cert-card h4 { font-size: var(--text-base); color: var(--clr-dark); }
.cert-card > p { font-size: var(--text-sm); color: var(--clr-text-muted); line-height: 1.6; flex: 1; }
.cert-card__ref {
  display: block;
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  font-family: ui-monospace, monospace;
  padding: var(--sp-1) var(--sp-2);
  background: var(--clr-light);
  border-radius: 4px;
  margin-top: auto;
}

/* ── Timeline Section ──────────────────────────────────────── */
.history { background: var(--clr-light); }

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-blue), var(--clr-gold));
}

.timeline__item {
  display: flex;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
  position: relative;
}
.timeline__item:last-child { margin-bottom: 0; }

.timeline__year {
  width: 100px;
  min-width: 100px;
  text-align: right;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-blue);
  padding-top: var(--sp-1);
}

.timeline__content {
  position: relative;
  padding-left: calc(var(--sp-8) + var(--sp-2));
  padding-bottom: var(--sp-8);
}
.timeline__content::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-4) - 5px);
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clr-gold);
  border: 2px solid var(--clr-white);
  box-shadow: 0 0 0 3px var(--clr-gold);
}
.timeline__content h4 {
  font-size: var(--text-lg);
  color: var(--clr-dark);
  margin-bottom: var(--sp-2);
}
.timeline__content p {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ── Contact Section ───────────────────────────────────────── */
.contact { background: var(--clr-white); }

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.contact-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.contact-item__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--clr-blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-blue);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h4 {
  font-size: var(--text-base);
  color: var(--clr-dark);
  margin-bottom: var(--sp-2);
}
.contact-item p { font-size: var(--text-sm); color: var(--clr-text-muted); }
.contact-item a { color: var(--clr-blue); transition: color var(--ease); }
.contact-item a:hover { color: var(--clr-blue-dark); }

.form-group {
  margin-bottom: var(--sp-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: var(--sp-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--clr-white);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  color: var(--clr-text);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 3px rgba(20,118,180,0.12);
}
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #DC2626;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-note {
  font-size: var(--text-sm);
  margin-top: var(--sp-3);
  text-align: center;
}
.form-note.success { color: #15803D; }
.form-note.error   { color: #DC2626; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer__brand img {
  margin-bottom: var(--sp-5);
  filter: brightness(0) invert(1);
}
.footer__brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--sp-5);
}
.footer__contact-quick { font-size: var(--text-sm); display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__contact-quick a { color: var(--clr-gold); transition: color var(--ease); }
.footer__contact-quick a:hover { color: var(--clr-white); }

.footer__nav h5,
.footer__services h5,
.footer__compliance h5 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-white);
  margin-bottom: var(--sp-5);
}
.footer__nav ul,
.footer__services ul,
.footer__compliance ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer__nav li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--ease);
}
.footer__nav li a:hover { color: var(--clr-gold); }
.footer__services li,
.footer__compliance li { font-size: var(--text-sm); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: var(--text-xs);
}

/* ── Back to Top ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 48px;
  height: 48px;
  background: var(--clr-blue);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--ease);
  z-index: 900;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--clr-blue-dark);
  transform: translateY(-2px);
}
.back-to-top svg { width: 20px; height: 20px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero__container {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1023px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__values { position: static; }
  .mission-vision { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .team-card--md { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root {
    --container-px: 1.25rem;
  }

  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 82vw);
    height: 100dvh;
    background: var(--clr-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--nav-height) + var(--sp-6)) var(--sp-6) var(--sp-10);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    /* anchor the close button */
    isolation: isolate;
  }
  .nav__links.is-open { right: 0; }

  .nav__link {
    width: 100%;
    padding: var(--sp-3) 0;
    font-size: var(--text-sm);
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.8) !important;
    border-radius: 0;
    background: none !important;
    margin-left: 0 !important;
  }
  .nav__link:hover {
    color: var(--clr-white) !important;
    background: none !important;
  }
  .nav__link--active {
    color: var(--clr-gold) !important;
  }

  .nav__link--cta {
    margin-top: var(--sp-6);
    margin-left: 0 !important;
    padding: var(--sp-3) var(--sp-4) !important;
    text-align: center;
    border: none;
    border-radius: var(--radius);
    background: var(--clr-blue) !important;
    color: var(--clr-white) !important;
    font-weight: 600;
    font-size: var(--text-sm);
    display: block;
    width: 100%;
  }
  .nav__link--cta:hover {
    background: var(--clr-blue-dark) !important;
  }

  /* Dim overlay — must stay below nav (1000) so drawer links stay tappable */
  body.menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
  }

  .services__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .clients__grid  { grid-template-columns: 1fr 1fr; }
  .certs__grid    { grid-template-columns: 1fr; }
  .team__grid     { grid-template-columns: 1fr 1fr; }

  .timeline::before { left: 0; }
  .timeline__item {
    flex-direction: column;
    padding-left: var(--sp-6);
    gap: var(--sp-2);
  }
  .timeline__year {
    width: auto;
    text-align: left;
    font-size: var(--text-lg);
  }
  .timeline__content {
    padding-left: 0;
    padding-bottom: var(--sp-6);
  }
  .timeline__content::before { left: calc(-1 * var(--sp-6) - 5px); }

  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer__brand p { max-width: 100%; }
  .footer__bottom { flex-direction: column; }

  .hero__stats { grid-template-columns: 1fr 1fr; }
  .safety-banner { flex-direction: column; }

  .mission-vision { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .clients__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
}

/* ── Print Styles ──────────────────────────────────────────── */
@media print {
  .nav, .hero__scroll-indicator, .back-to-top, .contact-form { display: none !important; }
  .hero { min-height: auto; padding: var(--sp-8) 0; }
  .hero__background { display: none; }
  .hero__title, .hero__subtitle { color: var(--clr-dark) !important; }
  * { box-shadow: none !important; }
}

/* ══════════════════════════════════════════════════════════════
   MULTI-PAGE ADDITIONS
   ══════════════════════════════════════════════════════════════ */

/* ── Active nav link ───────────────────────────────────────── */
@media (min-width: 769px) {
  .nav__link--active {
    color: var(--clr-blue) !important;
    font-weight: 600;
  }
}

/* ── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(7,58,95,0.98) 0%, rgba(13,27,42,0.96) 50%, rgba(20,118,180,0.9) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M50 0L100 25L100 75L50 100L0 75L0 25Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-color: var(--clr-dark);
  background-size: auto, 60px 60px;
  overflow: hidden;
  padding: calc(var(--nav-height) + var(--sp-16)) var(--container-px) var(--sp-16);
  text-align: center;
  color: var(--clr-white);
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,118,180,0.25) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  bottom: -100px;
  left: 5%;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: var(--clr-gold); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--clr-white); }
.breadcrumb__sep { color: rgba(255,255,255,0.3); }

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
  line-height: 1.1;
}
.page-hero__title span { color: var(--clr-gold); }

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

/* ── CTA Banner (home + other pages) ──────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-blue-deeper) 60%, var(--clr-blue-dark) 100%);
  color: var(--clr-white);
  text-align: center;
  padding: var(--sp-20) var(--container-px);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cta-banner__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
}
.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-lg);
  margin-bottom: var(--sp-8);
  line-height: 1.7;
}
.cta-banner__actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Home Page — About Teaser ──────────────────────────────── */
.home-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.home-about__visual {
  background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-blue-deeper) 100%);
  border-radius: var(--radius-xl);
  padding: var(--sp-10);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.home-about__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 15L60 45L30 60L0 45L0 15Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
}
.home-about__visual-badge {
  position: absolute;
  top: var(--sp-6);
  left: var(--sp-6);
  background: var(--clr-gold);
  color: var(--clr-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 100px;
}
.home-about__visual-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
}
.home-about__visual-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: var(--sp-4);
}
.home-about__visual-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--clr-gold);
}
.home-about__visual-stat span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
}
.home-about__text h2 {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
  color: var(--clr-dark);
  margin-bottom: var(--sp-5);
}
.home-about__text p {
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}
.home-about__text strong { color: var(--clr-text); }

/* ── Home Page — Impact Numbers ────────────────────────────── */
.home-impact {
  background: var(--clr-light);
}
.home-impact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.impact-card {
  text-align: center;
  padding: var(--sp-8);
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
  transition: all var(--ease-slow);
}
.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-blue-light);
}
.impact-card__number {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-4xl), 4vw, 3.5rem);
  font-weight: 700;
  color: var(--clr-blue);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.impact-card__label {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: var(--sp-2);
}
.impact-card__desc {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ── Services — Detail Page Extras ────────────────────────── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--clr-border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail--reverse { direction: rtl; }
.service-detail--reverse > * { direction: ltr; }

.service-detail__header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.service-detail__icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--clr-blue-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-blue);
}
.service-detail__icon svg { width: 28px; height: 28px; }
.service-detail h3 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--clr-dark);
}
.service-detail__lead {
  font-size: var(--text-lg);
  color: var(--clr-text);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}
.service-detail p {
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}
.service-detail__sublist {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.service-detail__sub {
  background: var(--clr-light);
  border-left: 3px solid var(--clr-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-3) var(--sp-4);
}
.service-detail__sub strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--clr-dark);
  margin-bottom: var(--sp-1);
}
.service-detail__sub span { font-size: var(--text-sm); color: var(--clr-text-muted); }

.service-detail__visual {
  background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-blue-deeper) 100%);
  border-radius: var(--radius-xl);
  padding: var(--sp-10);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: var(--clr-white);
}
.service-detail__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 15L60 45L30 60L0 45L0 15Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
}
.service-detail__visual-icon {
  position: relative;
  width: 72px;
  height: 72px;
  background: rgba(245,166,35,0.2);
  border: 1px solid rgba(245,166,35,0.4);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-gold);
}
.service-detail__visual-icon svg { width: 36px; height: 36px; }
.service-detail__visual h4 {
  position: relative;
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--clr-white);
  margin-bottom: var(--sp-2);
}
.service-detail__visual p {
  position: relative;
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Equipment Table ───────────────────────────────────────── */
.equipment-section { background: var(--clr-light); }
.equipment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.equipment-col {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.equipment-col h4 {
  background: var(--clr-blue);
  color: var(--clr-white);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.equipment-col ul { padding: var(--sp-3) 0; }
.equipment-col li {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  padding: var(--sp-2) var(--sp-5);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--ease);
}
.equipment-col li:last-child { border-bottom: none; }
.equipment-col li:hover { background: var(--clr-light); color: var(--clr-text); }

/* ── Credentials page extras ───────────────────────────────── */
.zppa-categories {
  background: var(--clr-light);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  margin-top: var(--sp-10);
}
.zppa-categories h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--clr-dark);
  margin-bottom: var(--sp-2);
}
.zppa-categories > p {
  color: var(--clr-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-6);
}
.zppa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.zppa-tag {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
}
.zppa-tag strong { color: var(--clr-blue); font-family: ui-monospace, monospace; }

.compliance-statement {
  background: linear-gradient(135deg, var(--clr-dark), var(--clr-blue-dark));
  color: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--sp-10);
  text-align: center;
  margin-top: var(--sp-10);
}
.compliance-statement h3 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--clr-gold);
  margin-bottom: var(--sp-4);
}
.compliance-statement p {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-lg);
  line-height: 1.7;
  max-width: 600px;
  margin-inline: auto;
}

/* ── Safety Procedures (team page) ────────────────────────── */
.safety-section { background: var(--clr-light); }
.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.safety-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.safety-card__num {
  width: 36px;
  height: 36px;
  background: var(--clr-blue);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
.safety-card h4 { font-size: var(--text-base); color: var(--clr-dark); margin-bottom: var(--sp-2); }
.safety-card p  { font-size: var(--text-sm); color: var(--clr-text-muted); line-height: 1.7; }

/* ── Responsive additions ──────────────────────────────────── */
@media (max-width: 1023px) {
  .home-about__grid  { grid-template-columns: 1fr; }
  .home-impact__grid { grid-template-columns: 1fr 1fr; }
  .service-detail    { grid-template-columns: 1fr; }
  .service-detail--reverse { direction: ltr; }
  .equipment-grid    { grid-template-columns: 1fr; }
  .safety-grid       { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .home-impact__grid { grid-template-columns: 1fr; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
}

/* ── Contact Page (multi-page) ─────────────────────────────── */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: var(--sp-12);
  align-items: start;
}

.contact__info-heading {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--clr-dark);
  margin-bottom: var(--sp-3);
}
.contact__info-intro {
  font-size: var(--text-base);
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--sp-8);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contact__detail-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--clr-border);
}
.contact__detail-row:last-child { border-bottom: none; }
.contact__details dt {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 1px;
}
.contact__details dd {
  font-size: var(--text-sm);
  color: var(--clr-text);
  line-height: 1.7;
}
.contact__details a { color: var(--clr-blue); transition: color var(--ease); }
.contact__details a:hover { color: var(--clr-blue-dark); }

.contact__service-links { margin-bottom: var(--sp-8); }
.contact__service-links h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-3);
}
.contact__service-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.service-tag {
  display: inline-block;
  background: var(--clr-blue-light);
  color: var(--clr-blue);
  border: 1px solid rgba(20,118,180,0.2);
  border-radius: var(--radius);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}
.service-tag:hover {
  background: var(--clr-blue);
  color: var(--clr-white);
}

.contact__compliance {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--clr-border);
}
.contact__compliance span {
  background: var(--clr-light);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: 2px var(--sp-3);
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* Contact form card */
.contact__form-wrap {
  background: var(--clr-light);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
}
.contact-form__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--clr-dark);
  margin-bottom: var(--sp-6);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.form-required { color: #DC2626; }

.form-error {
  display: block;
  font-size: var(--text-xs);
  color: #DC2626;
  margin-top: var(--sp-1);
  min-height: 1rem;
}

.btn--full { width: 100%; justify-content: center; }
.btn__loader { display: flex; align-items: center; justify-content: center; }
.btn__loader svg { animation: spin 0.8s linear infinite; }
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }

.form-send-error {
  font-size: var(--text-sm);
  color: #DC2626;
  margin-top: var(--sp-3);
}

/* Form success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-10) var(--sp-8);
  gap: var(--sp-4);
}
.form-success[hidden] { display: none; }
.form-success__icon {
  width: 64px;
  height: 64px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #15803D;
}
.form-success__icon svg { width: 32px; height: 32px; }
.form-success h4 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--clr-dark);
}
.form-success p { color: var(--clr-text-muted); font-size: var(--text-base); line-height: 1.7; }

/* ── Location Section ──────────────────────────────────────── */
.location-section { background: var(--clr-light); }

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}

.location__map-placeholder {
  background: linear-gradient(135deg, var(--clr-blue-deeper), var(--clr-dark));
  border-radius: var(--radius-xl);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.location__map-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
  padding: var(--sp-8);
  position: relative;
  z-index: 1;
}
.location__pin { color: var(--clr-gold); }
.location__map-inner p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.location__map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 15L60 45L30 60L0 45L0 15Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
}

.location__details h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--clr-dark);
  margin-bottom: var(--sp-3);
}
.location__details > p {
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}
.location__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
}
.location__meta dt {
  font-weight: 600;
  color: var(--clr-dark);
  white-space: nowrap;
}
.location__meta dd {
  color: var(--clr-text-muted);
}
.location__meta a { color: var(--clr-blue); transition: color var(--ease); }
.location__meta a:hover { color: var(--clr-blue-dark); }

/* ── Responsive: contact + location ───────────────────────── */
@media (max-width: 1023px) {
  .contact__layout { grid-template-columns: 1fr; }
  .location__grid  { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: var(--sp-6); }
  .contact__detail-row { grid-template-columns: 90px 1fr; }
}
@media (max-width: 480px) {
  .contact__detail-row {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
  }
}

/* ── Mobile: global spacing reductions ─────────────────────── */
@media (max-width: 768px) {
  .section { padding: var(--sp-12) 0; }
  .section__header { margin-bottom: var(--sp-8); }
  .section__subtitle { font-size: var(--text-base); }

  /* Hero */
  .hero__container {
    padding-top: calc(var(--nav-height) + var(--sp-10));
    padding-bottom: var(--sp-12);
    gap: var(--sp-10);
  }
  .hero__content { max-width: 100%; }
  .hero__subtitle { font-size: var(--text-base); }
  .hero__scroll-indicator { display: none; }

  /* Page hero */
  .page-hero {
    padding-top: calc(var(--nav-height) + var(--sp-10));
    padding-bottom: var(--sp-10);
  }
  .page-hero__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }

  /* Stats */
  .stat-card { padding: var(--sp-4); }
  .stat-card__number { font-size: var(--text-3xl); }
  .stat-card__suffix { font-size: var(--text-xl); }

  /* Client cards logos — smaller on mobile */
  .client-card__logo { width: 100px; height: 48px; }

  /* Credentials */
  .cert-card__ref { font-size: 0.65rem; }

  /* Timeline */
  .timeline__year { font-size: var(--text-base); }

  /* Team card full-width on mobile grid */
  .team-card--md { grid-column: auto; }

  /* Safety banner */
  .safety-banner h2 { font-size: var(--text-xl); }
  .safety-banner p { font-size: var(--text-sm); }

  /* Affiliations */
  .affiliations { padding: var(--sp-6); }
  .affiliations h3 { font-size: var(--text-xl); }

  /* CTA banner */
  .cta-banner { padding: var(--sp-12) 0; }

  /* Footer */
  .footer { padding: var(--sp-10) 0 var(--sp-6); }
  .footer__brand img { width: 130px; }
}

@media (max-width: 480px) {
  .section { padding: var(--sp-10) 0; }
  .section__header { margin-bottom: var(--sp-6); }

  /* Hero stats: 2-col stays but reduce padding */
  .stat-card { padding: var(--sp-3) var(--sp-2); }
  .stat-card__number { font-size: var(--text-2xl); }
  .stat-card__suffix { font-size: var(--text-lg); }

  /* Page hero */
  .page-hero { padding-top: calc(var(--nav-height) + var(--sp-8)); padding-bottom: var(--sp-8); }
  .page-hero__subtitle { font-size: var(--text-sm); }

  /* Breadcrumb */
  .breadcrumb { font-size: var(--text-xs); }

  /* Buttons */
  .btn { padding: 0.65rem 1.25rem; font-size: var(--text-sm); }

  /* Clients grid single column */
  .client-card__logo { width: 90px; height: 42px; }

  /* Form */
  .contact__form-wrap { padding: var(--sp-4); }
  .contact-form__title { font-size: var(--text-xl); }

  /* Footer */
  .footer__grid { gap: var(--sp-6); }
}

/* ── Market Strategy stats grid (projects.html) ─────────────── */
.market-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.market-stat-card {
  background: var(--clr-dark);
  color: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  text-align: center;
}
.market-stat-card__number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: var(--sp-2);
  line-height: 1;
}
.market-stat-card__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .market-stats-grid { grid-template-columns: 1fr; gap: 1rem; }
  .market-stat-card { padding: var(--sp-6); }
}
