/* HERO V3 — compact first screen, wider menu, real-photo rotator */

html {
  scroll-padding-top: 92px;
}

[id] {
  scroll-margin-top: 92px;
}

/* Header / menu: use the full available width between logo and actions */
@media (min-width: 1051px) {
  .nav {
    min-height: 82px;
    gap: 0;
  }

  .brand {
    min-width: 158px;
    width: 158px;
    flex: 0 0 158px;
  }

  .brand-logo {
    width: 148px;
    height: 76px;
  }

  .menu {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(7, max-content);
    justify-content: space-evenly;
    align-items: center;
    gap: 12px;
    margin: 0 20px 0 12px;
    min-width: 0;
  }

  .menu a {
    font-size: 15px;
    font-weight: 750;
  }

  .nav-actions {
    flex: 0 0 auto;
  }
}

/* Keep anchored sections visually high in the viewport */
section {
  padding-top: 58px;
  padding-bottom: 72px;
}

section[id] {
  padding-top: 42px;
}

/* First screen */
.hero {
  position: relative;
  min-height: calc(100svh - 118px);
  align-items: stretch;
  overflow: hidden;
}

.hero::before {
  background:
    radial-gradient(circle at 76% 22%, rgba(112,177,128,.14), transparent 24%),
    radial-gradient(circle at 88% 73%, rgba(216,185,93,.10), transparent 24%),
    linear-gradient(90deg, rgba(6,31,22,.99) 0%, rgba(7,41,28,.95) 42%, rgba(7,41,28,.72) 70%, rgba(7,41,28,.88) 100%);
}

.hero::after {
  height: 90px;
}

.hero-grid {
  position: relative;
  z-index: 3;
  min-height: calc(100svh - 118px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 4.8vw, 70px);
  line-height: .95;
  max-width: 760px;
  margin: 14px 0 16px;
}

.hero-lead {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
  max-width: 760px;
  margin-bottom: 0;
}

.hero-actions {
  margin-top: 22px;
}

.hero-badges {
  margin-top: 18px;
}

/* Old information card is intentionally removed from the hero */
.visit-card {
  display: none !important;
}

@media (min-width: 1051px) {
  .hero-grid {
    grid-template-columns: minmax(0, .92fr) minmax(560px, 1.08fr);
    gap: 52px;
    padding: 24px 0 30px;
  }

  .hero-grid > div:first-child {
    position: relative;
    z-index: 5;
    align-self: center;
  }
}

/* Main photo on the right */
.hero-photo-stage {
  position: relative;
  width: 100%;
  height: min(66vh, 590px);
  min-height: 430px;
  align-self: center;
  z-index: 4;
}

.hero-main-photo {
  position: absolute;
  inset: 2% 9% 4% 2%;
  overflow: hidden;
  border-radius: 52% 48% 44% 56% / 42% 52% 48% 58%;
  box-shadow: 0 30px 70px rgba(0,0,0,.30);
  background: #164c36;
  isolation: isolate;
}

.hero-main-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(240,217,135,.28);
  border-radius: inherit;
  box-shadow: inset 0 0 70px rgba(5,33,23,.18);
}

.hero-main-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(6,31,22,.22), transparent 30%, transparent 80%, rgba(6,31,22,.18));
}

.hero-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1.015);
  transition: opacity .55s ease, transform 1s ease;
}

.hero-photo-stage.is-changing .hero-main-photo img {
  opacity: 0;
  transform: scale(1.04);
}

/* Curved decorative lines, kept subtle */
.hero-photo-stage .photo-curve {
  position: absolute;
  inset: -3% 1% -2% -2%;
  width: 101%;
  height: 105%;
  z-index: 0;
  pointer-events: none;
}

.hero-photo-stage .photo-curve path {
  fill: none;
  stroke: rgba(240,217,135,.42);
  stroke-width: 1.4;
  stroke-dasharray: 4 10;
  stroke-linecap: round;
}

/* Animal rail on the far right */
.hero-animal-rail {
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 104px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.hero-animal-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(240,217,135,.72);
  box-shadow: 0 12px 32px rgba(0,0,0,.30);
  background: #184833;
  transition: opacity .45s ease, transform .45s ease;
}

.hero-photo-stage.is-changing .hero-animal-thumb {
  opacity: .15;
  transform: scale(.94);
}

.hero-animal-thumb:nth-child(2) {
  width: 78px;
  height: 78px;
  margin-right: 22px;
}

.hero-animal-thumb:nth-child(3) {
  width: 86px;
  height: 86px;
  margin-right: 7px;
}

/* Hide obsolete visual collage injected by the previous version */
.hero-visuals {
  display: none !important;
}

/* EXPERIENCE — remove the four repetitive intro cards but keep the anchor. */
.intro-strip#experienta {
  height: 0;
  min-height: 0;
  padding: 0 !important;
  margin: 0;
  overflow: visible;
}

