/* Bayside Concrete Sealing - Additional styles (beyond Tailwind CDN) */
/* Keep minimal - most styling via Tailwind utilities */

/* Site-wide CTAs: aqua (replaces orange) */
.bg-brand-orange,
a.bg-brand-orange,
button.bg-brand-orange {
  background-color: #00b4d8 !important;
  background-image: none !important;
}

.hover\:bg-orange-600:hover,
a.hover\:bg-orange-600:hover,
button.hover\:bg-orange-600:hover {
  background-color: #0891b2 !important;
}

.active\:bg-orange-700:active,
a.active\:bg-orange-700:active,
button.active\:bg-orange-700:active {
  background-color: #0e7490 !important;
}

/* Card base - static modern cards (see coastal system) */
.card-hover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Before / After badges for gallery */
.ba-container {
  position: relative;
  overflow: hidden;
}

.ba-badge {
  position: absolute;
  top: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
  z-index: 10;
}

.ba-badge.before {
  left: 12px;
  background: #b91c1c;
  color: white;
}

.ba-badge.after {
  right: 12px;
  background: #00B4D8;
  color: white;
}

/* FAQ Accordion */
.faq-question {
  cursor: pointer;
  user-select: none;
}

.faq-question:hover {
  color: #00B4D8;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 300px;
}

/* Form success state */
.form-success {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1px solid #00B4D8;
}

/* Lightbox modal */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.95);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#lightbox.open {
  display: flex;
}

#lightbox img {
  max-height: 82vh;
  max-width: 92vw;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 600px;
}

/* Gallery filter buttons */
.filter-btn {
  transition: all 0.15s ease;
}

.filter-btn.active {
  background-color: #00B4D8;
  color: white;
  border-color: #00B4D8;
}

/* Sticky nav shadow on scroll */
.nav-scrolled {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Suburb tags */
.suburb-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: #f1f5f9;
  color: #0A2540;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Map placeholder styling */
.map-placeholder {
  background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder::after {
  content: "Bayside Service Area";
  position: absolute;
  bottom: 12px;
  font-size: 0.75rem;
  color: #475569;
  background: rgba(255,255,255,0.85);
  padding: 2px 10px;
  border-radius: 4px;
}

/* Print styles - hide nav etc */
@media print {
  nav, .no-print, footer {
    display: none !important;
  }
  .section {
    break-inside: avoid;
  }
}

/* Horizontal services nav on services page */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   Premium coastal hero - multi-image, overlays, wave, glass UI
   Cycle: 6.5s dwell + 1.2s cross-fade x 4 = 30.8s
   Mobile: 5s + 1s x 4 = 24s
   ========================================================================== */

:root {
  --hero-cycle: 30.8s;
  --hero-slot: 7.7s;
  --hero-navy: #0a2540;
  --hero-aqua: #00b4d8;
  --hero-orange: #00b4d8;
  --hero-peach: rgba(255, 196, 140, 0.22);
}

@media (max-width: 767px) {
  :root {
    --hero-cycle: 24s;
    --hero-slot: 6s;
  }
}

/* ----- Shell ----- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  position: relative;
}

.hero-content {
  z-index: 10;
}

/* ----- Slides ----- */
.hero-media {
  z-index: 0;
  overflow: hidden;
  background: var(--hero-navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  will-change: opacity, transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0) scale(1);
  animation-duration: var(--hero-cycle), var(--hero-slot);
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-fill-mode: both, both;
}

.hero-slide--1 {
  background-image: url("../images/hero-beachy-01.jpg");
  animation-name: hero-crossfade, hero-kenburns-a;
  animation-delay: 0s, 0s;
}

.hero-slide--2 {
  background-image: url("../images/hero-beachy-02.jpg");
  animation-name: hero-crossfade, hero-kenburns-b;
  animation-delay: var(--hero-slot), var(--hero-slot);
}

.hero-slide--3 {
  background-image: url("../images/hero-beachy-03.jpg");
  animation-name: hero-crossfade, hero-kenburns-c;
  animation-delay: calc(var(--hero-slot) * 2), calc(var(--hero-slot) * 2);
}

.hero-slide--4 {
  background-image: url("../images/hero-beachy-04.jpg");
  animation-name: hero-crossfade, hero-kenburns-d;
  animation-delay: calc(var(--hero-slot) * 3), calc(var(--hero-slot) * 3);
}

@keyframes hero-crossfade {
  0% { opacity: 0; }
  3.8961% { opacity: 1; }
  25% { opacity: 1; }
  28.8961% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes hero-kenburns-a {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-1.4%, -0.8%, 0) scale(1.08); }
}

@keyframes hero-kenburns-b {
  0% { transform: translate3d(0, 0, 0) scale(1.08); }
  100% { transform: translate3d(1.2%, -0.6%, 0) scale(1); }
}

@keyframes hero-kenburns-c {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0.9%, 1%, 0) scale(1.08); }
}

