/* Stable opening viewport in every locale; allow content to grow with text zoom. */
body.page-home {
  --home-header-space: 120px;
  --home-gap: clamp(12px, 2svh, 24px);
  --home-gutter: clamp(20px, 3vw, 64px);
}

body.page-home .hero-home {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: visible;
  background: #0a1d17;
}

body.page-home .hero-home-grid {
  display: grid;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--home-header-space) + var(--home-gap)) var(--home-gutter)
    max(var(--home-gap), env(safe-area-inset-bottom));
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: var(--home-gap) clamp(24px, 3vw, 64px);
  overflow: visible;
}

body.page-home .hero-copy {
  display: contents;
}

body.page-home .hero-copy::before,
body.page-home .hero-copy::after {
  display: none;
  content: none;
}

body.page-home .hero-intro {
  display: grid;
  min-width: 0;
  align-self: center;
  gap: var(--home-gap);
  grid-column: 1;
  grid-row: 1;
}

body.page-home .hero-intro .eyebrow {
  display: block;
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-left: 3px solid var(--gold-400);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--gold-400);
  font-size: 0.65rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

body.page-home .hero-copy h1 {
  width: 100%;
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, min(4.5vw, 7.4svh), 5.5rem);
  line-height: 1.08 !important;
  overflow-wrap: anywhere;
}

body.page-home .hero-copy h1 > span,
body.page-home .hero-copy h1 > em {
  display: block;
}

body.page-home .hero-lead {
  max-width: 650px;
  margin: 0;
  font-size: clamp(0.875rem, min(1.25vw, 2svh), 1.125rem);
  line-height: 1.5;
}

body.page-home .hero-copy .button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.page-home .hero-copy .button-row .button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  gap: 8px;
  font-size: clamp(0.7rem, 0.85vw, 0.85rem);
  letter-spacing: 0.025em;
  line-height: 1.3;
  white-space: normal;
}

body.page-home .hero-copy .button-action-label {
  overflow-wrap: anywhere;
  hyphens: auto;
}

body.page-home .hero-mini-contact {
  width: 100%;
  max-width: none;
  align-self: start;
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  grid-column: 1;
  grid-row: 2;
}

body.page-home .hero-contact-heading {
  margin-bottom: 8px;
  font-size: 0.65rem;
  line-height: 1.3;
}

body.page-home .hero-contact-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.page-home .hero-contact-link {
  min-height: 50px;
  padding: 7px 9px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  border-radius: 12px;
}

body.page-home .hero-contact-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

