body.home-visual {
  /* Page gutter: arrow inset + arrow width + gap. Header and hero copy both
     pad by this, so the carousel arrows sit in clear space beside the text. */
  --hero-arrow-inset: 0.6rem;
  --hero-arrow-size: 2.6rem;
  --hero-gutter: calc(var(--hero-arrow-inset) + var(--hero-arrow-size) + 0.8rem);
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--sea-dark);
  color: #fff;
  overflow: hidden;
}

body.home-visual .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  max-width: none;
  margin: 0;
  padding: 1rem var(--hero-gutter);
  background: linear-gradient(180deg, rgba(7, 42, 64, 0.85) 0%, transparent 100%);
  pointer-events: none;
}

body.home-visual .site-header > * { pointer-events: auto; }

body.home-visual .site-brand {
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

body.home-visual .site-tagline {
  color: rgba(255, 255, 255, 0.85);
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

body.home-visual main {
  flex: 1;
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.hero-media,
.hero-carousel,
.hero-slide,
.hero-fallback {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide img,
.hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-fallback {
  background:
    linear-gradient(160deg, rgba(11, 61, 92, 0.55), rgba(7, 42, 64, 0.75)),
    #0b3d5c;
}

.hero-nav {
  position: absolute;
  inset: 0;
  z-index: 12; /* above .hero-copy (11) so the prev arrow stays clickable */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--hero-arrow-inset);
  pointer-events: none;
}

.hero-nav__btn {
  pointer-events: auto;
  width: var(--hero-arrow-size);
  height: var(--hero-arrow-size);
  border: 0;
  border-radius: 999px;
  background: rgba(7, 42, 64, 0.45);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  padding: 5.5rem var(--hero-gutter) 2rem;
  background: linear-gradient(0deg, rgba(7, 42, 64, 0.88) 0%, transparent 100%);
  max-width: calc(37rem + 2 * var(--hero-gutter));
  pointer-events: none; /* gradient padding must not swallow taps on the photo/arrows */
}

.hero-copy > * { pointer-events: auto; }

.hero-copy h2 {
  color: #fff;
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 4.2vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-copy .hero-body {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  align-items: flex-end;
  margin-top: 0.35rem;
}

.hero-cta-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  /* Room for the overlay, which sits above the button's top edge. */
  margin-top: 10.2rem;
}

.hero-cta {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.hero-maps {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hero-maps:hover,
.hero-maps:focus-visible {
  color: #f4efe6;
}

.hero-dog-overlay {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 0.35rem);
  z-index: 2;
  width: 14.5rem;
  height: 10.5rem;
  pointer-events: none;
  overflow: visible;
  user-select: none;
  transform: translateX(-50%);
  opacity: 0;
  animation: dog-fade-in 0.55s ease 1s both;
}

.hero-dog-overlay__stage {
  position: absolute;
  inset: 0;
  filter:
    drop-shadow(0 10px 8px rgba(0, 0, 0, 0.45))
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.22));
}

.hero-dog-overlay__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
}

@keyframes dog-fade-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dog-overlay { display: none; }
}

body.home-visual #cookie-banner {
  background: rgba(7, 42, 64, 0.94);
}

body.home-visual:has(#cookie-banner.show) .hero-copy {
  padding-bottom: 6.5rem;
}

/* Nav tabs sit over the hero photo — translucent on dark */
body.home-visual .site-nav {
  margin-top: 0.6rem;
}

body.home-visual .site-nav__tab {
  background: rgba(7, 42, 64, 0.55);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

body.home-visual a.site-nav__tab:hover,
body.home-visual a.site-nav__tab:focus-visible {
  background: rgba(7, 42, 64, 0.8);
  border-color: var(--cta);
  color: #fff;
}

body.home-visual .site-nav__tab.is-active {
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  color: var(--sea-dark);
  text-shadow: none;
}
