/* ============================================
   CONTOUR MARINE - Global Stylesheet
   Luxury Marine Contractor Website
   ============================================ */

:root {
  --navy: #0d2b45;
  --navy-dark: #071b2e;
  --navy-mid: #10344f;
  --teal: #1a7a8a;
  --teal-light: #2aa3b8;
  --teal-bright: #3bc4da;
  --aqua: #5ddde8;
  --orange: #d4721a;
  --orange-light: #e8882a;
  --white: #ffffff;
  --off-white: #f4f7f9;
  --light-gray: #e8edf2;
  --mid-gray: #9dafc0;
  --text-dark: #0d2b45;
  --text-mid: #3a5068;
  --gold: #c9a84c;
  --shadow-deep: 0 20px 60px rgba(13, 43, 69, 0.4);
  --shadow-card: 0 8px 32px rgba(13, 43, 69, 0.2);
  --shadow-hover: 0 20px 50px rgba(13, 43, 69, 0.35);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-accent: 'Barlow Condensed', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Account for fixed header when scrolling to anchors */
  scroll-padding-top: 20px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

p {
  font-family: var(--font-body);
  line-height: 1.75;
  color: var(--text-mid);
  font-size: 1.05rem;
}

.section-label {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-light);
  display: block;
  margin-bottom: 0.75rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  pointer-events: auto;
  box-shadow:
    0 1px 0   rgba(59,196,218,0.10),
    0 2px 8px rgba(0,0,0,0.25);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* ── DESKTOP: nav sits in normal flow, hero starts below it ── */
@media (min-width: 769px) {
  nav {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 100 !important;
    width: 100% !important;
    background: var(--navy-dark) !important;
    box-shadow: 0 1px 0 rgba(59,196,218,0.08), 0 2px 8px rgba(0,0,0,0.20) !important;
  }
  nav.scrolled {
    position: relative !important;
    background: var(--navy-dark) !important;
  }
  .nav-container {
    padding: 0.4rem 1.5rem !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
  }
  .hero,
  #hero {
    padding-top: 20px !important;
    margin-top: 0 !important;
  }
  .nav-logo,
  .nav-logo-block {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    border: none !important;
    padding: 0 !important;
  }
  .nav-logo-img {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    border: none !important;
    width: 280px !important;
    max-width: 280px !important;
    height: auto !important;
    object-fit: contain !important;
    image-rendering: auto !important;
  }
}

nav.scrolled {
  background: rgba(7, 27, 46, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
  box-shadow:
    0 1px 0   rgba(59,196,218,0.10),
    0 2px 10px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(59,196,218,0.10);
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: unset;
  max-height: none;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  filter: none;
  transition: none;
}

.nav-logo:hover {
  filter: none;
}

/* Hide any leftover img inside nav-logo (safety net) */
.nav-logo img.nav-logo-img { display: block; }

/* ── Logo block ── */
.nav-logo-block {
  display: flex;
  align-items: center;
  width: 100%;
  line-height: 1;
}

/* ── Nav tagline — HIDDEN from header ── */
.nav-logo-tagline {
  display: none !important;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dcc38a;
  text-align: center;
  width: 250px;
  max-width: 250px;
  margin-top: 4px;
  line-height: 1.6;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
nav.scrolled .nav-logo-tagline {
  display: none !important;
}
.footer-logo-tagline {
  display: none !important;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.60rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dcc38a;
  text-align: center;
  width: 250px;
  max-width: 250px;
  margin-top: 4px;
  margin-bottom: 10px;
  line-height: 1.6;
  white-space: normal;
  word-break: break-word;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* ══════════════════════════════════════════════
   LUXURY WORDMARK — NAV
   Satin-metal gold gradient · refined 3-D emboss
   ══════════════════════════════════════════════ */

/* Shimmer sweep keyframe */
@keyframes logoShimmer {
  0%   { background-position: -300% center; }
  100% { background-position:  300% center; }
}

/* Two-line wrapper */
.nav-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
}

/* ── Main name ── */
.nav-logo-text {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1;
  /*
    Satin-metal gold: bright highlight at top,
    warm mid-tone, controlled dark base — no fiery glow
  */
  background: linear-gradient(
    175deg,
    #fff0a0 0%,
    #f7b733 18%,
    #e8900a 40%,
    #d4720a 58%,
    #b85c08 74%,
    #d4720a 86%,
    #f7b733 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: none;
  transition: none;
}

/* Shimmer sweep on hover */
.nav-logo:hover .nav-logo-text {
  background: linear-gradient(
    100deg,
    #f7b733 0%,
    #fff5b0 22%,
    #f7b733 40%,
    #e8900a 58%,
    #f7b733 76%,
    #fff5b0 90%,
    #f7b733 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: none;
  filter: none;
}

/* ── EST · 2001 tagline ── */
.nav-logo-est {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.50em;
  text-transform: uppercase;
  color: rgba(215,180,75,0.95);
  line-height: 1;
  margin-top: 0.34rem;
  display: flex;
  align-items: center;
  gap: 0.6em;
  text-shadow: none;
}
.nav-logo-est::before,
.nav-logo-est::after {
  content: '';
  display: block;
  flex-shrink: 0;
  height: 1px;
  width: 32px;
  background: linear-gradient(90deg,
    rgba(215,180,75,0)   0%,
    rgba(215,180,75,0.5) 30%,
    rgba(215,180,75,1)   55%,
    rgba(215,180,75,0.5) 80%,
    rgba(215,180,75,0)   100%
  );
}
.nav-logo:hover .nav-logo-est {
  color: rgba(240,210,90,1);
  text-shadow: none;
}
.nav-logo:hover .nav-logo-est::before,
.nav-logo:hover .nav-logo-est::after {
  background: linear-gradient(90deg,
    rgba(240,210,90,0)   0%,
    rgba(240,210,90,0.6) 30%,
    rgba(240,210,90,1)   55%,
    rgba(240,210,90,0.6) 80%,
    rgba(240,210,90,0)   100%
  );
}

/* Scrolled state — slightly smaller */
nav.scrolled .nav-logo-text { font-size: 1.60rem; }
nav.scrolled .nav-logo-est  { font-size: 0.60rem; margin-top: 0.26rem; letter-spacing: 0.44em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--teal-bright);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a.active {
  color: var(--teal-bright);
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
}

.nav-cta:hover {
  background: transparent !important;
  border-color: var(--orange) !important;
  color: var(--orange) !important;
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 100px;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: var(--transition);
  pointer-events: none;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: var(--teal-bright);
}

.mobile-nav .nav-cta {
  background: var(--orange) !important;
  padding: 0.8rem 2.5rem !important;
  border-radius: 50px !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  margin-top: 1rem;
}

/* ============================================
   HERO SECTION  — Luxury Redesign
   ============================================ */

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--navy-dark);
  padding: 70px 2rem 3.5rem;
}

/* ── Background — clean deep navy gradient, no photos, no textures ── */
.hero-bg {
  position: absolute;
  inset: 0;
  /* Rich multi-stop navy gradient — perfectly centered, uniform edge-to-edge */
  background:
    radial-gradient(ellipse 100% 65% at 50% 0%,
      rgba(26,122,138,0.22) 0%,
      transparent 55%),
    radial-gradient(ellipse 70% 55% at 50% 100%,
      rgba(59,196,218,0.08) 0%,
      transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%,
      rgba(7,27,46,0.5) 0%,
      transparent 80%),
    linear-gradient(180deg,
      #030b17 0%,
      #071b2e 50%,
      #0c2e46 100%);
  z-index: 0;
}

/* ── Overlay: thin vignette only — not needed without photo, kept minimal ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Very subtle bottom darkening only — no heavy overlay since there's no photo */
  background: linear-gradient(to bottom,
    transparent 60%,
    rgba(3,11,23,0.40) 100%);
  pointer-events: none;
}

/* thin gold/teal line at very bottom for luxury accent */
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59,196,218,0.6) 30%,
    rgba(201,168,76,0.7) 50%,
    rgba(59,196,218,0.6) 70%,
    transparent 100%);
}

/* ── Content wrapper ── */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;   /* wider — gives headline room to breathe */
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0; /* controlled by margins on children */
}

/* ── Logo ── */
.hero-logo-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 1.2rem;
  opacity: 0;
  animation: heroFadeDown 1s 0.1s cubic-bezier(0.22,1,0.36,1) forwards;
}

.hero-logo {
  /* Badge logo is square (2048×2048) */
  width: clamp(200px, 22vw, 280px);
  max-width: 85%;
  height: auto;
  display: block;
  margin: 0 auto;
  flex-shrink: 0;
  object-fit: contain;
  image-rendering: auto;
  /* Subtle drop-shadow — tight radius, no wide bleed */
  filter:
    drop-shadow(0 2px 4px rgba(13,43,69,0.40))
    drop-shadow(0 6px 12px rgba(13,43,69,0.20))
    drop-shadow(0 0 32px rgba(63,214,255,0.09));
  animation: heroLogoFloat 5s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: filter 0.5s ease;
}

@keyframes heroLogoFloat {
  0%   { transform: translateY(0px)   rotateX(1deg)  rotateY(-2deg); }
  25%  { transform: translateY(-7px)  rotateX(-1deg) rotateY(2deg);  }
  50%  { transform: translateY(-12px) rotateX(2deg)  rotateY(1deg);  }
  75%  { transform: translateY(-5px)  rotateX(0deg)  rotateY(-1deg); }
  100% { transform: translateY(0px)   rotateX(1deg)  rotateY(-2deg); }
}

.hero-logo:hover {
  filter:
    drop-shadow(0 2px 5px rgba(13,43,69,0.45))
    drop-shadow(0 6px 14px rgba(13,43,69,0.25))
    drop-shadow(0 0 40px rgba(63,214,255,0.13));
  animation-play-state: paused;
  transform: translateY(-14px) rotateX(2deg) rotateY(2deg) scale(1.04);
}

/* ── Eyebrow label ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  opacity: 0;
  animation: heroFadeUp 0.8s 0.45s ease-out forwards;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* ── Main Headline ── */
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.1rem;
  text-shadow:
    0 1px 4px rgba(0,0,0,0.35),
    0 6px 24px rgba(0,0,0,0.22);
  opacity: 0;
  animation: heroFadeUp 1s 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
  overflow: visible;
  white-space: normal;
  word-break: normal;
  max-width: 860px;
  text-wrap: balance; /* modern balanced wrapping where supported */
}

.hero h1 em {
  font-style: italic;
  color: var(--teal-bright);
  /* subtle glow on the accent word */
  text-shadow:
    0 0 40px rgba(59,196,218,0.45),
    0 2px 4px rgba(0,0,0,0.4);
}

/* ── Sub-headline ── */
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 1.0rem;
  line-height: 1.65;
  text-align: center;
  opacity: 0;
  animation: heroFadeUp 0.9s 0.85s ease-out forwards;
  overflow: visible;
}

.hero-sub-break { display: none; }
@media (min-width: 600px) { .hero-sub-break { display: inline; } }

/* ── Local trust line ── */
.hero-trust-line {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-bright);
  text-align: center;
  margin: 0 auto 2.2rem;
  opacity: 0;
  animation: heroFadeUp 0.9s 0.95s ease-out forwards;
}
.hero-trust-line i {
  opacity: 0.75;
  margin-right: 0.2rem;
}

/* ── CTA Buttons ── */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.9s 1.05s ease-out forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--orange);
  color: var(--white);
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 22px rgba(212,114,26,0.35), 0 0 14px rgba(212,114,26,0.15);
  border: 2px solid var(--orange);
}

.btn-primary:hover {
  background: transparent;
  color: var(--orange);
  box-shadow: 0 12px 35px rgba(212, 114, 26, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--white);
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.65);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.95);
  transform: translateY(-2px);
}

/* Call button gets a teal tint to stand out */
.btn-secondary--call {
  border-color: rgba(59,196,218,0.7);
  color: var(--teal-bright);
}
.btn-secondary--call:hover {
  background: rgba(59,196,218,0.12);
  border-color: var(--teal-bright);
  color: #fff;
}

.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  z-index: 2;
  position: static;
  width: 100%;
  max-width: 560px;
  opacity: 0;
  animation: heroFadeUp 0.9s 1.25s ease-out forwards;
}

.hero-stat {
  text-align: center;
  color: var(--white);
  flex: 1;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.hero-stat:last-child { border-right: none; }

.hero-stat-num {
  font-family: var(--font-accent);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--teal-bright);
  line-height: 1;
  display: block;
  letter-spacing: -0.01em;
}

