/* ==========================================================================
   Bestmates Shop — FRONT PAGE (landing) styles
   Mirrors the live Astro home (bestmatestravel.com) design language:
   rounded-card section system, full-bleed hero, Domaine Display italic hero,
   wave-accent divider, container-large (80rem) + padding-global (5%),
   padding-section-large (7rem), TripCard-style product grid.

   ALL rules are scoped under `.bm-landing` so nothing here can leak into the
   WooCommerce shop / cart / checkout / account pages. Tokens (--bm-*) are
   defined in style.css :root and reused here.

   NOTE FOR OMAR (real content slots):
     - Hero copy + hero background image  -> see [OMAR] markers in front-page.php
     - Product short descriptions          -> set per product in WP admin
     - "Worn everywhere" lifestyle strip   -> swap the 3 placeholder tiles for
                                              real product/lifestyle photography
   ========================================================================== */

/* Astra's #content wrapper adds its own container/padding on the front page;
   our sections manage their own width, so neutralize it on the landing only. */
.bm-landing {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}
/* Astra sometimes wraps the page content in .ast-container with side padding.
   Let the landing run edge-to-edge; sections handle gutters via padding-global. */
.bm-landing .ast-container { max-width: 100%; padding-left: 0; padding-right: 0; }

/* the Astro body has .75em horizontal padding so the rounded sections sit
   inset from the viewport edge — replicate that on the landing wrapper. */
.bm-landing {
  padding-left: 0.75em;
  padding-right: 0.75em;
  box-sizing: border-box;
}

/* ---- shared layout primitives (ported 1:1 from Astro global.css) ---- */
.bm-landing .bm-container {
  max-width: 80rem;          /* container-large */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.bm-landing .bm-padding-global {
  padding-left: 5%;          /* padding-global */
  padding-right: 5%;
}
.bm-landing .bm-section-pad {
  padding-top: 7rem;         /* padding-section-large */
  padding-bottom: 7rem;
}
.bm-landing .bm-section-pad-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* rounded-card section system: every section is a .75em rounded block */
.bm-landing .bm-rounded { border-radius: 0.75em; }
.bm-landing .bm-rounded-top { border-radius: 0.75rem 0.75rem 0 0; }
.bm-landing .bm-rounded-bottom { border-radius: 0 0 0.75rem 0.75rem; }

.bm-landing .bm-dark {
  background-color: var(--bm-dark-1);
  color: var(--bm-light-1);
}
.bm-landing .bm-light-2 { background-color: #ebf9f2; }   /* --light-2 */
.bm-landing .bm-tertiary { background-color: #edf8f7; }  /* aqua-100 */

/* ==========================================================================
   HERO — full-bleed, Domaine Display italic, wave-accent, dimming overlay,
   matches the Astro home hero treatment (adapted for a merch shop: brand
   gradient canvas instead of a travel video — see [OMAR] in front-page.php).
   ========================================================================== */
.bm-landing .bm-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4rem);   /* viewport minus the fixed header bar */
  border-radius: 0.75em;
  overflow: hidden;
  /* brand-colored canvas: aqua ramp, deep -> teal. [OMAR] can replace with a
     background-image of hero product photography. */
  background: radial-gradient(120% 120% at 50% 0%, #1c4a46 0%, #0e2523 45%, #0b1e1c 100%);
}
/* optional hero image layer — set --bm-hero-img in front-page.php to use */
.bm-landing .bm-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 10;
}
.bm-landing .bm-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background-color: #000;
  opacity: 0.30;                     /* same dimming as Astro hero */
  border-radius: 0.75em;
}
.bm-landing .bm-hero-inner {
  position: relative;
  z-index: 30;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5em 4%;
  gap: 1.3em;
}
.bm-landing .bm-hero-eyebrow {
  color: var(--bm-light-1);
  opacity: 0.85;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--bm-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2rem;
}
/* heading-hero: Domaine Display, italic, 5rem, light */
.bm-landing .bm-heading-hero {
  font-family: var(--bm-font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 5rem;
  line-height: 0.9em;
  color: var(--bm-light-1);
  max-width: 20ch;
}
.bm-landing .bm-paragraph-hero {
  color: var(--bm-light-1);
  letter-spacing: -0.025rem;
  max-width: 26rem;
  font-size: 1.3em;
  font-weight: 400;
  line-height: 1.3em;
}

/* wave-accent divider motif (bundled SVGs mirrored from Astro public/) */
.bm-landing .bm-wave {
  background-image: url("images/wave-1.svg");   /* near-white — for dark bg */
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  width: 4.38em;
  height: 0.38em;
}
.bm-landing .bm-wave-accent {
  background-image: url("images/wave-2.svg");   /* teal — for light bg */
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  width: 4.38em;
  height: 0.38em;
}
.bm-landing .bm-wave.center,
.bm-landing .bm-wave-accent.center { margin-left: auto; margin-right: auto; }

/* ---- hero CTA buttons (mirror Astro .btn-light / .btn-dark) ---- */
.bm-landing .bm-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  font-family: var(--bm-font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 0.63em;
  padding: 1.2em 1.9em;
  text-decoration: none;
  cursor: pointer;
  transition: padding 0.3s cubic-bezier(0.25,0.46,0.45,0.94), background-color 0.3s ease, box-shadow 0.3s ease;
}
.bm-landing .bm-btn-light {
  background-color: var(--bm-light-1);
  color: #5d6f6c;
}
.bm-landing .bm-btn-light:hover { background-color: rgba(244,251,250,0.85); padding-left: 2.4em; padding-right: 2.4em; }
.bm-landing .bm-btn-dark {
  background-color: var(--bm-dark-1);
  color: var(--bm-light-1);
}
.bm-landing .bm-btn-dark:hover { background-color: rgba(11,30,28,0.9); padding-left: 2.4em; padding-right: 2.4em; }
.bm-landing .bm-btn-outline-light {
  background-color: transparent;
  color: var(--bm-light-1);
  box-shadow: inset 0 0 0 1px rgba(244,251,250,0.3);
}
.bm-landing .bm-btn-outline-light:hover { box-shadow: inset 0 0 0 2px var(--bm-accent-2); }

/* ==========================================================================
   TYPOGRAPHY helpers on the landing
   ========================================================================== */
.bm-landing .bm-tagline {
  opacity: 0.7;
  color: var(--bm-dark-1);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--bm-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2rem;
}
.bm-landing .bm-tagline.light { color: var(--bm-light-1); opacity: 0.85; }

/* section headings: Garet bold UPPERCASE (matches Astro h2) — override the
   child theme's Domaine-Display-on-all-headings rule for the landing's
   section titles, so the hierarchy reads exactly like the Astro home
   (Domaine only on the italic hero; section titles are Garet uppercase). */
.bm-landing .bm-h2 {
  font-family: var(--bm-font-sans) !important;
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--bm-dark-1);
}
.bm-landing .bm-dark .bm-h2,
.bm-landing .bm-h2.light { color: var(--bm-light-1); }

