/* =========================================================
   Wonder Geoservices — Main Stylesheet
   File: css/styles.css
   ========================================================= */


/* ─────────────────────────────────────
   0. GOTHAM FONT FACES (local, no CDN)
───────────────────────────────────── */

/* Book — body text */
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-BookItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Light */
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Medium — semi-bold equivalent */
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Medium.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-MediumItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Ultra — display/hero headings */
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Ultra.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── GothamNarrow — condensed display variant ── */

@font-face {
  font-family: 'GothamNarrow';
  src: url('../fonts/GothamNarrow-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GothamNarrow';
  src: url('../fonts/GothamNarrow-BookItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GothamNarrow';
  src: url('../fonts/GothamNarrow-Medium.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GothamNarrow';
  src: url('../fonts/GothamNarrow-MediumItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GothamNarrow';
  src: url('../fonts/GothamNarrow-Black.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GothamNarrow';
  src: url('../fonts/GothamNarrow-BlackItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'GothamNarrow';
  src: url('../fonts/GothamNarrow-Ultra.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


/* ─────────────────────────────────────
   1. RESET & BASE
───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:  #0d1e3d;
  --deep:  #091729;
  --blue:  #1460a8;
  --sky:   #2196f3;
  --aqua:  #00b4d8;   /* original cyan-blue — used throughout hero & accents */
  --green: #9cdd1b;   /* logo green — decorative only, not used in hero */
  --white: #ffffff;
  --muted: #8faabf;
  --text:  #2c3e50;

  /* ── Gotham replaces Barlow everywhere ── */
  --font-display: 'GothamNarrow', 'Gotham', sans-serif;
  --font-body:    'Gotham', sans-serif;

  --transition: .22s ease;
  --shadow-md:  0 12px 32px rgba(0,0,0,.12);
  --shadow-lg:  0 24px 64px rgba(0,0,0,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }
ul  { list-style: none; }


/* ─────────────────────────────────────
   2. TYPOGRAPHY UTILITIES
───────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.05;
  margin-bottom: 20px;
}

.section-body {
  font-size: 16px;
  line-height: 1.8;
  color: #556677;
  max-width: 600px;
  text-align: justify;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--aqua);
  margin: 20px 0 32px;
}


/* ─────────────────────────────────────
   3. LAYOUT UTILITIES
───────────────────────────────────── */
section { padding: 100px 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}


/* ─────────────────────────────────────
   4. BUTTONS
───────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--aqua);
  color: var(--deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 36px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #00d4f8; transform: translateY(-2px); }
.btn-primary--lg   { font-size: 14px; padding: 18px 48px; }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(168,200,232,.4);
  color: #a8c8e8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 36px;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.btn-outline:hover { border-color: var(--aqua); color: var(--aqua); }


/* ─────────────────────────────────────
   5. NAVIGATION
   White background spiced with logo-element decorations:
   - 3px left gradient stripe (logo blue #203276 → aqua #2ed0e3)
   - Faint radial glow behind the logo area (logo blue, 7% opacity)
   - Hairline bottom border in logo blue
───────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;

  /* White base */
  background-color: #ffffff;

  /* CSS-only decorations from logo palette */
  background-image:
    radial-gradient(
      ellipse 260px 72px at 100px 36px,
      rgba(7, 138, 202, 0.07) 0%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      #203276 0%,
      #078aca 52%,
      #2ed0e3 100%
    );
  background-size: 100% 100%, 3px 100%;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat, no-repeat;

  border-bottom: 1px solid rgba(32, 50, 118, 0.10);
  box-shadow: 0 1px 18px rgba(13, 30, 61, 0.07);
  transition: box-shadow var(--transition);
}

/* ── NAV LOGO — wgs-logo-03.svg (wide horizontal, 3:1 aspect ratio) ── */
.nav-logo a {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.nav-logo img {
  /* logo-03 is 3:1 → at 56px height = ~168px wide — big and bold */
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: none;
  transition: opacity var(--transition);
}
.nav-logo a:hover img {
  opacity: 0.82;
}

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: #078aca; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ─────────────────────────────────────
   6. HERO — full-bleed bg, left text, exact mockup
───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--deep);
}

/* Full-bleed rig photo background */
.hero-photo {
  position: absolute;
  inset: 0;
  background: url('../assets/header-rig.png') center center / cover no-repeat;
  z-index: 0;
}

/* Overlay: only top & bottom vignette — full image shows through */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(10,18,40,.60) 0%,
      rgba(10,18,40,.10) 20%,
      rgba(10,18,40,.00) 50%,
      rgba(10,18,40,.20) 80%,
      rgba(10,18,40,.70) 100%);
}

/* Grid */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(156,221,27,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156,221,27,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  from { transform: translateY(0); }
  to   { transform: translateY(60px); }
}

/* Particles */
.particles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--aqua);
  opacity: 0;
  animation: floatUp var(--dur, 8s) var(--delay, 0s) ease-in-out infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: .3; }
  90%  { opacity: .3; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* ── Stat badge — absolute top-right ── */
/* ── Main content block — left, vertically centred ── */
.hero-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 100px 56px 40px;
  max-width: 680px;
}

/* H1 — two lines, each on its own span.
   Reduced so "Precision Geospatial Data." fits one line
   and "Trusted Offshore Results." fits the next.           */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: -.5px;
  margin: 0 0 16px;
  animation: fadeUp .8s .1s both;
  white-space: nowrap;   /* prevents wrapping mid-phrase */
}
.h1-white {
  display: block;
  color: var(--white);
}
.h1-green {
  display: block;
  color: var(--green);
}

/* Industry sub-tagline + body paragraph share a soft dark backdrop
   so they stay legible regardless of what the background image is doing */
.hero-body-text {
  position: relative;
  padding: 14px 18px 14px 14px;
  margin-left: -14px;   /* cancel the padding so text stays left-aligned */
  border-radius: 4px;
  /* background: rgba(6, 14, 30, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); */
}

.hero-industry {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffffff;
  /* strong text-shadow punches through any background colour */
  text-shadow: 0 1px 8px rgba(0,0,0,.65), 0 0 24px rgba(0,0,0,.45);
  margin: 0 0 24px;
  animation: fadeUp .8s .15s both;
}

/* Body paragraph */
.hero-sub {
  font-size: 14.5px;
  font-weight: 400;          /* bumped from 300 — thicker strokes = more readable */
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0,0,0,.70), 0 0 20px rgba(0,0,0,.50);
  line-height: 1.8;
  margin: 0 0 36px;
  animation: fadeUp .8s .2s both;
}

