/* ==========================================================================
   Mafube Consulting — Main Stylesheet
   Professional engineering firm | Lesotho
   ========================================================================== */

/* ─── Custom Properties ─────────────────────────────────────────────────── */
:root {
  --navy:       #0d2b4e;
  --navy-dark:  #08192e;
  --navy-mid:   #1a4a7a;
  --navy-light: #dbe7f4;
  --gold:       #c8860a;
  --gold-light: #f0a832;
  --gold-pale:  #fef3dc;
  --slate-50:   #f8fafc;
  --slate-100:  #f1f5f9;
  --slate-200:  #e2e8f0;
  --slate-300:  #cbd5e1;
  --slate-400:  #94a3b8;
  --slate-500:  #64748b;
  --slate-600:  #475569;
  --slate-700:  #334155;
  --slate-800:  #1e293b;
  --slate-900:  #0f172a;
  --white:      #ffffff;
  --radius-sm:  0.375rem;
  --radius-md:  0.625rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --transition: 200ms cubic-bezier(.4,0,.2,1);
  --container:  80rem;
  --gutter:     clamp(1.25rem, 5vw, 2rem);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }
address { font-style: normal; }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; color: var(--slate-900); }

/* ─── Accessibility ──────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  padding: .5rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.skip-link:focus { left: 1rem; }

/* ─── Layout Utilities ───────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
main { flex: 1; }

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 1px 0 rgb(255 255 255 / .06);
  backdrop-filter: blur(4px);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 4.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .1em;
  color: var(--white);
}
.brand-sub {
  font-size: .7rem;
  font-weight: 300;
  color: rgb(255 255 255 / .6);
  letter-spacing: .05em;
}
.nav-links {
  display: none;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin-left: auto;
}
.nav-link {
  padding: .5rem .875rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: rgb(255 255 255 / .8);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--white); background: rgb(255 255 255 / .08); }
.nav-link--active {
  color: var(--white);
  background: var(--gold);
}
.nav-cta {
  display: none;
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.hamburger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: rgb(255 255 255 / .1); }
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-menu {
  background: var(--navy-dark);
  border-top: 1px solid rgb(255 255 255 / .06);
  padding: 1rem var(--gutter) 1.5rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-links { display: flex; flex-direction: column; gap: .25rem; }
.mobile-link {
  display: block;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  color: rgb(255 255 255 / .8);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.mobile-link:hover { background: rgb(255 255 255 / .07); color: var(--white); }
.mobile-link--active { background: var(--gold); color: var(--white); }
.mobile-cta {
  display: block;
  margin-top: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  text-align: center;
}

@media (min-width: 768px) {
  .nav-links  { display: flex; }
  .nav-cta    { display: inline-flex; }
  .hamburger  { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.20) 50%,
    rgba(0,0,0,0.45) 100%
  );
  pointer-events: none;
}

/* ── Sliding image background ── */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slider-track {
  display: flex;
  width: 200%;          /* 6 slides × 100vw / 3 = 200% for seamless loop */
  height: 100%;
  animation: heroSlide 18s linear infinite;
}
.hero-slide {
  flex: 0 0 calc(100% / 6);
  height: 100%;
  background-size: cover;
  background-position: center;
}
@keyframes heroSlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-grid {
  display: none;
}
.hero-accent {
  display: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--gold);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: normal;
  color: var(--gold);
}
.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgb(255 255 255 / .75);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero-stats {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 36rem;
}
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, 1fr); max-width: none; } }
.hero-stat {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .1);
  backdrop-filter: blur(8px);
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: .75rem;
  color: rgb(255 255 255 / .6);
  margin-top: .25rem;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 14px rgb(200 134 10 / .4);
}
.btn-primary:hover { background: var(--gold-light); box-shadow: 0 6px 20px rgb(200 134 10 / .5); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgb(255 255 255 / .35);
}
.btn-secondary:hover { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .6); }
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-mid); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.section--white  { background: var(--white); }
.section--light  { background: var(--slate-50); }
.section--dark   { background: var(--navy); color: var(--white); }
.section--navy   { background: var(--navy-dark); color: var(--white); }
.section--stripe { background: var(--navy-light); }

