/* ==========================================================================
   Victor Harbour Whale Sighting — home page THEME CHROME replicas
   Hand-coded 1:1 replicas of the visitvictorharbor.com theme header, hero
   and editorial page content for the standalone demo. All of it is deleted
   at WordPress integration (data-vh-theme="site-header|site-hero|
   editorial-content", see PLACEHOLDERS.md). Requires tokens.css + base.css.
   The hand-coded plugin embeds (CTA band, carousel) live in home.css.

   Geometry pixel-measured from figma-refs/home-desktop.png (1440x5728) and
   home-mobile.png (520x5280); type ramp cross-checked against the live
   site's Elementor CSS (post-1411.css, post-34.css):
   - hero section: banner 44px + 558px photo (desktop) / 87px + 509px (520)
   - editorial: bone section ends mid-photo (breaching photo pulls -168px
     desktop / -163px mobile into the white section, as on the live page)
   - map crop: desktop shows the top 474px of the 1024x724 brochure map at
     1030px wide; mobile full-bleeds both map and brochure at ~562px wide
     (the live page's -31px side margins overflowing the 520 viewport)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Site header — top banner + logo/nav bar (bar overlays the hero photo)
   -------------------------------------------------------------------------- */
.vh-header {
  position: relative;
  z-index: 5;
  font-family: var(--vh-font-display);
}

.vh-header a {
  color: var(--vh-white);
  text-decoration: none;
}

.vh-header a.vh-header__book {
  color: var(--vh-black);
}

/* Focus outline is black in base.css — invisible on the dark chrome */
.vh-header :focus-visible,
.vh-hero :focus-visible {
  outline-color: var(--vh-white);
}

/* --- Top black banner --- */
.vh-header__banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 29px;
  height: 87px;
  overflow: hidden; /* the close icon is clipped at the edge per the frame */
  background: var(--vh-black);
  color: var(--vh-white);
}

.vh-header__banner-text {
  position: relative;
  left: -13px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.vh-header__banner-cta {
  position: relative;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.vh-header__banner-cta span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.vh-header__banner-close {
  position: absolute;
  top: 11px;
  right: -6px;
  display: flex;
  padding: 2px;
  border: 0;
  background: none;
  cursor: pointer;
}

/* --- Logo / nav / actions bar (overlays the hero photo) --- */
.vh-header__bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2px 22px 0;
}

.vh-header__logo,
.vh-header__nav,
.vh-header__actions {
  display: none;
}

/* Mobile hamburger (two-line trigger per the live theme) */
.vh-header__burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.vh-header__burger span {
  height: 2px;
  width: 100%;
  background: var(--vh-white);
}

@media (min-width: 1024px) {
  .vh-header__banner {
    flex-direction: row;
    gap: 23px;
    height: 44px;
    padding-top: 0;
  }

  .vh-header__banner-close,
  .vh-header__burger {
    display: none;
  }

  .vh-header__banner-text,
  .vh-header__banner-cta {
    left: 0;
  }

  .vh-header__bar {
    padding: 35px 96px 0 89px;
  }

  .vh-header__logo {
    display: block;
    margin-right: auto;
  }

  .vh-header__logo img {
    width: 137px;
    height: 57px;
  }

  .vh-header__nav {
    display: block;
  }

  .vh-header__menu {
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    text-transform: uppercase;
  }

  .vh-header__actions {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-left: 45px;
  }

  .vh-header__book {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 3px 20px 0;
    border-radius: var(--vh-radius);
    background: var(--vh-white);
    color: var(--vh-black);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
  }

  .vh-header__search {
    display: flex;
    position: relative;
    top: -3px;
  }
}

/* --------------------------------------------------------------------------
   Hero — full-bleed whale-tail photo with overlaid copy
   -------------------------------------------------------------------------- */
.vh-hero {
  position: relative;
  height: 509px;
  background: #24343c url('../../img/home/hero-whale-tail.jpg') no-repeat top center;
  background-size: cover;
  color: var(--vh-white);
}

/* Legibility overlay (live theme: #000 at 0.2) */
.vh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.vh-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 67px 14px 0;
  text-align: center;
  font-family: var(--vh-font-display);
}

.vh-hero__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.vh-hero__title {
  margin-top: 21px;
  max-width: 490px;
  font-size: 30px;
  line-height: 31px;
  letter-spacing: -0.05em;
}

.vh-hero__intro {
  position: relative;
  align-self: stretch;
  margin-top: 41px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 27px;
}

