/* =========================================================
   GMB Marine Group — Design System
   Font: Montserrat. Palette sampled from the company crest.
   ========================================================= */

:root {
  /* Brand palette (sampled from logo) */
  --navy-deep:   #052846;
  --navy:        #074f87;
  --blue:        #0282c1;
  --blue-bright: #0aa2e8;
  --blue-pale:   #eaf5fb;
  --silver-100:  #f4f5f6;
  --silver-200:  #e2e5e8;
  --silver-300:  #c3c8cd;
  --steel-600:   #5b6167;
  --charcoal:    #16191c;
  --white:       #ffffff;

  --ink:         #16191c;
  --ink-soft:    #4b5157;
  --line:        #e5e8eb;

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w: 1240px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 2px 10px rgba(5, 40, 70, 0.06);
  --shadow-md: 0 12px 32px rgba(5, 40, 70, 0.12);
  --shadow-lg: 0 24px 60px rgba(5, 40, 70, 0.20);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; line-height: 1.7; color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.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;
}

/* Shows a photo fully (never cropped) with a blurred copy of itself filling
   any letterbox space. Parent must be position:relative with set dimensions. */
.img-frame-bg {
  position: absolute; inset: -10px;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.6) saturate(1.15);
  transform: scale(1.15);
}
.img-frame-fg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.img-frame-fg img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--blue-bright);
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--navy-deep); }
.section-head p { margin-top: 14px; font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

.section-pad { padding: 100px 0; }
.bg-pale { background: var(--blue-pale); }
.bg-navy { background: var(--navy-deep); color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.72); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-3px); }
.btn-outline-light { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); }
.btn-arrow::after { content: '\2192'; transition: transform 0.3s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.site-topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 24px;
}
.topbar-icon { margin-right: 6px; }
.topbar-offices, .topbar-rc { opacity: 0.75; }
@media (max-width: 860px) {
  .topbar-offices { display: none; }
}
@media (max-width: 560px) {
  .topbar-rc { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 92px;
  transition: height 0.35s var(--ease);
}
.site-header.scrolled .header-inner { height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo { height: 76px; width: auto; transition: height 0.35s var(--ease); }
.site-header.scrolled .brand-logo { height: 62px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 800; font-size: 1.02rem; color: var(--navy-deep); letter-spacing: 0.01em; }
.brand-sub { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  border-radius: 999px;
  position: relative;
  transition: color 0.3s, background 0.3s;
}
.main-nav a:hover { background: var(--blue-pale); color: var(--navy); }
.main-nav a.active { color: var(--blue); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 5px;
  height: 2px;
  background: var(--blue-bright);
  border-radius: 2px;
}

.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
}
.nav-toggle span {
  height: 2px; width: 24px; background: var(--navy-deep);
  border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.3s;
  margin: 0 auto;
}
.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); }

@media (max-width: 980px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 84vw);
    height: 100vh;
    background: var(--navy-deep);
    padding: 120px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 90;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { color: rgba(255,255,255,0.85); font-size: 1.05rem; padding: 14px 18px; }
  .main-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
  .main-nav a.active { color: var(--blue-bright); }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(5,40,70,0.5);
    opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
    z-index: 85;
  }
  .nav-scrim.open { opacity: 1; pointer-events: auto; }
}