.hero-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-accent);
}

/* scroll-indicator removed — was causing overlap/blank gap on mobile */

/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar {
  background: var(--navy);
  padding: 1.4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.trust-item {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  align-items: center;
  gap: 0 0.75rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  width: 220px;          /* fixed width — every row identical */
}

.trust-item i {
  color: var(--teal-bright);
  font-size: 1.1rem;
  width: 1.4rem;
  text-align: center;
  flex-shrink: 0;
}

/* ============================================
   SECTION STYLES
   ============================================ */

section {
  padding: 4rem 2rem;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.18;
  text-shadow: 0 1px 4px rgba(13,43,69,0.18);
}

.section-header p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem auto;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-light));
}

.divider::after {
  background: linear-gradient(90deg, var(--teal-light), transparent);
}

.divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--teal-light);
  transform: rotate(45deg);
}

/* ============================================
   SERVICES GRID
   ============================================ */

.services-section {
  background: #f5f7fa;
  padding: 4.5rem 2rem;
  /* Prevent fixed header overlap when anchor-scrolled */
  scroll-margin-top: 20px;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

/* Center the lone 4th and 5th cards on the last row */
.services-grid .service-card:nth-child(4) {
  grid-column: 1 / 2;
  margin-left: auto;
  margin-right: 0;
  width: 100%;
}
.services-grid .service-card:nth-child(5) {
  grid-column: 2 / 3;
  margin-left: 0;
  margin-right: auto;
  width: 100%;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  group: true;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  /* Solid dark navy — ensures SVG placeholders look crisp on any bg */
  background: linear-gradient(150deg, #071b2e 0%, #0d2b45 60%, #113650 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-card-img-overlay {
  position: absolute;
  inset: 0;
  /* Very subtle gradient only at the bottom to lift the icon */
  background: linear-gradient(to top, rgba(7,27,46,0.45) 0%, transparent 40%);
  opacity: 1;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover .service-card-img-overlay {
  opacity: 0.7;
}

.service-card-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--orange);
  color: white;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
}

.service-card-body {
  padding: 1.8rem 2rem;
  position: relative;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(26,122,138,0.3);
  transform: translateY(-28px);
  margin-bottom: -12px;
  flex-shrink: 0;
}

.service-card-icon i {
  color: white;
  font-size: 1.15rem;
}

.service-card-body h3 {
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  margin-top: 0.5rem;
}

.service-card-body p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: gap 0.3s ease;
}

.service-card:hover .service-link {
  gap: 0.9rem;
  color: var(--orange);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio-section {
  background: var(--navy-dark);
  padding: 4rem 2rem;
}

.portfolio-section .section-header h2 {
  color: var(--white);
}

.portfolio-section .section-header p {
  color: rgba(255,255,255,0.65);
}

.portfolio-section .section-label {
  color: var(--teal-bright);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: var(--navy-dark);
}

.portfolio-item:first-child {
  grid-column: 1 / 3;
}

.portfolio-item:nth-child(3) {
  /* Natural flow */
}

/* All portfolio items — cover, SVGs are 4:3 so labels show fully */
.portfolio-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:first-child img {
  height: 320px;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,27,46,0.92) 0%, rgba(7,27,46,0.20) 65%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.2rem 1rem;
  transition: opacity 0.35s ease;
}

.portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
}

/* When only a placeholder is inside, always show the label overlay */
.portfolio-item:not(:has(img)) .portfolio-item-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(7,27,46,0.75) 0%, transparent 60%);
}
.portfolio-item:not(:has(img)) .portfolio-item-label {
  transform: translateY(0);
}

.portfolio-item-label {
  color: white;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  transform: translateY(10px);
  transition: transform 0.4s;
  line-height: 1.3;
}

.portfolio-item:hover .portfolio-item-label {
  transform: translateY(0);
}

.portfolio-item-desc {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 0.35rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
}

.portfolio-item:hover .portfolio-item-desc {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process-section {
  background: var(--white);
  padding: 4.5rem 2rem;
}

/* ── Outer wrapper: two centred flex rows ── */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

/* Steps 1-3: top row naturally sit side-by-side, steps 4-5 wrap and centre */
.process-step:nth-child(1),
.process-step:nth-child(2),
.process-step:nth-child(3),
.process-step:nth-child(4),
.process-step:nth-child(5) {
  flex: 0 0 200px;
  grid-column: unset;
  grid-row: unset;
  justify-self: unset;
  padding: 0;
}

.process-steps::before { display: none; }

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 0.25rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
  min-width: 0;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-step:nth-child(2) { transition-delay: 0.1s; }
.process-step:nth-child(3) { transition-delay: 0.2s; }
.process-step:nth-child(4) { transition-delay: 0.3s; }
.process-step:nth-child(5) { transition-delay: 0.4s; }

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 6px 18px rgba(26,122,138,0.35);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(26,122,138,0.25);
}

.step-number span {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
}

.process-step h4 {
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  word-break: break-word;
}

.process-step p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
  background: var(--off-white);
  padding: 4rem 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-images {
  position: relative;
  height: 560px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  height: 82%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52%;
  height: 52%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 5px solid white;
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--navy);
  color: white;
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-deep);
  z-index: 3;
  border: 2px solid var(--teal);
}

.about-badge-num {
  font-family: var(--font-accent);
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal-bright);
  line-height: 1;
  display: block;
}

.about-badge-text {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.3rem;
  display: block;
}

.about-content h2 {
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.about-content .lead {
  font-size: 1.12rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.97rem;
  color: var(--text-mid);
}

.about-features li i {
  color: var(--teal);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-stat {
  background: var(--white);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(13,43,69,0.1);
  border-top: 3px solid var(--teal);
}

.about-stat-num {
  font-family: var(--font-accent);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  display: block;
}

.about-stat-label {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-top: 0.4rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   3D PARALLAX FEATURE SECTION
   ============================================ */

.feature-section {
  position: relative;
  padding: 4.5rem 2rem;
  overflow: hidden;
  /* Solid deep navy — no photos, no texture, clean premium look */
  background: #0a1f33;
}

.feature-bg {
  /* No image background — pure luxury deep-navy with teal radial accent */
  display: none;
}

.feature-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.feature-content h2 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.feature-content p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.feature-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 2.5rem 1.8rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  transform-style: preserve-3d;
}

.feature-box:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--teal-bright);
  transform: translateY(-8px) perspective(800px) rotateX(3deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(59,196,218,0.15);
}

.feature-box-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-box-icon i {
  color: white;
  font-size: 1.4rem;
}

.feature-box h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.feature-box p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-section {
  background: #f5f7fa;
  padding: 4.5rem 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2.2rem;
  border-left: 4px solid var(--teal);
  box-shadow: 0 4px 20px rgba(13,43,69,0.07);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 6rem;
  color: var(--teal);
  opacity: 0.15;
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  line-height: 1;
  pointer-events: none;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.2rem;
}

.testimonial-stars i {
  color: var(--gold);
  font-size: 0.95rem;
}

.testimonial-card p {
  font-size: 0.97rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-avatar span {
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  display: block;
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--teal);
  display: block;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  position: relative;
  padding: 4.5rem 2rem;
  overflow: hidden;
  text-align: center;
  /* Luxury dark gradient with warm gold undertone */
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%,
      rgba(201,168,76,0.1) 0%,
      transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%,
      rgba(26,122,138,0.18) 0%,
      transparent 70%),
    linear-gradient(180deg,
      #040e1a 0%,
      #071b2e 50%,
      #050f1c 100%);
}

.cta-bg {
  /* No image — clean gold-teal luxury gradient instead */
  display: none;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,122,138,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 780px;           /* wider so heading fits on one line */
  margin: 0 auto;
}

.cta-content .section-label {
  color: var(--teal-bright);
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  /* let the browser wrap naturally — no forced breaks */
  white-space: normal;
  overflow: visible;
}

.cta-content p {
  color: rgba(255,255,255,0.72);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0;
}

/* ── Shared CTA button base ── */
.btn-cta {
  min-width: 220px;
  justify-content: center;
  font-size: 0.95rem;
  padding: 1.05rem 2.4rem;
}

/* ── "Call Us Now" — teal outline, same size as primary ── */
.btn-cta-call {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 220px;
  padding: 1.05rem 2.4rem;
  border-radius: 50px;
  border: 2px solid rgba(59,196,218,0.75);
  background: transparent;
  color: var(--teal-bright);
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(63,214,255,0.15), 0 0 12px rgba(63,214,255,0.10);
}

.btn-cta-call:hover {
  background: rgba(59,196,218,0.12);
  border-color: var(--teal-bright);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,196,218,0.25);
}

/* ============================================
   SERVICE PAGE HERO
   ============================================ */

.page-hero {
  position: relative;
  min-height: unset;
  height: auto;
  display: block;
  /* Luxury gradient default — no image needed */
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%,
      rgba(26,122,138,0.22) 0%,
      transparent 55%),
    linear-gradient(180deg,
      #040e1a 0%,
      #071b2e 50%,
      #0a2437 100%);
  padding: 80px 2rem 70px;
}

.page-hero-bg {
  /* No longer used as photo background — kept for structure only */
  display: none;
}

.page-hero-overlay {
  /* No photo to overlay — hidden */
  display: none;
}
/* Gold-teal accent line at bottom of every page hero */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59,196,218,0.55) 25%,
    rgba(201,168,76,0.70) 50%,
    rgba(59,196,218,0.55) 75%,
    transparent 100%);
}

/* ── Trust bar inside page heroes ── */
.page-hero .trust-bar {
  margin-top: 2.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  gap: 2rem;
}

/* ── Per-page gradient identities ── */

/* Seawalls — deep teal-navy */
.page-hero--seawalls {
  background:
    radial-gradient(ellipse 110% 70% at 50% 0%,
      rgba(26,122,138,0.30) 0%,
      transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 100%,
      rgba(59,196,218,0.08) 0%,
      transparent 60%),
    linear-gradient(180deg, #030c16 0%, #071b2e 50%, #0c2e46 100%);
}

/* Docks — real project photo with dark overlay */
/* Docks — deep ocean navy with teal accent */
.page-hero--docks {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%,
      rgba(26,122,138,0.22) 0%,
      transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%,
      rgba(59,196,218,0.10) 0%,
      transparent 60%),
    linear-gradient(180deg, #040e1c 0%, #0a2236 50%, #071b2e 100%);
}

/* Decks — warm navy with gold accent */
.page-hero--decks {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,
      rgba(201,168,76,0.12) 0%,
      transparent 55%),
    radial-gradient(ellipse 100% 70% at 50% 80%,
      rgba(26,122,138,0.16) 0%,
      transparent 60%),
    linear-gradient(180deg, #050d1a 0%, #0d2b45 55%, #071b2e 100%);
}

/* Boat Lifts — rich midnight with silver-blue */
.page-hero--boatlifts {
  background:
    radial-gradient(ellipse 100% 65% at 50% 0%,
      rgba(26,122,138,0.24) 0%,
      transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 100%,
      rgba(59,196,218,0.10) 0%,
      transparent 60%),
    linear-gradient(180deg, #030b18 0%, #071a2c 50%, #0b2640 100%);
}

/* Pilings — dark steel navy with subtle teal */
.page-hero--pilings {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%,
      rgba(26,122,138,0.20) 0%,
      transparent 55%),
    radial-gradient(ellipse 60% 45% at 50% 100%,
      rgba(59,196,218,0.08) 0%,
      transparent 60%),
    linear-gradient(180deg, #030b18 0%, #081f33 50%, #0b2640 100%);
}

/* About — warm gold-navy prestige */
.page-hero--about {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%,
      rgba(201,168,76,0.16) 0%,
      transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 100%,
      rgba(26,122,138,0.16) 0%,
      transparent 65%),
    linear-gradient(180deg, #050d1a 0%, #0d2b45 50%, #071b2e 100%);
}

/* Contact — clean professional dark */
.page-hero--contact {
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%,
      rgba(59,196,218,0.15) 0%,
      transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%,
      rgba(26,122,138,0.12) 0%,
      transparent 60%),
    linear-gradient(180deg, #040e1a 0%, #071b2e 50%, #0a2030 100%);
}

/* Gallery — dramatic dark */
.page-hero--gallery {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,
      rgba(26,122,138,0.25) 0%,
      transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%,
      rgba(201,168,76,0.08) 0%,
      transparent 60%),
    linear-gradient(180deg, #030c16 0%, #071b2e 50%, #091f30 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.page-hero-content .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.page-hero-content .breadcrumb a {
  color: var(--teal-bright);
  text-decoration: none;
}

.page-hero-content .breadcrumb a:hover {
  color: white;
}

.page-hero-content h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
  white-space: normal;
  text-shadow: 0 4px 30px rgba(0,0,0,0.45);
  overflow: visible;
  max-width: 700px;
}

/* Teal italic accent word in page hero headings */
.page-hero-content h1 em {
  font-style: italic;
  color: var(--teal-bright);
  text-shadow:
    0 0 40px rgba(59,196,218,0.4),
    0 4px 30px rgba(0,0,0,0.4);
}
/* On smaller screens allow wrapping but keep balanced */
@media (max-width: 700px) {
  .page-hero-content h1 {
    white-space: normal;
    font-size: clamp(2.2rem, 8vw, 3rem);
    line-height: 1.15;
  }
}

.page-hero-content .hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.72;
  max-width: 640px;           /* wider max so text doesn't orphan */
  margin: 0;
  opacity: 1;
  transform: none;
  animation: none;
  overflow: visible;          /* never clip */
  white-space: normal;
}

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */

.service-detail {
  padding: 4rem 2rem;
  background: var(--white);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.service-detail-grid.reverse {
  direction: rtl;
}

.service-detail-grid.reverse > * {
  direction: ltr;
}

.service-detail-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  /* Let the image determine its own height — no forced aspect-ratio crop */
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* SVG placeholders — keep contained on dark bg */
.service-detail-img img[src$=".svg"] {
  object-fit: contain;
  height: 340px;
}

/* SVG placeholders inside service detail — dark bg */
.service-detail-img img[src$=".svg"] {
  background: linear-gradient(145deg, #040e1a, #071b2e);
  border-radius: 0;
}

/* ── .ph compatibility inside all content containers ── */

/* service-card-img: ph fills the card image area */
.service-card-img .ph {
  width: 100%;
  height: 210px;
  min-height: 210px;
  border-radius: 0;
  border: none;
  background: linear-gradient(150deg, #071b2e 0%, #0d2b45 60%, #113650 100%);
  color: rgba(255,255,255,0.55);
}

/* service-detail-img: ph fills the detail image pane */
.service-detail-img .ph {
  width: 100%;
  height: 400px;
  min-height: 400px;
  border-radius: 0;
  border: none;
  background: linear-gradient(145deg, #071b2e 0%, #0d2b45 60%, #113650 100%);
  color: rgba(255,255,255,0.5);
}

/* portfolio-item: ph fills each grid slot */
.portfolio-item .ph {
  width: 100%;
  height: 260px;
  min-height: 260px;
  border-radius: 0;
  border: none;
  background: linear-gradient(150deg, #0a1e30 0%, #0d2b45 60%, #113650 100%);
  color: rgba(255,255,255,0.5);
}
.portfolio-item:first-child .ph {
  height: 320px;
  min-height: 320px;
}

/* ba-card: ph fills before/after card */
.ba-card .ph {
  width: 100%;
  height: 300px;
  min-height: 300px;
  border-radius: 0;
  border: none;
}

/* crew-card images */
.crew-card .ph {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 0;
  border: none;
}

/* story-img-main / story-img-second */
.story-img-main .ph,
.story-img-second .ph {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 0;
  border: none;
}

.service-detail-content h2 {
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.service-detail-content p {
  margin-bottom: 1.2rem;
}

.service-detail-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}

.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.95rem;
  color: var(--text-mid);
}

.service-detail-list li i {
  color: var(--teal);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-section {
  padding: 4rem 2rem;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.contact-info p {
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.contact-detail-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(26,122,138,0.25);
}

.contact-detail-icon i {
  color: white;
  font-size: 1.1rem;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.3rem;
}

.contact-detail-text a,
.contact-detail-text span {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.contact-detail-text a:hover {
  color: var(--teal);
}

.service-areas {
  background: var(--navy);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin-top: 2rem;
}

.service-areas h4 {
  color: var(--teal-bright);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.area-tag {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 24px;
  padding: 3rem 2.8rem;
  box-shadow: var(--shadow-card);
}

.contact-form-wrap h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1.7rem;
}

.contact-form-wrap .sub {
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text-dark);
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 4px rgba(26,122,138,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: white;
  border: none;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(26,122,138,0.35);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(26,122,138,0.45);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--teal);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 1.5rem;
}

.footer-grid {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}

/* Footer brand image — MUST be visible */
.footer-brand img { display: block; }

/* ══════════════════════════════════════════════
   LUXURY WORDMARK — FOOTER
   Satin-metal gold gradient · refined 3-D emboss
   ══════════════════════════════════════════════ */

/* Two-line wrapper */
.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 1.1rem;
}

/* ── Main name ── */
.footer-logo-text {
  display: block;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1;
  /*
    Satin-metal gold — matched to nav wordmark
  */
  background: linear-gradient(
    175deg,
    #fff0a0 0%,
    #f7b733 18%,
    #e8900a 40%,
    #d4720a 58%,
    #b85c08 74%,
    #d4720a 86%,
    #f7b733 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: none;
  transition: none;
}

/* ── EST · 2001 tagline — footer ── */
.footer-logo-est {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: rgba(215,180,75,0.96);
  line-height: 1;
  margin-top: 0.40rem;
  text-shadow: none;
}
.footer-logo-est::before,
.footer-logo-est::after {
  content: '';
  display: block;
  flex-shrink: 0;
  height: 1px;
  width: 40px;
  background: linear-gradient(90deg,
    rgba(215,180,75,0)   0%,
    rgba(215,180,75,0.5) 28%,
    rgba(215,180,75,1)   55%,
    rgba(215,180,75,0.5) 80%,
    rgba(215,180,75,0)   100%
  );
}

.footer-brand p {
  color: rgba(255,255,255,0.58);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
  text-align: center;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  color: var(--teal-bright);
  font-family: var(--font-accent);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-phone i { font-size: 1rem; }
.footer-phone:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-social a {
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.05rem;
}

.footer-social a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.footer-col h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.7rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col ul li a:hover {
  color: var(--teal-bright);
}

.footer-col ul li a i {
  font-size: 0.75rem;
  opacity: 0.5;
}

.footer-bottom {
  max-width: 1260px;
  margin: 0 auto;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: var(--teal-bright);
  text-decoration: none;
}

/* ============================================
   FLOATING CTA
   ============================================ */


/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero-specific animations */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   BEFORE/AFTER
   ============================================ */

.before-after-section {
  background: #f4f7f9;
  padding: 4.5rem 2rem 5rem;
}

.before-after-section .section-header h2 { color: var(--navy); }
.before-after-section .section-header p  {
  color: var(--text-mid);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ── Two-card grid ── */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.ba-single {
  max-width: 480px;
  margin: 0 auto;
}

/* ── Card shell ── */
.ba-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--navy-dark);
  box-shadow:
    0 8px 32px rgba(13,43,69,0.18),
    0 2px 8px  rgba(13,43,69,0.10);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.ba-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 60px rgba(13,43,69,0.26),
    0 4px 16px  rgba(13,43,69,0.14);
}

/* ── Image wrapper: controls the zoom overflow ── */
.ba-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  position: relative;
}

.ba-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94),
              filter  0.55s ease;
  will-change: transform, filter;
}

/* Subtle zoom + brighten on hover */
.ba-card:hover .ba-img-wrap img {
  transform: scale(1.06);
  filter: brightness(1.07);
}

/* ── Overlay label (top-left pill) ── */
.ba-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(7, 27, 46, 0.88);
  color: #fff;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.48rem 1.1rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(0,0,0,0.38);
  /* Always visible — not dependent on hover */
  opacity: 1 !important;
  visibility: visible !important;
}

.ba-label.after {
  background: rgba(13, 115, 119, 0.92);
  border-color: rgba(59,196,218,0.65);
  color: #fff;
}

/* ── Bottom hover caption ── */
.ba-hover-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1.2rem 1.4rem 1rem;
  background: linear-gradient(to top, rgba(7,27,46,0.82) 0%, transparent 100%);
  color: rgba(255,255,255,0.92);
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.ba-card:hover .ba-hover-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ── Caption below grid ── */
.ba-caption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-top: 1.8rem;
  font-style: italic;
  display: block;
  width: 100%;
  letter-spacing: 0.02em;
}

/* ============================================
   PLACEHOLDER SYSTEM
   ============================================ */

/* Base placeholder — replaces every <img> that has no real photo yet */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #e8edf2 0%, #d4dde6 100%);
  border: 2px dashed #b0bfcf;
  border-radius: 8px;
  color: #6b85a0;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  box-sizing: border-box;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle watermark wave icon behind text */
.ph::before {
  content: '\f73d'; /* fa-water */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  font-size: 6rem;
  opacity: 0.06;
  color: var(--navy);
  pointer-events: none;
}

.ph i {
  font-size: 2rem;
  opacity: 0.5;
  margin-bottom: 0.2rem;
}

/* Size variants */
.ph--sm  { min-height: 160px; }
.ph--md  { min-height: 260px; }
.ph--lg  { min-height: 340px; }
.ph--xl  { min-height: 440px; }
.ph--sq  { min-height: 240px; aspect-ratio: 1; }
.ph--ba  { min-height: 300px; width: 100%; }

/* Dark variant for navy-bg sections */
.ph--dark {
  background: linear-gradient(135deg, #0d2b45 0%, #10344f 100%);
  border-color: rgba(59,196,218,0.25);
  color: rgba(255,255,255,0.45);
}
.ph--dark::before { color: rgba(255,255,255,0.1); opacity: 1; }

/* Hero logo placeholder */
.ph--logo {
  background: rgba(255,255,255,0.08);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 16px;
  color: rgba(255,255,255,0.5);
  min-height: 180px;
  max-width: 260px;
  margin: 0 auto;
  font-size: 0.8rem;
}
.ph--logo::before { content: none; }

/* ============================================
   MEDIA QUERIES
   ============================================ */

@media (max-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .portfolio-item:first-child {
    grid-column: 1 / 3;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-boxes {
    grid-template-columns: repeat(3, 1fr);
  }
  .service-detail-grid {
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-images {
    height: 400px;
  }
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .service-detail-grid.reverse {
    direction: ltr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .feature-boxes {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .ba-single, .ba-grid {
    max-width: 100%;
  }
  .ba-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
  }
  .ba-img-wrap {
    aspect-ratio: 4 / 3;
  }
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* 5-card services grid: 2 columns on tablet */
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: auto;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  section { padding: 4rem 1.2rem; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand p {
    max-width: 100%;
  }
  
  .hero-stats {
    gap: 0;
    margin-top: 2rem;
    padding-top: 1.5rem;
    flex-wrap: nowrap;
  }
  .hero-stat {
    padding: 0 1rem;
    min-width: 0;
  }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.6rem; }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .portfolio-item:first-child {
    grid-column: 1;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-steps::before { display: none; }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-form-wrap {
    padding: 2rem 1.5rem;
  }

  .feature-boxes {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: auto;
    margin: 0;
  }

  .page-hero {
    padding: 78px 0 60px;
    min-height: 380px;
  }

  .page-hero-content {
    padding: 0 1.5rem;
  }

  .page-hero-content h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1.2rem 1.5rem;
  }

  .cta-section {
    padding: 5rem 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-actions .btn-primary,
  .cta-actions .btn-cta-call {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    min-width: unset;
  }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2rem); }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* stack all 5 steps single-column on phones */
  .process-steps {
    flex-direction: column;
    align-items: center;
    max-width: 320px;
  }
  .process-step:nth-child(1),
  .process-step:nth-child(2),
  .process-step:nth-child(3),
  .process-step:nth-child(4),
  .process-step:nth-child(5) {
    flex: 0 0 auto;
    width: 100%;
    padding: 0;
  }

  .hero {
    padding: 68px 1.5rem 60px;
    min-height: unset;          /* let content dictate height on mobile */
  }

  .hero-logo {
    width: clamp(160px, 55vw, 260px); /* smaller on mobile — don't push headline too far down */
    max-width: 85%;
    margin: 0 auto;
    display: block;
  }

  .hero-logo-wrap {
    margin-bottom: 1.2rem;       /* tighter gap below logo */
    align-items: center;
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
    line-height: 1.15;
  }

  .hero-sub {
    font-size: 0.95rem;
    padding: 0 0.5rem;
    margin-bottom: 0.8rem;
  }

  .hero-trust-line {
    font-size: 0.72rem;
    margin-bottom: 1.6rem;
  }

  .hero-stats {
    gap: 0;
    max-width: 100%;
    margin-top: 1.8rem;       /* tighter — less whitespace pushing things down */
    padding-top: 1.4rem;
  }

  .hero-stat {
    padding: 0 0.8rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.8rem;    /* tighter eyebrow gap */
  }

  .hero h1 {
    margin-bottom: 0.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 1.2rem;
  }
  


  .services-grid {
    grid-template-columns: 1fr;
  }
  .ba-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
  .ba-img-wrap {
    aspect-ratio: 4 / 3;
  }
  /* Ensure labels always show on mobile */
  .ba-label {
    font-size: 0.7rem;
    padding: 0.4rem 0.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-boxes {
    grid-template-columns: 1fr;
  }
  .service-detail-img img {
    height: 280px;
  }
  .service-detail-img .ph {
    height: 280px;
    min-height: 280px;
  }
  .contact-form-wrap {
    padding: 1.5rem 1.2rem;
    border-radius: 16px;
  }
  footer {
    padding: 3rem 1.2rem 1.5rem;
  }
  .page-hero {
    padding: 75px 0 50px;
    min-height: 340px;
  }
  .process-steps {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    padding: 0 1rem;
  }
  .process-step:nth-child(1),
  .process-step:nth-child(2),
  .process-step:nth-child(3),
  .process-step:nth-child(4),
  .process-step:nth-child(5) {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
    padding: 0;
  }
  .trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 1.2rem;
  }
  section {
    padding: 3.5rem 1.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: auto;
  }
}

/* ============================================
   QUALITY POLISH — ADDITIONAL FIXES
   ============================================ */

/* ── Service cards: 5-card grid centering on 3-col desktop ── */
/* Override grid with flex for the 5-card variant so last row auto-centers */
@media (min-width: 769px) {
  .services-grid--5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  .services-grid--5 .service-card {
    flex: 0 0 calc(33.333% - 1.35rem);
    min-width: 260px;
    max-width: 400px;
    grid-column: unset;
    margin: 0;
  }
}
@media (max-width: 768px) {
  .services-grid--5 {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }
  .services-grid--5 .service-card {
    flex: unset;
    min-width: unset;
    max-width: unset;
  }
}
@media (max-width: 480px) {
  .services-grid--5 {
    grid-template-columns: 1fr;
  }
}

/* ── Better hero h1 — no forced line-break on mobile ── */
.hero h1 br {
  display: none; /* remove all forced breaks — let text wrap naturally */
}
@media (min-width: 900px) {
  .hero h1 br {
    display: inline; /* restore on wide screens if desired */
  }
}

/* ── Page hero h1 forced breaks: hide on mobile ── */
.page-hero-content h1 br {
  display: none;
}
@media (min-width: 700px) {
  .page-hero-content h1 br {
    display: inline;
  }
}

/* ── Consistent button sizing in CTA section ── */
.cta-actions .btn-primary,
.cta-actions .btn-cta-call {
  min-width: 220px;
  justify-content: center;
}

/* ── Section headers: consistent bottom margin ── */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

/* ── Trust bar: ensure horizontal scroll doesn't show gap ── */
.trust-bar {
  scrollbar-width: none;
}
.trust-bar::-webkit-scrollbar {
  display: none;
}

/* ── Portfolio items: overlay always visible on placeholder ── */
.portfolio-item .ph ~ .portfolio-item-overlay {
  opacity: 1;
}
.portfolio-item .ph ~ .portfolio-item-overlay .portfolio-item-label {
  transform: translateY(0);
}

/* ── Service detail: button alignment ── */
.service-detail-content .btn-primary {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
}

/* ── Footer brand: original styles preserved in main block ── */

/* ── Process steps: better sizing on mid-size screens ── */
@media (min-width: 481px) and (max-width: 768px) {
  .process-steps {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .process-step:nth-child(1),
  .process-step:nth-child(2),
  .process-step:nth-child(3),
  .process-step:nth-child(4),
  .process-step:nth-child(5) {
    flex: 0 0 calc(33.33% - 1.5rem);
    min-width: 140px;
  }
}

/* ── Testimonial cards: equal height ── */
.testimonials-grid {
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
}
.testimonial-card p {
  flex: 1;
}

/* ── Contact form: label consistency ── */
.form-group label {
  font-size: 0.78rem;
}

/* ── About stats on small screens: use 2-col ── */
@media (max-width: 600px) {
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Breadcrumb nav: don't collide with page nav element ── */
.page-hero-content nav.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  background: none;
  position: static;
  padding: 0;
  box-shadow: none;
}


/* ── Service page hero: keep content left-aligned for readability ── */
.page-hero-content {
  text-align: left;
}

/* ── About page hero: center-aligned like index ── */
.about-hero-content {
  text-align: center;
}

/* ── Before-after section: caption consistent styling ── */
.before-after-section .ba-caption {
  color: var(--text-mid);
  font-style: italic;
}

/* ── Card hover states: smoother ── */
.service-card,
.testimonial-card,
.feature-box {
  will-change: transform;
}

/* ── Remove double duplicate process-step media rules ── */

/* ============================================
   FULL DESIGN & UX REFINEMENT PASS
   ============================================ */

/* ── 1. NAV: perfect vertical alignment & consistent padding ── */
nav {
  padding: 0;
}
nav.scrolled {
  padding: 0;
}
.nav-container {
  max-width: 1300px;
  gap: 1rem;
}
.nav-links {
  gap: 0.1rem;
}
.nav-links a {
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
}
.nav-logo img {
  display: block;
}
nav.scrolled .nav-logo img {
  display: block;
}

/* ── 2. HERO: padding handled by base rule ── */
.hero-content {
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 860px;
}
.hero-logo-wrap {
  margin-bottom: 1.4rem;
}
.hero-eyebrow {
  margin-bottom: 0.9rem;
}
.hero h1 {
  margin-bottom: 1.0rem;
  text-align: center;
}
.hero-sub {
  margin-bottom: 0.9rem;
  text-align: center;
}
.hero-trust-line {
  margin-bottom: 2rem;
}
.hero-buttons {
  gap: 1rem;
  margin-bottom: 0;
}

/* Both hero CTA buttons: identical size & weight */
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  min-width: 200px;
  padding: 1rem 2.2rem;
  font-size: 0.92rem;
  justify-content: center;
  font-weight: 700;
}

.hero-stats {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  max-width: 520px;
  width: 100%;
}

/* ── 3. TRUST BAR: consistent padding & centered ── */
.trust-bar {
  padding: 1.2rem 2.5rem;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 4. GLOBAL SECTION SPACING: consistent rhythm ── */
.services-section    { padding: 4.5rem 2rem; }
.before-after-section{ padding: 4.5rem 2rem 5rem; }
.process-section     { padding: 4.5rem 2rem; }
.feature-section     { padding: 4.5rem 2rem; }
.testimonials-section{ padding: 4.5rem 2rem; }
.cta-section         { padding: 4.5rem 2rem; }

/* ── 5. CONTAINER: consistent max-width & auto margins ── */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

/* ── 6. SECTION HEADER: single definition, consistent spacing ── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 0;
}
.section-header h2 {
  margin-bottom: 0.9rem;
  line-height: 1.15;
}
.section-header p {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ── 7. SERVICE CARDS: equal height, consistent interior spacing ── */
.services-grid {
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
}
.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem 1.8rem 2rem;
}
.service-card-body h3 {
  font-size: 1.25rem;
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
}
.service-card-body p {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}
.service-link {
  margin-top: auto;
}

/* ── 8. BEFORE & AFTER: equal sizing, labels always visible ── */
.ba-grid {
  max-width: 900px;
  gap: 2.5rem;
}
.ba-img-wrap {
  aspect-ratio: 4 / 3;
}
.ba-card {
  display: flex;
  flex-direction: column;
}
/* Labels: always on top, no hover needed */
.ba-label {
  opacity: 1 !important;
  visibility: visible !important;
  top: 1rem;
  left: 1rem;
  font-size: 0.72rem;
  padding: 0.45rem 1rem;
  letter-spacing: 0.18em;
}

/* ── 9. PROCESS: centred, evenly spaced, symmetrical ── */
.process-steps {
  max-width: 900px;
  gap: 2rem 1.5rem;
  justify-content: center;
}
.process-step:nth-child(1),
.process-step:nth-child(2),
.process-step:nth-child(3),
.process-step:nth-child(4),
.process-step:nth-child(5) {
  flex: 0 0 160px;
}
.step-number {
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
}
.process-step h4 {
  font-size: 0.9rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}
.process-step p {
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ── 10. TESTIMONIALS: consistent padding & readability ── */
.testimonials-grid {
  gap: 1.8rem;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.testimonial-card {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--teal);
}
.testimonial-card p {
  font-size: 0.93rem;
  line-height: 1.78;
  margin-bottom: 1.4rem;
  flex: 1;
}
.testimonial-stars {
  margin-bottom: 1rem;
}
.testimonial-author {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--light-gray);
}
.testimonial-name {
  font-size: 0.92rem;
}
.testimonial-location {
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

/* ── 11. WHY US FEATURE BOXES: consistent inner spacing ── */
.feature-content {
  max-width: 820px;
}
.feature-boxes {
  gap: 1.4rem;
}
.feature-box {
  padding: 2.2rem 1.6rem;
  text-align: center;
}
.feature-box-icon {
  margin: 0 auto 1.2rem;
}
.feature-box h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.feature-box p {
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ── 12. FOOTER: original styles preserved in main block ── */


/* ── 14. TYPOGRAPHY: consistent global sizes ── */
h2 { font-size: clamp(1.8rem, 3.5vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: clamp(1rem, 1.8vw, 1.2rem); }
p  { font-size: 1rem; line-height: 1.75; }

/* ── 15. CTA SECTION: button pair perfect match ── */
.cta-actions {
  gap: 1.1rem;
  margin-top: 0;
}
.cta-actions .btn-primary,
.cta-actions .btn-cta-call {
  min-width: 210px;
  padding: 1.05rem 2.2rem;
  font-size: 0.92rem;
  justify-content: center;
}

/* ── 16. REFINED RESPONSIVE: 768px breakpoint ── */
@media (max-width: 768px) {
  nav { padding: 0; }
  nav.scrolled { padding: 0; }

  .hero { padding: 68px 1.5rem 60px; }
  .hero-content { max-width: 100%; }

  .services-section,
  .before-after-section,
  .process-section,
  .feature-section,
  .testimonials-section,
  .cta-section { padding: 5rem 1.5rem; }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1.1rem 1.5rem;
  }


  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .footer-brand p { max-width: 100%; text-align: center; }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .ba-grid {
    gap: 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-actions .btn-primary,
  .cta-actions .btn-cta-call {
    width: 100%;
    max-width: 300px;
    min-width: unset;
  }
}

/* ── 17. REFINED RESPONSIVE: 480px breakpoint ── */
@media (max-width: 480px) {
  nav { padding: 0; }

  .hero { padding: 62px 1.2rem 50px; } /* clears 56px mobile nav + 6px gap */

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.7rem;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    max-width: 280px;
    min-width: unset;
  }

  .services-section,
  .before-after-section,
  .process-section,
  .feature-section,
  .testimonials-section,
  .cta-section { padding: 4rem 1.2rem; }

  footer { padding: 3.5rem 1.2rem 1.5rem; }


  .ba-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 1.8rem;
  }
  .ba-img-wrap {
    aspect-ratio: 4 / 3;
  }
  .ba-label {
    font-size: 0.68rem;
    padding: 0.38rem 0.8rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .testimonial-card {
    padding: 1.8rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    gap: 1.8rem 0;
  }
  .process-step:nth-child(1),
  .process-step:nth-child(2),
  .process-step:nth-child(3),
  .process-step:nth-child(4),
  .process-step:nth-child(5) {
    flex: 0 0 auto;
    width: 100%;
  }

  .section-header {
    margin-bottom: 2rem;
    padding: 0;
  }

  .trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 1.2rem;
  }
  .trust-item {
    font-size: 0.82rem;
    width: 200px;
  }
}

/* ══════════════════════════════════════════════════════════════
   FEATURED WATERFRONT BUILD SECTION
   ══════════════════════════════════════════════════════════════ */

.featured-build-section {
  background: #fff;
  padding: 3.5rem 2rem;
}

.featured-build-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(7,27,46,0.13), 0 2px 8px rgba(7,27,46,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.featured-build-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #0a1a2e;
}

.featured-build-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  border-radius: 20px 20px 0 0;
  transition: transform 0.6s ease;
}

.featured-build-card:hover .featured-build-img-wrap img {
  transform: scale(1.015);
}

.featured-build-caption {
  padding: 2rem 2.4rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
  border-radius: 0 0 20px 20px;
}

.featured-build-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.featured-build-title i {
  color: var(--teal-light);
  font-size: 1.1rem;
}

.featured-build-caption p {
  font-size: 0.97rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.7;
}

.featured-build-caption .btn-primary {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
  .featured-build-section {
    padding: 4.5rem 1.5rem;
  }
  .featured-build-caption {
    padding: 1.5rem 1.5rem 2rem;
  }
  .featured-build-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .featured-build-section {
    padding: 3.5rem 1rem;
  }
  .featured-build-caption {
    padding: 1.2rem 1.2rem 1.8rem;
  }
  .featured-build-caption .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════
   SEAWALL TRANSFORMATION — BEFORE / AFTER SHOWCASE
   ══════════════════════════════════════════════════ */

.sw-transform {
  background: #fff;
  padding: 4.5rem 2rem;
}

/* ── BEFORE block (full width) ─────────────────── */
.sw-transform-before {
  position: relative;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.sw-transform-before.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── AFTER grid (2 cols) ───────────────────────── */
.sw-transform-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}
.sw-transform-after-grid.visible {
  opacity: 1;
  transform: translateY(0);
}

.sw-transform-after-card {
  position: relative;
}

/* ── Shared image wrapper ──────────────────────── */
.sw-transform-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 36px rgba(0, 30, 60, 0.10);
}

.sw-transform-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.sw-transform-before .sw-transform-img-wrap {
  aspect-ratio: 16/7;
}

.sw-transform-after-card .sw-transform-img-wrap {
  aspect-ratio: 4/3;
}

.sw-transform-before:hover .sw-transform-img-wrap img,
.sw-transform-after-card:hover .sw-transform-img-wrap img {
  transform: scale(1.025);
}

/* ── Labels ────────────────────────────────────── */
.sw-transform-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.sw-transform-label--before {
  background: rgba(0, 30, 60, 0.08);
  color: var(--navy);
  border: 1px solid rgba(0, 30, 60, 0.15);
}

.sw-transform-label--after {
  background: rgba(0, 160, 130, 0.1);
  color: var(--teal-bright, #00a082);
  border: 1px solid rgba(0, 160, 130, 0.2);
}

.sw-transform-label--night {
  background: rgba(10, 20, 60, 0.08);
  color: #3a5aad;
  border: 1px solid rgba(58, 90, 173, 0.2);
}

/* ── Footnote ──────────────────────────────────── */
.sw-transform-note {
  font-size: 0.88rem;
  color: var(--text-mid, #6b7280);
  text-align: center;
  max-width: 680px;
  margin: 1rem auto 0;
  line-height: 1.65;
  padding: 1rem 1.5rem;
  background: #f5f7fa;
  border-radius: 10px;
  border-left: 3px solid var(--teal-bright, #00a082);
}

.sw-transform-note i {
  color: var(--teal-bright, #00a082);
  margin-right: 0.3rem;
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 900px) {
  .sw-transform-before .sw-transform-img-wrap {
    aspect-ratio: 16/9;
  }
  .sw-transform-after-card .sw-transform-img-wrap {
    aspect-ratio: 3/2;
  }
}

@media (max-width: 700px) {
  .sw-transform {
    padding: 4.5rem 1rem;
  }
  .sw-transform-after-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .sw-transform-before .sw-transform-img-wrap {
    aspect-ratio: 4/3;
  }
  .sw-transform-after-card .sw-transform-img-wrap {
    aspect-ratio: 4/3;
  }
  .sw-transform-note {
    text-align: left;
  }
}

/* ══════════════════════════════════════════════════
   SEAWALL BUILD PROCESS — LUXURY FULL-WIDTH IMMERSIVE
   ══════════════════════════════════════════════════ */

/* ── Section wrapper ────────────────────────────── */
/* sw-build-process section replaced by standard service-detail-grid */

/* ══════════════════════════════════════════════════
   PILING COVER STYLES — SHOWCASE SECTION
   ══════════════════════════════════════════════════ */

.pl-covers {
  background: #f8f9fb;
  padding: 4rem 2rem;
}

.pl-covers-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

/* ── Header ─────────────────────────────────────── */
.pl-covers-header {
  text-align: center;
  max-width: 760px;
}

.pl-covers-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  line-height: 1.25;
  margin: 0.6rem 0 0;
  font-weight: 700;
}

/* ── 3-column grid ─────────────────────────────── */
.pl-covers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

/* ── Individual card ────────────────────────────── */
.pl-cover-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 28px rgba(0,30,60,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pl-cover-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,30,60,0.14);
}

/* ── Image wrapper — tall portrait to keep pilings visible ── */
.pl-cover-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  flex-shrink: 0;
}

.pl-cover-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.pl-cover-card:hover .pl-cover-img-wrap img {
  transform: scale(1.04);
}

/* ── Label bar ─────────────────────────────────── */
.pl-cover-info {
  padding: 1.1rem 1.4rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 2px solid rgba(0,30,60,0.05);
}

.pl-cover-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-transform: uppercase;
  text-align: center;
}

/* ── Support text ───────────────────────────────── */
.pl-covers-note {
  max-width: 740px;
  text-align: center;
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.75;
  padding: 1.5rem 2rem;
  background: #fff;
  border-left: 3px solid var(--teal-bright);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,30,60,0.06);
}

/* ── Stagger animation delays ───────────────────── */
.pl-cover-card[data-delay="0"],
.pl-covers-header               { transition-delay: 0s; }
.pl-cover-card[data-delay="1"]  { transition-delay: 0.12s; }
.pl-cover-card[data-delay="2"]  { transition-delay: 0.24s; }
.pl-covers-note[data-delay="3"] { transition-delay: 0.36s; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .pl-covers-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .pl-cover-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .pl-covers {
    padding: 4.5rem 1rem;
  }
  .pl-covers-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .pl-cover-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
    margin: 0;
  }
  .pl-covers-header h2 {
    font-size: 1.5rem;
  }
  .pl-cover-img-wrap {
    aspect-ratio: 4 / 5;
  }
  .pl-covers-note {
    padding: 1.2rem 1.2rem;
    font-size: 0.95rem;
  }
  .hide-sm { display: none; }
}

@media (max-width: 400px) {
  .pl-cover-img-wrap {
    aspect-ratio: 3 / 4;
  }
}

/* ══════════════════════════════════════════════════
   ROOFTOP DECK TRANSFORMATION — BEFORE / AFTER
   ══════════════════════════════════════════════════ */

.dk-transform {
  background: #fff;
  padding: 4.5rem 2rem;
}

.dk-transform-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

/* ── Header ─────────────────────────────────────── */
.dk-transform-header {
  text-align: center;
  max-width: 720px;
}

.dk-transform-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 0.9rem;
}

.dk-transform-sub {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

/* ── Side-by-side grid ─────────────────────────── */
.dk-transform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  align-items: start;
}

/* ── Individual card ────────────────────────────── */
.dk-transform-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 36px rgba(0,30,60,0.10);
  background: #f8f9fb;
  transition: transform 0.38s ease, box-shadow 0.38s ease;
}

