/* =======================================================================
   GMS — Global Marine Services
   Premium maritime corporate stylesheet
   Palette derived from the GMS logo: deep navy + marine blue + white
   ======================================================================= */

:root {
  /* Brand colors */
  --navy-900: #0a1f3c;   /* deepest navy */
  --navy-800: #0e2a4d;   /* primary brand navy */
  --navy-700: #12386a;
  --marine-600: #1b4f8a; /* secondary */
  --marine-500: #2e6fc4; /* accent / marine blue */
  --marine-400: #4f8bd6;
  --sky-300: #9cc0e8;
  --sky-100: #dceaf8;

  --white: #ffffff;
  --grey-50: #f4f7fb;    /* light grey section bg */
  --grey-100: #eef3f9;
  --grey-200: #e3eaf3;
  --ink: #15263b;        /* body text on light */
  --ink-soft: #4a5d75;   /* muted text on light */
  --line: #e1e9f3;

  /* Effects */
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(10,31,60,.06);
  --shadow: 0 14px 40px rgba(10,31,60,.10);
  --shadow-lg: 0 28px 70px rgba(10,31,60,.18);
  --ring: 0 0 0 4px rgba(46,111,196,.22);

  --container: 1200px;
  --header-h: 78px;

  --grad-navy: linear-gradient(135deg, #0a1f3c 0%, #12386a 60%, #1b4f8a 100%);
  --grad-accent: linear-gradient(135deg, #2e6fc4 0%, #1b4f8a 100%);

  --font-head: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; color: var(--navy-800); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { color: var(--ink-soft); }

.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 1200;
  background: var(--navy-800); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .82rem 1.5rem; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.btn svg { flex: none; }
.btn-sm { padding: .62rem 1.15rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--grad-accent); color: #fff; box-shadow: 0 10px 24px rgba(27,79,138,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(27,79,138,.45); }

.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* =======================================================================
   1. HEADER
   ======================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
  background: linear-gradient(180deg, rgba(10,31,60,.55), rgba(10,31,60,0));
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(10,31,60,.10);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(var(--container), 100% - 3rem); margin-inline: auto; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: .08em; color: #fff; transition: color .3s; }
.brand-sub { font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--sky-300); margin-top: 3px; transition: color .3s; }

/* Logo mark colors — light state (over hero) */
.brand-mark .m-ring { stroke: var(--sky-100); }
.brand-mark .m-ring-dim { opacity: .55; }
.brand-mark .m-dark { fill: var(--sky-100); }
.brand-mark .m-hull { fill: var(--marine-500); }
.brand-mark .m-wave1 { stroke: var(--marine-400); }
.brand-mark .m-wave2 { stroke: var(--sky-300); }

/* Scrolled state — navy logo on white */
.site-header.scrolled .brand-name { color: var(--navy-800); }
.site-header.scrolled .brand-sub { color: var(--marine-600); }
.site-header.scrolled .brand-mark .m-ring,
.site-header.scrolled .brand-mark .m-dark { stroke: var(--navy-800); fill: var(--navy-800); }
.site-header.scrolled .brand-mark .m-dark { stroke: none; }
.site-header.scrolled .brand-mark .m-hull { fill: var(--marine-500); }

.nav-desktop { display: flex; align-items: center; gap: .1rem; }
.nav-link {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; white-space: nowrap;
  color: rgba(255,255,255,.92); padding: .5rem .7rem; border-radius: 8px;
  position: relative; transition: color .25s, background .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
  background: var(--marine-400); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.site-header.scrolled .nav-link { color: var(--ink); }
.site-header.scrolled .nav-link:hover, .site-header.scrolled .nav-link.active { color: var(--marine-600); }

.header-actions { display: flex; align-items: center; gap: .9rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem;
  color: rgba(255,255,255,.92); transition: color .25s; white-space: nowrap;
}
.header-phone:hover { color: #fff; }
.site-header.scrolled .header-phone { color: var(--navy-800); }
.site-header.scrolled .header-phone:hover { color: var(--marine-600); }

/* Hamburger */
.hamburger { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; }
.hamburger span {
  position: absolute; left: 11px; right: 11px; height: 2.4px; background: #fff; border-radius: 3px;
  transition: transform .3s var(--ease), opacity .2s, background .3s;
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.site-header.scrolled .hamburger span { background: var(--navy-800); }
body.menu-open .hamburger span { background: var(--navy-800); }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 999;
  background: #fff; border-bottom: 1px solid var(--line);
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s; box-shadow: var(--shadow);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav { display: flex; flex-direction: column; padding: 1rem 1.5rem 1.6rem; gap: .2rem; }
.mobile-link {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--navy-800);
  padding: .85rem .4rem; border-bottom: 1px solid var(--grey-100);
}
.mobile-cta { margin-top: 1rem; }
.mobile-phone { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 600; color: var(--marine-600); }
.menu-backdrop {
  position: fixed; inset: 0; background: rgba(10,31,60,.4); z-index: 998; opacity: 0; pointer-events: none;
  transition: opacity .3s; backdrop-filter: blur(2px);
}
.menu-backdrop.open { opacity: 1; pointer-events: auto; }

/* =======================================================================
   2. HERO
   ======================================================================= */
.hero {
  position: relative; min-height: clamp(620px, 92vh, 900px);
  display: flex; align-items: center; padding-top: var(--header-h);
  overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background: var(--navy-900) url("assets/hero-ship.svg") center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(115deg, rgba(8,23,43,.94) 0%, rgba(10,31,60,.78) 42%, rgba(18,56,106,.45) 100%),
    linear-gradient(0deg, rgba(8,23,43,.85), rgba(8,23,43,0) 55%);
}
.hero-content { position: relative; padding: 4rem 0 6rem; max-width: 880px; }
.hero-badge {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-100);
  background: rgba(46,111,196,.18); border: 1px solid rgba(156,192,232,.35);
  padding: .55rem 1.1rem; border-radius: 999px; margin-bottom: 1.6rem;
}
.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -.02em; max-width: 16ch;
}
.hero-sub { color: rgba(220,234,248,.92); font-size: clamp(1.02rem, 1.7vw, 1.22rem); margin-top: 1.4rem; max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-points {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem 2rem;
  margin-top: 2.6rem; max-width: 720px;
}
.hero-points li {
  position: relative; padding-left: 1.9rem; color: rgba(220,234,248,.95); font-size: .96rem; font-weight: 500;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.25rem; height: 1.25rem;
  background: var(--grad-accent); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/65% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/65% no-repeat;
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; line-height: 0; }
.hero-wave svg { width: 100%; height: clamp(60px, 9vw, 120px); }
.hero-wave path { fill: var(--white); }

/* =======================================================================
   SECTION SHELL
   ======================================================================= */
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-alt { background: var(--grey-50); }
.section-head { max-width: 760px; margin: 0 auto clamp(2.4rem, 4vw, 3.4rem); text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .76rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--marine-500);
  margin-bottom: .9rem;
}
.section-intro { font-size: 1.06rem; margin-top: 1rem; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.section-alt .card { background: #fff; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--grey-200); }

.icon-badge {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(46,111,196,.14), rgba(27,79,138,.12));
  color: var(--marine-600); margin-bottom: 1.2rem;
}
.icon-badge.sm { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0; }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .96rem; }

/* =======================================================================
   3. TRUST
   ======================================================================= */
.fact-card { text-align: left; }

/* =======================================================================
   4. SERVICES
   ======================================================================= */
.service-card { display: flex; flex-direction: column; }
.service-card .ticks { margin: 1.1rem 0 1.4rem; }
.ticks { display: grid; gap: .55rem; }
.ticks li {
  position: relative; padding-left: 1.7rem; font-size: .92rem; color: var(--ink-soft);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 1.15rem; height: 1.15rem;
  background: var(--marine-500); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/62% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/62% no-repeat;
}
.card-link {
  margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: var(--marine-600); display: inline-flex; align-items: center; gap: .35rem;
  transition: gap .25s, color .25s; align-self: flex-start;
}
.card-link:hover { gap: .7rem; color: var(--navy-800); }
.service-card::before {
  content: ""; display: block; height: 3px; width: 44px; border-radius: 3px;
  background: var(--grad-accent); margin-bottom: 1.2rem; transition: width .35s var(--ease);
}
.service-card:hover::before { width: 72px; }

/* =======================================================================
   5. WHY CHOOSE GMS
   ======================================================================= */
.why-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.why-visual {
  position: relative; min-height: 460px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-900) url("assets/hero-ship.svg") center/cover no-repeat;
  box-shadow: var(--shadow-lg);
}
.why-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,31,60,.25), rgba(10,31,60,.55));
}
.why-visual::before {
  content: "Independent attendance · accurate measurement · clear reporting";
  position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.5rem; z-index: 2;
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; line-height: 1.5;
}
.why-content h2 { margin: .3rem 0 1rem; }
.why-content > p { font-size: 1.05rem; }
.ticks-2col { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem 1.6rem; margin: 1.6rem 0 2rem; }
.ticks-2col li { font-size: .95rem; }