/* CTA row */
.hero-cta {
  display: flex;
  gap: 14px;
  animation: fadeUp .8s .3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Bottom service strip ── */
.hero-anchors {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(8,16,34,.70);
  backdrop-filter: blur(10px);
}

.hero-anchor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 72px;
  color: rgba(180,200,220,.7);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: color var(--transition), background var(--transition);
}
.hero-anchor-item:last-child { border-right: none; }
.hero-anchor-item svg {
  width: 34px;
  height: 34px;
  transition: color var(--transition);
}
.hero-anchor-item:hover { color: var(--green); background: rgba(156,221,27,.05); }
.hero-anchor-item:hover svg { color: var(--green); }


/* ─────────────────────────────────────
   7. ABOUT
───────────────────────────────────── */
.about-section { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

/* ── Carousel wrapper ── */
.about-carousel {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0;
  /* fixed aspect ratio so the box doesn't jump between landscape/portrait images */
  aspect-ratio: 4 / 3;
  background: #000;
}

/* Track holds all slides side by side */
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: none;   /* JS handles per-slide fade, not slide translation */
}

/* Each slide absolutely fills the carousel box */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  flex-shrink: 0;
}
.carousel-slide.active {
  opacity: 1;
  position: relative;   /* active slide takes up space in flow */
  z-index: 1;
}

.about-real-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ── Prev / Next arrow buttons ── */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(9, 23, 41, .55);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--transition), transform var(--transition);
}
.carousel-btn:hover {
  background: rgba(0, 180, 216, .75);
  transform: translateY(-50%) scale(1.1);
}
.carousel-btn svg { width: 18px; height: 18px; }

.carousel-btn--prev { left: 12px; }
.carousel-btn--next { right: 12px; }

/* ── Dot indicators ── */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.active {
  background: #ffffff;
  transform: scale(1.25);
}
.carousel-dot:hover { background: rgba(255,255,255,.6); }


/* ─────────────────────────────────────
   8. SERVICES
───────────────────────────────────── */
.services-section { background: #f5f8fb; }

.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 72px;
}