.dk-transform-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 48px rgba(0,30,60,0.15);
}

/* ── Image wrapper ─────────────────────────────── */
.dk-transform-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

.dk-transform-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Subtle zoom-in on scroll reveal */
.dk-transform-card .dk-transform-img-wrap img {
  transform: scale(1.04);
}
.dk-transform-card.visible .dk-transform-img-wrap img {
  transform: scale(1.0);
}

/* ── Label bar ─────────────────────────────────── */
.dk-transform-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.6rem 1.25rem;
  border-top: 3px solid transparent;
}

.dk-label--before {
  border-top-color: #94a3b8;
}

.dk-label--after {
  border-top-color: var(--teal-bright);
}

.dk-label-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.dk-label--before .dk-label-tag {
  background: #e2e8f0;
  color: #475569;
}

.dk-label--after .dk-label-tag {
  background: rgba(59, 196, 218, 0.12);
  color: var(--teal-bright);
}

.dk-label-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

/* ── Stagger delays ─────────────────────────────── */
.dk-transform-card[data-delay="0"] { transition-delay: 0s; }
.dk-transform-card[data-delay="1"] { transition-delay: 0.18s; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 800px) {
  .dk-transform-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .dk-transform-card[data-delay="1"] {
    transition-delay: 0.12s;
  }
}

