/* ============================================
   Marine Surveyors Pro — style.css  v2 Dark
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: hidden; max-width: 100%; }

:root {
  /* The site is light: #F9FBFC ground, dark ink, white cards, a navy topbar and a
     #14293F footer. These pages were built dark, so the tokens are remapped rather
     than every rule rewritten — the names are kept so the existing CSS still reads. */
  --dark:        #F9FBFC;   /* page ground        (was #FFFFFF) */
  --dark-2:      #EAF2F9;   /* alternating band   (was #13263A) */
  --dark-card:   #FFFFFF;   /* cards              (was #1B3A57) */
  --blue:        #2E6DA4;   /* == the site's --steel, unchanged */
  --blue-mid:    #4A8BC2;
  --blue-dark:   #1F5A8C;   /* == --steel-ink */
  --blue-glow:   rgba(46,109,164,.10);
  --blue-border: rgba(46,109,164,.22);
  --gold:        #9A6B1F;   /* the site's --brass, which is what reads on light */
  --brass-line:  #C9A256;
  --navy:        #FFFFFF;   /* still navy where navy belongs: topbar, footer */
  --sans:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif:       'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --mono:        ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --white:       #16232F;   /* "white" now means the strongest TEXT colour: --ink */
  --gray-200:    #16232F;
  --gray-400:    #4E6273;   /* == --ink-soft */
  --gray-500:    #4E6273;
  --gray-600:    #6B7C8C;
  --border:      #D8E2EA;   /* == --line */
  --radius:      12px;
  --trans:       .28s ease;
}

html { scroll-behavior: smooth; }


body {
  font-family: var(--sans);
  background: var(--dark);
  color: var(--gray-200);
  line-height: 1.65;
  font-size: 16px;
}