.bm-landing .bm-lead {
  font-size: 1rem;
  line-height: 1.7rem;
  color: rgba(11,30,28,0.9);
}
.bm-landing .bm-dark .bm-lead { color: rgba(244,251,250,0.8); }

.bm-landing .bm-feature {
  color: var(--bm-accent-1);
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  font-family: var(--bm-font-sans);
  font-size: 0.9rem;
  font-weight: 700;
}
.bm-landing .bm-feature.light { color: #38948c; }

.bm-landing .bm-link-underline {
  display: inline-block;
  font-family: var(--bm-font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bm-light-1);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

/* ==========================================================================
   PRODUCT GRID — TripCard pattern: rounded image wrapper, hover scale-105,
   uppercase eyebrow, title, small body, accent price.
   ========================================================================== */
.bm-landing .bm-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 1.75rem;
}
.bm-landing .bm-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.bm-landing .bm-card-media {
  overflow: hidden;
  border-radius: 0.75em;
  background-color: #edf8f7;       /* aqua-100 placeholder bg while img loads */
  aspect-ratio: 3 / 2;
}
.bm-landing .bm-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.bm-landing .bm-card:hover .bm-card-media img { transform: scale(1.05); }
.bm-landing .bm-card-eyebrow {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(11,30,28,0.65);
}
.bm-landing .bm-card-title {
  margin-top: 0.25rem;
  font-family: var(--bm-font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--bm-dark-1);
}
.bm-landing .bm-card-price {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bm-accent-1);
}

/* ==========================================================================
   GENERIC TWO-COLUMN FEATURE ROW (image + copy), used by the brand sections
   ========================================================================== */
.bm-landing .bm-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.bm-landing .bm-img-block {
  border-radius: 0.75em;
  object-fit: cover;
  width: 100%;
  display: block;
}

/* benefit / perk icon grid (mirrors Astro service-icon rows) */
.bm-landing .bm-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.bm-landing .bm-perk {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.bm-landing .bm-perk .bm-perk-dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--bm-accent-2);
  flex-shrink: 0;
}

/* ==========================================================================
   "WORN EVERYWHERE" lifestyle strip — horizontal scroll of tiles on dark,
   mirrors the Astro home photo-gallery strip. [OMAR] swap tiles for photos.
   ========================================================================== */
.bm-landing .bm-strip {
  display: flex;
  gap: 1.75rem;
  padding: 2rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.bm-landing .bm-strip::-webkit-scrollbar { display: none; }
.bm-landing .bm-strip-tile {
  flex: 0 0 auto;
  width: 22vw;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: 0.75em;
  object-fit: cover;
  background-color: #1c4a46;       /* placeholder tile color */
}
.bm-landing .bm-strip-tile.offset { margin-top: 3.5rem; }

/* ==========================================================================
   RESPONSIVE — match the Astro home breakpoints
   ========================================================================== */
@media screen and (max-width: 991px) {
  .bm-landing .bm-heading-hero { font-size: 10vw; }
  .bm-landing .bm-h2 { font-size: 2.5rem; }
  .bm-landing .bm-section-pad { padding-top: 4rem; padding-bottom: 4rem; }
  .bm-landing .bm-two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .bm-landing .bm-product-grid { grid-template-columns: repeat(2, 1fr); }
  .bm-landing .bm-strip-tile { width: 40vw; }
}
@media screen and (max-width: 767px) {
  .bm-landing { padding-left: 1em; padding-right: 1em; }
  .bm-landing .bm-heading-hero { font-size: 12vw; }
  .bm-landing .bm-h2 { font-size: 2.1rem; }
  .bm-landing .bm-section-pad { padding-top: 3rem; padding-bottom: 3rem; }
  .bm-landing .bm-perks { grid-template-columns: 1fr; }
}
@media screen and (max-width: 479px) {
  .bm-landing .bm-product-grid { grid-template-columns: 1fr; }
  .bm-landing .bm-strip-tile { width: 70vw; }
}