.intro-strip#experienta > .container {
  display: none !important;
}

/* Pull the actual Experience section up and fit it much better in one screen. */
.intro-strip#experienta + section {
  padding-top: 22px;
  padding-bottom: 42px;
}

.intro-strip#experienta + section .section-head {
  margin-bottom: 20px;
  align-items: center;
}

.intro-strip#experienta + section .section-head h2 {
  font-size: clamp(36px, 4.1vw, 54px);
  line-height: 1.02;
  max-width: 900px;
}

.intro-strip#experienta + section .section-head p {
  max-width: 600px;
  font-size: 15px;
  line-height: 1.55;
}

.intro-strip#experienta + section .experience-grid {
  gap: 18px;
  align-items: stretch;
}

.intro-strip#experienta + section .image-card {
  min-height: 390px;
}

.intro-strip#experienta + section .image-copy {
  left: 22px;
  right: 22px;
  bottom: 20px;
}

.intro-strip#experienta + section .image-copy h3 {
  font-size: 26px;
}

.intro-strip#experienta + section .facts {
  gap: 10px;
}

.intro-strip#experienta + section .fact {
  padding: 16px 20px;
  border-radius: 18px;
}

.intro-strip#experienta + section .fact strong {
  font-size: 20px;
  margin-bottom: 3px;
}

.intro-strip#experienta + section .fact p {
  font-size: 14px;
  line-height: 1.45;
}

/* ANIMALS — desktop view should show the complete 4 x 2 card grid in one screen. */
@media (min-width: 1051px) {
  section.animals#animale {
    padding-top: 22px;
    padding-bottom: 24px;
  }

  section.animals#animale .section-head {
    margin-bottom: 14px;
    align-items: center;
  }

  section.animals#animale .section-head h2 {
    font-size: clamp(38px, 3.35vw, 48px);
    line-height: 1;
    white-space: nowrap;
  }

  section.animals#animale .section-head p {
    max-width: 600px;
    font-size: 14px;
    line-height: 1.45;
  }

  section.animals#animale .eyebrow {
    font-size: 12px;
  }

  section.animals#animale .animals-grid {
    gap: 10px 14px;
  }

  section.animals#animale .animal-card.has-photo {
    min-height: 0;
    padding-bottom: 10px !important;
    border-radius: 18px;
  }

  section.animals#animale .animal-card .card-photo {
    height: 108px !important;
  }

  section.animals#animale .animal-card.has-photo .emoji {
    width: 38px;
    height: 38px;
    margin: -19px 0 4px 16px;
    font-size: 21px;
    border-width: 2px;
  }

  section.animals#animale .animal-card.has-photo h3 {
    margin: 0 14px 2px;
    font-size: 17px;
    line-height: 1.2;
  }

  section.animals#animale .animal-card.has-photo p {
    margin: 0 14px;
    font-size: 13px;
    line-height: 1.35;
  }
}

@media (max-width: 1250px) and (min-width: 1051px) {
  .menu {
    gap: 8px;
    margin-right: 12px;
  }

  .menu a {
    font-size: 13px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, .92fr) minmax(470px, 1.08fr);
    gap: 30px;
  }

  .hero-main-photo {
    inset-right: 8%;
  }

  section.animals#animale .section-head h2 {
    font-size: 40px;
  }
}

@media (max-width: 1050px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    padding: 32px 0 42px;
  }

  .hero h1 {
    font-size: clamp(44px, 11vw, 68px);
  }

  .hero-photo-stage {
    width: min(720px, 100%);
    height: 460px;
    min-height: 0;
    margin: 10px auto 0;
  }

  .hero-main-photo {
    inset: 0 70px 0 0;
  }

  .hero-animal-rail {
    width: 88px;
  }

  section[id] {
    padding-top: 34px;
  }

  .intro-strip#experienta + section .image-card {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  [id] {
    scroll-margin-top: 76px;
  }

  section {
    padding-top: 44px;
    padding-bottom: 56px;
  }

  .hero-grid {
    padding-top: 22px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-photo-stage {
    height: 360px;
  }

  .hero-main-photo {
    inset: 0 44px 0 0;
  }

  .hero-animal-rail {
    right: -6px;
    width: 66px;
  }

  .hero-animal-thumb,
  .hero-animal-thumb:nth-child(2),
  .hero-animal-thumb:nth-child(3) {
    width: 62px;
    height: 62px;
    margin-right: 0;
  }

  .intro-strip#experienta + section {
    padding-top: 18px;
  }

  .intro-strip#experienta + section .section-head {
    margin-bottom: 18px;
  }

  .intro-strip#experienta + section .image-card {
    min-height: 340px;
  }
}