/* The live hero copy sits in a fixed-height scroll area — the render
   clips it after 5 lines with a thin scrollbar thumb beside the text */
.vh-hero__intro p {
  max-width: 500px;
  max-height: 138px;
  margin-inline: auto;
  overflow: hidden;
}

.vh-hero__scrollbar {
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 41px;
  background: rgba(255, 255, 255, 0.85);
}

.vh-hero__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--vh-white);
}

.vh-hero__circle--sm {
  width: 33px;
  height: 33px;
}

.vh-hero__share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 1px;
  color: var(--vh-white);
  text-decoration: none;
}

.vh-hero__share-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.vh-hero__expand {
  margin-top: 64px;
}

@media (min-width: 1024px) {
  .vh-hero {
    height: 558px;
  }

  .vh-hero__inner {
    align-items: flex-start;
    width: 100%;
    max-width: calc(var(--vh-container) + 160px);
    margin-inline: auto;
    padding: 150px 80px 0;
    text-align: left;
  }

  .vh-hero__eyebrow {
    font-size: 14px;
    letter-spacing: 0.22em;
  }

  .vh-hero__title {
    margin-top: 29px;
    max-width: 700px;
    font-size: 54px;
    line-height: 54px;
  }

  .vh-hero__intro {
    margin-top: 41px;
    line-height: 27.5px;
  }

  .vh-hero__intro p {
    max-width: 592px;
    max-height: 140px;
    margin-inline: 0;
  }

  .vh-hero__scrollbar {
    top: 4px;
    right: auto;
    left: 626px;
    height: 79px;
  }

  .vh-hero__share {
    position: absolute;
    top: 278px;
    right: 84px;
    margin-top: 0;
    gap: 12px;
  }

  .vh-hero__expand {
    position: absolute;
    right: 92px;
    bottom: 26px;
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   Editorial content — Best spots / photo / Whale season / maps / band
   -------------------------------------------------------------------------- */
.vh-ed-container {
  width: 100%;
  max-width: calc(var(--vh-container) + 2 * var(--vh-gutter));
  margin-inline: auto;
  padding-inline: var(--vh-gutter);
}

/* --- Section shells: bone on top, white below; the breaching photo
       straddles the boundary via a negative bottom margin --- */
.vh-ed-spots {
  padding-top: 78px;
  background: var(--vh-bone);
}

.vh-ed-main {
  padding: 243px 0 102px;
  background: var(--vh-white);
}

/* --- Headings --- */
.vh-ed-h2 {
  font-size: 35px;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.vh-ed-h2--ruled {
  border-top: 10px solid var(--vh-black);
  padding-top: 19px;
}

/* --- Two-column heading/copy grid (stacks on mobile) --- */
.vh-ed-grid {
  display: block;
}

.vh-ed-grid__body {
  margin-top: 51px;
}

/* Body copy: Lora 16px. The design render tracks Lora ~2% tighter than the
   browser default (same Figma-vs-GoogleFonts drift noted for Josefin in
   DECISIONS.md) — compensated so line wraps match the render 1:1. Leading
   measures 26px on the 520 frame but 27px on the 1440 frame. */
.vh-ed-copy {
  font-size: 15px;
  letter-spacing: -0.014em;
  line-height: 26px;
}

.vh-ed-copy p + p {
  margin-top: 18px;
}

.vh-ed-copy a {
  color: inherit;
  text-decoration: none;
}

.vh-ed-copy a strong {
  font-weight: 600;
}

.vh-ed-copy a.vh-ed-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Checkmark vantage-point list */
.vh-ed-checklist {
  margin: 18px 0 58px;
  padding: 0;
  list-style: none;
}

.vh-ed-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.vh-ed-checklist img {
  flex: 0 0 auto;
  margin-top: 6px;
}

/* --- Breaching-whale photo (straddles the bone/white boundary) --- */
.vh-ed-photo {
  position: relative;
  margin: 66px 0 -163px;
}

/* Direct child only — must not restyle the expand icon's nested <img> */
.vh-ed-photo > img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 30px 0 rgba(2, 6, 19, 0.22);
}

.vh-ed-expand {
  position: absolute;
  right: 17px;
  bottom: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--vh-white);
}

/* Small dark glyph centred in the white circle, per the design */
.vh-ed-expand img {
  width: 15px;
  height: 15px;
}

/* --- Whale season: not on the 520 mobile frame (see DECISIONS.md) --- */
.vh-ed-grid--season {
  display: none;
}

/* --- Map + brochure figures ---
   Mobile: full-bleed; images render at the live page's 562px box (520
   viewport + the theme's -31px side margins) with the sides clipped. */
.vh-ed-figure {
  margin-inline: calc(-1 * var(--vh-gutter));
  overflow: hidden;
}

.vh-ed-figure img {
  max-width: none;
  height: auto;
}

/* Bleed amounts measured from the 520 frame (map crops ~13px/side,
   brochure ~18px/side beyond the viewport) */
.vh-ed-figure--map {
  height: 387px;
}

.vh-ed-figure--map img {
  width: calc(100% + 26px);
  margin-left: -13px;
}

.vh-ed-figure--brochure {
  margin-top: 82px;
  height: 393px;
}

.vh-ed-figure--brochure img {
  width: calc(100% + 36px);
  margin-left: -18px;
}

/* --- "Looking to feel rejuvenated?" band --- */
.vh-ed-band {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 238px;
  margin-top: 100px;
  padding: 36px 20px 40px;
  border-radius: 4px;
  background: #16303c url('../../img/home/rejuvenated-bg.jpg') no-repeat center center;
  background-size: cover;
  overflow: hidden;
  color: var(--vh-white);
  text-align: center;
}

/* Live theme overlay (gradient at 0.36) plus a slight warm lift that the
   design render shows over this texture — matched by sampling the frame */
.vh-ed-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.13) 100%),
    linear-gradient(rgba(255, 70, 55, 0.09), rgba(255, 70, 55, 0.09));
}