@keyframes hero-kenburns-d {
  0% { transform: translate3d(0, 0, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 0.7%, 0) scale(1); }
}

/* ----- Overlay stack ----- */
.hero-overlays {
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

/* Deep coastal base wash - keeps photos rich, not washed out */
.hero-overlay--base {
  background:
    linear-gradient(
      125deg,
      rgba(10, 37, 64, 0.72) 0%,
      rgba(10, 37, 64, 0.42) 42%,
      rgba(8, 28, 48, 0.28) 68%,
      rgba(10, 37, 64, 0.18) 100%
    );
}

/* Strong left panel so copy always reads on bright concrete */
.hero-overlay--side {
  background: linear-gradient(
    90deg,
    rgba(6, 22, 40, 0.88) 0%,
    rgba(6, 22, 40, 0.72) 28%,
    rgba(6, 22, 40, 0.38) 52%,
    rgba(6, 22, 40, 0.08) 74%,
    transparent 100%
  );
}

/* Soft bottom-to-top for wave blend + CTA legibility */
.hero-overlay--bottom {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.32) 32%,
    rgba(0, 0, 0, 0.1) 58%,
    transparent 78%
  );
}

/* Edge vignette */
.hero-overlay--vignette {
  background: radial-gradient(
    ellipse 90% 80% at 50% 45%,
    transparent 35%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

/* Warm peach / golden coastal bloom (top-right) */
.hero-overlay--glow {
  background:
    radial-gradient(ellipse 55% 45% at 82% 18%, var(--hero-peach), transparent 70%),
    radial-gradient(ellipse 40% 35% at 12% 78%, rgba(0, 180, 216, 0.14), transparent 65%);
  mix-blend-mode: soft-light;
  animation: hero-glow-drift 14s ease-in-out infinite alternate;
}

/* Film grain */
.hero-overlay--grain {
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
}

/* Slow light sweep for wet-look concrete sheen */
.hero-overlay--shine {
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.07) 48%,
    rgba(255, 236, 210, 0.1) 52%,
    transparent 65%
  );
  background-size: 220% 100%;
  animation: hero-shine 9s ease-in-out infinite;
  mix-blend-mode: soft-light;
}

@keyframes hero-glow-drift {
  0% { opacity: 0.75; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 1; transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
}

@keyframes hero-shine {
  0%, 100% { background-position: 120% 0; opacity: 0.35; }
  50% { background-position: -20% 0; opacity: 0.85; }
}

/* ----- Typography & glass UI ----- */
.hero-title {
  color: #fff;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-title-accent {
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(186, 230, 253, 0.95) 45%,
    rgba(255, 214, 170, 0.95) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35));
}

.hero-lead {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  line-height: 1.55;
}

/* Primary CTA — aqua */
.hero-cta-primary {
  color: #fff;
  background: linear-gradient(180deg, #22d3ee 0%, #00b4d8 48%, #0891b2 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 12px 28px rgba(0, 180, 216, 0.4),
    0 2px 0 rgba(255, 255, 255, 0.2) inset,
    0 -2px 0 rgba(0, 0, 0, 0.12) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-cta-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 16px 36px rgba(0, 180, 216, 0.5),
    0 2px 0 rgba(255, 255, 255, 0.25) inset;
}

/* Secondary CTA - glass */
.hero-cta-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.hero-services {
  color: rgba(255, 255, 255, 0.7);
}

.hero-services a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 180, 216, 0.55);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.hero-services a:hover {
  color: #fff;
  text-decoration-color: var(--hero-aqua);
}

.hero-social-proof {
  color: rgba(255, 255, 255, 0.78);
}

.hero-stars {
  color: #fbbf24;
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
  font-size: 0.85rem;
}

