/* ============================================
   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: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -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: 1.2rem 2rem;
  transition: var(--transition);
  background: transparent;
  /* Ensure header never covers content */
  pointer-events: auto;
}

nav.scrolled {
  background: rgba(7, 27, 46, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 2rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

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

/* ══════════════════════════════════════════════
   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;
  /*
    Refined 3-D emboss: 2-pixel offset stack, tight shadow,
    soft ambient — no heavy glow rim
  */
  filter:
    drop-shadow(0 1px 0 rgba(100,38,0,0.95))
    drop-shadow(0 2px 0 rgba(70,24,0,0.88))
    drop-shadow(0 3px 1px rgba(40,12,0,0.75))
    drop-shadow(0 5px 6px rgba(0,0,0,0.50))
    drop-shadow(0 10px 18px rgba(0,0,0,0.25));
  transition: filter 0.4s ease, background 0.4s ease;
}

/* 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: logoShimmer 2s linear infinite;
  filter:
    drop-shadow(0 1px 0 rgba(100,38,0,0.95))
    drop-shadow(0 2px 0 rgba(70,24,0,0.88))
    drop-shadow(0 3px 1px rgba(40,12,0,0.75))
    drop-shadow(0 5px 8px rgba(0,0,0,0.55))
    drop-shadow(0 12px 22px rgba(0,0,0,0.28))
    drop-shadow(0 0  22px rgba(247,183,51,0.30));
}

/* ── 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: 0 1px 4px rgba(0,0,0,0.65);
}
.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: 0 0 8px rgba(230,195,60,0.45), 0 1px 4px rgba(0,0,0,0.65);
}
.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: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: var(--transition);
  pointer-events: none;
}

.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: center;
  justify-content: center;
  background: var(--navy-dark);
  padding: 110px 2rem 3.5rem;
}

/* ── Background — clean deep navy gradient, no photos, no textures ── */
.hero-bg {
  position: absolute;
  inset: 0;
  /* Rich multi-stop navy gradient — purely CSS, zero images */
  background:
    radial-gradient(ellipse 100% 65% at 70% 0%,
      rgba(26,122,138,0.26) 0%,
      transparent 55%),
    radial-gradient(ellipse 70% 55% at 0% 100%,
      rgba(59,196,218,0.10) 0%,
      transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%,
      rgba(7,27,46,0.6) 0%,
      transparent 80%),
    linear-gradient(160deg,
      #030b17 0%,
      #071b2e 45%,
      #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 {
  width: clamp(180px, 22vw, 260px);
  height: auto;
  display: block;
  margin: 0 auto;
  flex-shrink: 0;
  object-fit: contain;
  image-rendering: auto;
  /* Layered 3D drop-shadow stack — builds depth below and behind */
  filter:
    drop-shadow(0 1px 1px rgba(13,43,69,0.50))
    drop-shadow(0 3px 4px rgba(13,43,69,0.40))
    drop-shadow(0 7px 12px rgba(13,43,69,0.32))
    drop-shadow(0 16px 28px rgba(13,43,69,0.24))
    drop-shadow(0 28px 48px rgba(13,43,69,0.16))
    drop-shadow(0 0 50px rgba(59,196,218,0.22));
  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 1px 1px rgba(13,43,69,0.55))
    drop-shadow(0 4px 6px rgba(13,43,69,0.45))
    drop-shadow(0 10px 20px rgba(13,43,69,0.35))
    drop-shadow(0 22px 40px rgba(13,43,69,0.25))
    drop-shadow(0 0 70px rgba(59,196,218,0.35));
  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: 1.2rem;
  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.025em;
  color: var(--white);
  margin-bottom: 1.4rem;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.45),
    0 8px 32px rgba(0,0,0,0.30);
  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.82);
  max-width: 520px;
  margin: 0 auto 1.2rem;
  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 8px 25px rgba(212, 114, 26, 0.4);
  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: 80px;
  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(59,196,218,0.15);
}

.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: 540px;
  height: auto;
  display: flex;
  align-items: center;
  /* Luxury gradient default — no image needed */
  background:
    radial-gradient(ellipse 100% 60% at 30% 0%,
      rgba(26,122,138,0.24) 0%,
      transparent 55%),
    linear-gradient(155deg,
      #040e1a 0%,
      #071b2e 45%,
      #0a2437 100%);
  padding: 160px 0 80px;
}

.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 20% 0%,
      rgba(26,122,138,0.35) 0%,
      transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%,
      rgba(59,196,218,0.10) 0%,
      transparent 60%),
    linear-gradient(150deg, #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 30% 0%,
      rgba(26,122,138,0.25) 0%,
      transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 80%,
      rgba(59,196,218,0.12) 0%,
      transparent 60%),
    linear-gradient(155deg, #040e1c 0%, #0a2236 50%, #071b2e 100%);
}

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

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