.vh-ed-band__text,
.vh-ed-band__btn {
  position: relative;
}

.vh-ed-band__title {
  font-weight: 600;
  font-size: 25px;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.vh-ed-band__sub {
  font-family: var(--vh-font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.vh-ed-band__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 177px;
  height: 43px;
  margin-top: 61px;
  padding: 3px 20px 0;
  border-radius: var(--vh-radius);
  background: var(--vh-white);
  color: var(--vh-black);
  font-family: var(--vh-font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .vh-ed-container {
    max-width: calc(var(--vh-container) + 160px);
    padding-inline: 80px;
  }

  .vh-ed-spots {
    padding-top: 115px;
  }

  .vh-ed-main {
    padding: 271px 0 107px;
  }

  .vh-ed-h2 {
    font-size: 40px;
    line-height: 1;
    letter-spacing: 0;
  }

  .vh-ed-h2--ruled {
    padding-top: 40px;
  }

  .vh-ed-grid {
    display: grid;
    grid-template-columns: 510px 1fr;
    column-gap: 140px;
    align-items: start;
  }

  .vh-ed-grid__body {
    max-width: 628px;
    margin-top: 0;
  }

  .vh-ed-copy {
    font-size: 16px;
    letter-spacing: -0.024em;
    line-height: 27px;
  }

  .vh-ed-copy p + p {
    margin-top: 20px;
  }

  .vh-ed-checklist {
    margin: 21px 0 19px;
  }

  .vh-ed-checklist img {
    margin-top: 7px;
  }

  .vh-ed-photo {
    width: 840px;
    margin: 123px auto -168px;
  }

  .vh-ed-expand {
    right: 20px;
    bottom: 40px;
  }

  .vh-ed-grid--season {
    display: grid;
  }

  .vh-ed-grid--season .vh-ed-grid__head {
    max-width: 533px;
    padding-left: 9px;
  }

  .vh-ed-grid--season .vh-ed-grid__body {
    max-width: 605px;
  }

  .vh-ed-figure {
    width: 1030px;
    margin-inline: auto;
  }

  .vh-ed-figure img {
    width: 100%;
    margin-left: 0;
  }

  .vh-ed-figure--map {
    margin-top: 76px;
    height: 474px;
  }

  .vh-ed-figure--map img {
    width: 100%;
    margin-left: 0;
    height: auto;
  }

  .vh-ed-figure--brochure {
    margin-top: 168px;
    height: auto;
  }

  .vh-ed-figure--brochure img {
    width: 100%;
    margin-left: 0;
    height: auto;
  }

  .vh-ed-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 230px;
    margin-top: 87px;
    padding: 0 67px;
    text-align: left;
  }

  .vh-ed-band__text {
    position: relative;
    top: -3px;
  }

  .vh-ed-band__title {
    font-size: 30px;
    letter-spacing: 0;
  }

  .vh-ed-band__sub {
    font-size: 15px;
    letter-spacing: 0;
  }

  .vh-ed-band__btn {
    height: 46px;
    margin-top: 0;
    padding: 3px 26px 0;
  }
}