.hero-avatar {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9999px;
  border: 2px solid rgba(10, 37, 64, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(135deg, #64748b, #0a2540);
}

.hero-avatar:nth-child(1) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(135deg, #38bdf8, #0e7490);
}

.hero-avatar:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(135deg, #fdba74, #c2410c);
}

.hero-avatar:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(135deg, #a5b4fc, #3730a3);
}

/* ----- Animated multi-layer wave ----- */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 5;
  height: clamp(72px, 12vw, 130px);
  pointer-events: none;
  line-height: 0;
  overflow: hidden;
}

.hero-wave-svg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  min-width: 1440px;
}

.hero-wave-svg--back {
  opacity: 0.35;
  animation: hero-wave-drift 14s linear infinite;
}

.hero-wave-svg--mid {
  opacity: 0.55;
  animation: hero-wave-drift 10s linear infinite reverse;
}

.hero-wave-svg--front {
  opacity: 1;
  animation: hero-wave-drift 7.5s linear infinite;
}

.hero-wave-path--back {
  fill: rgba(255, 255, 255, 0.45);
}

.hero-wave-path--mid {
  fill: rgba(241, 245, 249, 0.85);
}

.hero-wave-path--front {
  fill: #ffffff;
}

@keyframes hero-wave-drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Soft lift on content entrance */
.hero-content > .max-w-3xl > * {
  animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content > .max-w-3xl > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > .max-w-3xl > *:nth-child(2) { animation-delay: 0.14s; }
.hero-content > .max-w-3xl > *:nth-child(3) { animation-delay: 0.22s; }
.hero-content > .max-w-3xl > *:nth-child(4) { animation-delay: 0.3s; }
.hero-content > .max-w-3xl > *:nth-child(5) { animation-delay: 0.38s; }
.hero-content > .max-w-3xl > *:nth-child(6) { animation-delay: 0.46s; }

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Why Choose follows hero wave */
.hero + section {
  position: relative;
  z-index: 6;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none !important;
    opacity: 0;
    transform: none;
    will-change: auto;
  }

  .hero-slide--1 {
    opacity: 1;
  }

  .hero-overlay--glow,
  .hero-overlay--shine,
  .hero-wave-svg,
  .hero-content > .max-w-3xl > * {
    animation: none !important;
  }

  .hero-content > .max-w-3xl > * {
    opacity: 1;
    transform: none;
  }

  .js-home-lightbox-trigger::after,
  section.bg-navy.py-16.text-white .grid > div::before {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Below-hero coastal system - modern static cards + icons
   Hover kept only on portfolio gallery + testimonials
   ========================================================================== */

:root {
  --foam: #f0f9ff;
  --sea-deep: #0a2540;
  --sea-mid: #00b4d8;
  --card-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%2300B4D8' fill-opacity='0.18' d='M0,72 C240,120 480,16 720,56 C960,96 1200,28 1440,64 L1440,120 L0,120 Z'/%3E%3Cpath fill='%230A2540' fill-opacity='0.06' d='M0,88 C300,40 520,110 780,70 C1040,30 1240,100 1440,60 L1440,120 L0,120 Z'/%3E%3C/svg%3E");
}

/* ----- Coastal image grabs (Why Choose + Services) ----- */
.micro-thumb {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background: #0a2540;
}

.micro-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Soft film grade over sunset/wet concrete */
.micro-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 38%,
    rgba(10, 37, 64, 0.18) 100%
  );
}

/* Why Choose: full-width dawn/sunset strip */
.card-grab {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
}

.micro-thumb--why {
  width: 100%;
  height: 8.25rem;
  border-radius: 1.15rem 1.15rem 0 0;
  box-shadow: none;
}

.micro-thumb--why img {
  object-position: center 48%;
}

/* Services: compact landscape beside title — still readable */
.micro-thumb--svc {
  width: 5.75rem;
  height: 4.15rem;
  border-radius: 0.8rem;
  box-shadow:
    0 6px 16px rgba(10, 37, 64, 0.14),
    0 0 0 1px rgba(0, 180, 216, 0.14);
}

.micro-thumb--svc img {
  object-position: center 42%;
}

/* Full-width natural photo header on service cards */
.micro-thumb--svc-full {
  width: 100%;
  height: 10.5rem;
  border-radius: 1.15rem 1.15rem 0 0;
  box-shadow: none;
  flex-shrink: 0;
}