body.page-home .hero-contact-copy small {
  margin-bottom: 2px;
  font-size: 0.6rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.page-home .hero-contact-copy strong,
body.page-home .hero-contact-link-email .hero-contact-copy strong {
  overflow: visible;
  font-size: clamp(0.68rem, 0.85vw, 0.85rem);
  letter-spacing: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

body.page-home .hero-visual {
  position: relative;
  display: block;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 22px;
  opacity: 1;
  grid-column: 2;
  grid-row: 1 / 3;
  inset: auto;
}

body.page-home .hero-visual-links {
  position: relative;
  height: 100%;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(min-content, 1fr);
  gap: 10px;
}

/* Captions participate in sizing, so enlarged text can grow the photo cards. */
body.page-home .hero-visual-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.page-home .hero-visual::after {
  display: none;
}

body.page-home .hero-visual-caption {
  position: relative;
  width: auto;
  margin: 12px;
  inset: auto;
  padding: clamp(10px, 1.2vw, 18px);
}

body.page-home .hero-visual-caption strong {
  font-size: clamp(1.5rem, 2.1vw, 2.8rem);
  line-height: 1.1;
}

body.page-home .hero-visual-caption > span {
  font-size: 0.75rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.page-home .hero-seal {
  top: 18px;
  min-height: 0;
  padding: 12px 18px;
}

/* The same actions are already present in the opening composition. */
body.page-home:not(.home-hero-passed) .mobile-booking-bar,
body.page-home:not(.home-hero-passed) .whatsapp-float {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

@media (max-width: 1120px) {
  body.page-home {
    --home-header-space: 82px;
  }

  body.page-home:not(.menu-open) .site-header {
    background: rgba(255, 252, 247, 0.94);
    color: var(--pine-950);
  }

  body.page-home:not(.menu-open) .site-header .brand-copy small {
    color: var(--gold-text);
  }

  body.page-home .nav-shell > .brand,
  body.page-home .nav-shell > .brand .brand-copy {
    min-width: 0;
  }

  body.page-home .nav-shell > .brand .brand-copy strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body.page-home .nav-shell > .brand .brand-copy small {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body.page-home .hero-visual-links {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(min-content, 1fr));
  }

  body.page-home .hero-seal {
    display: none;
  }
}

/* Portrait tablets and phones: both destinations remain in the first screen. */
@media (max-width: 900px) and (min-height: 601px), (max-width: 600px) {
  body.page-home {
    --home-gutter: clamp(12px, 3vw, 28px);
    --home-gap: clamp(8px, 1.6svh, 18px);
  }

  body.page-home .hero-home-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(min-content, 1fr);
    column-gap: 0;
  }

  body.page-home .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.75rem, min(8.7vw, 5.3svh), 3.7rem);
  }

  body.page-home .hero-lead {
    max-width: none;
    font-size: clamp(0.875rem, min(2.6vw, 1.85svh), 1rem);
  }

  body.page-home .hero-copy .button-row .button {
    font-size: clamp(0.75rem, 1.6vw, 0.85rem);
  }

  body.page-home .hero-visual {
    min-height: max(7rem, min(20svh, 260px));
    grid-column: 1;
    grid-row: 3;
    border-radius: 16px;
  }

  body.page-home .hero-visual-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(min-content, 1fr);
    gap: 8px;
  }

  body.page-home .hero-visual-link {
    border-radius: 16px;
  }

  body.page-home .hero-visual-caption {
    margin: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(transparent, rgba(4, 20, 14, 0.95));
    box-shadow: none;
    backdrop-filter: none;
    gap: 3px;
  }

  body.page-home .hero-visual-caption strong {
    font-size: clamp(1.25rem, 3.6vw, 2rem);
  }

  body.page-home .hero-visual-caption small {
    display: none;
  }

  body.page-home .hero-visual-caption > span {
    margin: 0;
    font-size: clamp(0.75rem, 1.8vw, 0.8rem);
    gap: 4px;
  }

  body.page-home .hero-visual-caption b {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
}

@media (max-width: 600px) {
  body.page-home .hero-mini-contact {
    padding: 8px;
    border-radius: 14px;
  }

  body.page-home .hero-contact-heading {
    display: none;
  }

  body.page-home .hero-contact-link {
    min-height: 44px;
    padding: 5px 6px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
  }

  body.page-home .hero-contact-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  body.page-home .hero-contact-copy small {
    font-size: 0.625rem;
  }

  body.page-home .hero-contact-copy strong,
  body.page-home .hero-contact-link-email .hero-contact-copy strong {
    font-size: 0.75rem;
  }
}

@media (max-width: 900px) and (max-height: 700px) {
  body.page-home {
    --home-gap: 8px;
  }
}

@media (max-width: 600px) and (max-height: 700px) {
  body.page-home .hero-intro .eyebrow {
    display: none;
  }

  body.page-home .hero-visual {
    min-height: 6.5rem;
  }

  body.page-home .hero-copy h1 {
    font-size: clamp(1.6rem, min(8vw, 5.3svh), 2rem);
  }

  body.page-home .hero-copy .button-row .button {
    min-height: 44px;
    padding: 7px;
  }

  body.page-home .hero-visual-caption {
    padding: 8px;
  }
}

/* Short landscape windows use the full width for the four contact channels. */
@media (min-width: 561px) and (max-height: 600px),
  (min-width: 901px) and (max-height: 700px) {
  body.page-home {
    --home-gap: 8px;
    --home-gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  }

  body.page-home .hero-home-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 8px 16px;
  }

  body.page-home .hero-intro .eyebrow,
  body.page-home .hero-contact-heading,
  body.page-home .hero-seal {
    display: none;
  }

  body.page-home .hero-copy h1 {
    font-size: clamp(1.5rem, min(3.5vw, 6.8svh), 2.6rem);
  }

  body.page-home .hero-lead {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  body.page-home .hero-copy .button-row .button {
    min-height: 44px;
    padding: 7px;
    font-size: 0.75rem;
  }

  body.page-home .hero-mini-contact {
    padding: 6px;
    grid-column: 1 / -1;
  }

  body.page-home .hero-contact-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  body.page-home .hero-contact-link {
    min-height: 44px;
    padding: 5px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 5px;
  }

  body.page-home .hero-contact-icon {
    width: 24px;
    height: 24px;
  }

  body.page-home .hero-contact-copy small {
    font-size: 0.625rem;
  }

  body.page-home .hero-contact-copy strong,
  body.page-home .hero-contact-link-email .hero-contact-copy strong {
    font-size: 0.75rem;
  }

  body.page-home .hero-visual {
    grid-column: 2;
    grid-row: 1;
  }

  body.page-home .hero-visual-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(min-content, 1fr);
  }

  body.page-home .hero-visual-caption {
    margin: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8px;
    border: 0;
    border-radius: 0;
    background: rgba(4, 20, 14, 0.8);
  }

  body.page-home .hero-visual-caption small {
    display: none;
  }

  body.page-home .hero-visual-caption strong {
    font-size: 1.25rem;
  }

  body.page-home .hero-visual-caption > span {
    font-size: 0.75rem;
    gap: 4px;
  }

  body.page-home .hero-visual-caption b {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}

@media (min-width: 561px) and (max-width: 740px) and (max-height: 400px) {
  body.page-home .hero-home-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  body.page-home .hero-intro {
    gap: 6px;
  }

  body.page-home .hero-copy h1 {
    font-size: 1.375rem;
  }

  body.page-home .hero-lead {
    font-size: 0.875rem;
  }

  body.page-home .hero-contact-copy small {
    margin: 0;
    font-size: 0.625rem;
    overflow-wrap: anywhere;
  }

  body.page-home .hero-visual-caption strong {
    font-size: 1.05rem;
  }
}

/* Short phones keep readable contact values; the section may grow naturally. */
@media (max-width: 560px) and (max-height: 560px) {
  body.page-home .hero-intro {
    gap: 6px;
  }

  body.page-home .hero-copy h1 {
    font-size: 1.5rem;
  }

  body.page-home .hero-lead {
    font-size: 0.875rem;
  }

  body.page-home .hero-mini-contact {
    padding: 4px;
  }

  body.page-home .hero-contact-copy small {
    margin: 0;
    font-size: 0.625rem;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
}