/* ── 4 cards: 2×2 on desktop, 1 col on mobile ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  grid-auto-rows: 440px;
}

/* ── Flip card wrapper ── */
.service-card {
  perspective: 1000px;
  background: transparent;
  padding: 0;
  position: relative;
  overflow: visible;
  cursor: default;
  min-height: 420px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  transition: transform 0.65s cubic-bezier(.4,0,.2,1);
  transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

/* Front face */
.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 2px;
  overflow: hidden;
}

.service-card-front {
  background: var(--white);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* Green accent line on front */
.service-card-front::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover .service-card-front::before {
  transform: scaleX(1);
}

/* Back face */
.service-card-back {
  transform: rotateY(180deg);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
}

/* Back image — covers full card, position top to show top of tall images */
.service-card-back-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Back overlay so text is readable */
.service-card-back-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9,23,41,.92) 0%,
    rgba(9,23,41,.55) 50%,
    rgba(9,23,41,.15) 100%
  );
}

/* Back content sits above overlay */
.service-card-back-content {
  position: relative;
  z-index: 2;
  padding: 28px 30px;
  width: 100%;
}

.service-card-back-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.15;
}

.service-card-back-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-card-back-list li {
  font-size: 12.5px;
  color: rgba(200,220,240,.85);
  padding: 4px 0 4px 14px;
  position: relative;
  line-height: 1.5;
}
.service-card-back-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 10px;
}

/* Cards without a photo image — solid dark back */
.service-card-back.no-img {
  background: var(--navy);
  justify-content: center;
  align-items: flex-start;
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  color: var(--aqua);
}

.service-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.service-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #667788;
  text-align: justify;
}

.service-list { margin-top: 18px; }
.service-list li {
  font-size: 13px;
  color: #778899;
  padding: 5px 0 5px 16px;
  position: relative;
}
.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--aqua);
  font-size: 11px;
}

/* Hover flip hint label */
.flip-hint {
  margin-top: auto;
  padding-top: 18px;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  opacity: 0.7;
}

/* ── Plain card variant — no flip ── */
.service-card--plain {
  perspective: none;
}
.service-card--plain .service-card-inner {
  transform: none !important;
  transition: none;
}
.service-card--plain .service-card-front {
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card--plain:hover .service-card-front {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card--plain .service-card-front::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card--plain:hover .service-card-front::before {
  transform: scaleX(1);
}



/* ─────────────────────────────────────
   9. SOFTWARE BANNER
───────────────────────────────────── */
.software-section {
  background: var(--navy);
  padding: 72px 0;
}
.software-header {
  text-align: center;
  margin-bottom: 52px;
}
.software-header .section-title { color: var(--white); }

.software-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.sw-chip {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #a8c8e8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 2px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.sw-chip:hover {
  background: rgba(0,180,216,.15);
  border-color: var(--aqua);
  color: var(--aqua);
}


/* ─────────────────────────────────────
   10. TEAM  (mirrors About_Us.jpg template)
   Layout: light bg, 4-column grid
   Col 1 = white intro card (wider)
   Cols 2-4 = portrait member cards
───────────────────────────────────── */
.team-section {
  background: #eef2f7;   /* matches the light grey in template */
}

/* 4-column grid: intro card wider, 3 member cards equal */
.team-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* ── Left intro card ── */
.team-intro-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px 32px;
  box-shadow: 0 2px 16px rgba(13,30,61,.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.team-intro-card .section-label {
  margin-bottom: 12px;
}

.team-intro-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 20px;
}

.team-intro-body {
  font-size: 14px;
  line-height: 1.75;
  color: #556677;
  margin-bottom: 14px;
  text-align: justify;
}
.team-intro-body:last-child { margin-bottom: 0; }

/* ── Member portrait cards ── */
.team-member-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 20px 24px;
  box-shadow: 0 2px 16px rgba(13,30,61,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(13,30,61,.12);
}

/* Circular/rounded photo wrapper — matches template */
.team-member-photo-wrap {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  background: #dce6ef;
  flex-shrink: 0;
  border: 3px solid rgba(0,180,216,.2);
}

.team-member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Placeholder for cards without a photo yet */
.team-member-photo-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dce6f0 0%, #c8d8e8 100%);
}
.team-member-photo-wrap--placeholder svg {
  width: 64px;
  height: 64px;
}

.team-member-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 5px;
  line-height: 1.2;
}

.team-member-role {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 14px;
}

.team-member-bio {
  font-size: 13px;
  line-height: 1.7;
  color: #667788;
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
}

/* Collapsed state — show ~4 lines then fade out */
.team-member-bio.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}