.section-intro { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--gold);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
  max-width: 22ch;
  margin-bottom: 1rem;
}
.section-title--white { color: var(--white); }
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--slate-500);
  max-width: 54ch;
  line-height: 1.75;
}
.section-subtitle--white { color: rgb(255 255 255 / .75); }
.section-intro--centered { text-align: center; }
.section-intro--centered .section-title,
.section-intro--centered .section-subtitle,
.section-intro--centered .section-eyebrow {
  margin-inline: auto;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}
.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; color: var(--gold); }
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .625rem;
}
.card-body {
  font-size: .9375rem;
  color: var(--slate-500);
  line-height: 1.7;
}
.card-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.card-list li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .9rem;
  color: var(--slate-600);
}
.card-list li::before {
  content: '';
  display: block;
  width: .375rem;
  height: .375rem;
  border-radius: 50%;
  background: var(--gold);
  margin-top: .55rem;
  flex-shrink: 0;
}

/* ─── Grid Layouts ───────────────────────────────────────────────────────── */
.grid-2  { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-3  { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-4  { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px)  { .grid-3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4,1fr); } }

/* ─── Stats Bar ──────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2,1fr);
}
@media (min-width: 640px)  { .stats-grid { grid-template-columns: repeat(4,1fr); } }
.stat-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  font-family: var(--font-serif);
}
.stat-label {
  font-size: .8125rem;
  color: var(--slate-500);
  margin-top: .375rem;
}

/* ─── CTA Banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgb(200 134 10 / .12) 0%, transparent 70%);
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 28ch;
  margin-inline: auto;
}
.cta-banner-desc {
  color: rgb(255 255 255 / .75);
  font-size: 1.0625rem;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

/* ─── Projects / Portfolio ───────────────────────────────────────────────── */
.project-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.project-card-stripe {
  height: .375rem;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}
.project-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
}
.badge-sector { background: var(--navy-light); color: var(--navy); }
.badge-year   { background: var(--gold-pale); color: var(--gold); }
.project-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .75rem;
  line-height: 1.35;
}
.project-client {
  font-size: .8125rem;
  color: var(--slate-400);
  font-weight: 500;
  margin-bottom: .875rem;
  display: flex;
  align-items: center;
  gap: .375rem;
}
.project-summary {
  font-size: .9375rem;
  color: var(--slate-500);
  line-height: 1.7;
  flex: 1;
}

/* ─── About / Team ───────────────────────────────────────────────────────── */
.team-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4,1fr); } }

.team-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.team-avatar {
  height: 10rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-avatar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,.2) 0%, transparent 100%);
}
.team-initials {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  user-select: none;
}
.team-card-body { padding: 1.5rem; }
.team-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}
.team-title {
  font-size: .8125rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .875rem;
}
.team-bio { font-size: .875rem; color: var(--slate-500); line-height: 1.65; }

/* ─── Values / Process steps ─────────────────────────────────────────────── */
.process-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(3,1fr); } }
.process-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.process-number {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 3rem;
  font-weight: 900;
  color: var(--slate-100);
  line-height: 1;
  font-family: var(--font-serif);
}
.process-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.process-title { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: .75rem; }
.process-body  { font-size: .9375rem; color: var(--slate-500); line-height: 1.7; }

