/* ==========================================================================
   ABC Marine Services — Salt Rock, KZN
   Design system + site styles
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --navy-900: #04141f;
  --navy-850: #061e2c;
  --navy-800: #08283a;
  --navy-700: #0c3a54;
  --blue-600: #12628f;
  --blue-500: #1a7bb0;
  --aqua-500: #1fb2c4;
  --aqua-400: #35cbd8;
  --aqua-300: #7fe3ea;

  --sand-50:  #fbf8f3;
  --sand-100: #f5f0e7;
  --sand-200: #e9e0d1;

  --ink:      #0d1c25;
  --body:     #3d4f5a;
  --muted:    #6b7d88;
  --line:     rgba(13, 28, 37, .12);
  --line-soft:rgba(13, 28, 37, .07);
  --white:    #ffffff;

  --danger:   #c0392b;
  --success:  #157a4e;

  /* Typography */
  --font-head: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing / layout */
  --container: 1180px;
  --gutter: 24px;
  --section-y: clamp(64px, 8vw, 116px);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 2px 8px rgba(4, 20, 31, .06);
  --sh-md: 0 10px 30px rgba(4, 20, 31, .10);
  --sh-lg: 0 24px 60px rgba(4, 20, 31, .18);

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.14;
  margin: 0 0 .55em;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--aqua-500); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

strong { color: var(--ink); font-weight: 650; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--sand { background: var(--sand-100); }
.section--sand-soft { background: var(--sand-50); }
.section--navy { background: var(--navy-850); color: rgba(255,255,255,.78); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--aqua-500);
  border-radius: 2px;
}
.section--navy .eyebrow { color: var(--aqua-400); }

.section-head { max-width: 700px; margin-bottom: clamp(38px, 5vw, 60px); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head.is-centered .eyebrow::before { display: none; }
.section-head p { font-size: 1.06rem; color: var(--muted); margin-bottom: 0; }
.section--navy .section-head p { color: rgba(255,255,255,.72); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-family: var(--font-head);
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  box-shadow: 0 6px 18px rgba(18, 98, 143, .26);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(18, 98, 143, .32);
}
.btn:active { transform: translateY(0); }

.btn--accent {
  --btn-bg: var(--aqua-500);
  box-shadow: 0 6px 18px rgba(31, 178, 196, .32);
}
.btn--accent:hover { box-shadow: 0 12px 26px rgba(31, 178, 196, .4); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255,255,255,.5);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  box-shadow: none;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  border-color: var(--line);
  box-shadow: none;
}
.btn--outline:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
  background: rgba(18, 98, 143, .05);
  box-shadow: none;
}

.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--blue-600);
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,.72);
  font-size: .84rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  padding-block: 6px;
}
.topbar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
}
.topbar__list li { margin: 0; }
.topbar a {
  color: rgba(255,255,255,.82);
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.topbar a:hover { color: var(--aqua-400); }
.topbar svg { color: var(--aqua-400); flex-shrink: 0; }
.topbar__tag { display: inline-flex; align-items: center; gap: .5em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(4,20,31,.10); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo__mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -.02em;
  color: var(--navy-800);
}
.logo__name span { color: var(--aqua-500); }
.logo__tagline {
  font-size: .66rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 8px; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__list li { margin: 0; }
.nav__list a {
  display: block;
  font-family: var(--font-head);
  font-weight: 550;
  font-size: .96rem;
  color: var(--navy-800);
  padding: 9px 14px;
  border-radius: var(--r-pill);
  transition: background .18s ease, color .18s ease;
}
.nav__list a:hover { background: rgba(18, 98, 143, .08); color: var(--blue-600); }
.nav__list a[aria-current="page"] { color: var(--blue-600); background: rgba(18, 98, 143, .1); }

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

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.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; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  padding-block: clamp(80px, 12vw, 140px) clamp(120px, 14vw, 190px);
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  /* Mirrored so the boat sits in the clear right-hand half rather than
     behind the headline. The photo is symmetrical in content — no text or
     markings — so the flip is invisible to the viewer. */
  transform: scaleX(-1);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(4,20,31,.92) 0%, rgba(4,20,31,.74) 42%, rgba(4,20,31,.30) 72%, rgba(4,20,31,.42) 100%),
    linear-gradient(to top, rgba(4,20,31,.75) 0%, rgba(4,20,31,0) 42%);
}
.hero__inner { max-width: 660px; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 em {
  font-style: normal;
  color: var(--aqua-400);
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.86);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  margin-bottom: 1.6rem;
}
.hero__badge svg { color: var(--aqua-400); }