h1,h2,h3,h4,h5 {
  font-family: var(--serif);
  line-height: 1.15;
  color: var(--white);
}

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

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section   { padding: 96px 0; }
.bg-dark-2 { background: var(--dark-2); }

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem;
  color: var(--gray-400);
  max-width: 560px;
  margin-bottom: 52px;
  line-height: 1.75;
}
.centered { text-align: center; }
.centered .section-sub { margin-left: auto; margin-right: auto; }
.title-line {
  width: 48px; height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin: 18px 0 48px;
}
.title-line.centered { margin-left: auto; margin-right: auto; }
.accent { color: var(--blue); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 6px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .83rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--trans);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  box-shadow: 0 0 28px #EAF2F9;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: #F4F8FB;
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-gold {
  background: var(--gold);
  color: #16232F;
  border-color: var(--gold);
  font-weight: 800;
}
.btn-gold:hover {
  background: #e0a520;
  box-shadow: 0 0 28px #FFF7E8;
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 42px; font-size: .88rem; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  /* backdrop-filter is on ::before so it doesn't create a containing block
     that traps the position:fixed mobile nav overlay */
  background: rgba(23,50,79,.95);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  background: rgba(23,50,79,.98);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
  z-index: 1;
}
.nav-logo {
  display: flex; align-items: center; gap: 11px;
  color: #fff; text-decoration: none;
  font: 700 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase;
}
.nav-logo img {
  height: 40px; width: auto; display: block;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 7px rgba(255,255,255,.45));
}
.nav-logo span span { display: block; font-weight: 500; letter-spacing: .16em; color: #A9C0D6; white-space: nowrap; }
/* At the top of the page the site's logo is double size and hangs out of the bar; the
   first scroll tucks it back in. The stylesheet already had a .scrolled hook for exactly
   this and nothing was toggling it — the script below does now. The negative margin is
   what keeps the bar its normal height while the artwork overflows it. */
.nav-logo img { transition: height .28s ease, margin .28s ease; }
.site-header:not(.scrolled) .nav-logo img { height: 80px; margin-bottom: -40px; }
@media (prefers-reduced-motion: reduce) { .nav-logo img { transition: none; } }
@media (max-width: 940px) {
  .site-header:not(.scrolled) .nav-logo img { height: 68px; margin-bottom: -28px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  color: #C6D6E6;
  transition: color var(--trans);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
/* Matches the main site: the current section is underlined in brass. */
.nav-links a { border-bottom: 2px solid transparent; padding: 6px 0; }
.nav-links a.active { border-bottom-color: #D8AE5E; }
/* 2px bars with a 5px gap put the outer two exactly 7px from centre. transform-origin
   centre keeps the X symmetrical; without it the rotation pivots on the box edge and the
   icon reads as a skew rather than a cross. */
.nav-toggle span { transform-origin: center; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 6px;
  transition: background var(--trans) !important;
}
.nav-cta:hover { background: var(--blue-mid) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 10px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--trans);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, #EAF2F9 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 85%, rgba(14,80,200,.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 85% 80%, rgba(14,80,200,.07) 0%, transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  padding-bottom: 0;
}
.hero-logo-wrap {
  flex: 0 0 50%;
  width: 50%;
}
.hero-logo-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen;
  opacity: .97;
  -webkit-mask-image: linear-gradient(to top, black 18%, transparent 42%),
                      radial-gradient(ellipse 80% 78% at 50% 42%, black 28%, rgba(0,0,0,.55) 52%, transparent 72%);
  mask-image:         linear-gradient(to top, black 18%, transparent 42%),
                      radial-gradient(ellipse 80% 78% at 50% 42%, black 28%, rgba(0,0,0,.55) 52%, transparent 72%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}
.hero-text-col {
  flex: 1;
  width: 100%;
  padding: 60px 0;
  text-align: center;
}
.hero-btns { justify-content: center; }

/* Collapse the nav to the hamburger once the full link row (6 items +
   CTA) no longer fits — otherwise items overflow off-screen. */
@media (max-width: 940px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: rgba(23,50,79,.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links.open a { font-size: 1rem; }
  .nav-toggle { display: flex; z-index: 1001; }
}

@media (max-width: 768px) {
  .hero-content { flex-direction: column; padding-bottom: 60px; }
  .hero-logo-wrap, .hero-text-col { flex: unset; width: 100%; }
  .hero-text-col { padding: 0 5%; text-align: center; }
  .hero-btns { justify-content: center; }
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(3.2rem, 7.5vw, 6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 24px;
  text-shadow: 0 4px 40px rgba(0,0,0,.7);
}
.hero-title .accent {
  display: block;
  color: var(--blue);
  text-shadow: 0 0 60px #EAF2F9;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 520px;
  margin: 0 auto 38px;
  line-height: 1.78;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-divider {
  position: absolute;
  bottom: -1px; left: 0; right: 0; z-index: 4;
}
.hero-divider svg { width: 100%; display: block; }

/* ---------- HERO STATS (full-width bar inside hero) ---------- */
.hero-stats-bar {
  width: 100%;
  border-top: 1px solid var(--border);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 0;
}
.hero-stats .stat-item {
  text-align: center;
  padding: 8px 24px;
  border-right: 1px solid var(--border);
}
.hero-stats .stat-item:last-child { border-right: none; }

@media (max-width: 680px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat-item:nth-child(2) { border-right: none; }
  .hero-stats .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
}

/* ---------- STATS BAR ---------- */
.stats-bar {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 0 28px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--sans);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { color: var(--blue); }
.stat-label {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: all var(--trans);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F4F8FB 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--trans);
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), #2E6DA4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover {
  border-color: var(--blue-border);
  box-shadow: 0 0 50px #EAF2F9, 0 24px 48px rgba(0,0,0,.5);
  transform: translateY(-6px);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { transform: scaleX(1); }
.service-card.featured {
  border-color: var(--blue-border);
  background: linear-gradient(150deg, #EAF2F9 0%, var(--dark-card) 55%);
}
.service-card.featured::after { transform: scaleX(1); }
.svc-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: #EAF2F9;
  border: 1px solid #CFE0EE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 28px;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}
.service-card p {
  font-size: .91rem;
  color: var(--gray-400);
  line-height: 1.72;
  margin-bottom: 28px;
}
.card-link {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--trans);
}
.card-link:hover { gap: 14px; }

/* ---------- PILLARS STRIP ---------- */
.pillars-strip {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pillar-item {
  padding: 52px 36px;
  border-right: 1px solid var(--border);
  position: relative;
}
.pillar-item:last-child { border-right: none; }
.pillar-num {
  font-family: var(--sans);
  font-size: 3.8rem;
  font-weight: 900;
  color: #EAF2F9;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -.04em;
}
.pillar-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.pillar-item p { font-size: .87rem; color: var(--gray-400); line-height: 1.65; }

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: linear-gradient(168deg, #17324F 0%, #1D4269 58%, #27609A 100%);
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, #EAF2F9 0%, transparent 60%);
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 68px 0;
}
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; margin-bottom: 8px; }
.cta-inner p  { color: #F4F8FB; font-size: .96rem; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: #EAF2F9;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-logo-img { height: 80px; width: auto; display: block; margin-bottom: 14px; }
.footer-logo-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  text-decoration: none;
}
.footer-brand p  { font-size: .86rem; color: var(--gray-600); margin-top: 4px; }
.footer-brand a  { font-size: .86rem; color: var(--gray-400); margin-top: 10px; display: inline-block; transition: color var(--trans); }
.footer-brand a:hover { color: var(--blue); }
.footer-col h4 {
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a  { font-size: .88rem; color: var(--gray-400); transition: color var(--trans); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: var(--gray-600);
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: var(--dark-2);
  padding: 136px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 15% 50%, #EAF2F9 0%, transparent 60%);
}
.page-hero .eyebrow { position: relative; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  margin: 12px 0 18px;
  position: relative;
}
.page-hero p { color: var(--gray-400); max-width: 580px; font-size: 1.02rem; position: relative; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .73rem;
  color: var(--gray-600);
  font-family: var(--sans);
  font-weight: 600;
  position: relative;
}
.breadcrumb a { color: var(--gray-600); transition: color var(--trans); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span:last-child { color: var(--gray-400); }

/* ---------- TWO-COL ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.col-img-placeholder {
  aspect-ratio: 4/3;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--gray-600);
  font-weight: 600;
}
.col-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ---------- FEATURE LIST ---------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .92rem;
  color: var(--gray-400);
}
.feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: #EAF2F9;
  color: var(--blue);
  border: 1px solid #BBD3E6;
  border-radius: 50%;
  font-size: .62rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- DETAIL CARDS ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.detail-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--trans);
}
.detail-card:hover {
  border-color: var(--blue-border);
  box-shadow: 0 0 32px var(--blue-glow);
  transform: translateY(-3px);
}
.detail-card .detail-icon { font-size: 1.8rem; margin-bottom: 16px; }
.detail-card h4 { font-size: .96rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.detail-card p  { font-size: .86rem; color: var(--gray-400); line-height: 1.65; }

/* ---------- PROCESS STEPS ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  text-align: center;
  padding: 40px 24px;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--trans);
}
.step:hover { border-color: var(--blue-border); }
.step-num {
  width: 50px; height: 50px;
  background: #EAF2F9;
  border: 1px solid #BBD3E6;
  color: var(--blue);
  border-radius: 50%;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.step h4 { font-size: .93rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step p   { font-size: .84rem; color: var(--gray-400); }

/* ---------- CONTACT FORM ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.form-group label {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--dark-card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: .93rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-group select option { background: var(--dark-2); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-600); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #EAF2F9;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-info-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
}
.contact-info-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 28px;
}
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.info-icon { font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.info-row h5 {
  font-size: .7rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.info-row p, .info-row a { font-size: .9rem; color: var(--gray-400); line-height: 1.5; }
.info-row a:hover { color: var(--blue); }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Touch-friendly baseline */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: 16px; } /* prevents iOS zoom on focus */

/* ---------- LARGE TABLET  (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid    { grid-template-columns: repeat(2, 1fr); }
  .pillar-item:nth-child(2) { border-right: none; }
  .pillar-item:nth-child(3) { border-top: 1px solid var(--border); }
  .process-steps   { grid-template-columns: repeat(2, 1fr); }
  .two-col         { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
  .section         { padding: 80px 0; }
}

/* ---------- TABLET  (≤ 900px) ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .hero-stats    { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat-item:nth-child(2) { border-right: none; }
  .hero-stats .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-num      { font-size: 2.2rem; }
  .pillar-item   { padding: 36px 24px; }
  .cta-inner     { flex-direction: column; text-align: center; }
}

/* ---------- MOBILE  (≤ 680px) ---------- */
@media (max-width: 680px) {
  /* Hero */
  .hero-text-col  { padding: 32px 0; }
  .hero-btns      { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; text-align: center; }

  /* Splash — hide decorative sides, center logo */
  .splash-side    { display: none; }
  #splashLogo     { width: 95%; }

  /* Grids */
  .services-grid  { grid-template-columns: 1fr; max-width: 100%; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .hero-stats     { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat-item:nth-child(2) { border-right: none; }
  .hero-stats .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .pillars-grid   { grid-template-columns: 1fr; }
  .pillar-item    { border-right: none; border-bottom: 1px solid var(--border); }
  .process-steps  { grid-template-columns: 1fr; }
  .detail-grid    { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom  { flex-direction: column; gap: 8px; text-align: center; }

  /* Spacing */
  .section        { padding: 56px 0; }
  .service-card   { padding: 32px 24px; }
  .stat-num       { font-size: 2rem; }

  /* Page hero */
  .page-hero      { padding: 110px 0 60px; }
}

/* ---------- SERVICE PHOTO HERO ---------- */
.service-hero {
  position: relative;
  overflow: hidden;
  height: 460px;
}
.service-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.1);
}
.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4,10,22,.45);
  z-index: 1;
}
.service-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 52px;
}
.service-hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  margin: 10px 0 0;
  line-height: 1.05;
}
@media (max-width: 600px) {
  .service-hero { height: 320px; }
  .service-hero-content { padding-bottom: 32px; }
  .service-hero-content h1 { font-size: 1.9rem; }
}

/* ---------- BANNER HERO ---------- */
.banner-hero {
  position: relative;
  overflow: hidden;
  /* Compact banner: cover-cropped to a fixed band instead of the full-height
     image — the page starts selling above the fold. */
  height: clamp(380px, 52vh, 560px);
}
.banner-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  filter: brightness(1.12);
}
.banner-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(4,10,22,.74) 0%, rgba(4,10,22,.42) 55%, rgba(4,10,22,.18) 100%);
}
.banner-hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 84px 48px 34px;   /* top padding clears the fixed header */
  z-index: 2;
  max-width: 660px;
}
.banner-hero .hero-divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 2;
}
.banner-hero-text .hero-sub {
  color: var(--white);
}