/* ─── Contact ────────────────────────────────────────────────────────────── */
.contact-layout {
  display: flex;
  justify-content: center;
  gap: 3rem;
}
.contact-layout--centered {
  max-width: 40rem;
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .contact-layout:not(.contact-layout--centered) { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
}
.contact-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}
.contact-info p { font-size: 1.0625rem; color: var(--slate-500); line-height: 1.7; margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 1.125rem; height: 1.125rem; color: var(--gold); }
.contact-item-label { font-size: .75rem; font-weight: 600; color: var(--slate-400); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .25rem; }
.contact-item-value { font-size: .9375rem; color: var(--slate-700); font-weight: 500; }
.contact-item-value a { color: var(--navy-mid); }
.contact-item-value a:hover { color: var(--gold); }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}
.form-title { font-size: 1.375rem; font-weight: 700; color: var(--navy); margin-bottom: 1.75rem; }
.form-grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: repeat(2,1fr); } }
.form-group { display: flex; flex-direction: column; gap: .375rem; margin-bottom: 1.25rem; }
.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--slate-700);
}
.form-label span { font-weight: 400; color: var(--slate-400); }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: .9375rem;
  color: var(--slate-900);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-sans);
}
.form-control:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgb(26 74 122 / .12);
}
.form-control.is-invalid { border-color: #e53e3e; box-shadow: 0 0 0 3px rgb(229 62 62 / .12); }
textarea.form-control { resize: vertical; min-height: 9rem; }
.form-alert {
  padding: .875rem 1rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.form-alert--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.form-alert--error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.honeypot { display: none !important; visibility: hidden; }
.form-submit { width: 100%; justify-content: center; padding: .875rem; font-size: 1rem; }

/* ─── About page extras ──────────────────────────────────────────────────── */
.about-intro {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .about-intro { grid-template-columns: 1fr 1fr; align-items: center; } }

.about-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.about-visual-bg {
  height: 22rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0d1f35 100%);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  border: 2px solid #c8a84b;
  transition: border-color .15s;
}
.about-visual-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

.values-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px)  { .values-grid { grid-template-columns: repeat(2,1fr); } }
.value-item { display: flex; gap: 1rem; align-items: flex-start; }
.value-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.value-icon svg { width: 1.125rem; height: 1.125rem; color: var(--gold); }
.value-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.value-body  { font-size: .875rem; color: var(--slate-500); line-height: 1.6; }

/* ─── Page header ────────────────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #081929 0%, #0d2b4e 60%, #0f3560 100%);
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / .03) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .03) 1px, transparent 1px);
  background-size: 3rem 3rem;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .875rem;
}
.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--gold);
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  max-width: 24ch;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-hero-desc {
  font-size: 1.0625rem;
  color: rgb(255 255 255 / .7);
  max-width: 54ch;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ─── Dividers / Decorative ──────────────────────────────────────────────── */
.divider-gold {
  width: 3rem;
  height: .25rem;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ─── Contact New Layout ─────────────────────────────────────────────────── */
.contact-section-new {
  padding-top: 5rem;
  background-color: #fff;
}
.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}
.contact-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}
.contact-header p {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 6rem;
}
.contact-link-item {
  width: 100%;
}
.contact-link-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 50px;
  background-color: #f0f0f0;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
  color: #1a1a1a;
}
.contact-link-btn:hover {
  background-color: #e8e8e8;
  transform: translateY(-2px);
}
.contact-link-btn .link-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #26c1cf;
  margin-bottom: 0.25rem;
}
.contact-link-btn .link-value {
  font-size: 1.25rem;
  font-weight: 600;
}
.btn-submit-new {
  width: 100%;
  padding: 1.25rem;
  border: none;
  border-radius: 50px;
  background-color: #26c1cf;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-submit-new:hover {
  background-color: #1faab8;
}

