html, body {
  overflow-x: hidden;
  overflow-y: hidden;
  /* Prevent vertical scroll caused by 100vh rounding */
  max-width: 100vw;
  height: 100%;
}

/* Fluid typography (global) */
html{
  font-size: clamp(16px, 1.1vw, 19px);
}

/* === BG video ready gate: prevent initial flash of stage content === */
html:not(.bg-ready) .stage__card,
html:not(.bg-ready) .stage__control{
  opacity: 0;
  pointer-events: none;
}

html.bg-ready .stage__card,
html.bg-ready .stage__control{
  opacity: 1;
  pointer-events: auto;
}

.stage__card,
.stage__control{
  transition: opacity 220ms ease, transform 220ms ease;
}

/* Optional: tiny lift-in when revealing */
html:not(.bg-ready) .stage__card{ transform: translateY(4px); }
html.bg-ready .stage__card{ transform: translateY(0); }
/* ~/hoganpools-site/css/site.css */

:root{
  --max: 1100px;
  --pad: 20px;
  --header-height: 98px;
  /* Scale the centered card up on wide screens (e.g., 1280x800, 1920x1080) */
  --card-max-width: 1000px; /* or whatever fixed width you want */
  --stage-pad-y: 16px;
  --stage-pad-total: 1px;

  --navy: #0c2845;
  --navy2:#0a223b;

  --bg: #ffffff;
  --text: #111111;
  --muted: #444444;
  --line: #e6e6e6;

  --on-dark: #ffffff;

  --intro-delay: 1800ms;
  --intro-card: 900ms;
  --intro-controls: 700ms;
  --stage-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.bg{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  z-index: 0;
  overflow: clip;
  overscroll-behavior: none;
  background: #081d30;
}

.bg__poster,
.bg__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bg__poster{
  opacity: 1;
  transition: opacity 600ms ease;
}

.bg__video{
  opacity: 0;
  transition: opacity 700ms ease;
}

.bg.is-video-ready .bg__video{
  opacity: 1;
}

.bg.is-video-ready .bg__poster{
  opacity: 0;
}

/* Water wash transition overlay */
.transition-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: none;
  background: #0a223b;
  overflow: hidden;
  opacity: 1;
  transition: none;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

.transition-overlay .wash-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.9;
  filter: saturate(1.1) contrast(1.1) brightness(1.05);
}

.transition-overlay.active {
  animation: wash-horizontal-forward 2200ms var(--stage-ease) forwards;
}

.transition-overlay.active.dir-backward {
  animation: wash-horizontal-backward 2200ms var(--stage-ease) forwards;
}

@media (max-width: 767px) {
  .transition-overlay.active,
  .transition-overlay.active.dir-backward {
    animation-duration: 1800ms;
  }
}

