/* ============================================================
   Global Gateway Crewing Services Inc. — site styles
   Aesthetic: refined editorial-maritime
   Brand: deep-sea teal #034D58 + brass-gold accent + warm paper
   ============================================================ */

:root {
  --deep:      #022a30;
  --teal-900:  #034d58;
  --teal-800:  #06606d;
  --teal-700:  #0a7482;
  --teal-500:  #048d9b;
  --teal-300:  #7cbdc5;
  --teal-100:  #e2f0f1;
  --gold:      #c39a4e;
  --gold-soft: #e4c987;
  --gold-btn:   #f7b32b;  /* bright, energetic CTA gold (buttons only) */
  --gold-btn-h: #ffc24d;  /* hover: brighter still */
  --paper:     #f7f4ee;
  --sand:      #efe7d9;
  --ink:       #112a2f;
  --muted:     #566c71;
  --line:      rgba(3, 77, 88, .14);
  --white:     #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(2, 42, 48, .06);
  --shadow-md: 0 18px 44px -18px rgba(2, 42, 48, .34);
  --shadow-lg: 0 40px 90px -30px rgba(2, 42, 48, .5);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; color: var(--teal-900); }
.eyebrow {
  font-family: var(--sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: .22em;
  font-size: .74rem; color: var(--gold);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow.center { justify-content: center; }
h2.section-title { font-size: clamp(2rem, 4.4vw, 3.35rem); margin: .35em 0 .5em; }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.28rem); color: var(--muted); max-width: 60ch; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
section { position: relative; }
.pad { padding-block: clamp(72px, 9vw, 132px); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--gold-btn); --fg: #2a2000;
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .96rem; letter-spacing: .01em;
  padding: .92em 1.5em; border-radius: 999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: 0 10px 26px -10px rgba(247, 179, 43, .8);
  white-space: nowrap;
}
.btn:hover { --bg: var(--gold-btn-h); transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(247, 179, 43, .95); }
.btn .arw { transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn.ghost { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn.ghost:hover { --bg: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9); }
.btn.dark { --bg: var(--teal-900); --fg: #fff; box-shadow: 0 12px 26px -14px rgba(3,77,88,.9); }
.btn.dark:hover { --bg: var(--teal-800); }
.btn.lg { padding: 1.05em 1.8em; font-size: 1rem; }
.btn.fb { --bg: #1877f2; --fg: #fff; box-shadow: 0 12px 26px -14px rgba(24,119,242,.85); }
.btn.fb:hover { --bg: #0f63d6; }

.textlink {
  font-weight: 700; color: var(--teal-700); display: inline-flex; gap: .45em; align-items: center;
  border-bottom: 2px solid transparent; padding-bottom: 1px; transition: border-color .3s, gap .3s;
}
.textlink:hover { border-color: var(--gold); gap: .7em; }

/* light-background badge (used outside the dark hero) */
.pill-light {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  background: #fff; border: 1px solid var(--line); color: var(--teal-900);
  padding: .5em 1.1em; border-radius: 999px; box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.pill-light .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold-soft); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s, padding .4s;
  padding-block: 18px;
}
.site-header.scrolled {
  background: rgba(247, 244, 238, .88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding-block: 10px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; transition: height .4s var(--ease), filter .35s ease; }
.scrolled .brand img { height: 40px; }
/* teal hero + not scrolled = flip the teal logo to white so it stays visible */
.site-header:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
.brand .brand-txt { display: none; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links a {
  font-weight: 600; font-size: .95rem; color: var(--teal-900); position: relative;
  opacity: .85; transition: opacity .25s;
}
.site-header:not(.scrolled) .nav-links a { color: #eaf6f6; opacity: .82; text-shadow: 0 1px 12px rgba(2,42,48,.4); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover { opacity: 1; } .nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-links > .btn { display: none; } /* desktop: Apply lives in .nav-cta only; this copy is for the mobile menu */
.site-header:not(.scrolled) .nav .btn.dark { --bg: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.site-header:not(.scrolled) .nav .btn.dark:hover { --bg: rgba(255,255,255,.24); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2px; background: var(--teal-900); transition: .3s var(--ease); border-radius: 2px; }
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }
/* hamburger animates into a white X when the menu is open (the close button) */
.site-header.mobile-open .nav-toggle { z-index: 120; }
.site-header.mobile-open .nav-toggle span { background: #fff; }
.mobile-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-open .nav-toggle span:nth-child(2) { opacity: 0; }
.mobile-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; color: #eaf6f6; padding-top: clamp(120px, 16vh, 180px); padding-bottom: clamp(90px, 12vw, 150px);
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(4,141,155,.55), transparent 55%),
    radial-gradient(90% 80% at 0% 110%, rgba(2,42,48,.9), transparent 60%),
    linear-gradient(155deg, var(--teal-900) 0%, var(--deep) 100%);
  overflow: hidden;
}
.hero::before { /* faint compass/latitude lines */
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 84px);
  mask-image: radial-gradient(120% 100% at 70% 30%, #000, transparent 75%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero-copy { max-width: 620px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: .6em; font-size: .8rem; font-weight: 600; letter-spacing: .03em;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); color: #dff1f1;
  padding: .5em 1em; border-radius: 999px; margin-bottom: 26px;
}
.hero .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 12px var(--gold-soft); }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 6vw, 4.9rem); font-weight: 400; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .lede { color: #c6dee0; margin: 1.1em 0 2em; max-width: 52ch; font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-figure { position: relative; }
.hero-figure .frame {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.14);
  aspect-ratio: 4 / 3.5;
}
/* image kept at its original width/zoom and centered; the shorter frame simply
   clips the ceiling and floor — a true top/bottom crop, not a shrink */
.hero-figure .frame img {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 112%; height: auto; max-width: none;
}
.hero-figure .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(2,42,48,.35)); }
.hero-figure .tag {
  position: absolute; left: -14px; bottom: 26px; background: var(--paper); color: var(--teal-900);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-md); max-width: 220px;
}
.hero-figure .tag strong { font-family: var(--serif); font-size: 1.45rem; display: block; line-height: 1; }
.hero-figure .tag span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; line-height: 1.3; }
.hero-figure .tag .wi { color: var(--teal-700); margin-top: 2px; }
.hero-figure .tag .wi::before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: 4px; }
.hero-figure .badge-float {
  position: absolute; right: -10px; top: 26px; background: #fff; border-radius: 14px; padding: 10px 14px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .82rem; color: var(--teal-900);
}
.hero-figure .badge-float img { height: 30px; width: auto; }
.hero-figure .badge-float span { display: flex; flex-direction: column; line-height: 1.18; }
.hero-figure .badge-float small { font-size: .66rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }

/* wave divider */
.wave { display: block; width: 100%; height: auto; line-height: 0; }
.wave svg { display: block; width: 100%; height: clamp(40px, 6vw, 80px); }

/* ============================================================
   CREDENTIALS STRIP
   ============================================================ */
.creds { background: var(--paper); padding-block: clamp(30px, 4vw, 46px); }
.creds-inner { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 60px); flex-wrap: wrap; }
.creds .label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.creds .lic-lead { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.creds .licno { font-size: .74rem; font-weight: 800; letter-spacing: .03em; color: var(--teal-900); border: 1px solid var(--gold); background: rgba(195,154,78,.12); border-radius: 8px; padding: .42em .75em; white-space: nowrap; }
.creds .logos { display: flex; align-items: center; gap: clamp(22px, 4vw, 46px); flex-wrap: wrap; justify-content: center; }
.creds .logos img { height: 52px; width: auto; filter: saturate(1); opacity: .92; transition: transform .3s, opacity .3s; }
.creds .logos img.tall { height: 58px; }
.creds .logos img:hover { transform: translateY(-3px); opacity: 1; }
.creds .iso { text-align: center; }
.creds .iso b { font-family: var(--serif); font-size: 1.05rem; color: var(--teal-900); display: block; }
.creds .iso span { font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--teal-900); color: #dff1f1; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.stat { padding: 6px 0; border-left: 1px solid rgba(255,255,255,.16); padding-left: 22px; }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num { font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 3.5rem); color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat .num .u { color: var(--gold-soft); }
.stat .cap { font-size: .92rem; color: #a9cdd0; margin-top: .5em; font-weight: 500; }

/* ============================================================
   generic section header
   ============================================================ */
.sec-head { max-width: 62ch; }
.sec-head.center { margin-inline: auto; }

/* ---------- ABOUT ---------- */
.about .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.about .imgstack { position: relative; }
.about .imgstack .big { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5/4; }
.about .imgstack .big img { width: 100%; height: 100%; object-fit: cover; }
.about .imgstack .small {
  position: absolute; right: -18px; bottom: -28px; width: 46%; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-md); border: 5px solid var(--paper); aspect-ratio: 4/3;
}
.about .imgstack .small img { width: 100%; height: 100%; object-fit: cover; }
.about .imgstack .stamp {
  position: absolute; left: -22px; top: -22px; background: var(--gold); color: #26200e;
  font-family: var(--serif); border-radius: 50%; width: 108px; height: 108px; display: grid; place-content: center;
  text-align: center; line-height: 1.05; box-shadow: var(--shadow-md); transform: rotate(-8deg);
}
.about .imgstack .stamp b { font-size: 1.9rem; display: block; } .about .imgstack .stamp span { font-size: .62rem; font-weight: 700; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.about p + p { margin-top: 1.1em; }
.about .mini { margin-top: 1.8em; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about .mini .m { display: flex; gap: 12px; align-items: flex-start; }
.about .mini .m svg { flex: none; width: 26px; height: 26px; color: var(--teal-500); margin-top: 3px; }
.about .mini .m b { display: block; color: var(--teal-900); font-family: var(--serif); font-size: 1.05rem; }
.about .mini .m span { font-size: .9rem; color: var(--muted); }

/* ============================================================
   FOR SEAFARERS
   ============================================================ */
.seafarers { background: linear-gradient(180deg, var(--sand), var(--paper)); }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.benefit {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px;
  transition: transform .4s var(--ease), box-shadow .4s; box-shadow: var(--shadow-sm);
}
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.benefit .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-100); color: var(--teal-700);
  display: grid; place-content: center; margin-bottom: 14px; }
.benefit .ic svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 1.16rem; color: var(--teal-900); margin-bottom: .3em; }
.benefit p { font-size: .93rem; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; counter-reset: step; }
.step { position: relative; padding-top: 20px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 3rem; color: var(--teal-300); line-height: 1; display: block; margin-bottom: .1em;
}
.step h4 { font-family: var(--serif); font-weight: 500; color: var(--teal-900); font-size: 1.28rem; margin-bottom: .25em; }
.step p { font-size: .94rem; color: var(--muted); }
.step .bar { position: absolute; top: 34px; left: 62px; right: -10px; height: 2px; background: linear-gradient(90deg, var(--teal-300), transparent); }
.step:last-child .bar { display: none; }