.contact-footer-info {
  margin-top: 4rem;
}
.gray-band {
  background-color: #eeeeee;
  padding: 4rem 0;
  position: relative;
}
.teal-band {
  background-color: #26c1cf;
  height: 6rem;
}
.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.info-icon {
  width: 80px;
  height: 80px;
  background-color: #26c1cf;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.5rem;
  margin-top: -6rem; /* Pull up to sit on the edge */
  border: 4px solid #fff;
}
.info-icon svg {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  stroke: #ffffff;
}
.info-item h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #1a1a1a;
  text-transform: uppercase;
}
.info-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .contact-links {
    margin-bottom: 4rem;
  }
  .footer-info-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .info-icon {
    margin-top: -6rem;
  }
  .gray-band {
    padding-top: 6rem;
  }
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: rgb(255 255 255 / .7); }
.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(3rem,7vw,5.5rem) var(--gutter) 3rem;
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 1fr 1.8fr; } }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.footer-desc { font-size: .9375rem; line-height: 1.7; max-width: 36ch; }
.footer-cols { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3,1fr); } }
.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col-list a {
  font-size: .9rem;
  color: rgb(255 255 255 / .6);
  transition: color var(--transition);
}
.footer-col-list a:hover { color: var(--gold); }
.footer-address { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; line-height: 1.5; }
.footer-address a { color: rgb(255 255 255 / .6); }
.footer-address a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.5rem var(--gutter);
  border-top: 1px solid rgb(255 255 255 / .07);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
  font-size: .8125rem;
  color: rgb(255 255 255 / .4);
}
.footer-dev-link {
  color: rgb(255 255 255 / .6);
  text-decoration: none;
  transition: color .2s;
}
.footer-dev-link:hover {
  color: var(--gold);
}

/* ─── Error page ─────────────────────────────────────────────────────────── */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--gutter);
  background: var(--slate-50);
}
.error-code {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  opacity: .08;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.error-inner { position: relative; }
.error-title { font-size: 2rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.error-desc  { font-size: 1.0625rem; color: var(--slate-500); margin-bottom: 2rem; }

/* ─── Scroll reveal animations ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ─── Utility ────────────────────────────────────────────────────────────── */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.text-center { text-align: center; }
.mt-1  { margin-top: .25rem; }
.mt-2  { margin-top: .5rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.flex  { display: flex; }
.items-center { align-items: center; }
.gap-4 { gap: 1rem; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* ─── Smooth border-radius ────────────────────────────────────────────────── */
@supports (border-radius: env(safe-area-inset-bottom)) {
  .card, .form-card, .team-card, .project-card { border-radius: var(--radius-xl); }
}

/* ─── Team photo cards ───────────────────────────────────────────────────── */
.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--slate-100);
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease;
}
.team-card:hover .team-photo { transform: scale(1.04); }
.team-card { overflow: hidden; padding: 0; }
.team-card .team-card-body { padding: 1.5rem; }

/* ─── Project cards with images ─────────────────────────────────────────── */
.project-card--img { padding: 0; overflow: hidden; }
.project-card--img .project-card-body { padding: 1.5rem; }
.project-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-200);
}
.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card--img:hover .project-card-img { transform: scale(1.04); }

/* ─── Projects carousel section (navy background) ────────────────────────── */
.proj-carousel-section {
  background: var(--navy);
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 6rem);
}
.proj-carousel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.section-eyebrow--light {
  color: var(--gold);
}
.section-title--light {
  color: var(--white);
}
.section-subtitle--light {
  color: rgb(255 255 255 / .65);
}
.proj-carousel-controls {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  padding-top: .5rem;
}
.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / .25);
  color: var(--white);
  background: rgb(255 255 255 / .06);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.carousel-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* Viewport clips the sliding track */
.proj-carousel-viewport {
  overflow: hidden;
  padding-inline: var(--gutter);
  margin-bottom: 2rem;
}
.proj-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Each slide */
.proj-slide {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
@media (max-width: 1024px) {
  .proj-slide { flex: 0 0 calc(50% - .75rem); }
}
@media (max-width: 640px) {
  .proj-slide { flex: 0 0 calc(90%); }
}
.proj-slide-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-200);
}
.proj-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.proj-slide:hover .proj-slide-img { transform: scale(1.04); }
.proj-slide-body { padding: 1.5rem; }
.proj-slide-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.proj-slide-client {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--slate-500);
  margin-bottom: .75rem;
}
.proj-slide-summary {
  font-size: .875rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Dots */
.proj-carousel-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2rem;
}
.carousel-dot {
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
  border: none;
  background: rgb(255 255 255 / .3);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.active, .carousel-dot:hover {
  background: var(--gold);
  transform: scale(1.3);
}

/* Reveal delay-4 */
.reveal-delay-4 { transition-delay: .4s; }