.micro-thumb--svc-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-card.card-grab {
  padding: 0 !important;
}


/* ----- Section atmospheres ----- */
body > section.max-w-7xl.mx-auto.px-6.pt-16.pb-10 {
  max-width: none !important;
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(0, 180, 216, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 10%, rgba(249, 115, 22, 0.05), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--foam) 48%, #ffffff 100%);
}

body > section.max-w-7xl.mx-auto.px-6.pt-16.pb-10 > .text-center,
body > section.max-w-7xl.mx-auto.px-6.pt-16.pb-10 > .grid {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#services {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 180, 216, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 35% at 15% 80%, rgba(249, 115, 22, 0.05), transparent 55%),
    linear-gradient(165deg, #e8f7fb 0%, #f1f5f9 42%, #fff8f1 100%) !important;
}

#services::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 48px;
  background-image: var(--card-wave);
  background-size: 120% 100%;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.5;
  transform: scaleY(-1);
  pointer-events: none;
  z-index: 0;
}

#services > .max-w-7xl {
  position: relative;
  z-index: 1;
}

body > section.max-w-7xl.mx-auto.px-6.py-16 {
  max-width: none !important;
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, var(--foam) 55%, #ffffff 100%);
}

body > section.max-w-7xl.mx-auto.px-6.py-16 > .text-center,
body > section.max-w-7xl.mx-auto.px-6.py-16 > .grid,
body > section.max-w-7xl.mx-auto.px-6.py-16 > .mt-8 {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ----- Cards: modern static look (no hover motion) ----- */
.card-hover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff !important;
  border: 1px solid rgba(0, 180, 216, 0.14) !important;
  border-radius: 1.25rem !important;
  box-shadow:
    0 4px 6px -1px rgba(10, 37, 64, 0.04),
    0 14px 28px -14px rgba(10, 37, 64, 0.12);
  transition: none;
}

/* subtle static foam edge — no animation */
.card-hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.45), transparent);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.card-hover > * {
  position: relative;
  z-index: 1;
}

.card-hover h3 {
  color: var(--sea-deep);
  letter-spacing: -0.01em;
}

/* (svc-card hover rules live at end of stylesheet for cascade priority) */

/* Process step cards — static */
body > section .grid > .relative.bg-white.border.border-slate-100.rounded-2xl.p-6 {
  border: 1px solid rgba(0, 180, 216, 0.14) !important;
  border-radius: 1.25rem !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%) !important;
  box-shadow: 0 10px 28px -16px rgba(10, 37, 64, 0.14);
  transition: none;
}

body > section .grid > .relative .absolute.bg-navy {
  background: linear-gradient(135deg, var(--sea-mid), #0284c7) !important;
  box-shadow: 0 6px 16px rgba(0, 180, 216, 0.3);
}

body > section .mt-8.text-sm.bg-white.border.border-slate-100.rounded-2xl {
  border-color: rgba(0, 180, 216, 0.2) !important;
  background: linear-gradient(90deg, rgba(224, 247, 250, 0.9), rgba(255, 255, 255, 0.95)) !important;
  box-shadow: 0 8px 24px -12px rgba(0, 180, 216, 0.18);
}

/* ----- Portfolio gallery: KEEP hover ----- */
.js-home-lightbox-trigger {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem !important;
  box-shadow:
    0 8px 24px -10px rgba(10, 37, 64, 0.25),
    0 0 0 1px rgba(0, 180, 216, 0.08);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.js-home-lightbox-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background:
    linear-gradient(to top, rgba(10, 37, 64, 0.45), transparent),
    var(--card-wave);
  background-size: 100% 100%, 80% 60%;
  background-position: center, 0 100%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateY(20%);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
}

.js-home-lightbox-trigger img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.js-home-lightbox-trigger:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 18px 36px -12px rgba(0, 180, 216, 0.35),
    0 0 0 2px rgba(0, 180, 216, 0.25);
}

.js-home-lightbox-trigger:hover img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.04);
}

.js-home-lightbox-trigger:hover::after {
  opacity: 1;
  transform: translateY(0);
  animation: wave-scroll 6s linear infinite;
}