@media (max-width: 560px) {
  .dk-transform {
    padding: 4.5rem 1rem;
  }
  .dk-transform-inner {
    gap: 2.5rem;
  }
  .dk-transform-header h2 {
    font-size: 1.55rem;
  }
  .dk-transform-sub {
    font-size: 0.95rem;
  }
  .dk-transform-img-wrap {
    aspect-ratio: 4 / 3;
  }
  .dk-transform-label {
    padding: 0.9rem 1.2rem 1rem;
    gap: 0.75rem;
  }
}

/* ══════════════════════════════════════════════════
   BOAT LIFT SHOWCASE — SIDE-BY-SIDE GALLERY
   ══════════════════════════════════════════════════ */

.bl-showcase {
  background: #f8f9fb;
  padding: 4.5rem 2rem;
}

.bl-showcase-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

/* ── Header ─────────────────────────────────────── */
.bl-showcase-header {
  text-align: center;
  max-width: 720px;
}

.bl-showcase-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 0.9rem;
}

.bl-showcase-sub {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

/* ── Side-by-side grid ─────────────────────────── */
.bl-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  align-items: start;
}

/* ── Individual card ────────────────────────────── */
.bl-showcase-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 36px rgba(0,30,60,0.09);
  transition: transform 0.38s ease, box-shadow 0.38s ease;
}

.bl-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 48px rgba(0,30,60,0.15);
}

/* ── Image wrapper ─────────────────────────────── */
.bl-showcase-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
}

.bl-showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bl-showcase-card:hover .bl-showcase-img-wrap img {
  transform: scale(1.04);
}