@keyframes wash-horizontal-forward {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  30% {
    clip-path: polygon(0 0, 90% 0, 90% 100%, 0 100%);
  }
  45% {
    clip-path: polygon(0 0, 86% 0, 86% 100%, 0 100%);
  }
  60% {
    clip-path: polygon(0 0, 90% 0, 90% 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
}

@keyframes wash-horizontal-backward {
  0% {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  }
  30% {
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 10% 100%);
  }
  45% {
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%);
  }
  60% {
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 10% 100%);
  }
  100% {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .transition-overlay.active {
    animation: none;
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .bg__video{
    display: none;
  }

  .bg__poster{
    opacity: 1;
  }

  .transition-overlay .wash-video{
    display: none;
  }
}

.reduced-motion .stage__bg-video{
  display: none;
}

/* Stage frame for premium "documentary" feel */
.stage {
  position: relative;
  min-height: calc(100svh - var(--header-height, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: var(--stage-pad-y) 0;
  overflow: hidden;
  z-index: 1;
}

.stage__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stage__bg-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.55;
  filter: saturate(0.85) contrast(1.05) brightness(0.9);
}

.stage__frame{
  position: relative;
  z-index: 2;
}

.stage__card{
  background: rgba(8, 24, 40, 0.72);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  transform: translateY(18px);
  opacity: 0;
  transition: opacity var(--intro-card) var(--stage-ease), transform var(--intro-card) var(--stage-ease);
  height: auto;
  max-height: calc(100svh - var(--header-height, 0px) - (2 * var(--stage-pad-y)));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(120,170,210,0.55) rgba(7,20,34,0.5);
}

html:not(.bg-ready) .stage__card{
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.stage__card::-webkit-scrollbar{
  width: 8px;
}

.stage__card::-webkit-scrollbar-thumb{
  background: rgba(120,170,210,0.55);
  border-radius: 8px;
}

.stage__card::-webkit-scrollbar-track{
  background: rgba(7,20,34,0.5);
  border-radius: 8px;
}

.stage.is-ready .stage__card{
  opacity: 1;
  transform: translateY(0);
}

.stage__content{
  position: relative;
  z-index: 1;
}

.stage__control{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(6, 20, 34, 0.6);
  color: #fff;
  font-size: 28px;
  line-height: 0px;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--intro-controls) var(--stage-ease), transform var(--intro-controls) var(--stage-ease);
  z-index: 3;
}

.stage__control--left{ left: 24px; }
.stage__control--right{ right: 24px; }

.stage.is-controls .stage__control{
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.stage.is-intro .stage__control{
  transform: translateY(-50%) scale(0.96);
}

.stage__frame {
  width: 100%;
  max-width: var(--card-max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.stage__content {
  padding: 24px 12px 2px;
  color: rgba(235,245,255,0.92);
}

.stage.is-ready .stage__content{
  background: transparent;
  box-shadow: none;
}

/* Stage card slide transitions (arrow navigation) */
.stage.is-sliding .stage__card{
  transition: transform 560ms var(--stage-ease);
}

.stage.stage-prep .stage__card{
  transition: none !important;
}

.stage.slide-out-left .stage__card{
  transform: translate3d(-150vw, 0, 0);
}

.stage.slide-out-right .stage__card{
  transform: translate3d(150vw, 0, 0);
}

.stage.slide-in-from-right .stage__card{
  transform: translate3d(150vw, 0, 0);
}

.stage.slide-in-from-left .stage__card{
  transform: translate3d(-150vw, 0, 0);
}

@media (prefers-reduced-motion: reduce){
  .stage.is-sliding .stage__card{
    transition: none !important;
  }
}

/* Slide transition panels */
.slide-viewport{
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Base panel */
.slide-panel{
  width: 100%;
  will-change: transform;
  transition: transform 560ms var(--stage-ease);
}

/* IMPORTANT: current stays in flow so height works */
.slide-panel.is-current{
  position: relative;
  transform: translateX(0);
}

/* Incoming overlays */
.slide-panel.is-incoming{
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  pointer-events: none;
}

/* During slide */
.slide-viewport.sliding-from-right .is-current{ transform: translateX(-100%); }
.slide-viewport.sliding-from-right .is-incoming{ transform: translateX(0); }

.slide-viewport.sliding-from-left .is-current{ transform: translateX(100%); }
.slide-viewport.sliding-from-left .is-incoming{ transform: translateX(0); }

@media (prefers-reduced-motion: reduce){
  .slide-panel{ transition: none !important; }
}

*{ box-sizing:border-box; }
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
}

body{
  overflow: hidden;
}
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

#site-header{
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Header / Nav (rendered via /partials/header.html) */
.site-header{
  background: var(--navy);
  color: var(--on-dark);
}

.brand{
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.brand__logo{
  height: 99px;
  width: auto;
  display: block;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2px;
  margin-bottom: 0;
  padding: 0 0 0 0;
  color: rgba(255,255,255,.92);
  font-size: 14px;
}
.topbar__item {
  padding: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar__phone {
  white-space: nowrap;
}
.topbar__item-text{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar__contact-inline{
  white-space: nowrap;
}

.topbar__contact-image{
  display: block;
  width: auto;
  height: 24px;
}

.topbar__contact-image--bubble{
  height: 24px;
}

.topbar__icon{
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(6,20,34,0.55);
  color: rgba(255,255,255,0.95);
  font-size: 20px;
  cursor: pointer;
}

.topbar__bubble{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(6, 20, 34, 0.95);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 60;
}

.topbar__left .topbar__bubble{
  left: auto;
  right: 0;
}

.topbar__bubble.is-open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.topbar__bubble-title{
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.topbar__bubble-text,
.topbar__bubble-link{
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.topbar__bubble-link{
  text-decoration: none;
}

.topbar__contact-bubble{
  display: inline-flex;
  align-items: center;
}

@media (max-width: 1700px){
  .topbar{
    gap: 10px;
  }

  .topbar__item-text{
    display: none;
  }

  .topbar__icon{
    display: inline-flex;
  }
}

.navwrap{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px var(--pad);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.brand{
  font-weight:700;
  letter-spacing:.2px;
  color: var(--on-dark);
}
.navtoggle{
  display:none;
  border: 1px solid rgb(255, 255, 255);
  background: transparent;
  color: var(--on-dark);
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-left: auto;
  margin-right: auto;
}

.nav a{
  color: rgba(255,255,255,.95);
  padding:8px 6px;
  border-radius:8px;
}
.nav a:hover{ text-decoration:underline; }

/* Hero with water ripple effect */
.hero{
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1a4d7a 0%, #0d2d47 50%, #061b2f 100%);
  cursor: pointer;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.home-stack{
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-hero-media{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(6,20,34,0.7);
  border: 1px solid rgba(255,255,255,0.12);
}

.home-hero-media__media{
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.home-hero-media__media img,
.home-hero-media__media video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-media__overlay{
  position: absolute;
  inset: 0;
  /* Lighter, bottom-weighted overlay so the hero image has more punch */
  background: linear-gradient(180deg, rgba(6,20,34,0) 0%, rgba(6,20,34,0.18) 55%, rgba(6,20,34,0.55) 100%);
}

.home-hero-media__content{
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 12px;
  max-width: 700px;
  z-index: 2;

  /* Put readability behind the text (instead of darkening the whole image) */
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(6, 20, 34, 0);
  border: 1px solid rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0);
}

.home-hero-media__eyebrow{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin: 0 0 6px;
  text-align: center;
}

.home-hero-media__title{
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin: 0 0 6px;
  color: #fff;
}

.home-hero-media__subtitle{
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  line-height: 1.5;
}

.home-intro{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-intro__title{
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}

.home-intro__copy{
  margin: 0;
  color: rgba(235,245,255,0.85);
  line-height: 1.6;
}

.home-intro__bullets{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(235,245,255,0.85);
}

.home-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-cta--primary{
  background: rgba(120,170,210,0.28);
  color: #fff;
  border: 1px solid rgba(120,170,210,0.6);
}

.home-cta--ghost{
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
}

.home-cta:hover{
  transform: translateY(-1px);
}

.home-testimonials{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-testimonials__title{
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}

.home-testimonials__rail{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

/* Home (mobile): show one testimonial card and fade between items */
.home-testimonial-rotator{
  display: none;
  opacity: 1;
  transition: opacity 420ms ease;
}

.home-testimonial-rotator.is-fading{
  opacity: 0;
}

@media (max-width: 820px){
  body.is-home .home-testimonials__rail{
    display: none;
  }

  body.is-home .home-testimonial-rotator{
    display: block;
  }
}

.home-testimonial{
  background: rgba(6,20,34,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px;
  scroll-snap-align: start;
}

.home-testimonial__quote{
  margin: 0 0 10px;
  color: rgba(235,245,255,0.88);
  line-height: 1.5;
}

.home-testimonial__name{
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* Home page: fit hero+intro+CTAs+testimonials into the stage card
   - <= 900px tall: keep stage card scrollbar
   - > 900px tall: scale content to fit and hide scrollbar */
body.is-home .home-stack{
  --home-fit-scale: 1;
  transform-origin: top center;
}

@media (min-height: 901px){
  body.is-home .stage__card.is-home-fit{
    overflow: hidden;
  }

  body.is-home .stage__card.is-home-fit .home-stack{
    transform: scale(var(--home-fit-scale, 1));
    will-change: transform;
  }
}

/* Process page */
.process-page{
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: #fff;
}

.process-page .container{
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.process-hero-media{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(6,20,34,0.7);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.process-hero-media__media{
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: clamp(320px, 46vw, 560px);
  max-height: 70vh;
}

.process-hero-media__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
}

.process-hero-media__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,20,34,0.2) 0%, rgba(6,20,34,0.8) 75%);
}

.process-hero-media__content{
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
  z-index: 2;
}

.process-hero-media__eyebrow{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin: 0;
}

.process-hero-media__title{
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #fff;
}

.process-hero-media__subtitle{
  margin: 0;
  color: rgba(235,245,255,0.85);
  line-height: 1.55;
}

.process-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.process-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.process-cta--primary{
  background: rgba(120,170,210,0.32);
  color: #fff;
  border: 1px solid rgba(120,170,210,0.7);
}

.process-cta--ghost{
  background: transparent;
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.28);
}

.process-cta:hover{
  transform: translateY(-1px);
}

.process-steps{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.process-steps__title{
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}

.process-steps__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.process-step{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.3);
}

.process-step__header{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.process-step__number{
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: rgba(120,170,210,0.2);
  border: 1px solid rgba(120,170,210,0.45);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.process-step__title{
  margin: 0 0 4px;
  font-size: 1rem;
  color: #fff;
}

.process-step__summary{
  margin: 0;
  color: rgba(235,245,255,0.82);
  line-height: 1.5;
  font-size: 0.95rem;
}

.process-step__details{
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 6px;
  padding-top: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease;
  color: rgba(235,245,255,0.82);
  line-height: 1.55;
}

.process-step__details p{
  margin: 0;
}

.process-step.is-open .process-step__details{
  max-height: 420px;
  opacity: 1;
}

.process-step__toggle{
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 600;
  font-size: 0.87rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.process-step__toggle:hover,
.process-step__toggle:focus-visible{
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  outline: none;
  transform: translateY(-1px);
}

.process-step__chevron{
  display: inline-block;
  transition: transform 0.2s ease;
}

.process-step.is-open .process-step__chevron{
  transform: rotate(90deg);
}

.process-outro{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  color: rgba(235,245,255,0.86);
  line-height: 1.6;
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}

.process-outro__title{
  margin: 0 0 6px;
  color: #fff;
}

.process-media-block{
  margin-top: 4px;
}

.process-media-block__inner{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
  background: rgba(6,20,34,0.7);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.32);
}

.process-media-block__visual{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: 60vh;
}

.process-media-block__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-media-block__copy h3{
  margin: 0 0 10px;
  color: #fff;
}

.process-media-block__copy p{
  margin: 0 0 10px;
  color: rgba(235,245,255,0.85);
  line-height: 1.6;
}

.process-media-block__bullets{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(235,245,255,0.85);
  line-height: 1.5;
}

.process-cta-block{
  margin-top: 8px;
}

.process-cta-block .container{
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 24px 18px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.28);
}

.process-cta-block h2{
  margin: 0;
  color: #fff;
}

.process-cta-block .process-cta--primary{
  font-size: 0.95rem;
}

@media (max-width: 900px){
  .process-media-block__inner{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .process-hero-media__content{
    left: 16px;
    right: 16px;
    bottom: 18px;
  }

  .process-hero-media__title{
    font-size: clamp(1.6rem, 4.6vw, 2.2rem);
  }

  .process-steps__grid{
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 640px){
  .process-hero-media__media{
    min-height: 320px;
  }

  .process-ctas{
    width: 100%;
  }

  .process-cta{
    flex: 1 1 100%;
    justify-content: center;
  }

  .process-media-block__visual{
    max-height: 320px;
  }
}

@media (max-width: 520px){
  .process-page,
  .process-page .container,
  .process-hero-media,
  .process-steps,
  .process-media-block,
  .process-media-block__inner,
  .process-cta-block .container{
    width: 100%;
    max-width: 100%;
  }

  .process-steps__grid{
    grid-template-columns: 1fr;
  }

  .process-step__header{
    flex-direction: column;
    align-items: flex-start;
  }

  .process-hero-media__content{
    left: 14px;
    right: 14px;
  }
}

.gunite-hero{
  padding: 6px 0 0;
}

/* Gunite page: reduce glass-card padding so the hero media fills the card better */
body.is-gunite .stage__content{
  padding: 18px 12px 10px;
}

@media (max-width: 820px){
  body.is-gunite .stage__content{
    padding: 4px 12px 10px;
  }
}

.gunite-hero__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

.gunite-hero__copy{
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: rgba(235,245,255,0.85);
  font-size: 0.92rem;
  line-height: 1.6;
}

.gunite-hero__intro{
  margin: 0 0 6px;
  color: rgba(255,255,255,0.92);
}

.gunite-hero__heading{
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.95);
}

.gunite-hero__text{
  margin: 0;
}

.gunite-hero__media{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(6,20,34,0.45);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.gunite-hero__video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.05);
  transform-origin: center center;
}

.gunite-hero__overlay{
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.gunite-hero__text-seq{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 22px 20px;
  color: rgba(255,255,255,0.96);
  font-size: 1.38rem;
  line-height: 1.5;
  z-index: 2;
  height: calc(10% + 96px); /* raise shadow ~1 inch */
  text-align: center;
  text-shadow: 0 4px 16px rgba(0,0,0,0.4);
  background: linear-gradient(
    180deg,
    rgba(6,20,34,0) 0%,
    rgba(6,20,34,0.35) 35%,
    rgba(6,20,34,0.75) 100%
  );
}

.gunite-hero__text-line{
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translate(-50%, 8px);
  max-width: min(760px, 90%);
  width: 100%;
  opacity: 0;
  animation: gunite-text-fade 28s ease-in-out infinite;
  animation-delay: var(--seq-delay);
  animation-fill-mode: both;
  will-change: opacity, transform;
}

@keyframes gunite-text-fade{
  /* 28s loop = 7 lines x 4s. Each line is only visible in its own 4s slot. */
  0%{ opacity: 0; transform: translate(-50%, 8px); }
  0.75%{ opacity: 1; transform: translate(-50%, 0); }
  12%{ opacity: 1; transform: translate(-50%, 0); }
  14.285%{ opacity: 0; transform: translate(-50%, -6px); }
  100%{ opacity: 0; transform: translate(-50%, -6px); }
}

@media (max-width: 900px){
  .gunite-hero__grid{
    grid-template-columns: 1fr;
  }
  .gunite-hero__media{
    order: -1;
  }
}

@media (max-width: 640px){
  .gunite-hero__text-seq{
    padding: 12px 14px 14px;
    font-size: clamp(0.66rem, 3.2vw, 1.1rem);
    line-height: 1.35;
    height: calc(10% + 68px);
  }

  .gunite-hero__text-line{
    bottom: 10px;
    max-width: min(520px, 92%);
  }
}

@media (max-width: 420px){
  .gunite-hero__text-seq{
    padding: 10px 12px 12px;
    height: calc(10% + 58px);
  }
}

@media (max-width: 820px){
  .stage__content{
    padding: 22px 20px 16px;
  }
  .home-hero-media__content{
    left: 18px;
    right: 18px;
    bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    max-width: 560px;
  }
  .home-hero-media__media{
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 520px){
  .home-hero-media__content{
    left: 26px;
    right: auto;
    bottom: 4px;
    padding: 2px 11px;
    max-width: min(320px, calc(100% - 28px));
    background: rgba(0, 0, 0, 0.404)
  }

  .home-hero-media__eyebrow{
    text-align: center;
  }

  .home-hero-media__title{
    font-size: clamp(1.05rem, 3vw, 1.85rem);
  }

  .home-hero-media__subtitle{
    display: none;
  }
}

@media (max-width: 420px){
  .home-hero-media__content{
    max-width: min(290px, calc(100% - 28px));
  }
}


/* WebGL canvas that renders the shader-based ripples */
#hero-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1; /* behind the overlay (overlay is z-index:2) */
  pointer-events: auto; /* capture clicks */
}

/* Ripple animation class (added via JS) */
.ripple {
  position: absolute;
  border-radius: 50%;
  /* Even lighter, translucent blue so DOM ripple never appears dark */
  background: radial-gradient(circle at 30% 30%, rgba(10,40,64,0.6) 0%, rgba(10,40,64,0.36) 20%, rgba(8,30,50,0.2) 40%, transparent 85%);
  transform: scale(0) translateZ(0);
  animation: ripple-expand-3d 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  pointer-events: none;
  /* minimal shadow */
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.06));
  box-shadow: inset -1px -1px 4px rgba(0,0,0,0.12);
  z-index: 6; /* keep below overlay highlights */
  opacity: 0.45; /* default opacity scaled down */
}

/* Add inner ring effect for depth (very muted) */
.ripple::before {
  content: '';
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  animation: inner-ring 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Distortion effect that warps the background */
.ripple-distort {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 8;
}

@keyframes ripple-expand-3d {
  0% {
    transform: scale(0) translateZ(0);
    opacity: 1;
    filter: drop-shadow(0 0px 0px rgba(0,0,0,0.1));
  }
  15% {
    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.25));
  }
  50% {
    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.2));
    opacity: 0.9;
  }
  85% {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    opacity: 0.4;
  }
  100% {
    transform: scale(1) translateZ(0);
    opacity: 0;
    filter: drop-shadow(0 0px 0px rgba(0,0,0,0));
  }
}

@keyframes inner-ring {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes distort-wave {
  0% {
    transform: scale(0);
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  }
  50% {
    background: radial-gradient(circle, rgba(100,150,255,0.2) 0%, transparent 60%);
  }
  100% {
    transform: scale(1);
    background: radial-gradient(circle, transparent 0%, transparent 70%);
  }
}

.hero__overlay{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--on-dark);
  animation: fade-in-up 1.2s ease-out 0.4s both;
}

.hero-content {
  z-index: 2;
  color: #fff;
  text-align: center;
}

.hero .container {
  position: relative;
  z-index: 2;
}

@keyframes fade-in-up {
  /* Keep a full-width, rectangular bottom band for the early portion to avoid any corner gap */
  0% {
    clip-path: polygon(0 150%, 100% 150%, 100% 100%, 0 100%);
    opacity: 0;
  }
  35% {
    /* still fully covers bottom — prevents any diagonal/uncovered corner during interpolation */
    clip-path: polygon(0 150%, 100% 150%, 100% 100%, 0 100%);
    opacity: 0.75;
  }
  /* Gradually raise a flat top edge (both sides matched) so no slanted gap appears */
  60% {
    clip-path: polygon(0 10%, 100% 10%, 100% 100%, 0 100%);
    opacity: 0.95;
  }
  85% {
    clip-path: polygon(0 5%, 100% 5%, 100% 100%, 0 100%);
    opacity: 0.45;
  }
  100% {
    clip-path: polygon(0 0%, 100% 0%, 100% 100%, 0 100%);
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero__tagline {
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 20px 0 0 0;
  color: rgba(255, 255, 255, 0.95);
  animation: fade-in-up 1.2s ease-out 1s both;
  position: relative;
  display: inline-block;
}

/* Subtle underline animation for tagline */
.hero__tagline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
  animation: expand-width 1s ease-out 1.2s forwards;
}

@keyframes expand-width {
  to {
    width: 80%;
  }
}

/* Additional water effect patterns */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: 
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero h1{
  margin:0;
  color: var(--on-dark);
  font-size: clamp(32px, 4vw, 52px);
  line-height:1.05;
}

/* Sections */
.section{ padding: 60px 0; }
.section h2{
  margin:0 0 28px 0;
  font-size: clamp(22px, 2.2vw, 32px);
  text-align:center;
}

/* Divider strips (Wix-like thin lines) */
.section--dividers{ position: relative; }
.section--dividers::before,
.section--dividers::after{
  content:"";
  position:absolute;
  left:0;
  right: 0;
  height:1px;
  background: rgba(255,255,255,.25);
}
.section--dividers::before{ top: 0; }
.section--dividers::after { bottom: 0; }

/* Testimonials section: solid navy, with contained moving water strip */
.section--testimonials{
  background: var(--navy2);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}

/* Ensure testimonials section doesn't push hero below the fold */
.proof {
  margin-top: 0;
}

/* Subtle water waves background in testimonials */
.section--testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 10% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.section--testimonials > .container {
  position: relative;
  z-index: 1;
}

/* The contained "water strip" band */
.waterband{
  position: relative;
  height: 70px;
  margin: 24px 0 32px;
  overflow: hidden;
  display: grid;
  place-items: center;

  border-top: 1px solid rgba(255,255,255,.25);
  border-bottom: 1px solid rgba(255,255,255,.25);
}

/* Moving water image layer */
.waterband::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("/assets/img/home-water-strip.jpg") center/cover no-repeat;
  transform: scale(1.05);
  opacity: 0.95;
  animation: water-drift 10s linear infinite;
}

/* Darken slightly so the title reads like Wix */
.waterband::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(10,34,59,.35);
}

/* Title sits above the moving layer */
.waterband h2{
  position: relative;
  margin: 0;
  color: #fff;
  font-size: 16px;
  letter-spacing: .2px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

/* Motion */
@keyframes water-drift{
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce){
  .waterband::before{ animation: none; }
}

/* Quotes layout */
.quotes{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Quotes should sit on plain navy (no glass cards) */
.section--testimonials .quote{
  margin:0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.section--testimonials .quote blockquote{
  margin:0 0 16px 0;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  line-height: 1.6;
}
.section--testimonials .quote figcaption{
  font-weight:600;
  color: rgba(255,255,255,.95);
  margin-top: 12px;
  font-size: 14px;
}

/* CTA */
.section--cta{
  background: var(--navy);
  color: var(--on-dark);
}
.section--cta .container{
  text-align:center;
}
.section--cta h2{
  text-align:center;
}
.cta{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  justify-content:center;
}
.btn{
  display:inline-block;
  padding: 10px 16px;
  border-radius: 2px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.9);
  font-weight: 500;
  font-size: 13px;
  cursor:pointer;
  text-decoration:underline;
  transition:color .2s ease;
}
.btn:hover{
  color: rgba(255,255,255,1);
  text-decoration:underline;
}
.btn--ghost{
  background: transparent;
  color: rgba(255,255,255,.9);
  border: none;
}

.obf-phone-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.obf-phone-icon{
  line-height: 1;
}

.obf-phone-image{
  display: block;
  width: auto;
  height: 18px;
}

.about-emblems{
  padding: 22px 0 34px;
}

.about-emblems__links{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.about-emblems__link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}

.about-emblems__link:hover{
  transform: translateY(-2px);
}

.about-emblems__img{
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.about-emblems__img--fb{
  width: 79px;
  height: 79px;
}

.about-emblems__img--insta{
  width: 56px;
  height: 56px;
}

.about-emblems__img--npc{
  margin-top: 13px;
  width: 168px;
  height: 168px;
}

.about-emblems__img--iws{
    margin-top: 16px;
  width: 138px;
  height: 138px;
}

.about-card__cta{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.about-card__cta h2{
  margin: 0;
}

.about-card__cta .btn{
  margin: 0;
}

.cta-link-match{
  font-size: 19px;
}


/* Footer (rendered via /partials/footer.html) */
.site-footer{
  background: var(--navy);
  color: var(--on-dark);
  padding: 26px 0;
}
.footer__grid{
  display:flex;
  gap:28px;
  justify-content:space-between;
  flex-wrap:wrap;
  padding: 0 var(--pad);
  align-items:center;
}
.footer__tagline{
  flex: 1;
  min-width:200px;
}
.footer__contact{
  display:flex;
  gap:20px;
  align-items:center;
  flex-wrap:wrap;
}
.footer__contact a{
  color: rgba(255,255,255,.9);
  font-size: 13px;
  white-space:nowrap;
}
.footer__contact a:hover{
  text-decoration:underline;
}
.footer__copyright{
  color: rgba(255,255,255,.75);
  font-size: 13px;
  padding: 14px var(--pad) 0;
}

/* Responsive */
@media (max-width: 820px){
  :root{
    --intro-delay: 600ms;
    --intro-card: 500ms;
    --intro-controls: 500ms;
  }

  .stage__frame{
    padding: 0 12px;
  }

  .stage__card{
    border-radius: 14px;
  }

  .stage__control{
    width: 36px;
    height: 36px;
    font-size: 22px;
    top: 67%;
    
  }
/* adjust mobile override */
@media (max-width: 820px){
  .stage__control{
    top: 54%; /* override the 67% mobile rule */
  }
}
  .stage__control--left{ left: -2px; }
  .stage__control--right{ right: -2px; }
  .navtoggle{ display:inline-block; }
  .nav{
    display:none;
    width:100%;
    padding: 10px var(--pad) 16px;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .nav--open{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  /* Hero responsive */
  .hero {
    min-height: 500px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }

  .hero__tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
  }

  .hero__wave {
    height: 80px;
  }

  .quotes{ grid-template-columns: 1fr; }
  .waterband{ height: 60px; }
  
  .footer__grid{
    flex-direction:column;
    gap:14px;
  }
  
  .footer__contact{
    justify-content:center;
  }
  
  .cta{
    gap:16px;
  }
  
  .section{ padding: 40px 0; }
}
/* =========================
   Header polish (scoped)
   ========================= */

#site-header{
  position: relative;
  z-index: 50;
}

#site-header:empty{
  display: block;
  min-height: 98px;
}

/* Header surface */
#site-header .site-header,
#site-header header,
#site-header .topbar,
#site-header .navwrap{
  background: rgba(4, 18, 34, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Desktop layout: fixed bar height, true centered nav */
#site-header .navwrap,
#site-header .site-header__inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;

  height: 78px;     /* fixed header height */
  padding: 0 22px;  /* no vertical padding */
  overflow: hidden; /* nothing can spill outside the bar */
}

/* Left: brand/logo */
#site-header .brand,
#site-header .site-header__brand{
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 100%;
}

/* Critical fix: fixed logo height (no % / calc) */
#site-header .brand__logo,
#site-header .site-header__logo{
  height: 72px; /* fills the 78px bar with ~3px top/bottom breathing room */
  width: auto;
  display: block;
  object-fit: contain;
}

/* Safety: don't accidentally scale other images inside the header */
#site-header img{
  display: block;
}

/* Center: nav */
#site-header .nav,
#site-header .site-header__nav{
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 18px;
}

#site-header .nav a,
#site-header .site-header__nav a{
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 10px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

#site-header .nav a:hover,
#site-header .site-header__nav a:hover,
#site-header .nav a:focus-visible,
#site-header .site-header__nav a:focus-visible{
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

/* Soft dividers between nav items (desktop only) */
#site-header .nav a + a,
#site-header .site-header__nav a + a{
  position: relative;
  margin-left: 14px;
}

#site-header .nav a + a::before,
#site-header .site-header__nav a + a::before{
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
}

/* Right: hours + phone */
#site-header .meta,
#site-header .site-header__meta{
  justify-self: end;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  min-width: 0;
}

#site-header .hours,
#site-header .site-header__hours{
  font-size: 25px;
  color: rgba(255, 255, 255, 0.70);
  white-space: nowrap;
  opacity: 0.72;
}

#site-header .phone,
#site-header .site-header__phone{
  font-size: 19px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  white-space: nowrap;
}

#site-header .phone:hover,
#site-header .site-header__phone:hover{
  text-decoration: underline;
}

/* Responsive: allow wrap on mobile, reduce logo slightly */
@media (max-width: 920px){
  #site-header .navwrap,
  #site-header .site-header__inner{
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 10px;
    margin-top: -px; /* move logo up a few px */

    height: auto;        /* allow wrapping */
    padding: 7px 16px;  /* restore vertical padding */
    overflow: visible;
  }

  #site-header .nav,
  #site-header .site-header__nav{
    grid-column: 1 / -1;
    justify-self: start;
    gap: 10px 14px;
  }

  #site-header .nav a + a::before,
  #site-header .site-header__nav a + a::before{
    display: none;
  }

  #site-header .meta,
  #site-header .site-header__meta{
    align-items: flex-start;
    text-align: left;
  }

  #site-header .nav a,
  #site-header .site-header__nav a{
    font-size: 14px;
    padding: 9px 8px;
  }

  #site-header .brand__logo,
  #site-header .site-header__logo{
    height: 56px;
  }
}
/* Remove baseline/line-height artifacts and let logo fill the bar */
#site-header .navwrap,
#site-header .site-header__inner{
  align-items: stretch;     /* not center */
}