/* ----- Testimonials: KEEP hover ----- */
section.bg-navy.py-16.text-white {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(0, 180, 216, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 35% at 90% 80%, rgba(249, 115, 22, 0.12), transparent 50%),
    linear-gradient(160deg, #071a2e 0%, #0a2540 50%, #0c2d4a 100%) !important;
}

section.bg-navy.py-16.text-white .grid > div {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

section.bg-navy.py-16.text-white .grid > div::before {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 40%;
  background-image: var(--card-wave);
  background-size: 55% 100%;
  background-repeat: repeat-x;
  background-position: 0 100%;
  opacity: 0.25;
  transform: translate3d(0, 50%, 0);
  transition: transform 0.45s ease, opacity 0.35s ease;
  pointer-events: none;
}

section.bg-navy.py-16.text-white .grid > div > * {
  position: relative;
  z-index: 1;
}

section.bg-navy.py-16.text-white .grid > div:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(0, 180, 216, 0.4) !important;
  box-shadow:
    0 18px 36px -14px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 180, 216, 0.2);
}

section.bg-navy.py-16.text-white .grid > div:hover::before {
  transform: translate3d(0, 8%, 0);
  opacity: 0.55;
  animation: wave-scroll 5s linear infinite;
}

/* FAQ — clean static */
section.max-w-4xl .border.border-slate-200.rounded-2xl {
  border-color: rgba(0, 180, 216, 0.14) !important;
  background: #ffffff;
  box-shadow: 0 6px 18px -10px rgba(10, 37, 64, 0.1);
}

.faq-question:hover {
  color: #0e7490;
}

/* Final CTA */
section.bg-navy.py-12.md\:py-16,
section.bg-navy.py-12 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 50% 0%, rgba(0, 180, 216, 0.22), transparent 60%),
    linear-gradient(180deg, #0a2540 0%, #071a2e 100%) !important;
}

section span.inline-block.px-3.py-1.rounded-full {
  border: 1px solid rgba(0, 180, 216, 0.2);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.1);
}

section span.inline-block.px-3.py-1.rounded-full,
section span.text-brand-aqua.text-sm.font-semibold.tracking-wider {
  letter-spacing: 0.12em;
}

@keyframes wave-scroll {
  0% { background-position: 0 100%; }
  100% { background-position: 200% 100%; }
}

/* ==========================================================================
   Service hero images — PCS-style aqua wave sweep + pan
   (moving light band L→R / R→L, not a static blue wash)
   ========================================================================== */

.service-hero-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0a2540;
}

/* Oversized cover so pan never shows empty edges */
.service-hero-media > img {
  display: block;
  position: absolute;
  inset: -12%;
  width: 124% !important;
  height: 124% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: scale(1) translate3d(0, 0, 0);
  transform-origin: 50% 50%;
  animation: service-hero-drift 12s ease-in-out infinite alternate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
}

/* Keep aspect box when img is absolute (banner heroes) */
.service-hero-media:not(button) {
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .service-hero-media:not(button) {
    aspect-ratio: 21 / 9;
  }
}

/* Exposed-aggregate lightbox heroes keep natural height */
button.service-hero-media {
  aspect-ratio: auto;
  min-height: 12rem;
}

button.service-hero-media > img {
  position: relative;
  inset: auto;
  width: 100% !important;
  height: auto !important;
  max-height: 28rem !important;
  margin: 0 auto;
  animation: service-hero-drift 14s ease-in-out infinite alternate;
}

@keyframes service-hero-drift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.1) translate3d(-2.5%, -1.5%, 0);
  }
  100% {
    transform: scale(1.18) translate3d(-5.5%, -3.5%, 0);
  }
}

/*
  Flowing aqua waves (live undulation + continuous stream).
  Not a static graphic sliding as a stamp — crests morph and flow.
*/
.service-hero-flow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  mix-blend-mode: soft-light;
  /* overall strength ~10% of previous */
  opacity: 0.1;
}

.service-hero-flow__svg {
  position: absolute;
  left: -5%;
  top: 28%;
  width: 210%;
  height: 80%;
  display: block;
}

.service-hero-flow__track {
  transform-box: fill-box;
  transform-origin: center;
}

/* Very slow stream */
.service-hero-flow__track--1 {
  animation: service-wave-stream 48s linear infinite;
}

.service-hero-flow__track--2 {
  animation: service-wave-stream 64s linear infinite reverse;
  opacity: 0.8;
}