/* ── Label bar ─────────────────────────────────── */
.bl-showcase-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.6rem 1.25rem;
  border-top: 3px solid var(--teal-bright);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.bl-showcase-label i {
  color: var(--teal-bright);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Stagger delays ─────────────────────────────── */
.bl-showcase-card[data-delay="0"] { transition-delay: 0s; }
.bl-showcase-card[data-delay="1"] { transition-delay: 0.15s; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 800px) {
  .bl-showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .bl-showcase-card[data-delay="1"] {
    transition-delay: 0.1s;
  }
}

@media (max-width: 560px) {
  .bl-showcase {
    padding: 4.5rem 1rem;
  }
  .bl-showcase-inner {
    gap: 2.5rem;
  }
  .bl-showcase-header h2 {
    font-size: 1.55rem;
  }
  .bl-showcase-sub {
    font-size: 0.95rem;
  }
  .bl-showcase-label {
    padding: 0.9rem 1.2rem 1rem;
    font-size: 0.88rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   PILINGS — SVG Annotated Diagram (fully crisp at every size)
   ═══════════════════════════════════════════════════════════ */

/* Outer wrapper — centred, max-width, shadow */
.pl-diagram-wrap {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 2.5rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(4,14,26,0.45), 0 4px 16px rgba(4,14,26,0.3);
}

/* Photo fills full width — aspect ratio preserved automatically */
.pl-diagram-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  /* Subtle enhancement — photo already sharpened at export */
  filter: brightness(1.03) contrast(1.05) saturate(1.08);
}

/* SVG overlay sits directly on top of the photo, same dimensions */
.pl-diagram-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 16px;
}

/* SVG lines + boxes fade in on scroll via JS .pl-anno-visible class */
.pl-svg-line,
.pl-svg-box,
.pl-svg-title,
.pl-svg-desc {
  opacity: 0;
  transition: opacity 0.55s ease;
}
.pl-diagram-wrap.pl-anno-visible .pl-svg-line  { opacity: 1; }
.pl-diagram-wrap.pl-anno-visible .pl-svg-box   { opacity: 1; }
.pl-diagram-wrap.pl-anno-visible .pl-svg-title { opacity: 1; }
.pl-diagram-wrap.pl-anno-visible .pl-svg-desc  { opacity: 1; }

/* Stagger each callout */
.pl-diagram-wrap.pl-anno-visible .pl-svg-l1 { transition-delay: 0.10s; }
.pl-diagram-wrap.pl-anno-visible .pl-svg-l2 { transition-delay: 0.28s; }
.pl-diagram-wrap.pl-anno-visible .pl-svg-l3 { transition-delay: 0.46s; }
.pl-diagram-wrap.pl-anno-visible .pl-svg-l4 { transition-delay: 0.64s; }

/* ── Mobile: annotations always visible — SVG scales with viewBox automatically ── */

/* On very small phones shrink the wrapper padding and radius */
@media (max-width: 480px) {
  .pl-diagram-wrap {
    margin: 1.5rem 0 0;
    border-radius: 10px;
  }
  .pl-diagram-photo,
  .pl-diagram-svg {
    border-radius: 10px;
  }
}

/* ─────────────────────────────────────────────────────────
   PILING DIAGRAM — full-width annotated image display
   ───────────────────────────────────────────────────────── */

/* Text block above the image */
.pl-methods-text {
  margin-bottom: 3rem;
}
.pl-methods-text h2 {
  margin-bottom: 1.5rem;
}
.pl-methods-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.pl-methods-list {
  margin-bottom: 2rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pl-methods-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 600px) {
  .pl-diagram-wrap {
    border-radius: 10px;
  }
  .pl-diagram-photo {
    border-radius: 10px;
  }
}

/* ── Deck Lighting Grid — responsive ── */
@media (max-width: 780px) {
  .deck-light-grid {
    grid-template-columns: 1fr !important;
  }
  .deck-light-grid > div {
    height: 220px !important;
  }
}

/* ── Dock Lighting Grid — responsive ── */
@media (max-width: 620px) {
  .dock-light-grid {
    grid-template-columns: 1fr !important;
  }
  .dock-light-grid > div {
    aspect-ratio: 16 / 10 !important;
  }
}

/* ── MOBILE NAV & FOOTER WORDMARK FIX ── */
@media (max-width: 768px) {
      nav {
    background: rgba(7, 27, 46, 0.92) !important;
  }
  .nav-logo-wrap {
    display: flex !important;
  }
  .nav-logo-text {
    font-size: 1.2rem !important;
    display: block !important;
  }
  .nav-logo-est {
    font-size: 0.45rem !important;
    display: flex !important;
  }
  .footer-logo-text {
    font-size: 1.6rem !important;
    display: block !important;
  }
  .footer-logo-est {
    font-size: 0.55rem !important;
    display: flex !important;
  }
}

/* ═══════════════════════════════════════════════════
   LOGO IMAGE — NAV + FOOTER
   Crisp retina PNG, no resize on scroll, no box/shadow
   ═══════════════════════════════════════════════════ */

/* ── NAV logo image — DESKTOP (≥769px): clean, sharp, no effects ── */
.nav-logo-img,
nav.scrolled .nav-logo-img {
  display: block !important;
  width: 280px !important;
  max-width: 280px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: left center !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
  image-rendering: auto !important;
}

/* ── FOOTER logo image ── */
.footer-logo-img {
  display: block !important;
  width: 285px !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 0 0.4rem 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  border: none !important;
  image-rendering: auto;
  transition: none !important;
  transform: none !important;
}

/* ── Responsive nav logo ── */
@media (max-width: 1024px) {
  .nav-logo-img,
  nav.scrolled .nav-logo-img { width: 260px !important; max-width: 260px !important; height: auto !important; max-height: none !important; image-rendering: auto !important; }
  .footer-logo-img            { width: 240px !important; }
}

/* MOBILE: keep controlled */
@media (max-width: 768px) {
  .nav-logo-img,
  nav.scrolled .nav-logo-img { width: 195px !important; max-width: 195px !important; height: auto !important; max-height: none !important; image-rendering: auto !important; }
  .footer-logo-img            { width: 225px !important; }
}

@media (max-width: 480px) {
  .nav-logo-img,
  nav.scrolled .nav-logo-img { width: 180px !important; max-width: 180px !important; height: auto !important; max-height: none !important; image-rendering: auto !important; }
  .footer-logo-img            { width: 195px !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   3-D POP + PERFECT CENTERING — NAV & FOOTER  (v2 enhanced)
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   NAV BAR — deep 3-D platform effect
   ───────────────────────────────────────────────────────────────── */
nav {
  box-shadow:
    0 1px 0   rgba(59,196,218,0.25),
    0 2px 8px rgba(0,0,0,0.25);
}
nav.scrolled {
  box-shadow:
    0 1px 0   rgba(59,196,218,0.35),
    0 2px 10px rgba(0,0,0,0.40);
  border-bottom: 1px solid rgba(59,196,218,0.35);
}

/* Perfect vertical centering — logo & links share one midline */
.nav-container {
  align-items: center;
  min-height: 0;
}
.nav-links {
  align-items: center;
}

/* NAV LOGO IMAGE — clean, no effects */
.nav-logo-img {
  align-self: center !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transition: none !important;
}
.nav-logo:hover .nav-logo-img {
  filter: none !important;
  transform: none !important;
}

/* ─────────────────────────────────────────────────────────────────
   NAV CTA — 3-D raised pill button
   ───────────────────────────────────────────────────────────────── */
.nav-cta {
  box-shadow:
    0 4px  0   rgba(130,50,0,0.75),
    0 7px 18px rgba(0,0,0,0.45) !important;
  transform: translateY(0) !important;
  transition: all 0.22s ease !important;
}
.nav-cta:hover {
  background: transparent !important;
  border-color: var(--orange) !important;
  color: var(--orange) !important;
  box-shadow:
    0 2px  0   rgba(130,50,0,0.50),
    0 4px 10px rgba(0,0,0,0.32) !important;
  transform: translateY(2px) !important;
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER — elevated platform with glowing cyan top seam
   ───────────────────────────────────────────────────────────────── */
footer {
  position: relative;
  overflow: visible;     /* allow pseudo-element glow to bleed upward */
  border-top: none;      /* we use ::before for the glowing seam       */
  box-shadow:
    0 -2px  0   rgba(59,196,218,0.25),    /* reversed: glow above footer */
    0 -8px 40px rgba(0,0,0,0.55),
    0 -24px 80px rgba(0,0,0,0.30),
    inset 0 2px 0 rgba(59,196,218,0.10);  /* inner top glow — no white line */
}

/* Glowing cyan seam at the very top of the footer */
footer::before {
  content: '';
  position: absolute;
  top: -2px;               /* sits just above the footer border */
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(59,196,218,0)    0%,
    rgba(59,196,218,0.45) 15%,
    rgba(59,196,218,0.85) 35%,
    rgba(59,196,218,1)    50%,
    rgba(59,196,218,0.85) 65%,
    rgba(59,196,218,0.45) 85%,
    rgba(59,196,218,0)    100%
  );
  pointer-events: none;
  z-index: 3;
  /* Bloom glow on the seam itself */
  box-shadow: 0 0 18px 4px rgba(59,196,218,0.35);
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER GRID — perfect centering & balanced columns
   ───────────────────────────────────────────────────────────────── */
.footer-grid {
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER LOGO IMAGE — strong 3-D pop matching nav
   ───────────────────────────────────────────────────────────────── */
.footer-logo-img {
  display: block !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: none !important;
}
.footer-brand:hover .footer-logo-img {
  filter: none !important;
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER BOTTOM BAR — clean separator with cyan accent
   ───────────────────────────────────────────────────────────────── */
.footer-bottom {
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid rgba(59,196,218,0.18);
  padding-top: 1.6rem;
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER COL HEADINGS — 3-D text treatment
   ───────────────────────────────────────────────────────────────── */
.footer-col h5 {
  text-shadow:
    0 1px 0 rgba(0,0,0,0.8),
    0 2px 6px rgba(0,0,0,0.5),
    0 0 14px rgba(59,196,218,0.20);
  letter-spacing: 0.16em;
}

/* ═══════════════════════════════════════════════════════════════════
   NAV OVERLAP FIX — first section after every page hero
   The nav is position:fixed ~86px tall. Any section that sits
   immediately after a hero must have enough padding-top to clear it.
   ═══════════════════════════════════════════════════════════════════ */

/* Service pages: docks / decks / boatlifts / pilings */
.service-detail {
  padding-top: 5.5rem;   /* was 4rem — now clears the 86px fixed nav */
}

/* Contact page */
.contact-section {
  padding-top: 5.5rem;
}

/* Gallery page */
.gal-section {
  padding-top: 5.5rem;
}

/* Seawalls — sw-services is already 7rem, but add safety for sw-intro */
.sw-intro {
  scroll-margin-top: 20px;
}

/* Responsive — nav shrinks on scroll, keep clearance proportional */
@media (max-width: 768px) {
  .service-detail  { padding-top: 5rem; }
  .contact-section { padding-top: 5rem; }
  .gal-section     { padding-top: 5rem; }
}

@media (max-width: 480px) {
  .service-detail  { padding-top: 4.5rem; }
  .contact-section { padding-top: 4.5rem; }
  .gal-section     { padding-top: 4.5rem; }
}

/* ═══════════════════════════════════════════════
   MOBILE OVERFLOW & WHITE STRIP FIX — FINAL
   ═══════════════════════════════════════════════ */

/* Hard clamp everything to viewport width */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Lock nav to full width, no box-model overflow */
nav {
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

/* All sections stay inside viewport */
section, footer, header, main, .hero, .footer {
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
}

@media (max-width: 480px) {
}

/* ═══════════════════════════════════════════════
   NAV HEIGHT LOCK — never changes on scroll
   ═══════════════════════════════════════════════ */

/* Nav padding stays identical scrolled vs not scrolled — mobile only */
@media (max-width: 768px) {
  nav,
  nav.scrolled {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 768px) {
  nav,
  nav.scrolled {
    padding: 0 0.8rem !important;
  }
}

@media (max-width: 480px) {
  nav,
  nav.scrolled {
    padding: 0 0.6rem !important;
  }
}

/* LOGO — deferred to primary block above */

.footer-logo-img {
  width: 285px !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
  image-rendering: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 768px) {
  .footer-logo-img { width: 200px !important; }
}

@media (max-width: 480px) {
  .footer-logo-img { width: 170px !important; }
}


/* ═══════════════════════════════════════════════════
   FLOATING CTA — Call Now + Free Quote
   Single authoritative block — no duplicates
   ═══════════════════════════════════════════════════ */

.float-cta {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.float-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.float-btn-call {
  background: #3bc4da;
  color: #fff;
}

.float-btn-call:hover {
  background: #5ad0e4;
  color: #fff;
}

.float-btn-quote {
  background: #e87722;
  color: #fff;
}

.float-btn-quote:hover {
  background: #f08a3a;
  color: #fff;
}

/* ── Tablet (≤768px): keep text, slightly smaller ── */
@media (max-width: 768px) {
  .float-cta {
    bottom: 1.2rem;
    right: 1.2rem;
    gap: 0.5rem;
  }
  .float-btn {
    font-size: 0.88rem;
    padding: 0.75rem 1.3rem;
  }
}

/* ── Mobile (≤480px): icon + short label, pill shape ── */
@media (max-width: 480px) {
  .float-cta {
    bottom: 1rem;
    right: 1rem;
    gap: 0.45rem;
  }
  .float-btn {
    font-size: 0.82rem;
    padding: 0.7rem 1.1rem;
    gap: 0.45rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE HEADER + FOOTER FIX — FINAL AUTHORITY
   Overrides all previous rules for ≤768px and ≤480px
   ═══════════════════════════════════════════════════════════════════ */

/* ── NAV: full-width flex, logo left, hamburger right ── */
@media (max-width: 768px) {

  /* Nav container: slim fixed height, logo left, hamburger right */
  .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }

  /* Logo: normal flow, left-aligned */
  .nav-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .nav-logo-block {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
  }

  /* Logo image: MOBILE — 195px width, auto height, no effects */
  .nav-logo-img,
  nav.scrolled .nav-logo-img {
    width: 195px !important;
    max-width: 195px !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    transform: none !important;
    transition: none !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    image-rendering: auto !important;
  }

  /* Tagline: keep hidden */
  .nav-logo-tagline {
    display: none !important;
  }

  /* Hamburger: stays in normal flow, pushed right by flex */
  .hamburger {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    flex-shrink: 0 !important;
  }

  /* Nav links hidden on mobile */
  .nav-links { display: none !important; }
  .nav-cta-wrap { display: none !important; }

  /* ── FOOTER: everything centered — padding-bottom prevents CTA bar overlap ── */
  footer {
    text-align: center !important;
    padding-bottom: 5.5rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }

  .footer-brand {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .footer-logo-img {
    width: 200px !important;
    max-width: 200px !important;
    margin: 0 auto 0.5rem auto !important;
    display: block !important;
  }

  .footer-logo-tagline {
    text-align: center !important;
    width: 200px !important;
    max-width: 200px !important;
    margin: 0 auto 0.6rem auto !important;
    padding: 0 !important;
  }

  .footer-brand > p {
    text-align: center !important;
    max-width: 300px !important;
    margin: 0 auto 0.8rem auto !important;
    padding: 0 !important;
  }

  .footer-social {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin: 0 auto 0.8rem auto !important;
    padding: 0 !important;
  }

  .footer-phone {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0.25rem auto !important;
    padding: 0 !important;
    width: auto !important;
  }

  .footer-col {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .footer-col h5 {
    text-align: center !important;
    margin-bottom: 0.75rem !important;
  }

  .footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .footer-col ul li {
    text-align: center !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .footer-col ul li a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.4rem !important;
    padding: 0 !important;
  }

  .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.4rem !important;
    padding: 1.2rem 0 0 0 !important;
  }
}

/* ── 480px: tighten logo size slightly ── */
@media (max-width: 480px) {

  .nav-container {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 0 0.75rem !important;
  }

  .nav-logo-img,
  nav.scrolled .nav-logo-img {
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
    max-height: none !important;
  }

  .nav-logo-tagline {
    display: none !important;
  }

  footer {
    padding-bottom: 5.5rem !important;
  }

  .footer-logo-img {
    width: 170px !important;
    max-width: 170px !important;
  }

  .footer-logo-tagline {
    width: 170px !important;
    max-width: 170px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   FLOAT CTA — MOBILE: full-width sticky bottom bar
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Float CTA → full-width sticky bar pinned to bottom, ABOVE footer content */
  .float-cta {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    z-index: 9999 !important;
    transform: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.40) !important;
  }

  .float-cta.visible {
    opacity: 1 !important;
    pointer-events: all !important;
    transform: none !important;
  }

  /* Each button fills half the bar, same height */
  .float-btn {
    flex: 1 1 50% !important;
    border-radius: 0 !important;
    padding: 1rem 0.5rem !important;
    font-size: 0.92rem !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    gap: 0.5rem !important;
    box-shadow: none !important;
    min-height: 52px !important;
  }
}

/* ── 480px: slightly smaller text in the bar ── */
@media (max-width: 480px) {
  .float-btn {
    font-size: 0.85rem !important;
    padding: 0.9rem 0.4rem !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   SITE-WIDE AUDIT FIX v18  —  Final authority block
   Fixes: spacing, CTA buttons, footer, mobile, inline-style overrides
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── 1. CSS SPACING VARIABLES ─────────────────────────────────── */
:root {
  --section-pad-v: 4.5rem;
  --section-pad-h: 2rem;
  --hero-pad-top: 80px;
  --hero-pad-bottom: 70px;
  --nav-h-desktop: auto;
  --nav-h-mobile: 62px;
  --nav-h-small: 56px;
}

/* ─── 2. PAGE-HERO: uniform padding, no min-height centering gap ── */
.page-hero {
  display: block !important;
  padding: var(--hero-pad-top) 2rem var(--hero-pad-bottom) !important;
  min-height: unset !important;
}
.page-hero-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: left;
}
/* About hero: centered content */
.about-hero-content {
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}

/* ─── 3. SEAWALLS HERO FIX ──────────────────────────────────────── */
.sw-hero {
  display: block !important;
  min-height: unset !important;
  padding: 0;
}
.sw-hero-inner {
  padding: var(--hero-pad-top) 2rem var(--hero-pad-bottom) !important;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* ─── 4. GALLERY HERO FIX ───────────────────────────────────────── */
.gal-hero {
  display: block !important;
  padding: var(--hero-pad-top) 2rem var(--hero-pad-bottom) !important;
}

/* ─── 5. ABOUT HERO FIX ─────────────────────────────────────────── */
.about-hero {
  display: block !important;
  min-height: unset !important;
  overflow: hidden;
}
.about-hero-content {
  padding: var(--hero-pad-top) 2rem var(--hero-pad-bottom) !important;
}

/* ─── 6. UNIFORM SECTION VERTICAL SPACING ──────────────────────── */
.services-section,
.before-after-section,
.process-section,
.feature-section,
.testimonials-section,
.cta-section,
.service-detail,
.contact-section,
.gallery-section {
  padding-top: var(--section-pad-v);
  padding-bottom: var(--section-pad-v);
  padding-left: var(--section-pad-h);
  padding-right: var(--section-pad-h);
}
/* Inline-style sections on docks/decks/boatlifts - handled via class additions below */

/* ─── 7. CTA BUTTONS — STANDARDIZED ────────────────────────────── */
/* Primary: orange fill, consistent size, glow */
.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 1rem 2.2rem !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: 2px solid var(--orange) !important;
  box-shadow: 0 6px 22px rgba(212,114,26,0.35), 0 0 14px rgba(212,114,26,0.15) !important;
  transition: all 0.3s ease !important;
  white-space: nowrap;
}
.btn-primary:hover {
  background: transparent !important;
  color: var(--orange) !important;
  box-shadow: 0 12px 35px rgba(212,114,26,0.30) !important;
  transform: translateY(-2px) !important;
}

/* Secondary: teal outline, consistent size */
.btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  background: transparent !important;
  color: var(--white) !important;
  padding: 1rem 2.2rem !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: 2px solid rgba(255,255,255,0.65) !important;
  transition: all 0.3s ease !important;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.95) !important;
  transform: translateY(-2px) !important;
}

/* CTA section button pair — full consistent sizing */
.cta-actions {
  display: flex !important;
  gap: 1.1rem !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-top: 0 !important;
}
.cta-actions .btn-primary,
.cta-actions .btn-secondary,
.cta-actions .btn-cta-call {
  min-width: 200px !important;
  justify-content: center !important;
  padding: 1rem 2.2rem !important;
  font-size: 0.95rem !important;
}

/* ─── 8. FOOTER — original styles preserved in main block above ──── */
/* No overrides needed — footer styling handled by the primary CSS   */

/* ─── 9. NAVIGATION — HEIGHT LOCK, NO LAYOUT SHIFT ─────────────── */
/* Desktop: position relative, full-width, auto height */
@media (min-width: 769px) {
  nav {
    position: relative !important;
    width: 100% !important;
    z-index: 100 !important;
  }
  .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.3rem 1.5rem !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-logo-img {
    width: 280px !important;
    max-width: 280px !important;
    height: auto !important;
  }
}

/* ─── 10. HORIZONTAL SCROLL PREVENTION ─────────────────────────── */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}
* {
  max-width: 100%;
}
img, video, iframe, embed {
  max-width: 100% !important;
}

/* ─── 11. INLINE SECTION GRIDS — RESPONSIVE FIXES ──────────────── */
/* Docks/Decks inline photo grids become single-column on mobile */
@media (max-width: 600px) {
  .dock-light-grid,
  .deck-light-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .dock-light-grid > div,
  .deck-light-grid > div {
    height: 200px !important;
  }
}
/* Photo showcase grids: 3-col → 2-col → 1-col */
@media (max-width: 768px) {
  /* Any inline 3-col grid */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2,1fr) !important;
  }
  [style*="grid-template-columns:1fr 2fr"],
  [style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 480px) {
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2,1fr)"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Stacked image heights on mobile */
  [style*="height:320px"],
  [style*="height: 320px"],
  [style*="height:260px"],
  [style*="height: 260px"] {
    height: 200px !important;
  }
}

/* ─── 12. TEXT WRAPPING — PREVENT OVERFLOW ──────────────────────── */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-break: break-word;
}
p, a, span, li {
  overflow-wrap: break-word;
}
/* Section labels */
.section-label {
  white-space: normal;
  word-break: normal;
}

/* ─── 13. MOBILE RESPONSIVE — COMPREHENSIVE PASS ───────────────── */
@media (max-width: 768px) {
  /* Hero sections */
  .page-hero {
    padding: 78px 1.5rem 50px !important;
  }
  .page-hero-content {
    padding: 0 !important;
  }
  .sw-hero-inner {
    padding: 78px 1.5rem 50px !important;
  }
  .gal-hero {
    padding: 78px 1.5rem 50px !important;
  }
  .about-hero-content {
    padding: 78px 1.5rem 50px !important;
  }

  /* Sections */
  .services-section,
  .before-after-section,
  .process-section,
  .feature-section,
  .testimonials-section,
  .cta-section,
  .service-detail,
  .contact-section {
    padding: 3.5rem 1.5rem !important;
  }

  /* Trust bar */
  .trust-bar {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 1.2rem 1.5rem !important;
  }

  /* Service detail grid: stack */
  .service-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .service-detail-grid.reverse > *:first-child {
    order: 2;
  }
  .service-detail-grid.reverse > *:last-child {
    order: 1;
  }

  /* Feature boxes: 2 col → 1 col */
  .feature-boxes {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  /* Testimonials: 1 col */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  /* Before/after: 1 col */
  .ba-grid {
    grid-template-columns: 1fr !important;
    max-width: 460px !important;
    margin: 0 auto !important;
  }

  /* Footer mobile: handled by original CSS rules */

  /* CTA buttons: stack on mobile */
  .cta-actions {
    flex-direction: column !important;
    align-items: center !important;
  }
  .cta-actions .btn-primary,
  .cta-actions .btn-secondary,
  .cta-actions .btn-cta-call {
    width: 100% !important;
    max-width: 300px !important;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 2rem !important;
    padding: 0 !important;
  }
  .section-header h2 {
    font-size: clamp(1.7rem, 6vw, 2.4rem) !important;
  }

  /* Service detail buttons: full width on mobile */
  .service-detail-content .btn-primary {
    width: 100% !important;
    max-width: 340px !important;
    justify-content: center !important;
  }

  /* Hero buttons: stack */
  .hero-buttons {
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100% !important;
    max-width: 300px !important;
    justify-content: center !important;
  }
  /* Seawalls hero buttons */
  .sw-hero-btns {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  .sw-btn-call,
  .sw-btn-quote {
    width: 100% !important;
    max-width: 300px !important;
    justify-content: center !important;
  }

  /* Process steps: wrap nicely */
  .process-steps {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    max-width: 100% !important;
  }
  .process-step {
    flex: 0 0 calc(50% - 1rem) !important;
    min-width: 130px !important;
    max-width: 200px !important;
  }

  /* Contact grid: stack */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .contact-form-wrap {
    padding: 1.5rem 1.2rem !important;
  }
}

@media (max-width: 480px) {
  /* Hero padding */
  .page-hero {
    padding: 75px 1.2rem 45px !important;
  }
  .sw-hero-inner {
    padding: 75px 1.2rem 45px !important;
  }
  .gal-hero {
    padding: 75px 1.2rem 45px !important;
  }
  .about-hero-content {
    padding: 75px 1.2rem 45px !important;
  }

  /* Sections tighter */
  .services-section,
  .before-after-section,
  .process-section,
  .feature-section,
  .testimonials-section,
  .cta-section,
  .service-detail,
  .contact-section {
    padding: 3rem 1.2rem !important;
  }

  /* Feature boxes: single col */
  .feature-boxes {
    grid-template-columns: 1fr !important;
  }

  /* Process steps: single col */
  .process-steps {
    flex-direction: column !important;
    align-items: center !important;
  }
  .process-step {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 280px !important;
  }

  /* Typography */
  .page-hero-content h1,
  .sw-hero h1,
  .gal-hero h1,
  .about-hero-content h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem) !important;
  }

  /* Service detail img height */
  .service-detail-img img {
    height: 240px !important;
    border-radius: 12px !important;
  }

  /* Footer 480px: handled by original CSS */

  /* CTA section */
  .cta-section {
    padding: 3rem 1.2rem !important;
  }

  /* Seawalls process steps */
  .sw-process-steps {
    grid-template-columns: 1fr !important;
  }
}

/* ─── 14. SECTION LABEL CONSISTENT SPACING ──────────────────────── */
.section-label {
  display: block !important;
  margin-bottom: 0.65rem !important;
}
.cta-content .section-label {
  margin-bottom: 0.8rem !important;
}

/* ─── 15. TRUST BAR — HORIZONTAL DESKTOP ────────────────────────── */
@media (min-width: 769px) {
  .trust-bar {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    padding: 1.2rem 2.5rem !important;
    gap: 2rem !important;
    justify-content: center !important;
  }
}

/* ─── 16. BREADCRUMB NAV — CONSISTENT ACROSS PAGES ─────────────── */
.page-hero-content nav.breadcrumb,
.breadcrumb {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.55) !important;
  margin-bottom: 1.2rem !important;
  letter-spacing: 0.04em !important;
  background: none !important;
  position: static !important;
  padding: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
}
.breadcrumb a {
  color: rgba(255,255,255,0.55) !important;
  text-decoration: none !important;
  transition: color 0.3s !important;
}
.breadcrumb a:hover {
  color: var(--teal-bright) !important;
}
.breadcrumb .fa-chevron-right {
  font-size: 0.6rem !important;
  opacity: 0.5 !important;
}

/* ─── 17. PAGE HERO H1 LINE BREAKS — RESPONSIVE ─────────────────── */
.page-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
  line-height: 1.1 !important;
  margin-bottom: 1rem !important;
}
.page-hero-content h1 em {
  color: var(--teal-bright) !important;
  font-style: italic !important;
}
.page-hero-content h1 br {
  display: none;
}
@media (min-width: 640px) {
  .page-hero-content h1 br {
    display: inline;
  }
}

/* ─── 18. HERO-SUB ON SERVICE PAGES ─────────────────────────────── */
.page-hero-content .hero-sub {
  color: rgba(255,255,255,0.82) !important;
  font-size: clamp(0.95rem, 2vw, 1.1rem) !important;
  line-height: 1.7 !important;
  max-width: 600px !important;
  margin-top: 0 !important;
}

/* ─── 19. GALLERY PAGE SPECIFIC ─────────────────────────────────── */
.gal-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
  line-height: 1.1 !important;
  color: var(--white) !important;
}
.gal-section {
  padding: 3rem 1.5rem 5rem !important;
}
@media (max-width: 768px) {
  .gal-grid {
    grid-template-columns: repeat(2,1fr) !important;
  }
  .gal-section {
    padding: 2.5rem 1.2rem 4rem !important;
  }
}
@media (max-width: 480px) {
  .gal-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── 20. ABOUT PAGE: hero logo size ─────────────────────────────── */
.about-hero-logo {
  width: clamp(140px, 18vw, 200px) !important;
  max-width: 80% !important;
  margin: 0 auto !important;
  display: block !important;
}
@media (max-width: 768px) {
  .about-hero-logo {
    width: clamp(120px, 40vw, 180px) !important;
  }
}

/* ─── 21. INLINE SECTION PADDING OVERRIDES ───────────────────────── */
/* Override any inline style="padding:4rem 2rem" sections */
@media (max-width: 768px) {
  section[style*="padding:4rem 2rem"],
  section[style*="padding: 4rem 2rem"],
  section[style*="padding:5rem 2rem"],
  section[style*="padding: 5rem 2rem"],
  section[style*="padding:4.5rem 2rem"],
  section[style*="padding: 4.5rem 2rem"] {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}
@media (max-width: 480px) {
  section[style*="padding:4rem 2rem"],
  section[style*="padding: 4rem 2rem"],
  section[style*="padding:5rem 2rem"],
  section[style*="padding: 5rem 2rem"],
  section[style*="padding:4.5rem 2rem"],
  section[style*="padding: 4.5rem 2rem"] {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
  }
}

/* ─── 22. INLINE MAX-WIDTH CENTERING ────────────────────────────── */
/* Any inline container div: consistent centering */
[style*="max-width:1200px"],
[style*="max-width: 1200px"],
[style*="max-width:1100px"],
[style*="max-width: 1100px"],
[style*="max-width:900px"],
[style*="max-width: 900px"] {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ─── 23. PWC LIFT GRID — RESPONSIVE ────────────────────────────── */
@media (max-width: 768px) {
  .pwc-angle-grid {
    grid-template-columns: repeat(2,1fr) !important;
  }
  .pwc-angle-item--wide {
    grid-column: 1 / -1 !important;
    aspect-ratio: 16/9 !important;
  }
}
@media (max-width: 480px) {
  .pwc-angle-grid {
    grid-template-columns: 1fr !important;
  }
  .pwc-angle-item--wide {
    aspect-ratio: 4/3 !important;
  }
}

/* ─── 24. BOAT LIFT SHOWCASE — RESPONSIVE ───────────────────────── */
@media (max-width: 768px) {
  .bl-showcase-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── 25. PILING COVERS GRID — RESPONSIVE ───────────────────────── */
@media (max-width: 768px) {
  .pl-covers-grid {
    grid-template-columns: repeat(2,1fr) !important;
  }
}
@media (max-width: 480px) {
  .pl-covers-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── 26. DK-TRANSFORM (decks rooftop) — RESPONSIVE ────────────── */
@media (max-width: 768px) {
  .dk-transform-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* ─── 27. SW (SEAWALLS) SPECIFIC RESPONSIVE ─────────────────────── */
@media (max-width: 700px) {
  .sw-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem) !important;
  }
}
@media (max-width: 768px) {
  .sw-process-steps {
    grid-template-columns: repeat(2,1fr) !important;
  }
}
@media (max-width: 480px) {
  .sw-process-steps {
    grid-template-columns: 1fr !important;
  }
}

/* ─── 28. CONTACT FORM — RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}
.contact-map {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* ─── 29. ABOUT PAGE SECTIONS — CONSISTENT SPACING ─────────────── */
.story-section,
.values-section,
.why-section,
.areas-section,
.about-cta-section {
  padding-top: var(--section-pad-v) !important;
  padding-bottom: var(--section-pad-v) !important;
  padding-left: var(--section-pad-h) !important;
  padding-right: var(--section-pad-h) !important;
}
@media (max-width: 768px) {
  .story-section,
  .values-section,
  .why-section,
  .areas-section,
  .about-cta-section {
    padding: 3.5rem 1.5rem !important;
  }
  .story-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .why-inner {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .areas-grid {
    grid-template-columns: repeat(2,1fr) !important;
  }
}
@media (max-width: 480px) {
  .areas-grid {
    grid-template-columns: 1fr !important;
  }
  .about-stats {
    grid-template-columns: repeat(2,1fr) !important;
  }
}

/* ─── 30. OVERALL POLISH ─────────────────────────────────────────── */
/* Remove any stray outline on focused links */
a:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 2px;
  border-radius: 3px;
}
/* Smooth image rendering */
img {
  image-rendering: auto;
  -webkit-font-smoothing: auto;
}
/* Prevent font-size inflation on iOS */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* Ensure section containers don't overflow */
.container {
  width: 100% !important;
  box-sizing: border-box !important;
}


/* ─── 31. INLINE-STYLE REPLACEMENT CLASSES ──────────────────────── */
/* Dock montage section */
.dock-montage-section {
  background: #f4f7f9;
  padding: 4rem 2rem;
}
.dock-montage-inner {
  max-width: 1100px;
  margin: 0 auto;
}
/* Dock / Deck lighting dark section */
.lighting-dark-section {
  background: #071b2e;
  padding: 4rem 2rem;
}
.lighting-dark-inner {
  max-width: 900px;
  margin: 0 auto;
}
/* Dock photo showcase white section */
.dock-showcase-section {
  background: #fff;
  padding: 5rem 2rem;
}
.dock-showcase-inner {
  max-width: 1200px;
  margin: 0 auto;
}
/* Image caption overlay (day/evening labels) */
.img-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(13,43,69,0.75));
}
/* Lighting disclaimer card */
.lighting-disclaimer-card {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(59,196,218,0.18);
  border-radius: 14px;
  padding: 1.8rem 2rem;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
}
/* Referral / gallery teal outline button */
.btn-teal-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-accent), sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-bright);
  text-decoration: none;
  border: 1.5px solid rgba(59,196,218,0.4);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  margin-top: 1.5rem;
  transition: all 0.22s ease;
}
.btn-teal-outline:hover {
  border-color: var(--teal-bright);
  background: rgba(59,196,218,0.1);
  color: #fff;
}
/* Gallery view-all teal outline button */
.btn-teal-outline--gallery {
  gap: 0.5rem;
  font-size: 0.8rem;
  padding: 0.75rem 2rem;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-teal-outline--gallery:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
/* Deck IPE walkway section */
.ipe-walkway-section {
  background: #f8f5f0;
  padding: 4rem 2rem;
}
.ipe-walkway-inner {
  max-width: 520px;
  margin: 0 auto;
}
/* Boatlift featured project section */
.bl-featured-section {
  background: #f8f5f0;
  padding: 4rem 2rem;
}
.bl-featured-inner {
  max-width: 900px;
  margin: 0 auto;
}
/* Boatlift third service-detail alt-bg */
.service-detail--alt-bg {
  background: #f4f7f9;
}

/* ─── 32. PRIVACY PAGE ───────────────────────────────────────────── */
.privacy-section {
  padding: 5rem 2rem;
  background: var(--off-white);
}
.privacy-section .container {
  max-width: 860px;
}
.privacy-section h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.privacy-section .last-updated {
  color: var(--mid-gray);
  font-size: 0.88rem;
  margin-bottom: 2.5rem;
}
.privacy-section h2 {
  font-size: 1.3rem;
  color: var(--navy);
  margin: 2rem 0 0.6rem;
}
.privacy-section p,
.privacy-section li {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-mid);
}
.privacy-section ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

/* ============================================
   FROM STRUCTURE TO SHOWCASE SECTION
   ============================================ */

.showcase-section {
  padding: 5rem 2rem 5rem;
  background: var(--off-white);
  position: relative;
}

.showcase-subtitle {
  max-width: 720px;
  margin: 1.2rem auto 0;
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
}

/* ── Before / After side-by-side cards ── */
.showcase-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.showcase-compare-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(13,43,69,0.12);
  border: 1px solid rgba(13,115,119,0.08);
  display: flex;
  flex-direction: column;
}

.showcase-compare-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-compare-label--before {
  background: var(--navy);
  color: #fff;
}

.showcase-compare-label--after {
  background: var(--teal);
  color: #fff;
}

.showcase-compare-img {
  width: 100%;
  line-height: 0;
  background: #0d2b45;
}

.showcase-compare-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: unset;
}

.showcase-compare-caption {
  padding: 1.2rem 1.4rem 1.4rem;
  flex: 1;
}

.showcase-compare-caption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.showcase-compare-caption p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

/* ── Two-column grid ── */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.showcase-col-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.showcase-phase-badge {
  display: inline-block;
  padding: 0.28rem 0.9rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.showcase-phase-badge--before {
  background: rgba(13,43,69,0.12);
  color: var(--navy);
}

.showcase-phase-badge--after {
  background: rgba(13,115,119,0.14);
  color: #0a6b6e;
}

.showcase-col h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}

.showcase-photos {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.showcase-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(13,43,69,0.14);
  line-height: 0;
  background: #0d2b45;
}

.showcase-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: unset;
  transition: transform 0.5s ease;
}