/* =======================================================================
   6. PROCESS
   ======================================================================= */
.timeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; position: relative;
  counter-reset: step;
}
.timeline::before {
  content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--marine-500), var(--sky-300));
  z-index: 0;
}
.timeline-step {
  position: relative; z-index: 1; text-align: center; padding: 0 .4rem;
}
.step-num {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 1.1rem;
  border-radius: 50%; background: #fff; border: 2px solid var(--marine-500);
  color: var(--navy-800); font-family: var(--font-head); font-weight: 800; font-size: 1.25rem;
  box-shadow: 0 8px 22px rgba(27,79,138,.18);
}
.timeline-step h3 { margin-bottom: .45rem; font-size: 1.08rem; }
.timeline-step p { font-size: .9rem; }

/* =======================================================================
   7. COVERAGE
   ======================================================================= */
.coverage { background: var(--grad-navy); color: #fff; overflow: hidden; }
.coverage .eyebrow { color: var(--sky-300); }
.coverage h2 { color: #fff; }
.coverage .section-intro { color: rgba(220,234,248,.9); }
.coverage-map {
  position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image:
    radial-gradient(circle at 22% 38%, var(--marine-400) 0 6px, transparent 7px),
    radial-gradient(circle at 30% 30%, var(--marine-400) 0 5px, transparent 6px),
    radial-gradient(circle at 41% 44%, var(--marine-400) 0 5px, transparent 6px),
    radial-gradient(circle at 55% 34%, var(--marine-400) 0 6px, transparent 7px),
    radial-gradient(circle at 70% 50%, var(--marine-400) 0 5px, transparent 6px);
}
.coverage-map::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(60deg, transparent 0 38px, rgba(156,192,232,.12) 38px 39px),
    repeating-linear-gradient(-60deg, transparent 0 38px, rgba(156,192,232,.10) 38px 39px);
  -webkit-mask: radial-gradient(ellipse at center, #000 35%, transparent 75%);
          mask: radial-gradient(ellipse at center, #000 35%, transparent 75%);
}
.coverage-inner { position: relative; z-index: 1; }
.coverage-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(156,192,232,.22);
  backdrop-filter: blur(6px); color: #fff; text-align: left;
}
.coverage-card:hover { background: rgba(255,255,255,.11); border-color: rgba(156,192,232,.45); }
.coverage-card h3 { color: #fff; }
.coverage-card p { color: rgba(220,234,248,.85); }
.pin {
  display: inline-grid; place-items: center; min-width: 52px; height: 38px; padding: 0 .5rem;
  border-radius: 10px; background: var(--grad-accent); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: .9rem; letter-spacing: .04em;
  margin-bottom: 1.1rem;
}
.coverage-cta { text-align: center; margin-top: 2.6rem; }

/* =======================================================================
   8. ABOUT
   ======================================================================= */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-content h2 { margin: .3rem 0 1.2rem; }
.about-content p { font-size: 1.04rem; margin-bottom: 1rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.about-tags span {
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--marine-600);
  background: rgba(46,111,196,.10); border: 1px solid rgba(46,111,196,.18);
  padding: .42rem .85rem; border-radius: 999px;
}
.about-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.2rem; }
.about-statement {
  background: var(--grad-navy); color: #fff; border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow);
}
.about-statement .icon-badge { background: rgba(255,255,255,.12); color: var(--sky-100); }
.about-statement p { color: #eaf2fb; font-size: 1.02rem; font-style: italic; }
.about-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 1.4rem; box-shadow: var(--shadow-sm); }
.about-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--grey-100); }
.about-list li:last-child { border-bottom: none; }
.about-list strong { font-family: var(--font-head); color: var(--navy-800); font-size: .92rem; }
.about-list span { color: var(--ink-soft); font-size: .92rem; text-align: right; }