#site-header .brand,
#site-header .site-header__brand{
  height: 100%;
  align-self: stretch;
  display: flex;
  align-items: stretch;     /* let child fill */
}

/* Logo should fill the fixed 78px bar (no breathing room) */
#site-header .brand__logo,
#site-header .site-header__logo{
  height: 78px;   /* match header height exactly */
  width: auto;
  display: block;
  object-fit: contain;
}
@media (min-width: 921px){
  #site-header{ position: relative; }

  #site-header .topbar{
    position: absolute;
    top: 0;
    right: 22px;
    height: 78px;
    display: flex;
    align-items: center;
    margin: 0;
    background: transparent;
    border: 0;
    z-index: 60;
    pointer-events: auto;
  }
}
/* Equal top/bottom breathing room: make header taller AND center items */
#site-header .navwrap,
#site-header .site-header__inner{
  height: 102px;          /* 78 + 4px (2 top + 2 bottom). Use 86 for 4+4. */
  align-items: center;   /* override the later stretch rule */
}

#site-header .brand,
#site-header .site-header__brand{
  align-items: center;   /* override stretch so the img centers vertically */
}

/* Keep the logo height the same as before */
#site-header .brand__logo,
#site-header .site-header__logo{
  height: 86px;
  width: auto;
  display: block;
}