.service-hero-flow__track--3 {
  animation: service-wave-stream 40s linear infinite;
  opacity: 0.65;
}

@keyframes service-wave-stream {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.service-hero-flow__fill--1 {
  fill: rgba(0, 180, 216, 0.18);
  animation: service-wave-morph-1 28s ease-in-out infinite;
}

.service-hero-flow__fill--2 {
  fill: rgba(0, 180, 216, 0.1);
  animation: service-wave-morph-2 34s ease-in-out infinite;
}

.service-hero-flow__line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-hero-flow__line--1 {
  stroke: rgba(125, 211, 252, 0.35);
  stroke-width: 1.6;
  animation: service-wave-morph-line-1 28s ease-in-out infinite;
}

.service-hero-flow__line--2 {
  stroke: rgba(0, 180, 216, 0.28);
  stroke-width: 1.2;
  animation: service-wave-morph-line-2 34s ease-in-out infinite;
}

.service-hero-flow__line--3 {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
  animation: service-wave-morph-3 24s ease-in-out infinite;
  mix-blend-mode: screen;
}

/* Crest rise / fall — path morph so the water actually flows */
@keyframes service-wave-morph-1 {
  0%,
  100% {
    d: path(
      "M0 210 C200 130 400 290 600 210 S1000 130 1200 210 S1600 290 1800 210 S2200 130 2400 210 V400 H0 Z"
    );
  }
  50% {
    d: path(
      "M0 210 C200 290 400 130 600 210 S1000 290 1200 210 S1600 130 1800 210 S2200 290 2400 210 V400 H0 Z"
    );
  }
}

@keyframes service-wave-morph-2 {
  0%,
  100% {
    d: path(
      "M0 250 C180 190 420 320 600 250 S1000 190 1200 250 S1600 320 1800 250 S2220 190 2400 250 V400 H0 Z"
    );
  }
  50% {
    d: path(
      "M0 250 C180 310 420 180 600 250 S1000 310 1200 250 S1600 180 1800 250 S2220 310 2400 250 V400 H0 Z"
    );
  }
}

@keyframes service-wave-morph-3 {
  0%,
  100% {
    d: path(
      "M0 180 C220 110 380 250 600 180 S980 110 1200 180 S1620 250 1800 180 S2180 110 2400 180"
    );
  }
  50% {
    d: path(
      "M0 180 C220 250 380 110 600 180 S980 250 1200 180 S1620 110 1800 180 S2180 250 2400 180"
    );
  }
}

@keyframes service-wave-morph-line-1 {
  0%,
  100% {
    d: path(
      "M0 210 C200 130 400 290 600 210 S1000 130 1200 210 S1600 290 1800 210 S2200 130 2400 210"
    );
  }
  50% {
    d: path(
      "M0 210 C200 290 400 130 600 210 S1000 290 1200 210 S1600 130 1800 210 S2200 290 2400 210"
    );
  }
}

@keyframes service-wave-morph-line-2 {
  0%,
  100% {
    d: path(
      "M0 250 C180 190 420 320 600 250 S1000 190 1200 250 S1600 320 1800 250 S2220 190 2400 250"
    );
  }
  50% {
    d: path(
      "M0 250 C180 310 420 180 600 250 S1000 310 1200 250 S1600 180 1800 250 S2220 310 2400 250"
    );
  }
}

/* Barely-there edge veil */
.service-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    rgba(10, 37, 64, 0.04) 0%,
    transparent 45%,
    transparent 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .service-hero-media > img {
    animation: service-hero-drift 28s ease-in-out infinite alternate;
  }

  .service-hero-flow__track,
  .service-hero-flow__fill,
  .service-hero-flow__line {
    animation: none !important;
  }

  .service-hero-flow {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-home-lightbox-trigger:hover,
  section.bg-navy.py-16.text-white .grid > div:hover {
    transform: none;
  }

  .js-home-lightbox-trigger:hover::after,
  section.bg-navy.py-16.text-white .grid > div:hover::before {
    animation: none !important;
  }
}

/* ==========================================================================
   SERVICE CARD HOVER — 45deg aqua line R→L (home + services)
   Real .svc-card__gleam element; high specificity to beat .card-hover > *
   ========================================================================== */

.svc-card.card-hover,
a.svc-card,
div.svc-card {
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
}

.svc-card.card-hover:hover,
a.svc-card:hover,
div.svc-card:hover {
  border-color: #00b4d8 !important;
  box-shadow: 0 14px 32px -12px rgba(0, 180, 216, 0.4), 0 0 0 2px rgba(0, 180, 216, 0.25) !important;
  transform: translateY(-4px) !important;
}

/* Beat .card-hover > * { z-index: 1 } */
.svc-card > .svc-card__gleam,
.svc-card.card-hover > .svc-card__gleam,
a.svc-card > .svc-card__gleam {
  position: absolute !important;
  z-index: 50 !important;
  pointer-events: none !important;
  top: -50% !important;
  bottom: -50% !important;
  width: 50% !important;
  height: auto !important;
  left: 130% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: block !important;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(0, 180, 216, 0.0) 25%,
    rgba(0, 180, 216, 0.35) 42%,
    rgba(125, 211, 252, 0.9) 50%,
    rgba(255, 255, 255, 0.65) 53%,
    rgba(0, 180, 216, 0.4) 60%,
    transparent 80%
  ) !important;
  box-shadow: none !important;
  transform: rotate(45deg) !important;
  transform-origin: center center !important;
  opacity: 0 !important;
  mix-blend-mode: normal !important;
  will-change: left, opacity;
}