/* =========================================================
   HERO — 70/30 split: image slider + animated text panel
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 70% 30%;
  min-height: 640px;
  background: var(--navy-deep);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 640px;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s var(--ease), transform 7s linear;
  z-index: 1;
}
.hero-slide.active { opacity: 1; transform: scale(0.95); z-index: 2; }
.hero-slide-bg {
  position: absolute; inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.55) saturate(1.15);
  transform: scale(1.15);
}
.hero-slide-fg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-slide-fg img { width: 100%; height: 100%; object-fit: contain; }
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,40,70,0.15) 0%, rgba(5,40,70,0.05) 45%, rgba(5,40,70,0.75) 100%),
              linear-gradient(90deg, rgba(5,40,70,0.35) 0%, transparent 30%);
}

.hero-caption {
  position: absolute;
  left: 40px; bottom: 40px;
  z-index: 5;
  color: var(--white);
}
.hero-caption .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.hero-caption h3 { font-size: 1.5rem; }

.hero-nav {
  position: absolute;
  right: 40px; bottom: 40px;
  z-index: 6;
  display: flex;
  gap: 10px;
}
.hero-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background 0.3s, transform 0.3s;
}
.hero-arrow:hover { background: var(--blue-bright); transform: translateY(-2px); border-color: var(--blue-bright); }

.hero-dots {
  position: absolute;
  left: 40px; top: 40px;
  z-index: 6;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 30px; height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  border: none;
  padding: 0;
}
.hero-dot::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-dot.active::after { transform: scaleX(1); transition: transform 6.5s linear; }

/* ---- The 30% animated text panel ---- */
.hero-panel {
  position: relative;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 40px;
  overflow: hidden;
  z-index: 3;
}
.hero-panel::before {
  content: '';
  position: absolute; inset: -20% -20% auto auto;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(10,162,232,0.28) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-panel-kicker {
  color: var(--blue-bright);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-cycle {
  position: relative;
  min-height: 3.4em;
  color: var(--white);
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
}
.hero-cycle-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.hero-cycle-item.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}
.hero-cycle-item span {
  background: linear-gradient(90deg, #ffffff, var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-panel-desc {
  margin-top: 22px;
  color: rgba(255,255,255,0.68);
  font-size: 0.98rem;
  max-width: 320px;
}
.hero-panel-cta {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.hero-stats-mini {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 26px;
}
.hero-stats-mini div strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}
.hero-stats-mini div span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 62% 38%; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-slider { min-height: 62vh; }
  .hero-panel { padding: 48px 28px; }
  .hero-stats-mini { flex-wrap: wrap; }

  /* Stacked layout: image spans the full width, so the caption text can run
     long enough to collide with bottom-right arrows. Move arrows up next to
     the dots instead of trying to out-guess caption length at every width. */
  .hero-caption { left: 24px; right: 24px; bottom: 24px; }
  .hero-dots { left: 24px; top: 24px; }
  .hero-nav { top: 24px; right: 24px; bottom: auto; left: auto; }
  .hero-nav .hero-arrow { width: 40px; height: 40px; font-size: 1rem; }
}
@media (max-width: 480px) {
  .hero-caption { left: 20px; right: 20px; bottom: 20px; }
  .hero-dots { left: 20px; top: 20px; gap: 5px; }
  .hero-dot { width: 16px; }
  .hero-nav { top: 20px; right: 20px; }
  .hero-nav .hero-arrow { width: 34px; height: 34px; font-size: 0.9rem; }
}

/* =========================================================
   Stat strip
   ========================================================= */
.stat-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  margin-top: -1px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 40px 20px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat-item:first-child { border-left: none; }
.stat-item strong {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--navy-deep);
  font-variant-numeric: tabular-nums;
}
.stat-item strong span.plus::after { content: '+'; color: var(--blue); }
.stat-item p { margin-top: 6px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel-600); }
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: none; }
}

/* =========================================================
   About teaser
   ========================================================= */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-media { position: relative; }
.about-media .frame-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about-media .frame-float {
  position: absolute;
  width: 52%;
  bottom: -36px; left: -36px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.about-badge {
  position: absolute;
  z-index: 5;
  top: -24px; right: -24px;
  background: var(--blue);
  color: var(--white);
  width: 128px; height: 128px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.3;
  box-shadow: var(--shadow-md);
  animation: spin-slow 16s linear infinite;
}
.about-badge span { display: block; font-size: 1.5rem; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.about-copy h2 { margin-bottom: 20px; }
.about-copy p + p { margin-top: 16px; }
.value-list { margin-top: 32px; display: grid; gap: 16px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.value-item h5 { font-size: 1rem; color: var(--navy-deep); margin-bottom: 3px; }
.value-item p { font-size: 0.92rem; }

@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; gap: 90px 0; }
  .about-media { margin-bottom: 20px; }
}

/* =========================================================
   Services
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card .num {
  position: absolute; top: 20px; right: 26px;
  font-size: 2.6rem; font-weight: 800;
  color: var(--silver-200);
  transition: color 0.4s var(--ease);
}
.service-card:hover .num { color: var(--blue-pale); }
.service-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.service-card h3 { font-size: 1.2rem; color: var(--navy-deep); margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; }
.service-card .learn { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.88rem; color: var(--blue); }
.service-card .learn::after { content: '\2192'; transition: transform 0.3s var(--ease); }

.sub-card .sub-card-logo {
  width: 84px; height: 84px;
  border-radius: 16px;
  background: var(--silver-100);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  margin-bottom: 24px;
}
.sub-card .sub-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.sub-card h3 { font-size: 1.05rem; line-height: 1.35; }
.service-card:hover .learn::after { transform: translateX(5px); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Vessels deployed on a given service (services.php) */
.service-vessels-label {
  margin-top: 32px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-600);
}
.service-vessels { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.service-vessel-chip { width: 104px; text-decoration: none; }
.service-vessel-chip .thumb {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-vessel-chip:hover .thumb { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-vessel-chip .vname-small {
  margin-top: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.3;
}

/* =========================================================
   Fleet preview grid
   ========================================================= */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fleet-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.fleet-card .img-frame-fg img { transition: transform 0.7s var(--ease); }
.fleet-card:hover .img-frame-fg img { transform: scale(1.09); }
.fleet-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,20,35,0.88) 100%);
}
.fleet-card .label {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  color: var(--white);
}
.fleet-card .label .vname { font-weight: 700; font-size: 0.98rem; }
.fleet-card .label .vtype { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-bright); }
.fleet-card.wide { grid-column: span 2; }