.crewrail { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.crewrail figure { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.crewrail figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.crewrail figure:hover img { transform: scale(1.06); }
.crewrail figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: #fff; font-size: .82rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(2,42,48,.82)); display: flex; align-items: center; gap: 8px;
}
.crewrail figcaption::before { content: "⚓"; color: var(--gold-soft); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--deep); color: #dbeced; }
.services h2, .services .sec-head h2 { color: #fff; }
.services .lede { color: #9fc3c6; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 54px; }
.svc {
  position: relative; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 30px 26px; overflow: hidden;
  transition: transform .4s var(--ease), background .4s, border-color .4s;
}
.svc::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.svc:hover { transform: translateY(-6px); background: rgba(4,141,155,.14); border-color: rgba(124,189,197,.4); }
.svc:hover::before { transform: scaleY(1); }
.svc .n { font-family: var(--serif); font-size: .95rem; color: var(--gold-soft); opacity: .8; }
.svc h3 { color: #fff; font-size: 1.3rem; margin: .5em 0 .4em; }
.svc p { font-size: .92rem; color: #a7cace; }
.svc.feature { grid-column: span 1; }

/* ============================================================
   VESSELS
   ============================================================ */
.vessels { padding: 0; position: relative; color: #fff; min-height: 440px; display: grid; }
.vessels img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vessels .veil { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(2,42,48,.94) 30%, rgba(2,42,48,.5) 70%, rgba(2,42,48,.2)); }
.vessels .wrap { position: relative; padding-block: clamp(72px, 9vw, 120px); align-self: center; }
.vessels .sec-head h2 { color: #fff; } .vessels .lede { color: #cfe4e6; }
.vtypes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.vtypes span { border: 1px solid rgba(255,255,255,.32); border-radius: 999px; padding: .55em 1.15em; font-weight: 600; font-size: .9rem; background: rgba(255,255,255,.06); }
.vtypes span b { color: var(--gold-soft); font-weight: 700; }

/* ============================================================
   GROUP / NETWORK
   ============================================================ */
.group .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.group .mapwrap { position: relative; }
.group .mapwrap img { width: 100%; filter: drop-shadow(0 20px 40px rgba(2,42,48,.15)); }
.group .mapwrap .pin { position: absolute; font-weight: 700; font-size: .78rem; color: var(--teal-900); background: #fff; padding: .3em .7em; border-radius: 999px; box-shadow: var(--shadow-sm); }
.affil { display: grid; gap: 12px; }
.affil li {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease);
}
.affil li:hover { transform: translateX(6px); }
.affil li.lead { background: var(--teal-900); color: #eaf6f6; border-color: transparent; }
.affil li.lead h4 { color: #fff; } .affil li.lead p { color: #a9cdd0; } .affil li.lead .yr { color: var(--gold-soft); }
.affil .yr { font-family: var(--serif); font-size: 1.5rem; color: var(--teal-500); line-height: 1; flex: none; width: 58px; }
.affil h4 { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; color: var(--teal-900); }
.affil p { font-size: .88rem; color: var(--muted); }

/* ============================================================
   QUALITY
   ============================================================ */
.quality { background: linear-gradient(180deg, var(--paper), var(--sand)); }
.qgrid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.award {
  background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.award::after { content: "★"; position: absolute; right: -14px; top: -18px; font-size: 8rem; color: var(--gold); opacity: .1; }
.award .rib { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.award blockquote { font-family: var(--serif); font-size: clamp(1.35rem, 2.5vw, 1.9rem); color: var(--teal-900); line-height: 1.25; margin: .5em 0; }
.award cite { font-style: normal; font-size: .9rem; color: var(--muted); font-weight: 600; }
.qlist { display: grid; gap: 14px; }
.qlist li { display: flex; gap: 14px; align-items: flex-start; }
.qlist li svg { flex: none; width: 26px; height: 26px; color: var(--teal-500); margin-top: 2px; }
.qlist b { color: var(--teal-900); font-family: var(--serif); font-weight: 500; font-size: 1.1rem; display: block; }
.qlist span { font-size: .92rem; color: var(--muted); }

/* ============================================================
   OFFICES / CONTACT
   ============================================================ */
.offices .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.office {
  /* light theme (default for the branch cards) */
  --card-fg: var(--muted); --card-title: var(--teal-900); --card-icon: var(--teal-500);
  --card-hours: var(--teal-700); --card-hours-border: var(--line); --card-tag: var(--gold);
  background: var(--white); color: var(--card-fg);
  border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px;
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform .4s var(--ease), box-shadow .4s, background .4s var(--ease);
}
.office:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
/* dark/highlighted theme — Manila by default, AND whichever card the mouse is over */
.office.main, .offices .office:hover {
  background: var(--teal-900);
  --card-fg: #b7d6d9; --card-title: #ffffff; --card-icon: var(--gold-soft);
  --card-hours: var(--gold-soft); --card-hours-border: rgba(255,255,255,.18); --card-tag: var(--gold-soft);
}
/* when the mouse is over a different card, Manila drops back to the light theme */
.offices .grid:has(.office:hover) .office.main:not(:hover) {
  background: var(--white);
  --card-fg: var(--muted); --card-title: var(--teal-900); --card-icon: var(--teal-500);
  --card-hours: var(--teal-700); --card-hours-border: var(--line); --card-tag: var(--gold);
}
.office .tagline { position: absolute; top: 22px; right: 22px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--card-tag); transition: color .35s; }
.office h3 { font-size: 1.4rem; margin-bottom: .4em; display: flex; align-items: center; gap: 8px; color: var(--card-title); transition: color .35s; }
.office a { color: var(--card-title); transition: color .35s; }
.office .row { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; margin-top: .8em; color: var(--card-fg); transition: color .35s; }
.office .row svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--card-icon); transition: color .35s; }
.office .row a:hover { color: var(--gold); }
.office .hours { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--card-hours-border); font-size: .85rem; font-weight: 600; color: var(--card-hours); transition: color .35s, border-color .35s; }
.walkin { text-align: center; margin-top: 30px; font-weight: 600; color: var(--muted); }
.walkin b { color: var(--teal-900); }
.offices .office-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  color: #eaf6f6; text-align: center;
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(4,141,155,.5), transparent 60%),
    linear-gradient(160deg, var(--teal-900), var(--deep));
  position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 70px); mask-image: radial-gradient(80% 100% at 50% 0%, #000, transparent 70%); }
.cta .wrap { position: relative; }
.cta h2 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 400; }
.cta h2 em { font-style: italic; color: var(--gold-soft); }
.cta p { color: #c6dee0; max-width: 54ch; margin: 1em auto 2em; font-size: 1.12rem; }
.cta .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--deep); color: #9fc3c6; padding-block: clamp(56px, 7vw, 84px) 30px; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .logo img { height: 74px; width: auto; margin-bottom: 16px; }
.footer .logo p { font-size: .9rem; max-width: 34ch; color: #8fb4b8; }
.footer h5 { color: #fff; font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a { font-size: .92rem; color: #a9cdd0; transition: color .25s; }
.footer a:hover { color: var(--gold-soft); }
.footer .lic { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; color: var(--gold-soft); border: 1px solid rgba(228,201,135,.35); border-radius: 8px; padding: .4em .8em; }
.footer .bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #7ba0a4;
}
.footer .bottom a { color: #7ba0a4; }
.footer .powered { display: inline-flex; align-items: center; gap: 9px; opacity: .82; transition: opacity .25s; }
.footer .powered:hover { opacity: 1; }
.footer .powered span { font-size: .78rem; color: #7ba0a4; font-weight: 500; letter-spacing: .01em; }
.footer .powered img { height: 19px; width: auto; display: block; }
.footer .social { display: flex; gap: 10px; }
.footer .social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-content: center; border: 1px solid rgba(255,255,255,.16); transition: .3s; }
.footer .social a:hover { background: var(--gold); color: #26200e; border-color: var(--gold); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; }

/* hero staggered load */
@keyframes riseIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero .anim { opacity: 0; animation: riseIn .95s var(--ease) forwards; }
.hero .anim.a1 { animation-delay: .1s; } .hero .anim.a2 { animation-delay: .24s; }
.hero .anim.a3 { animation-delay: .38s; } .hero .anim.a4 { animation-delay: .52s; } .hero .anim.a5 { animation-delay: .66s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .benefits, .steps, .svc-grid, .offices .grid, .crewrail { grid-template-columns: repeat(2, 1fr); }
  .step .bar { display: none; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  /* keep a compact Apply button always visible in the top bar on mobile */
  .nav-cta .btn { display: inline-flex; padding: .6em 1.05em; font-size: .85rem; }
  .nav-toggle { display: flex; }
  /* when the menu is open, drop the header's blur/background so the fixed fullscreen
     overlay is positioned against the viewport (a backdrop-filter would trap it in the header box) */
  .site-header.mobile-open { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-open .nav-links {
    display: flex; position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--teal-900); z-index: 105; font-size: 1.4rem;
  }
  .mobile-open .nav-links a { color: #fff !important; font-family: var(--serif); }
  .mobile-open .nav-links .btn { display: inline-flex; }
  .hero-grid, .about .grid, .group .grid, .qgrid { grid-template-columns: 1fr; }
  /* copy + CTA first, photo after — so the Apply button is high on the page.
     width:100% is required: the frame's img is absolutely-positioned (no intrinsic
     width), and margin:auto turns off grid-stretch, so without it the figure collapses. */
  .hero-figure { width: 100%; max-width: 440px; margin-inline: auto; }
  .hero { padding-top: clamp(104px, 15vh, 150px); }
  .stats .wrap { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .stat { border-left: none; padding-left: 0; }
  .about .imgstack { max-width: 500px; margin: 0 auto 34px; }
  .about .imgstack .small { width: 42%; }
}
@media (max-width: 560px) {
  .benefits, .steps, .svc-grid, .offices .grid, .crewrail, .about .mini { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr; gap: 28px; }
  .footer .bottom { flex-direction: column; }
  .footer .powered { order: 2; margin-top: 6px; } /* push "Powered by" to the very bottom on mobile */
  .crewrail { grid-template-columns: 1fr; }
  .hero-actions .btn { justify-content: center; }

  /* mobile hero = visual-first: photo (with DMW + offices badges) -> Apply -> headline -> lede */
  .hero-grid { gap: 20px; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; }
  .hero .lede { order: 2; margin: 0; }
  .hero-figure { order: 3; }
  .hero-actions { order: 4; flex-direction: column; align-items: stretch; }
  /* keep the trust badges on the photo, sized for small screens */
  .hero-figure .tag { left: 8px; bottom: 10px; padding: 9px 12px; }
  .hero-figure .tag strong { font-size: 1.2rem; }
  .hero-figure .badge-float { right: 8px; top: 10px; padding: 7px 10px; gap: 7px; }
  .hero-figure .badge-float img { height: 24px; }
  .hero-figure .badge-float small { font-size: .58rem; }
}