/* =======================================================================
   9. WHO WE SERVE
   ======================================================================= */
.serve-card { text-align: left; }
.serve-card h3 { font-size: 1.08rem; margin-bottom: .5rem; position: relative; padding-bottom: .7rem; }
.serve-card h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; border-radius: 3px; background: var(--grad-accent); transition: width .3s var(--ease); }
.serve-card:hover h3::after { width: 52px; }
.serve-card p { font-size: .92rem; }

/* =======================================================================
   10. CTA BANNER
   ======================================================================= */
.cta-banner { position: relative; background: var(--grad-navy); color: #fff; padding: clamp(3.4rem, 7vw, 5.5rem) 0; overflow: hidden; text-align: center; }
.cta-waves { position: absolute; inset: auto 0 0 0; line-height: 0; }
.cta-waves svg { width: 100%; height: 220px; }
.cta-waves path { fill: var(--marine-400); }
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-inner h2 { color: #fff; }
.cta-inner > p { color: rgba(220,234,248,.92); font-size: 1.08rem; margin-top: 1rem; }
.cta-note { font-size: .95rem !important; color: var(--sky-300) !important; margin-top: .8rem !important; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.2rem; }

/* =======================================================================
   11. CONTACT
   ======================================================================= */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info h2 { margin: .3rem 0 1rem; }
.contact-blocks { display: grid; gap: 1.1rem; margin: 2rem 0; }
.contact-blocks li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-blocks .icon-badge { flex: none; }
.contact-blocks strong { display: block; font-family: var(--font-head); color: var(--navy-800); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .15rem; }
.contact-blocks a { color: var(--marine-600); font-weight: 600; }
.contact-blocks a:hover { color: var(--navy-800); }
.contact-blocks span { color: var(--ink-soft); font-size: .95rem; }
.procedure-note {
  display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft);
  background: var(--grey-50); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem;
}
.procedure-note svg { flex: none; color: var(--marine-500); margin-top: 2px; }

.contact-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--navy-800); margin-bottom: .4rem; }
.field label span { color: var(--marine-500); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem;
  color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--marine-500); box-shadow: var(--ring); }