/* Read more / less toggle button */
.bio-toggle {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--aqua);
  cursor: pointer;
  letter-spacing: .5px;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.bio-toggle:hover { color: var(--blue); }
.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stat-num span { color: var(--aqua); }
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}


/* ─────────────────────────────────────
   11. CONNECT / SOCIAL
───────────────────────────────────── */
.connect-section {
  background: var(--navy);
  padding: 80px 0;
}
.connect-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.connect-left .section-title { color: var(--white); }
.connect-left .section-body  { color: var(--muted); }

.social-links { display: flex; gap: 16px; margin-top: 28px; }
.social-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(168,200,232,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8c8e8;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.social-btn:hover {
  border-color: var(--aqua);
  color: var(--aqua);
  background: rgba(0,180,216,.1);
}


/* ─────────────────────────────────────
   12. CONTACT
───────────────────────────────────── */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  font-size: 15px;
  color: #556677;
  line-height: 1.8;
  margin-bottom: 32px;
  text-align: justify;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: #556677;
  font-size: 15px;
}
.contact-detail svg { color: var(--aqua); flex-shrink: 0; }
.contact-detail a   { color: var(--blue); text-decoration: none; }
.contact-detail a:hover { color: var(--aqua); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
}
.required { color: var(--aqua); }

.form-group input,
.form-group textarea {
  border: 1px solid #dde0e8;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fcfcfe;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  resize: vertical;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--aqua);
  background: var(--white);
}
.form-group textarea { min-height: 130px; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-btn {
  align-self: flex-start;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 16px 40px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}
.submit-btn:hover    { background: var(--blue); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.form-msg {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-left: 3px solid transparent;
}
.form-msg--success {
  color: #0d6b3e;
  background: #e8f9f0;
  border-color: #0d6b3e;
}
.form-msg--error {
  color: #8b1a1a;
  background: #fdeaea;
  border-color: #c0392b;
}


/* ─────────────────────────────────────
   13. FOOTER
───────────────────────────────────── */
footer {
  background: var(--deep);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── FOOTER LOGO — wgs-logo-11.svg (monochrome wide horizontal, 3:1) ── */
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  transition: filter var(--transition), opacity var(--transition);
}
.footer-logo-link:hover { opacity: .75; }
.footer-logo-link img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  /* brightness(0) → collapses to black, invert(1) → flips to white */
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(0,180,216,.2));
}

footer p {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
footer a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: color var(--transition);
}
footer a:hover { color: var(--aqua); }


/* ─────────────────────────────────────
   14. RESPONSIVE
───────────────────────────────────── */
@media (max-width: 1100px) {
  /* Team: collapse to 2-col (intro card spans full row, then 3 cards 2+1) */
  .team-layout {
    grid-template-columns: 1fr 1fr;
  }
  .team-intro-card {
    grid-column: 1 / -1;   /* intro card spans full width */
  }
}

@media (max-width: 900px) {
  #navbar { padding: 0 24px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    padding: 12px 0 20px;
    border-bottom: 1px solid rgba(20,96,168,.15);
    box-shadow: 0 8px 24px rgba(13,30,61,.10);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; font-size: 14px; color: var(--navy); }

  .hero-content     { padding: 110px 24px 32px; }
  .hero-cta         { flex-direction: column; align-items: flex-start; }
  .hero-anchors     { gap: 0; }
  .hero-anchor-item { padding: 16px 20px; font-size: 10px; flex: 1; }

  .container { padding: 0 24px; }
  section    { padding: 72px 0; }

  .about-grid,
  .contact-grid,
  .connect-inner,
  .services-intro { grid-template-columns: 1fr; gap: 40px; }

  .services-grid  { grid-template-columns: 1fr; grid-auto-rows: 400px; }
  .service-card   { min-height: 400px; }

  /* Team: stack intro card then 1-col cards on mobile */
  .team-layout    { grid-template-columns: 1fr; }

  .team-stats     { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .connect-inner { text-align: center; flex-direction: column; align-items: center; }
  .connect-left .section-body { margin: 0 auto; }
  .social-links { justify-content: center; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-logo-link img { height: 48px; max-width: 190px; }
}

@media (max-width: 480px) {
  .hero h1         { font-size: 24px; white-space: normal; }
  .section-title   { font-size: 30px; }
  /* service-card padding handled by service-card-front */
  .team-stats      { grid-template-columns: 1fr; }
  .nav-logo img    { height: 44px; max-width: 160px; }
  .footer-logo-link img { height: 44px; max-width: 160px; }
}