.svc-card:hover > .svc-card__gleam,
.svc-card.card-hover:hover > .svc-card__gleam,
a.svc-card:hover > .svc-card__gleam {
  opacity: 1 !important;
  animation: svc-gleam-rtl 2s linear infinite !important;
}

/* Only animate position — opacity handled by hover rule so it always shows */
@keyframes svc-gleam-rtl {
  0% {
    left: 120%;
  }
  100% {
    left: -80%;
  }
}

.svc-card > *:not(.svc-card__gleam) {
  position: relative !important;
  z-index: 2 !important;
}

/* ==========================================================================
   Site header logo — cropped nav asset, flush with bar
   ========================================================================== */

#main-nav {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

#main-nav > .max-w-7xl {
  padding-top: 0;
  padding-bottom: 0;
}

.site-nav-row {
  min-height: 5.25rem;
  height: 5.25rem;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .site-nav-row {
    min-height: 6rem;
    height: 6rem;
  }
}

.site-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0.35rem 0;
  line-height: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.site-logo {
  display: block;
  height: 2.85rem;
  width: auto;
  max-width: min(52vw, 15.5rem);
  object-fit: contain;
  object-position: left center;
  transform: none;
}

/* ——— Logo: golden swipe + asteroid streak (desktop) ——— */
.logo-link {
  position: relative;
  margin-right: 48px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: 6px;
}

.logo {
  max-width: 208px; /* 260px − 20% */
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
  /* Subtle depth only — no heavy golden halo */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;
  /* Slower, smoother continuous float — shimmer/asteroid unchanged */
  animation: logoBeach 8.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/*
 * Golden asteroid: small head + trailing streak
 * Path: top-left → bottom-right, timed between shimmer passes
 */
.logo-link::before {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  width: 56px;
  height: 4px;
  left: -20%;
  top: -15%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(244, 180, 90, 0.05) 18%,
    rgba(255, 200, 80, 0.28) 48%,
    rgba(255, 230, 140, 0.7) 78%,
    rgba(255, 252, 235, 0.95) 100%
  );
  box-shadow:
    0 0 6px 1px rgba(255, 210, 100, 0.45),
    2px 0 10px 2px rgba(255, 190, 70, 0.25);
  opacity: 0;
  transform: rotate(38deg) translateZ(0);
  transform-origin: right center;
  /* Tandem with wave: 8.8s → 7.04s (+20% incidence, same ratio) */
  animation: logoAsteroid 7.04s ease-in-out infinite;
  will-change: transform, opacity, left, top;
}

/* Warm golden sunlight shimmer swipe (~20% lighter than prior) */
.logo-link::after {
  content: "";
  position: absolute;
  inset: -8% -15%;
  z-index: 2;
  pointer-events: none;
  border-radius: 12px;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 248, 220, 0.52) 46%,
    rgba(255, 200, 80, 0.36) 50%,
    rgba(244, 180, 90, 0.22) 54%,
    transparent 68%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  mix-blend-mode: soft-light;
  opacity: 0;
  transform: translateZ(0);
  /*
   * Golden wave: +20% more often (5.4s → 4.32s cycle)
   * swipe itself ~20% slower (longer active span within the cycle)
   */
  animation: logoShimmer 4.32s ease-in-out infinite;
}