.hero__points {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: .55em;
  margin: 0;
  font-size: .93rem;
  color: rgba(255,255,255,.85);
}
.hero__points svg { color: var(--aqua-400); flex-shrink: 0; }

/* Hero page variant (inner pages) */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(70px, 9vw, 120px);
  color: #fff;
  background: var(--navy-850);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(4,20,31,.94) 10%, rgba(4,20,31,.78) 55%, rgba(4,20,31,.55) 100%);
}
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p {
  color: rgba(255,255,255,.82);
  max-width: 620px;
  font-size: 1.08rem;
  margin-bottom: 0;
}
.page-hero .container { position: relative; }

/* Breadcrumb */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5em;
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.crumbs li { margin: 0; display: flex; align-items: center; gap: .5em; }
.crumbs li + li::before { content: "/"; color: rgba(255,255,255,.35); }
.crumbs a { color: rgba(255,255,255,.8); }
.crumbs a:hover { color: var(--aqua-400); }

/* ==========================================================================
   Service cards (overlapping the hero)
   ========================================================================== */
.quick-services {
  position: relative;
  z-index: 5;
  margin-top: clamp(-110px, -9vw, -80px);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  transition: transform .28s ease, box-shadow .28s ease;
  color: var(--body);
  height: 100%;
}
.quick-card:hover { transform: translateY(-6px); color: var(--body); }
/* The media box itself does NOT clip, so the icon can overhang its bottom
   edge. The inner frame clips the zooming image instead. */