/* Single source of truth */
:root{
  --header-h: 96px;  /* try 94–98; 96 gives ~5px top/bottom with 86px logo */
  --logo-h: 86px;
}

/* Header height + centering */
#site-header .navwrap,
#site-header .site-header__inner{
  height: var(--header-h);
  align-items: center;
}

#site-header .brand__logo,
#site-header .site-header__logo{
  height: var(--logo-h);
}

/* Fix top-right meta centering: match the header height */
@media (min-width: 921px){
  #site-header .topbar{
    height: var(--header-h);
    align-items: center;
  }
}
:root{
  --header-bg: #061a33; /* navy; adjust as desired */
}

/* Main header bar */
#site-header,
#site-header .navwrap,
#site-header .site-header__inner{
  background: var(--header-bg) !important;
}

/* If you still have the top-right strip/container */
#site-header .topbar{
  background: var(--header-bg) !important;
  border-bottom-color: rgba(255,255,255,.08); /* optional */
}
/* Top-right hours/phone (topbar version) */
#site-header .topbar{
  font-size: 29px; /* overall size */
}

#site-header .topbar__item{
  font-size: 18px; /* hours line */
}

#site-header .topbar__phone{
  font-size: 18px; /* phone line */
  font-weight: 600;
}
/* Base (works) */
#site-header .nav a,
#site-header nav a,
#site-header .site-header__nav a{
  font-weight: 700;
  text-shadow:
    0 0 2px rgba(255,255,255,0.35),
    0 0 8px rgba(255,255,255,0.18);
}