@keyframes logoBeach {
  0% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-2px) scale(1.006);
  }
  50% {
    transform: translateY(-3px) scale(1.01);
  }
  75% {
    transform: translateY(-1.5px) scale(1.004);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/*
 * Wave: shorter cycle (more often) + longer active span (slower swipe)
 * Active ~10%→92% of 4.32s ≈ 3.5s drift (was ~3.0s on 5.4s cycle)
 */
@keyframes logoShimmer {
  0%,
  6% {
    opacity: 0;
    background-position: 120% 0;
  }
  10% {
    opacity: 0.72;
    background-position: 110% 0;
  }
  88% {
    opacity: 0.4;
    background-position: -15% 0;
  }
  94% {
    opacity: 0;
    background-position: -20% 0;
  }
  100% {
    opacity: 0;
    background-position: -20% 0;
  }
}

/*
 * Asteroid tandem: same +20% incidence (7.04s), TL→BR
 * Offset so it still lands between wave peaks
 */
@keyframes logoAsteroid {
  0%,
  38% {
    opacity: 0;
    left: -22%;
    top: -18%;
  }
  44% {
    opacity: 0.85;
    left: 5%;
    top: 8%;
  }
  60% {
    opacity: 0.75;
    left: 72%;
    top: 78%;
  }
  68% {
    opacity: 0;
    left: 105%;
    top: 115%;
  }
  100% {
    opacity: 0;
    left: 105%;
    top: 115%;
  }
}

/* Hover / fine pointer only — avoids sticky :hover on touch */
@media (hover: hover) and (pointer: fine) {
  .logo-link:hover .logo {
    animation-play-state: paused;
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
  }

  .logo-link:hover::after {
    animation: none;
    opacity: 0.56;
    background-position: 40% 0;
    transition: opacity 0.3s ease, background-position 0.5s ease;
  }

  .logo-link:hover::before {
    animation-play-state: paused;
    opacity: 0;
  }

  .logo-link:focus-visible .logo {
    outline: none;
    animation-play-state: paused;
    transform: translateY(-1px) scale(1.03);
    filter:
      drop-shadow(0 0 0 2px #fff)
      drop-shadow(0 0 0 3px rgba(212, 168, 75, 0.44))
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  }
}

/* Tap feedback on touch devices */
.logo-link:active .logo {
  transform: scale(0.97);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  transition-duration: 0.12s;
}

.header-inner,
.navbar,
.site-header .container {
  min-height: 78px;
  align-items: center;
}

/* Mobile / touch: no float, shimmer, or asteroid */
@media (max-width: 768px) {
  .logo {
    max-width: 136px; /* 170px − 20% */
    animation: none !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
    will-change: auto;
  }

  .logo-link {
    margin-right: 16px;
    overflow: visible;
  }

  .logo-link::before,
  .logo-link::after {
    content: none !important;
    display: none !important;
    animation: none !important;
  }

  .header-inner,
  .navbar,
  .site-header .container {
    min-height: 64px;
  }
}

/* Coarse pointers (phones/tablets): kill effects even on wide landscape */
@media (hover: none), (pointer: coarse) {
  .logo {
    animation: none;
  }

  .logo-link {
    overflow: visible;
  }

  .logo-link::before,
  .logo-link::after {
    content: none !important;
    display: none !important;
    animation: none !important;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .logo {
    animation: none !important;
    transition: none;
  }

  .logo-link {
    overflow: visible;
  }

  .logo-link::before,
  .logo-link::after {
    content: none !important;
    display: none !important;
    animation: none !important;
  }

  .logo-link:hover .logo,
  .logo-link:active .logo,
  .logo-link:focus-visible .logo {
    transform: none;
  }
}

@media (min-width: 768px) {
  .site-logo {
    height: 3.35rem;
    max-width: 18rem;
  }
}

@media (min-width: 1024px) {
  .site-logo {
    height: 3.6rem;
    max-width: 20rem;
  }
}

/* Nav cluster alignment */
#main-nav .hidden.md\:flex {
  align-items: center;
}