.quick-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy-800);
}
.quick-card__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: block;
}
.quick-card__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.quick-card:hover .quick-card__frame img { transform: scale(1.06); }
.quick-card__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,20,31,.55), rgba(4,20,31,0) 55%);
}
.quick-card__icon {
  position: absolute;
  left: 22px; bottom: -24px;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: var(--aqua-500);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(31,178,196,.4);
  z-index: 2;
}
.quick-card__body { padding: 40px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.quick-card h3 { margin-bottom: .5em; }
.quick-card p { font-size: .96rem; color: var(--muted); margin-bottom: 1.3rem; }
.quick-card .link-arrow { margin-top: auto; }

/* ==========================================================================
   Feature / split sections
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split--media-right .split__media { order: 2; }

/* NB: no overflow:hidden here — the .media-badge deliberately overhangs the
   right edge. The radius/clipping lives on the image itself instead. */
.split__media { position: relative; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

.split__media--stacked {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.split__media--stacked img {
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  aspect-ratio: 3 / 4;
}
.split__media--stacked img:nth-child(2) { margin-top: 34px; }

/* floating stat badge on images */
.media-badge {
  position: absolute;
  right: -14px;
  bottom: 28px;
  background: var(--navy-800);
  color: #fff;
  padding: 18px 24px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  max-width: 230px;
}
.media-badge strong {
  display: block;
  font-family: var(--font-head);
  color: var(--aqua-400);
  font-size: 1.02rem;
  margin-bottom: 3px;
}
.media-badge span { font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.45; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: .85em;
  font-size: .99rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(31, 178, 196, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fb2c4' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}
.section--navy .checklist li { color: rgba(255,255,255,.78); }

/* Two-column checklist */
.checklist--two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 30px;
}

/* ==========================================================================
   Feature grid (why choose us)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 26px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: transparent;
}
.feature__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-600), var(--aqua-500));
  color: #fff;
  margin-bottom: 20px;
}
.feature h3 { font-size: 1.14rem; margin-bottom: .4em; }
.feature p { font-size: .94rem; color: var(--muted); margin: 0; }

.section--navy .feature {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.1);
}
.section--navy .feature:hover { background: rgba(255,255,255,.075); }
.section--navy .feature p { color: rgba(255,255,255,.7); }

/* ==========================================================================
   Detailed service blocks
   ========================================================================== */
.service-block { scroll-margin-top: calc(var(--header-h) + 30px); }
.service-block + .service-block { margin-top: clamp(60px, 8vw, 100px); }

.service-block__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--aqua-400);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.price-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(31, 178, 196, .08);
  border-left: 3px solid var(--aqua-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px;
  margin: 1.6rem 0;
  font-size: .93rem;
  color: var(--body);
}
.price-note svg { color: var(--aqua-500); flex-shrink: 0; margin-top: 3px; }
.price-note strong { display: block; margin-bottom: 2px; }

/* ==========================================================================
   Process steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
  position: relative;
}
.step { position: relative; counter-increment: step; }
.step__num {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid var(--aqua-500);
  color: var(--blue-600);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.step__num::after {
  content: "";
  position: absolute;
  left: calc(100% + 2px);
  top: 50%;
  width: calc(100% + 28px - 54px);
  height: 2px;
  background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 12px);
  z-index: -1;
}
.step:last-child .step__num::after { display: none; }
.step h3 { font-size: 1.1rem; margin-bottom: .4em; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }

.section--navy .step__num { background: var(--navy-850); color: var(--aqua-400); }

/* ==========================================================================
   Coverage area
   ========================================================================== */
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
}
.areas li { margin: 0; }
.areas span {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy-800);
  font-size: .89rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: border-color .2s ease, color .2s ease;
}
.areas span:hover { border-color: var(--aqua-500); color: var(--blue-600); }
.areas span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--aqua-500);
}
.section--sand .areas span { background: #fff; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat { padding: 8px 12px; }
.stat__icon { color: var(--aqua-400); margin: 0 auto 12px; }
.stat__value {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 4px;
}
.stat__label { font-size: .88rem; color: rgba(255,255,255,.62); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-800);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  width: 100%;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,20,31,.7), rgba(4,20,31,0) 55%);
  opacity: .75;
  transition: opacity .3s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item__caption {
  position: absolute;
  left: 18px; right: 18px; bottom: 15px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  text-align: left;
  transform: translateY(4px);
  transition: transform .3s ease;
}
.gallery-item:hover .gallery-item__caption { transform: translateY(0); }

/* make some items span 2 for visual rhythm */
.gallery-item--wide { grid-column: span 2; aspect-ratio: 8 / 3; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 20, 31, .95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  object-fit: contain;
}
.lightbox__caption {
  position: absolute;
  bottom: max(3vh, 22px);
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  padding-inline: 20px;
}
.lightbox__btn {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: max(2vw, 14px); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: max(2vw, 14px); top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: 0;
  padding: 24px 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.faq-item__q:hover { color: var(--blue-600); }
.faq-item__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(31, 178, 196, .14);
  color: var(--blue-600);
  display: grid; place-items: center;
  transition: transform .3s ease, background .25s ease;
  margin-top: 2px;
}
.faq-item__q[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
  background: var(--aqua-500);
  color: #fff;
}
/* Collapsed via max-height rather than the 0fr/1fr grid trick: that technique
   fails to expand on the first interaction in Chrome and is unsupported in
   Safari < 16. main.js sets the pixel height on open. */
.faq-item__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .32s cubic-bezier(.4, 0, .2, 1);
}
.faq-item__a p {
  padding-bottom: 24px;
  color: var(--muted);
  font-size: .99rem;
  margin: 0;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 8vw, 104px);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(6, 30, 44, .93), rgba(4, 20, 31, .86));
}
.cta-band h2 { color: #fff; max-width: 720px; margin-inline: auto; }
.cta-band p {
  color: rgba(255,255,255,.8);
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.06rem;
}
.cta-band .btn-row { justify-content: center; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 5vw, 62px);
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.5vw, 44px);
  box-shadow: var(--sh-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--sand-50);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--aqua-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 178, 196, .14);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa8b1; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7d88' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
}
.field small { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* honeypot — hidden from humans */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--muted);
  margin-top: 4px;
}
.form-consent input { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; accent-color: var(--aqua-500); }