/* Hover/focus (force it) */
#site-header .nav a:hover,
#site-header nav a:hover,
#site-header .site-header__nav a:hover,
#site-header .nav a:focus-visible,
#site-header nav a:focus-visible,
#site-header .site-header__nav a:focus-visible{
  text-shadow:
    0 0 3px rgba(255,255,255,0.50),
    0 0 12px rgba(255,255,255,0.28) !important;
}

/* --- Process page: desktop sizing tune (scoped; does not affect Home/Gunite) --- */
@media (min-width: 821px){
  /* The big culprit: the 16/9 hero inside a 1000px card becomes ~560px tall. Reduce it. */
  .process-page .process-hero-media__media{
    /* slightly wider aspect => less height */
    aspect-ratio: 2 / 1;
    /* reduce the clamp that was making it huge */
    min-height: clamp(240px, 22vw, 420px);
    max-height: 52vh;
  }

  /* tighten overlay content a bit */
  .process-page .process-hero-media__content{
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: 560px;
  }
}

html, body {
  overflow-x: hidden;
  overflow-y: hidden;
  /* Prevent vertical scroll caused by 100vh rounding */
  max-width: 100vw;
  height: 100%;
}
/* Fluid typography (global) */
html{
  font-size: clamp(16px, 1.1vw, 19px);
}
/* =========================
   Gallery page (only)
   ========================= */
