/* =========================================================
   Clarence Marine theme — Clarence Enterprises Ltd
   Colours --navy/--blue/--orange are overridden from the Customizer.
   ========================================================= */

:root {
  --navy: #0E2A5C;       /* logo deep blue */
  --navy-2: #0A1F45;
  --blue: #2456B8;       /* logo bright blue */
  --lake: #DCEBF5;       /* shallow water */
  --lake-2: #B9D6EA;
  --orange: #F2621F;     /* life-jacket / hi-vis */
  --orange-2: #D9500F;
  --paper: #F6F8FB;
  --ink: #13213A;
  --muted: #5A6780;
  --line: #D7DFEA;
  --white: #fff;
  --wa: #1FAF5A;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; color: var(--navy); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 700; letter-spacing: -.005em; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; word-wrap: normal !important; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--orange); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: .98rem;
  padding: .7rem 1.2rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-2); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178c48; }

.text-link { font-weight: 600; color: var(--blue); text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.is-solid {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
  --header-h: 64px;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 44px; height: auto; filter: brightness(0) invert(1); transition: filter .3s; }
.brand-text { display: flex; flex-direction: column; line-height: 1; color: #fff; transition: color .3s; }
.brand-text strong { font-family: var(--display); font-size: 1.55rem; font-weight: 700; letter-spacing: .04em; }
.brand-text small { font-size: .72rem; letter-spacing: .2em; opacity: .85; margin-top: 2px; }
.is-solid .brand-mark { filter: none; }
.is-solid .brand-text { color: var(--navy); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a {
  display: block; padding: .5rem .8rem; color: #fff; text-decoration: none; font-weight: 500;
  border-radius: 999px; transition: background .2s, color .2s;
}
.main-nav a:hover { background: rgba(255,255,255,.15); }
.is-solid .main-nav a { color: var(--ink); }
.is-solid .main-nav a:hover, .main-nav a.is-current,
.is-solid .main-nav .current-menu-item > a { background: var(--lake); color: var(--navy); }
.site-header:not(.is-solid) .main-nav a.is-current { background: rgba(255,255,255,.2); color: #fff; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s, background .3s; }
.is-solid .nav-toggle span, .nav-open .nav-toggle span { background: var(--navy); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; padding: 1rem 1.25rem 1.5rem; box-shadow: 0 20px 30px rgba(14,42,92,.12);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a:not(.btn) { display: block; padding: .85rem 0; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 1rem; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 860px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; padding: calc(var(--header-h) + 3rem) 0 clamp(6rem, 12vw, 9rem);
}
.hero-media {
  position: absolute; inset: -4% 0 0 0; background-size: cover; background-position: center 35%;
  transform: scale(1.05); will-change: transform;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,31,69,.92) 0%, rgba(10,31,69,.75) 38%, rgba(10,31,69,.2) 75%),
    linear-gradient(0deg, rgba(10,31,69,.65) 0%, rgba(10,31,69,0) 45%);
}
.hero-content { position: relative; z-index: 2; }
.hero-kicker { font-weight: 600; color: var(--lake-2); margin-bottom: 1rem; font-size: 1.05rem; }
.hero-title {
  font-size: clamp(3.2rem, 9vw, 7.4rem); font-weight: 700; line-height: .9;
  color: #fff; margin: 0 0 1.5rem; letter-spacing: -.01em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line:last-child { color: var(--orange); }
.hero-lead { max-width: 38rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; z-index: 3; }
.hero-wave path { fill: var(--navy); }

/* page-load sequence (only orchestrated motion on the page) */
.js .hero-kicker, .js .hero-lead, .js .hero-actions, .js .hero-title .line { opacity: 0; transform: translateY(24px); }
.loaded .hero-kicker, .loaded .hero-lead, .loaded .hero-actions, .loaded .hero-title .line {
  opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.loaded .hero-title .line:nth-child(1) { transition-delay: .1s; }
.loaded .hero-title .line:nth-child(2) { transition-delay: .22s; }
.loaded .hero-title .line:nth-child(3) { transition-delay: .34s; }
.loaded .hero-lead { transition-delay: .5s; }
.loaded .hero-actions { transition-delay: .62s; }

/* ---------- Milestone ---------- */
.milestone { background: var(--navy); color: #fff; padding: 2.5rem 0 3.5rem; }
.milestone-inner { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 3rem; align-items: center; }
.milestone-figure { display: flex; align-items: baseline; gap: .6rem; }
.counter { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.milestone-unit { font-family: var(--display); font-size: 1.6rem; color: var(--orange); font-weight: 600; }
.milestone-text { margin: 0; color: rgba(255,255,255,.82); max-width: 32rem; }
.milestone-text em { color: #fff; font-style: normal; font-weight: 600; }
.milestone-facts { grid-column: 1 / -1; list-style: none; margin: .5rem 0 0; padding: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; border-top: 1px solid rgba(255,255,255,.12); }
.milestone-facts li { display: flex; flex-direction: column; border-left: 2px solid rgba(255,255,255,.2); padding-left: .9rem; }
.milestone-facts b { font-family: var(--display); font-size: 1.7rem; line-height: 1; }
.milestone-facts span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ---------- Section heads ---------- */
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.tabs { position: relative; display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 2rem; }
.tab {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  font: 600 1rem var(--body); color: var(--muted); padding: .7rem 1.4rem; border-radius: 999px; transition: color .25s;
}
.tab.is-active { color: #fff; }
.tab-indicator {
  position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--navy);
  transition: left .35s cubic-bezier(.3,.7,.2,1), width .35s cubic-bezier(.3,.7,.2,1);
}

.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); background: transparent; transition: background .25s; }
.svc.is-open { background: #fff; }
.svc-head {
  width: 100%; display: grid; grid-template-columns: 52px 1fr 36px; gap: 1.2rem; align-items: center;
  padding: 1.35rem 1rem; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--lake); color: var(--navy); transition: background .25s, color .25s;
}
.svc-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc.is-open .svc-icon { background: var(--navy); color: #fff; }
.svc-title { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 600; color: var(--navy); line-height: 1.1; }
.svc-title small { display: block; font-family: var(--body); font-size: .95rem; font-weight: 500; color: var(--muted); margin-top: .25rem; }
.svc-plus { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); transition: transform .3s, background .3s, border-color .3s; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--navy); transform: translate(-50%,-50%); }
.svc-plus::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .3s; }
.svc.is-open .svc-plus { background: var(--orange); border-color: var(--orange); }
.svc.is-open .svc-plus::before, .svc.is-open .svc-plus::after { background: #fff; }
.svc.is-open .svc-plus::after { transform: translate(-50%,-50%) rotate(0deg); }
.svc-body { display: none; padding: 0 1rem 1.8rem calc(52px + 2.2rem); max-width: 58rem; color: var(--muted); }
.svc.is-open .svc-body { display: block; }
.svc-body h4 { color: var(--ink); }

.ticks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem 1.5rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }

.badge {
  display: inline-block; vertical-align: middle; background: var(--orange); color: #fff;
  font-family: var(--body); font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; margin-left: .4rem;
}
.badge-lg { font-size: .85rem; padding: .3rem .8rem; margin: 0 0 1rem; }
.svc-new .svc-icon { background: #FDE5D8; color: var(--orange-2); }

/* ---------- Lake logistics ---------- */
.lake { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.lake h2 { color: #fff; }
.lake-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lake-copy > p { color: rgba(255,255,255,.8); }
.route-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 1.4rem; }
.chip {
  font: 500 .95rem var(--body); color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .55rem 1rem; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { background: rgba(255,255,255,.16); }
.chip.is-active { background: var(--orange); border-color: var(--orange); }
.route-card { background: rgba(255,255,255,.06); border-left: 3px solid var(--orange); border-radius: 0 var(--radius-m) var(--radius-m) 0; padding: 1.3rem 1.5rem; }
.route-card h3 { color: #fff; margin-bottom: .4rem; }
.route-card p { color: rgba(255,255,255,.8); margin-bottom: .9rem; }
.route-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.route-tags li { font-size: .82rem; background: rgba(220,235,245,.15); color: var(--lake); padding: .2rem .65rem; border-radius: 999px; }

.lake-map { position: relative; margin: 0; background: #12346E; border-radius: var(--radius-l); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(220,235,245,.12); }
.lake-map svg { width: 100%; height: auto; display: block; }
.lake-map figcaption { position: absolute; left: 1rem; bottom: .7rem; font-size: .78rem; color: rgba(255,255,255,.55); }
.lake-map .water { fill: #2B67C7; opacity: .55; }
.lake-map .land { fill: #12346E; stroke: rgba(220,235,245,.55); stroke-width: 1.5; }
.lake-map .contour { fill: none; stroke: rgba(220,235,245,.18); stroke-width: 1; stroke-dasharray: 3 5; }
.lake-map .route {
  fill: none; stroke: rgba(220,235,245,.35); stroke-width: 2; stroke-dasharray: 6 7; stroke-linecap: round;
  transition: stroke .3s, stroke-width .3s, opacity .3s;
}
.lake-map .route.is-active { stroke: var(--orange); stroke-width: 3.5; animation: sail 1.2s linear infinite; }
@keyframes sail { to { stroke-dashoffset: -26; } }
.lake-map .port circle { fill: #fff; }
.lake-map .port-main circle:first-child { fill: var(--orange); }
.lake-map .port-main .core { fill: #fff; }
.lake-map .lbl { fill: #fff; font: 600 15px var(--body); }
.lake-map .lbl-strong { font: 700 20px var(--display); letter-spacing: .02em; }
.lake-map .lbl-water { fill: rgba(220,235,245,.55); font: 500 italic 17px var(--body); }
.lake-map .lbl-small { font-size: 13px; }
.lake-map .compass circle { fill: none; stroke: rgba(220,235,245,.4); }
.lake-map .compass path { fill: rgba(220,235,245,.6); }
.lake-map .compass text { fill: rgba(220,235,245,.7); font: 600 12px var(--body); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-photo { position: relative; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.about-photo > img { border-radius: var(--radius-l); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-quote {
  position: absolute; left: -1.2rem; bottom: 2rem; background: var(--orange); color: #fff;
  padding: 1.1rem 1.4rem; border-radius: var(--radius-m); display: flex; align-items: center; gap: .8rem;
  box-shadow: 0 18px 40px rgba(242,98,31,.3);
}
.about-quote p { margin: 0; font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.about-copy > p { color: var(--muted); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; padding: 1.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vm p { color: var(--muted); margin: 0; font-size: 1rem; }
.values-title { margin-top: .5rem; }
.values { margin: 0; display: grid; gap: 0; }
.values > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.values dt { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--navy); }
.values dd { margin: 0; color: var(--muted); align-self: center; }
.why { margin-top: 2rem; background: var(--paper); border-left: 4px solid var(--orange); border-radius: 0 var(--radius-m) var(--radius-m) 0; padding: 1.3rem 1.5rem; }
.why h3 { margin-bottom: .3rem; }
.why p { margin: 0; color: var(--muted); }

/* ---------- HSE ---------- */
.hse { background: var(--orange); color: #fff; padding: clamp(3.5rem, 6vw, 5rem) 0; }
.hse-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: center; }
.hse h2 { color: #fff; }
.hse-title p { margin: 0 0 1rem; color: rgba(255,255,255,.9); }
.hse-title .hse-closing { margin: 0; font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: #fff; line-height: 1.2; }
.hse-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.hse-list li { border-top: 2px solid rgba(255,255,255,.45); padding-top: .9rem; font-size: .98rem; color: rgba(255,255,255,.92); }
.hse-list strong { display: block; font-family: var(--display); font-size: 1.5rem; color: #fff; font-weight: 600; margin-bottom: .2rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: .8rem; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius-m); display: block; }
.g-item.g-wide { grid-column: span 2; grid-row: span 2; }
.g-item.g-pano { grid-column: 1 / -1; }
.g-item.g-pano img { object-position: center 65%; }
.gallery-grid:not(.gallery-count-6) .g-pano { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(6,18,40,.94);
  display: flex; align-items: center; justify-content: center; padding: 3rem 4.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: var(--radius-s); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; transition: background .2s; }
.lightbox button:hover { background: var(--orange); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info > p { color: var(--muted); }
.person { display: flex; align-items: center; gap: 1rem; margin: 1.8rem 0 1.2rem; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 1.4rem; font-weight: 600; }
.person strong { display: block; font-size: 1.1rem; }
.person span { color: var(--muted); font-size: .92rem; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-lines li { display: grid; grid-template-columns: 7rem 1fr; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.contact-lines span { color: var(--muted); }
.contact-lines a { color: var(--navy); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-lines a:hover { color: var(--orange); }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.office h3 { font-size: 1.3rem; }
.office p { color: var(--muted); font-size: .97rem; }
.office a { color: var(--navy); font-weight: 600; text-decoration: none; }

.contact-form { background: #fff; border-radius: var(--radius-l); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 30px 60px -30px rgba(14,42,92,.35); border-top: 5px solid var(--orange); }
.contact-form h3 { font-size: 1.9rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: .75rem .9rem; transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field .is-invalid { border-color: #C8321E; }
.form-msg { font-weight: 600; font-size: .95rem; padding: .75rem 1rem; border-radius: var(--radius-s); }
.form-msg.is-error { color: #A42A17; background: #FCE9E5; }
.form-msg.is-ok { color: #11603A; background: #E3F5EA; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.field-captcha input { max-width: 8rem; }
.contact-form { position: relative; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.75); padding: 2.5rem 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand strong { display: block; color: #fff; font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.footer-brand span { font-size: .88rem; }
.footer-nav ul { display: flex; gap: 1.2rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-nav a:hover { color: var(--orange); }
.copy { margin: 0; width: 100%; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* ---------- Floating ---------- */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 25px rgba(31,175,90,.4); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.to-top {
  position: fixed; right: 1.35rem; bottom: 5.4rem; z-index: 60; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); border: 0; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }


/* =========================================================
   Inner pages (blog, pages, posts)
   ========================================================= */
.cl-inner .site-header { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); }
.cl-inner .brand-mark { filter: none; }
.cl-inner .brand-text { color: var(--navy); }
.cl-inner .main-nav a { color: var(--ink); }
.cl-inner .main-nav a:hover { background: var(--lake); color: var(--navy); }
.cl-inner .nav-toggle span { background: var(--navy); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { position: absolute; } .admin-bar .site-header.is-solid { position: fixed; top: 0; } }

.page-banner { position: relative; background: var(--navy); color: #fff; padding: calc(var(--header-h) + 3.5rem) 0 5rem; overflow: hidden; }
.page-banner::before { content: ""; position: absolute; right: -60px; top: 40px; width: 360px; height: 360px; border-radius: 50%; border: 1px dashed rgba(220,235,245,.18); }
.page-banner h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; margin: 0; max-width: 22ch; position: relative; }
.page-banner p { color: var(--lake-2); margin: .8rem 0 0; position: relative; }
.page-banner p a { color: #fff; }
.banner-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 40px; }
.banner-wave path { fill: #fff; }
.section-inner { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: 0 24px 40px -24px rgba(14,42,92,.35); transform: translateY(-3px); }
.post-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--navy); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-ph { display: grid; place-items: center; height: 100%; }
.post-card-ph img { width: 64px; height: auto; opacity: .6; }
.post-card-body { padding: 1.3rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card-body p { color: var(--muted); font-size: .98rem; }
.post-card-body .text-link { margin-top: auto; }
.post-meta { font-size: .85rem !important; color: var(--muted); margin-bottom: .4rem; }
.post-card-title { font-size: 1.6rem; font-weight: 600; margin-bottom: .5rem; }
.post-card-title a { color: var(--navy); text-decoration: none; }
.post-card-title a:hover { color: var(--orange); }

.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; }
.nav-links .page-numbers { display: inline-block; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 600; }
.nav-links .page-numbers.current, .nav-links .page-numbers:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.entry { max-width: 820px; margin: 0 auto; }
.entry-image { margin: 0 0 2rem; }
.entry-image img { border-radius: var(--radius-l); width: 100%; }
.entry-content { font-size: 1.1rem; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 2.2rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.7rem; margin-top: 1.4em; }
.entry-content a { color: var(--blue); text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content blockquote { margin-left: 0; border-left: 4px solid var(--orange); padding: .4em 0 .4em 1.2em; font-family: var(--display); font-size: 1.5rem; color: var(--navy); line-height: 1.3; }
.entry-content img { border-radius: var(--radius-m); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: .6rem; text-align: left; }
.entry-content .wp-block-button__link { background: var(--orange); border-radius: 999px; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--muted); }
.entry-tags { margin-top: 2rem; }
.entry-tags a { display: inline-block; background: var(--lake); color: var(--navy); padding: .2rem .7rem; border-radius: 999px; text-decoration: none; font-size: .88rem; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav a { color: var(--navy); font-weight: 600; text-decoration: none; }
.post-nav a:hover { color: var(--orange); }

.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form input[type=search] { flex: 1; font: inherit; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.empty-state { text-align: center; }
.empty-state .search-form { margin: 1.5rem auto; }

.comments { max-width: 820px; margin: 3rem auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-list .avatar { border-radius: 50%; float: left; margin-right: 1rem; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; font: inherit; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--paper); }
.comment-form .submit { background: var(--orange); color: #fff; border: 0; padding: .8rem 1.4rem; border-radius: 999px; font: 600 1rem var(--body); cursor: pointer; }

/* Why choose us list */
.why-list { list-style: none; counter-reset: why; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.5rem; }
.why-list li { counter-increment: why; display: flex; align-items: baseline; gap: .6rem; font-weight: 600; color: var(--navy); }
.why-list li::before { content: counter(why); font-family: var(--display); font-weight: 700; color: var(--orange); font-size: 1.25rem; min-width: 1ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-call { display: none; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .nav-open .mobile-nav { display: block; }
  .nav-open.site-header { background: #fff; }
  .nav-open .brand-mark { filter: none; }
  .nav-open .brand-text { color: var(--navy); }

  .lake-grid, .about-grid, .hse-inner, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { position: relative; top: 0; }
  .about-photo > img { aspect-ratio: 16/10; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,31,69,.95) 0%, rgba(10,31,69,.72) 100%); }
  .hero-kicker { font-size: .95rem; }
  .hero-actions { flex-wrap: nowrap; gap: .6rem; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: .85rem .6rem; font-size: .95rem; white-space: nowrap; }
  .milestone-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .milestone-facts { flex-wrap: wrap; gap: 1rem 1.5rem; }
  .svc-head { grid-template-columns: 44px 1fr 32px; gap: .9rem; padding: 1.1rem .4rem; }
  .svc-icon { width: 44px; height: 44px; border-radius: 12px; }
  .svc-plus { width: 32px; height: 32px; }
  .svc-body { padding: 0 .4rem 1.5rem; }
  .two-col, .vm, .hse-list, .offices, .field-row, .why-list { grid-template-columns: 1fr; }
  .values > div { grid-template-columns: 1fr; gap: .1rem; }
  .tabs { display: flex; }
  .tab { flex: 1; padding: .65rem .5rem; font-size: .9rem; line-height: 1.2; }
  .gallery-grid { grid-auto-rows: 140px; }
  .about-quote { left: .8rem; bottom: .8rem; }
  .lightbox { padding: 4rem .5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .form-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-kicker, .js .hero-lead, .js .hero-actions, .js .hero-title .line { opacity: 1; transform: none; }
}

/* =========================================================
   v3: video hero, two divisions, video reel
   ========================================================= */

/* Hero video */
.hero-media { background: var(--navy) center/cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-divisions { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-divisions a {
  display: inline-block; padding: .45rem .95rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; color: #fff; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); transition: background .2s, border-color .2s;
}
.hero-divisions a:hover { background: var(--orange); border-color: var(--orange); }
.js .hero-divisions { opacity: 0; transform: translateY(24px); }
.loaded .hero-divisions { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }

/* Divisions */
.division-clearing { background: var(--paper); }
.division-marine { background: #fff; }
.div-head { max-width: 48rem; margin-bottom: 2.6rem; }
.div-head h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: .35em; }
.div-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.div-place {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .9rem;
  font-weight: 600; font-size: .95rem; color: var(--blue);
}
.div-place::before {
  content: ""; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--orange); box-shadow: 0 0 0 3px rgba(242,98,31,.18);
}
.div-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.div-grid .svc-list { border-top: 1px solid var(--line); }
.division-marine .svc.is-open { background: var(--paper); }
.div-feature { position: sticky; top: calc(var(--header-h) + 1.5rem); border-radius: var(--radius-l); overflow: hidden; }

/* Containers card */
.feature-containers { background: var(--navy); color: #fff; padding: 1.8rem 1.6rem 1.9rem; }
.feature-containers h3 { color: #fff; font-size: 2rem; margin: 1rem 0 .4rem; }
.feature-containers p { color: rgba(255,255,255,.82); font-size: 1rem; }
.fc-art { width: 100%; height: auto; display: block; }
.fc-art .c1 { fill: var(--orange); }
.fc-art .c2 { fill: var(--blue); }
.fc-art .c3 { fill: #DCEBF5; }
.fc-ribs path { stroke: rgba(14,42,92,.28); stroke-width: 2; fill: none; }
.agency-chips { list-style: none; margin: 1.2rem 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.agency-chips li { font-size: .82rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; background: rgba(220,235,245,.14); color: var(--lake); }

/* Video card */
.feature-video { background: var(--navy-2); color: #fff; }
.fv-video { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--navy-2); }
.fv-caption { padding: 1.3rem 1.5rem 1.6rem; }
.fv-caption h3 { color: #fff; font-size: 1.7rem; margin-bottom: .3rem; }
.fv-caption p { color: rgba(255,255,255,.8); font-size: .98rem; }
.fv-caption .text-link { color: var(--orange); }

/* Video reel */
.reel { background: var(--navy-2); color: #fff; }
.reel h2 { color: #fff; }
.reel .section-head p { color: rgba(255,255,255,.72); }
.reel-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.2rem; align-items: start; }
.reel-stage { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-l); overflow: hidden; background: #071634; }
.reel-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) brightness(.55); transform: scale(1.1); transition: background-image .3s; }
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.reel-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.6rem 1.4rem;
  background: linear-gradient(0deg, rgba(7,22,52,.92), rgba(7,22,52,0));
}
.reel-caption h3 { color: #fff; font-size: 1.8rem; margin: 0 0 .2rem; }
.reel-caption p { margin: 0; color: rgba(255,255,255,.82); }
.reel-play {
  position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: background .2s;
}
.reel-play:hover { background: var(--orange); }
.reel-play svg { width: 20px; height: 20px; fill: #fff; }
.reel-play .i-play { display: none; }
.reel-play[aria-pressed="false"] .i-play { display: block; }
.reel-play[aria-pressed="false"] .i-pause { display: none; }
.reel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.reel-item {
  width: 100%; display: grid; grid-template-columns: 112px 1fr; gap: .9rem; align-items: center; text-align: left;
  padding: .5rem; border-radius: var(--radius-m); cursor: pointer; font: inherit; color: #fff;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .2s, border-color .2s;
}
.reel-item:hover { background: rgba(255,255,255,.1); }
.reel-item.is-active { border-color: var(--orange); background: rgba(242,98,31,.14); }
.reel-item img { width: 112px; height: 72px; object-fit: cover; border-radius: 8px; }
.reel-item b { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 600; line-height: 1.1; }
.reel-item small { color: rgba(255,255,255,.65); font-size: .85rem; }

@media (max-width: 1080px) {
  .main-nav a { padding: .5rem .6rem; font-size: .95rem; }
}
@media (max-width: 900px) {
  .div-grid { grid-template-columns: 1fr; }
  .div-feature { position: relative; top: 0; }
  .reel-grid { grid-template-columns: 1fr; }
  .reel-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-divisions a { font-size: .85rem; padding: .4rem .8rem; }
  .reel-stage { aspect-ratio: 4/5; }
  .reel-list { grid-template-columns: 1fr; }
  .reel-caption h3 { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-divisions { opacity: 1; transform: none; }
}