@media (max-width: 900px) {
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-card.wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .fleet-grid { grid-template-columns: 1fr; }
  .fleet-card.wide { grid-column: span 1; }
}

/* Fleet page — full grid */
.fleet-filter {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px;
}
.fleet-filter button {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.fleet-filter button:hover { border-color: var(--blue); color: var(--blue); }
.fleet-filter button.active { background: var(--navy-deep); color: var(--white); border-color: var(--navy-deep); }

.fleet-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .fleet-full-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fleet-full-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Subsidiaries band / marquee
   ========================================================= */
.subs-band {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.subs-band .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--steel-600); font-weight: 700; margin-bottom: 26px; text-align: center; }
.subs-row { display: flex; justify-content: center; align-items: center; gap: 56px; flex-wrap: wrap; }
.sub-logo { display: block; filter: grayscale(1); opacity: 0.6; transition: filter 0.35s var(--ease), opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.sub-logo:hover { filter: grayscale(0); opacity: 1; transform: translateY(-3px); }
.sub-logo img { height: 46px; width: auto; }

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, var(--blue));
  padding: 72px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(10,162,232,0.35), transparent 55%);
}
.cta-banner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 520px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.72); margin-top: 12px; max-width: 480px; position: relative; }
.cta-banner .cta-actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); }
.footer-top { padding: 80px 0 50px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
}
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-logo { filter: brightness(1.1); }
.footer-legal { margin-top: 18px; font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.55); }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  transition: all 0.3s var(--ease);
}
.social-icon:hover { background: var(--blue-bright); border-color: var(--blue-bright); transform: translateY(-3px); }

.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-links a { transition: color 0.3s, padding-left 0.3s; }
.footer-links a:hover { color: var(--blue-bright); padding-left: 4px; }
.footer-contact p { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin-bottom: 10px; }
.footer-contact a:hover { color: var(--blue-bright); }
.footer-cta { margin-top: 12px; padding: 12px 24px; font-size: 0.82rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.footer-bottom-inner { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* =========================================================
   Video player
   ========================================================= */
.video-player {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--charcoal);
  box-shadow: var(--shadow-lg);
}
.video-player video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: var(--charcoal);
}
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  z-index: 3;
}
.video-play-btn::after {
  content: '';
  border-left: 22px solid var(--navy-deep);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--white); }
.video-player::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,20,35,0.05) 0%, rgba(5,20,35,0.55) 100%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s var(--ease);
}
.video-player.playing::before,
.video-player.playing .video-play-btn { opacity: 0; pointer-events: none; }
.video-player.playing .video-caption { opacity: 0; }
.video-caption {
  position: absolute; left: 24px; right: 24px; bottom: 20px;
  z-index: 2;
  transition: opacity 0.3s var(--ease);
}
.video-caption h3 { color: var(--white); font-size: 1.15rem; }

.video-feature-wrap { max-width: 860px; margin: 0 auto; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.video-grid .video-player { aspect-ratio: 4/3; }
.video-grid .video-play-btn { width: 64px; height: 64px; }
.video-grid .video-play-btn::after { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; margin-left: 4px; }
.video-grid .video-caption h3 { font-size: 1rem; }
@media (max-width: 900px) {
  .video-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Page hero (interior pages)
   ========================================================= */
.page-hero {
  position: relative;
  background:
    linear-gradient(165deg, rgba(5,40,70,0.86) 0%, rgba(5,60,95,0.78) 45%, rgba(5,40,70,0.9) 100%),
    url('/assets/images/hero/slide-01-bargenew.jpg');
  background-size: cover;
  background-position: center;
  padding: 160px 0 90px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: -30% -10% auto auto;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(10,162,232,0.25), transparent 70%);
  border-radius: 50%;
}
.page-hero .crumb { color: rgba(255,255,255,0.55); font-size: 0.85rem; font-weight: 600; margin-bottom: 18px; position: relative; }
.page-hero .crumb a:hover { color: var(--white); }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 720px; position: relative; }
.page-hero p.lead { color: rgba(255,255,255,0.68); font-size: 1.1rem; max-width: 620px; margin-top: 18px; position: relative; }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }
[data-reveal-delay="6"] { transition-delay: 0.6s; }

/* generic grid helpers used on interior pages */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.office-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .office-list { grid-template-columns: 1fr; } }
.office-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.office-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.office-card h5 { color: var(--navy-deep); font-size: 1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.office-card h5::before { content: '\1F4CD'; font-size: 0.9rem; }
.office-card p { font-size: 0.9rem; }

/* contact form */
.contact-form { display: grid; gap: 18px; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--silver-100);
  transition: border-color 0.3s, background 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 140px; }

/* scroll-to-top */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-deep); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all 0.35s var(--ease);
  border: none; font-size: 1.1rem;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--blue); }