.gallery-full .gallery-grid{
  display: grid;
  gap: 16px;
  /* responsive grid that never overflows the card */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.gallery-full .gallery-item{
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

/* This is the key part: constrain image size */
.gallery-full .gallery-item img{
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;       /* crop instead of overflowing */
  aspect-ratio: 4 / 3;     /* consistent thumbnail shape */
}

/* If you want "gallery-3col" to truly be 3 columns on desktop */
@media (min-width: 980px){
  .gallery-full .gallery-grid.gallery-3col{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Smaller screens: slightly tighter tiles */
@media (max-width: 520px){
  .gallery-full .gallery-grid{ gap: 12px; }
  .gallery-full .gallery-item img{ aspect-ratio: 1 / 1; }
}
/* =========================
   Gallery page: constrain main image
   ========================= */

/* ensure the gallery card centers its content */
body.gallery-full .stage__card{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* cap image size so it behaves like a pleasant gallery, not a full-screen photo */
body.gallery-full .stage__card img{
  display: block;
  max-width: 100%;
  max-height: min(520px, 70vh); /* adjust to taste */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

/* if you’re using the grid version, this still works */
body.gallery-full .gallery-grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
/* =========================
   Gallery lightbox
   ========================= */

.lightbox-overlay{
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.65);
}

.lightbox-overlay.is-open{
  display: flex;
}

.lightbox{
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(6, 20, 34, 0.9);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img{
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 12px;
}

.lightbox__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(6, 20, 34, 0.9);
  color: #fff;
  font-size: 20px;
  line-height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox__close:hover{
  background: rgba(255,255,255,0.82);
}

body.lightbox-open{
  overflow: hidden;
}

/* FINAL mobile override */
@media (max-width: 820px){
   #site-header .nav.nav--open a{
    display: block;                 /* ensure full-width hit area */
    width: 100%;
    padding: 12px 14px;             /* adjust vertical spacing if needed */
    border-bottom: 1px solid rgba(255, 255, 255, 0.521); /* subtle line */
  }

  /* remove divider after the last item */
  #site-header .nav.nav--open a:last-child{
    border-bottom: none;
  }
  #site-header .nav{
    display: none !important;
  }

  /* Show Hours/Phone as icon buttons on mobile (pleasant + compact) */
  #site-header .topbar{
    display: flex !important;
    position: absolute;
    top: 0;
    right: 16px;
    height: var(--header-h, 96px);
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0;
    z-index: 10000;
    pointer-events: auto;
  }

  #site-header .topbar__item-text{ display: none !important; }
  #site-header .topbar__icon{ display: inline-flex !important; }
  #site-header .navtoggle--inline{ display: none !important; }

  #site-header .topbar__right{
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  #site-header .topbar__icon--menu{
    color: rgba(215, 221, 228, 0.95);
    border-color: rgba(215, 221, 228, 0.55);
    background: rgba(6, 20, 34, 0.55);
  }

  #site-header .topbar__icon--menu span{
    font-size: 22px;
    line-height: 1;
  }

  /* Make sure header is a positioning context for the topbar */
  #site-header .site-header{ position: relative; }
  
  #site-header .nav.nav--open{
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;

    position: fixed;
    top: var(--header-h, 96px);
    left: var(--pad, 20px);
    right: var(--pad, 20px);
    
    z-index: 9999;

    padding: 14px;
    border-radius: 16px;
    background: #0c2845; /* navy */
  }

  #site-header .nav.nav--open a{
    color: rgba(215, 221, 228, 0.95);
  }
}