@media (max-width: 900px) {
  .banner-hero-text { padding: 70px 32px 32px; }
}

@media (max-width: 680px) {
  /* On mobile: hide the img tag, use CSS background instead (never overflows) */
  .banner-hero {
    height: auto;
    min-height: 46vh;
    max-height: 46vh;
    background: linear-gradient(160deg, #0e1c30 0%, #17324f 60%, #0b1624 100%);   /* was images/wlc-banner.jpg — 404 since the move */
    width: 100%;
  }
  .banner-hero-img { display: none; }
  .banner-hero-overlay {
    background: rgba(4,10,22,.65);
  }
  .banner-hero-text {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    max-width: 100%;
    padding: 72px 20px 20px;
    justify-content: flex-start;
  }
  .banner-hero-text .hero-eyebrow { font-size: .65rem; margin-bottom: 8px; }
  .banner-hero-text .hero-title   { font-size: 2rem !important; margin-bottom: 10px !important; }
  .banner-hero-text .hero-sub     { font-size: .85rem; margin-bottom: 16px !important; }
  .banner-hero-text .hero-btns {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .banner-hero-text .hero-btns .btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: .8rem;
  }
}

/* ---------- SMALL MOBILE  (≤ 400px) ---------- */
@media (max-width: 400px) {
  .hero-title     { font-size: 2.6rem; }
  .section-title  { font-size: 1.7rem; }
  .btn-lg         { padding: 14px 28px; font-size: .82rem; }
  .contact-info-card { padding: 28px 20px; }
}


/* ---------- footer, matched to marinesurveyorspro.com ---------- */
.site-footer { background: #14293F; color: #B7CBDE; padding: 56px 0 40px; font-size: 14.5px; }
.site-footer a { color: #C6D6E6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.ft-row { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-start; justify-content: space-between; }
.ft-brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none;
  font: 700 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.ft-brand img { height: 40px; width: auto; display: block;
  filter: drop-shadow(0 0 1px #F4F8FB) drop-shadow(0 0 7px #F4F8FB); }
.ft-brand span span { display: block; font-weight: 500; letter-spacing: .16em; color: #A9C0D6; }
.ft-creed { font: 600 11.5px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: #8FA9C2; margin-top: 12px; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ft-fine { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; margin-top: 36px;
  padding-top: 20px; border-top: 1px solid #F4F8FB; font-size: 13px; color: #8FA9C2; }
.ft-fine .credit { color: #B7CBDE; letter-spacing: .05em; white-space: nowrap; }
.ft-fine .credit a { color: #4DB2FF; font-weight: 700; }


/* ---------- contrast fixes after the dark→light flip ---------- */
/* A white label needs a filled button under it. On the dark original these sat on
   translucent panels; on white they vanished entirely (measured 1.0:1). */
.vr-primary, button.vr-primary, .btn-gold {
  background: #2E6DA4; border-color: #2E6DA4; color: #fff;
}
.vr-primary:hover, button.vr-primary:hover, .btn-gold:hover { background: #1F5A8C; border-color: #1F5A8C; }
/* The mint used for the saving lines reads at 2.1:1 on white; the site's own green is 4.9:1. */
.vr-save, .tier-save { color: #15803D; }