.form-alert {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: .93rem;
  margin-bottom: 22px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.form-alert svg { flex-shrink: 0; margin-top: 3px; }
.form-alert--error { background: rgba(192, 57, 43, .08); color: #922; border: 1px solid rgba(192,57,43,.22); }
.form-alert--ok { background: rgba(21, 122, 78, .08); color: var(--success); border: 1px solid rgba(21,122,78,.22); }

/* Contact detail cards */
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.contact-card:hover {
  border-color: transparent;
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.contact-card__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--aqua-500));
  color: #fff;
}
.contact-card h3 { font-size: 1rem; margin-bottom: .25em; }
.contact-card p { font-size: .95rem; margin: 0; color: var(--muted); }
.contact-card a { font-weight: 600; color: var(--navy-800); word-break: break-word; }
.contact-card a:hover { color: var(--aqua-500); }

.map-embed {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
  box-shadow: var(--sh-sm);
}
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.62);
  padding-top: clamp(56px, 7vw, 84px);
  font-size: .94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px 36px;
  padding-bottom: 52px;
}
.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.3em;
}
.site-footer a { color: rgba(255,255,255,.66); }
.site-footer a:hover { color: var(--aqua-400); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .7em; }

.footer-about .logo__name { color: #fff; }
.footer-about .logo__tagline { color: rgba(255,255,255,.45); }
.footer-about p { margin-top: 20px; font-size: .93rem; line-height: 1.7; }

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1em;
}
.footer-contact svg { color: var(--aqua-400); flex-shrink: 0; margin-top: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  align-items: center;
  font-size: .86rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ==========================================================================
   Floating contact buttons
   ========================================================================== */
.fab-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(4, 20, 31, .3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fab:hover { transform: scale(1.08); color: #fff; box-shadow: 0 12px 30px rgba(4,20,31,.4); }
.fab--whatsapp { background: #25d366; }
.fab--call { background: var(--blue-600); display: none; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Scoped to .js (set by an inline script in each page's head). If JavaScript
   never runs, nothing is hidden and the whole page renders normally. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Simple content page (thank you / 404 / legal)
   ========================================================================== */
.simple-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(70px, 10vw, 130px);
}
.simple-page__icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(31, 178, 196, .12);
  color: var(--aqua-500);
  margin: 0 auto 28px;
}
.simple-page p { max-width: 540px; margin-inline: auto; color: var(--muted); font-size: 1.06rem; }
.simple-page .btn-row { justify-content: center; margin-top: 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .quick-services { margin-top: clamp(-70px, -6vw, -50px); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
  .step__num::after { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  /* The drawer is parked to the LEFT when closed, not the right. Content
     pushed past the right edge grows the document's scroll width and gives
     the whole site a horizontal scrollbar on mobile; negative space to the
     left is never scrollable, so it costs nothing. */
  .nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(340px, 86vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 96px 26px 40px;
    box-shadow: 20px 0 50px rgba(4,20,31,.2);
    transform: translateX(-105%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    z-index: 120;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list a {
    padding: 14px 16px;
    border-radius: var(--r-sm);
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .header-cta { margin: 22px 0 0; }
  .header-cta .btn { width: 100%; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4,20,31,.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 110;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  body.nav-open { overflow: hidden; }

  .split { grid-template-columns: 1fr; }
  .split--media-right .split__media { order: 0; }
  .media-badge { right: 14px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar__inner { justify-content: center; }
  .topbar__tag { display: none; }
  .topbar__list { gap: 16px; justify-content: center; }
  .checklist--two { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom nav { justify-content: center; }
  .fab--call { display: grid; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 200px; }
  .split__media--stacked img:nth-child(2) { margin-top: 0; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .logo__tagline { display: none; }
  .hero__points { gap: 8px 18px; }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .fab-stack, .cta-band, .site-footer, .nav-toggle { display: none !important; }
  body { color: #000; font-size: 12pt; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