.showcase-photo:hover img {
  transform: scale(1.02);
}

.showcase-col-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ── Three feature cards ── */
.showcase-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 4rem;
}

.showcase-card {
  background: white;
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: 0 6px 30px rgba(13,43,69,0.09);
  border: 1px solid rgba(13,115,119,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(13,43,69,0.14);
}

.showcase-card-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  box-shadow: 0 6px 20px rgba(26,122,138,0.25);
}

.showcase-card-icon i {
  color: white;
  font-size: 1.3rem;
}

.showcase-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.showcase-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

/* ── Trust statement ── */
.showcase-trust {
  margin-top: 3.5rem;
}

.showcase-trust-inner {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3352 100%);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.showcase-trust-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(59,196,218,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.showcase-trust-inner h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--teal-bright);
  margin-bottom: 1rem;
  position: relative;
}

.showcase-trust-inner p {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 740px;
  margin: 0 auto;
  position: relative;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .showcase-cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .showcase-trust-inner {
    padding: 2.2rem 1.8rem;
  }
}

@media (max-width: 768px) {
  .showcase-section {
    padding: 78px 1.5rem 4rem !important;
  }

  /* Stack compare cards vertically on mobile */
  .showcase-compare {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* images show full natural size on mobile — no fixed heights */

  .showcase-trust-inner {
    padding: 2rem 1.4rem;
  }

  .showcase-trust-inner h4 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .showcase-section {
    padding: 75px 1.2rem 3rem !important;
  }

  .showcase-cards {
    gap: 1rem;
  }

  .showcase-card {
    padding: 1.6rem 1.3rem;
  }
}
