/* Homepage bands stay full-bleed, but their content is capped at 1440px:
   on a 2560px screen the two rental cards were 1167px each and the hero copy
   sat 1000px from the photo. Below 1440px + padding this is just --pad-x. */
:root {
  --home-max: 1440px;
  --home-pad-x: max(var(--pad-x), calc((100% - var(--home-max)) / 2));
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1fr);
  gap: clamp(36px, 8vw, 112px);
  align-items: center;
  overflow: hidden;
  min-height: min(700px, 85svh); /* tablets/short viewports: don't force a 700px hero */
  padding: 80px var(--home-pad-x) 100px;
  background: var(--cream);
}

.floating-dot {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
}

.dot-blue {
  width: 35px;
  height: 35px;
  top: 12px;
  /* Anchored to the capped content, not the band edge: --home-pad-x equals
     --pad-x until the 1440px cap kicks in, so this is 130px below that. */
  right: calc(130px + var(--home-pad-x) - var(--pad-x));
  background: var(--blue);
}

.floating-circle {
  position: absolute;
  top: -60px;
  right: calc(-120px + var(--home-pad-x) - var(--pad-x));
  width: 440px;
  height: 440px;
  border-radius: 999px;
  background: #d8eef0;
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 2;
}

.hero-media {
  width: 100%;
  aspect-ratio: 5 / 4;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(3.2rem, 5.1vw, 5.25rem);
  font-weight: 800;
  line-height: 0.98;
}

/* The homepage emoji scales with its oversized headline rather than taking the
   fixed shared size in base.css (client choice). Wins on specificity. */
.hero-copy h1 .emoji {
  font-size: 0.58em;
}

.hero-copy p {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--body);
  font-size: clamp(1.2rem, 2.1vw, 1.72rem);
  font-weight: 600;
}

/* Hero CTA label runs larger than the shared `.button-green` size (1.3rem).
   Specificity also beats the shared `.button` phone override (1.06rem). */
.hero-copy .button-green {
  font-size: 1.5rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 40px max(clamp(20px, 8vw, 220px), var(--home-pad-x));
  list-style: none;
  background: #ffffff;
  color: #3d3d42;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Icon gets its own row above the label. Labels wrap on their own rather than
   using hard <br>s, so they reflow at any column width. */
.trust-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 2.5rem;
  line-height: 1;
}

.rentals-section {
  padding: 78px var(--home-pad-x) 84px;
  background: var(--sky-wash);
}

.rental-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 50px);
  margin-top: 60px;
}

.rental-card {
  overflow: hidden;
  border-radius: var(--card-radius);
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

/* 3:2 slot, same as .rental-hero-image on the detail page and the admin
   preview — one photo crop everywhere. Height follows width so it stays in
   proportion at every breakpoint. */
.rental-image {
  vertical-align: top;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.rental-content {
  display: grid;
  gap: 24px;
  padding: 42px 48px 34px;
}

.rental-content h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

.rental-content p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 600;
}

.rental-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* "From $150/day" — the prefix is smaller and quieter than the amount. */
.rental-price .rental-price-from {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rental-footer strong {
  color: var(--pink);
  font-family: var(--display-font);
  font-size: 1.78rem;
  font-weight: 800;
  line-height: 1;
}

/* Breakpoints for the sections above. Grouped at the end of the file so later
   overrides keep winning on source order at equal specificity. */

@media (max-width: 960px) {
  /* Tablets (768–960px): four trust-strip columns of ~180–240px forced every
     label onto two lines; two columns read cleanly. The phone block below
     keeps its tighter spacing. */
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 46px;
    min-height: 0;
    padding-top: 58px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-media {
    min-height: 390px;
  }

  .rental-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 52px 20px 64px;
  }

  /* Stacked hero: centre the copy so it lines up with the full-width button's
     centred label (desktop stays left-aligned beside the photo). */
  .hero-copy {
    text-align: center;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  /* Hero CTA spans the full row on phones. `.hero-copy .button` outranks the
     shared `.button-green` phone cap (max-width: 310px) by specificity, so
     other green buttons keep their cap. */
  .hero-copy .button {
    display: flex;
    width: 100%;
    max-width: none;
  }

  .floating-circle {
    width: 250px;
    height: 250px;
    top: 70px;
    right: -140px;
  }

  /* Keep the confetti dot clear of the headline at phone widths. */
  .dot-blue {
    width: 26px;
    height: 26px;
    top: 10px;
    right: 26px;
  }

  .hero-copy h1 {
    font-size: 2.95rem;
  }

  .hero-copy p {
    font-size: 1.18rem;
  }

  .hero-media {
    min-height: 260px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
    padding: 34px 20px;
    font-size: 0.98rem;
  }

  .trust-icon {
    margin-bottom: 8px;
    font-size: 2.1rem;
  }

  .rentals-section {
    padding: 54px 20px 62px;
  }

  .rental-grid {
    margin-top: 38px;
  }

  .rental-content {
    padding: 30px 28px 28px;
  }

  /* Price and Details stay on one row on phones; the column stack it used to
     use pushed the button onto its own line. */
  .rental-footer {
    gap: 12px;
  }

  /* Dialled back from 1.78rem so the price doesn't tower over the smaller
     Details pill beside it. */
  .rental-footer strong {
    font-size: 1.5rem;
  }
}

@media (max-width: 380px) {
  .hero-copy h1 {
    font-size: 2.6rem;
  }
}