.field input.invalid, .field select.invalid { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214,69,69,.12); }
.err { color: #d64545; font-size: .8rem; margin-top: .35rem; min-height: 1em; font-weight: 500; }
.form-success {
  margin-top: 1.1rem; background: rgba(35,134,84,.10); border: 1px solid rgba(35,134,84,.3);
  color: #1d7a4d; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
}

/* =======================================================================
   12. FOOTER
   ======================================================================= */
.site-footer { background: var(--navy-900); color: rgba(220,234,248,.78); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: clamp(3rem, 5vw, 4.5rem) 0 2.5rem; }
.footer-brandlock .brand-name { color: #fff; }
.footer-brandlock .brand-sub { color: var(--sky-300); }
.footer-desc { margin-top: 1.1rem; font-size: .95rem; max-width: 34ch; color: rgba(220,234,248,.7); }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: rgba(220,234,248,.72); font-size: .92rem; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: #fff; padding-left: 3px; }
.footer-contact li { font-size: .92rem; color: rgba(220,234,248,.72); }
.footer-bottom { border-top: 1px solid rgba(156,192,232,.16); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding: 1.4rem 0; }
.footer-procedure, .footer-copy { font-size: .85rem; color: rgba(220,234,248,.6); margin: 0; }

/* =======================================================================
   FLOATING + BACK TO TOP
   ======================================================================= */
.float-cta {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 900;
  display: none; align-items: center; justify-content: center; gap: .5rem;
  background: var(--grad-accent); color: #fff; font-family: var(--font-head); font-weight: 700;
  padding: .95rem; border-radius: 999px; box-shadow: 0 12px 30px rgba(10,31,60,.4);
  transform: translateY(120%); transition: transform .35s var(--ease);
}
.float-cta.show { transform: translateY(0); }

.back-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 901;
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy-800); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(12px) scale(.9);
  transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.back-to-top:hover { background: var(--marine-600); }

/* =======================================================================
   REVEAL ANIMATIONS
   ======================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.grid .reveal:nth-child(2) { transition-delay: .08s; }
.grid .reveal:nth-child(3) { transition-delay: .16s; }
.grid .reveal:nth-child(4) { transition-delay: .24s; }
.timeline .reveal:nth-child(2) { transition-delay: .1s; }
.timeline .reveal:nth-child(3) { transition-delay: .2s; }
.timeline .reveal:nth-child(4) { transition-delay: .3s; }
.timeline .reveal:nth-child(5) { transition-delay: .4s; }

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

/* =======================================================================
   RESPONSIVE
   ======================================================================= */
@media (max-width: 1180px) {
  .header-phone { display: none; } /* free up room for the nav once "Our Work" is added */
}

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .nav-desktop, .header-phone { display: none; }
  .hamburger { display: block; }
  .header-cta { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { min-height: 320px; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; text-align: left; }
  .timeline::before { display: none; }
  .timeline-step { display: grid; grid-template-columns: 58px 1fr; gap: 0 1.2rem; text-align: left; padding: 0 0 2rem 0; position: relative; }
  .timeline-step::before {
    content: ""; position: absolute; left: 28px; top: 58px; bottom: 0; width: 2px;
    background: linear-gradient(var(--marine-500), var(--sky-300));
  }
  .timeline-step:last-child::before { display: none; }
  .step-num { margin: 0; grid-row: span 2; }
  .timeline-step h3 { align-self: center; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .container { width: min(var(--container), 100% - 2rem); }
  .hero-points { grid-template-columns: 1fr; }
  .hero-content { padding: 2.5rem 0 5rem; }
  .ticks-2col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .float-cta { display: flex; }
  .back-to-top { bottom: 5rem; }
  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; }
  .cta-actions, .hero-cta { flex-direction: column; }
  .cta-actions .btn, .hero-cta .btn { width: 100%; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.95rem; }
  .card { padding: 1.5rem; }
}

/* =======================================================================
   UPLOADED LOGO (replaces inline SVG mark when set in admin)
   ======================================================================= */
.brand-logo-img { height: 46px; width: auto; max-width: 230px; object-fit: contain; display: block; }
.footer-logo-img { height: 52px; max-width: 240px; }
/* On the transparent hero header a dark logo could be hard to read,
   so lift it slightly with a soft glow until the header turns solid. */
.site-header:not(.scrolled) .brand-logo-img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }

/* =======================================================================
   HONEYPOT (anti-spam, visually hidden)
   ======================================================================= */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form-error {
  margin-top: 1.1rem; background: rgba(214,69,69,.08); border: 1px solid rgba(214,69,69,.3);
  color: #b23b3b; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
}

/* =======================================================================
   OUR WORK — gallery
   ======================================================================= */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
}
.gallery-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gallery-img {
  display: block; width: 100%; padding: 0; border: none; cursor: zoom-in; background: var(--grey-100);
  aspect-ratio: 4 / 3; overflow: hidden;
}
.gallery-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover .gallery-img img { transform: scale(1.05); }
.gallery-item figcaption { padding: 1.1rem 1.3rem 1.4rem; }
.gallery-item figcaption h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.gallery-item figcaption p { font-size: .9rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1100; display: none; place-items: center;
  background: rgba(8,18,33,.92); padding: 2rem; backdrop-filter: blur(4px);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.6rem; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* Footer admin link (discreet) */
.footer-admin { color: rgba(220,234,248,.5); text-decoration: underline; text-underline-offset: 2px; }
.footer-admin:hover { color: rgba(220,234,248,.85); }

@media (max-width: 1080px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .gallery-grid { grid-template-columns: 1fr; } }