/* Pilings — dark steel navy with subtle teal */
.page-hero--pilings {
  background:
    radial-gradient(ellipse 80% 55% at 60% 0%,
      rgba(26,122,138,0.22) 0%,
      transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 90%,
      rgba(59,196,218,0.10) 0%,
      transparent 60%),
    linear-gradient(160deg, #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.18) 0%,
      transparent 55%),
    radial-gradient(ellipse 80% 50% at 0% 100%,
      rgba(26,122,138,0.20) 0%,
      transparent 65%),
    linear-gradient(165deg, #050d1a 0%, #0d2b45 50%, #071b2e 100%);
}

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

/* Gallery — dramatic dark */
.page-hero--gallery {
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%,
      rgba(26,122,138,0.30) 0%,
      transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 100%,
      rgba(201,168,76,0.10) 0%,
      transparent 60%),
    linear-gradient(155deg, #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: 130px;
}

.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: 3rem 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}

/* Hide any leftover img inside footer-brand */
.footer-brand img { display: none; }

/* ══════════════════════════════════════════════
   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.8rem;
}

/* ── 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;
  /*
    Refined emboss — same philosophy as nav,
    slightly deeper for footer's larger size
  */
  filter:
    drop-shadow(0 1px 0 rgba(100,38,0,0.95))
    drop-shadow(0 2px 0 rgba(70,24,0,0.88))
    drop-shadow(0 3px 0 rgba(40,12,0,0.78))
    drop-shadow(0 4px 1px rgba(20,6,0,0.65))
    drop-shadow(0 6px 8px rgba(0,0,0,0.55))
    drop-shadow(0 14px 24px rgba(0,0,0,0.28));
  transition: filter 0.4s ease;
}

/* ── 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: 0 1px 4px rgba(0,0,0,0.65);
}
.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;
}

.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: 1.5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  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: 0.95rem;
}

.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.8rem;
  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
   ============================================ */

.float-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: none;
}

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

.float-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.float-btn-call {
  background: var(--teal);
  color: white;
}

.float-btn-call:hover {
  background: var(--teal-light);
  transform: scale(1.04);
}

.float-btn-quote {
  background: var(--orange);
  color: white;
}

.float-btn-quote:hover {
  background: var(--orange-light);
  transform: scale(1.04);
}

/* ============================================
   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: 130px 0 70px;
    min-height: 420px;
  }

  .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: 100px 1.5rem 60px;
    min-height: unset;          /* let content dictate height on mobile */
  }

  .hero-logo {
    width: clamp(120px, 40vw, 180px); /* smaller logo on mobile */
    margin: 0 auto;            /* keep centered on mobile  */
    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;
  }
  
  .float-cta {
    bottom: 1rem;
    right: 0.75rem;
    flex-direction: row;        /* side by side on mobile — less vertical space */
    gap: 0.5rem;
  }

  .float-btn {
    font-size: 0;               /* hide text — icon only on mobile */
    padding: 0.85rem 0.85rem;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    justify-content: center;
  }

  .float-btn i {
    font-size: 1.1rem;          /* keep icon visible */
    margin: 0;
  }

  .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: 110px 0 60px;
    min-height: 380px;
  }
  .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: consistent width ── */
.footer-brand {
  max-width: 340px;
}
@media (max-width: 768px) {
  .footer-brand {
    max-width: 100%;
  }
}

/* ── 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;
}

/* ── Float CTA: prevent overlap with footer ── */
.float-cta {
  z-index: 800;
}

/* ── 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: 1rem 2.5rem;
}
nav.scrolled {
  padding: 0.7rem 2.5rem;
}
.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: none;
}
nav.scrolled .nav-logo img {
  display: none;
}

/* ── 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.8rem;
}
.hero-eyebrow {
  margin-bottom: 1.2rem;
}
.hero h1 {
  margin-bottom: 1.2rem;
  text-align: center;
}
.hero-sub {
  margin-bottom: 1rem;
  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: clean alignment, balanced spacing ── */
footer {
  padding: 5rem 2.5rem 2rem;
}
.footer-grid {
  max-width: 1200px;
  gap: 2.5rem 3rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.72;
  max-width: 260px;
}
.footer-col ul li {
  margin-bottom: 0.65rem;
}
.footer-col ul li a {
  font-size: 0.9rem;
}
.footer-col h5 {
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}
.footer-bottom {
  max-width: 1200px;
  padding-top: 1.6rem;
}
.footer-bottom p {
  font-size: 0.8rem;
}

/* ── 13. FLOATING CTA: no overlap, safe position ── */
.float-cta {
  bottom: 1.8rem;
  right: 1.8rem;
  gap: 0.65rem;
  z-index: 799; /* below nav (1000) */
}
.float-btn {
  padding: 0.8rem 1.4rem;
  font-size: 0.875rem;
  gap: 0.55rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

/* ── 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: 1rem 1.5rem; }
  nav.scrolled { padding: 0.7rem 1.5rem; }

  .hero { padding: 110px 1.5rem 70px; }
  .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;
  }

  .float-cta {
    bottom: 1rem;
    right: 1rem;
    flex-direction: row;
    gap: 0.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%; }

  .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.9rem 1.2rem; }

  .hero { padding: 100px 1.2rem 60px; }

  .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; }

  .float-btn {
    font-size: 0;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .float-btn i {
    font-size: 1.1rem;
    margin: 0;
  }

  .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;
  }
}