/*
 * Homepage sections for the "lu" design. Base tokens, buttons and the
 * header come from lu-base.css (loaded by LuHeader).
 */

/* =========================================================
   HOMEPAGE
   ========================================================= */

.lu-section { padding: clamp(3.5rem, 8vw, 6.875rem) var(--lu-gutter) 0; }

/* ---------- hero ---------- */

.lu-hero {
  position: relative;
  min-height: max(35rem, min(calc(100svh - var(--lu-promo-h)), 56.25rem));
  display: grid;
  align-items: end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.lu-hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 82%; /* the couple sits near the bottom of this photo */
}
.lu-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 25, 22, 0.28) 0%, rgba(10, 25, 22, 0) 24%),
    linear-gradient(0deg, rgba(10, 25, 22, 0.72) 0%, rgba(10, 25, 22, 0.25) 45%, rgba(10, 25, 22, 0) 70%);
}
.lu-hero-content {
  /* Wide enough that the big headline ("Ridiculously good time.") stays on its
     own two lines on large screens instead of dropping "time." to a third. */
  max-width: 77.5rem;
  padding: calc(var(--lu-bar-h) + 3.75rem) var(--lu-gutter) clamp(2.5rem, 6vw, 4.5rem);
}
.lu-hero h1 {
  margin: 0;
  font: 800 clamp(2.8rem, 6vw, 5.75rem)/0.92 var(--lu-display);
  letter-spacing: -0.05em;
  color: #fff;
}
.lu-hero h1 em { color: var(--lu-sun); }
.lu-hero-lede { max-width: 46ch; margin: 1.125rem 0 0; font: 400 clamp(1rem, 1.4vw, 1.2rem)/1.5 var(--sans); color: rgba(255, 255, 255, 0.92); }
.lu-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.625rem; }

@media (max-width: 999px) {
  .lu-hero { grid-template-rows: 1fr auto; align-items: stretch; }
  .lu-hero-content { align-self: end; padding-bottom: 1.375rem; }
  .lu-hero-ctas .lu-btn { min-height: 2.875rem; padding: 0 1.25rem; }
}

/* ---------- the feeling ---------- */

.lu-feel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 8.125rem) var(--lu-gutter) 0;
}
.lu-feel-media { position: relative; }
.lu-feel-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 86vh;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 0.625rem;
}
.lu-feel-tag {
  position: absolute;
  left: -0.625rem;
  bottom: 1.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  background: var(--lu-sun);
  font: 700 0.9375rem/1.35 var(--sans);
  transform: rotate(-3deg);
  box-shadow: 0 0.75rem 1.5rem -0.75rem rgba(0, 0, 0, 0.4);
}
.lu-feel-points { display: grid; gap: 0; margin: 2rem 0 0; padding: 0; list-style: none; }
.lu-feel-points li {
  padding: 1rem 0;
  border-top: 0.0625rem solid rgba(24, 59, 53, 0.15);
  font: 400 1.0625rem/1.4 var(--sans);
}
.lu-feel-points b { display: block; font: 800 1.5rem/1.1 var(--lu-display); letter-spacing: -0.03em; }
.lu-feel-quote {
  margin: 1.25rem 0 0;
  padding: 1.125rem 1.25rem;
  border-radius: 0.625rem;
  background: #fff;
  font: italic 400 1.1875rem/1.35 var(--serif);
}
.lu-feel-quote cite { display: block; margin-top: 0.625rem; font: normal 700 0.8125rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
@media (max-width: 860px) {
  .lu-feel { grid-template-columns: 1fr; }
  .lu-feel-media img { max-height: 70vh; }
  .lu-feel-tag { left: 0.75rem; }
}

/* ---------- fresh from the field ---------- */
/*
 * CMS-driven card grid (see src/lib/homepageField.ts). data-cols sets the
 * cards per row on desktop (2-4); data-feature turns the first card into a
 * big feature; data-many (3+ cards) turns the grid into a swipeable row on
 * phones instead of a very long stack.
 */

.lu-field-grid {
  --cols: 2;
  --gap: 1.125rem;
  --pad: 1.75rem;
  --title: clamp(2.2rem, 4.4vw, 4rem);
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap);
}
.lu-field-grid[data-cols="3"] { --cols: 3; --pad: 1.375rem; --title: clamp(1.7rem, 2.9vw, 2.8rem); }
.lu-field-grid[data-cols="4"] { --cols: 4; --gap: 0.875rem; --pad: 1rem; --title: clamp(1.35rem, 2.1vw, 2.05rem); }
.lu-field-card {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 88vh;
  width: 100%;
  border-radius: 0.625rem;
  overflow: hidden;
  color: #fff !important;
  background: #ece5d8;
}
.lu-field-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--lu-ease); }
.lu-field-card:hover img { transform: scale(1.04); }
.lu-field-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent); }
.lu-field-text { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); z-index: 1; display: grid; justify-items: start; gap: 0.75rem; }
.lu-field-text small { font: 700 0.75rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.lu-field-text b { font: 800 var(--title)/0.95 var(--lu-display); letter-spacing: -0.045em; }
.lu-field-text b em { color: var(--lu-sun); }
.lu-field-grid[data-cols="4"] .lu-field-text .lu-btn { min-height: 2.5rem; padding: 0 1rem; font-size: 0.8125rem; }

/* Feature first: a big card beside (or above) the rest. */
.lu-field-grid[data-feature] .lu-field-card:first-child { --title: clamp(2.2rem, 4.2vw, 3.8rem); --pad: 1.75rem; }
.lu-field-grid[data-feature][data-cols="3"] .lu-field-card:first-child,
.lu-field-grid[data-feature][data-cols="4"] .lu-field-card:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; max-height: none; }
.lu-field-grid[data-feature][data-cols="2"] .lu-field-card:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

@media (max-width: 1000px) {
  .lu-field-grid[data-cols="3"],
  .lu-field-grid[data-cols="4"] { --cols: 2; --pad: 1.25rem; --title: clamp(1.7rem, 4vw, 2.6rem); }
  .lu-field-grid[data-feature][data-cols="3"] .lu-field-card:first-child,
  .lu-field-grid[data-feature][data-cols="4"] .lu-field-card:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .lu-field-grid,
  .lu-field-grid[data-cols] { --cols: 1; --pad: 1.25rem; --title: clamp(2rem, 9vw, 2.6rem); }
  .lu-field-grid[data-many] {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    margin-inline: calc(var(--lu-gutter) * -1);
    padding: 0.25rem var(--lu-gutter) 1.125rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--lu-gutter);
    scrollbar-width: none;
  }
  .lu-field-grid[data-many]::-webkit-scrollbar { display: none; }
  .lu-field-grid[data-many] .lu-field-card,
  .lu-field-grid[data-feature][data-many] .lu-field-card:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; scroll-snap-align: start; }
}

/* ---------- proof ---------- */

.lu-proof {
  margin: clamp(3.5rem, 8vw, 6.875rem) var(--lu-gutter) 0;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4.5rem);
  border-radius: 1rem;
  background: var(--lu-sun);
  text-align: center;
}
.lu-proof-big {
  margin: 0 auto;
  max-width: 14ch;
  font: 800 clamp(2.6rem, 7vw, 6.5rem)/0.92 var(--lu-display);
  letter-spacing: -0.05em;
}
.lu-proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  text-align: left;
}
.lu-proof-row figure { margin: 0; padding: 1.375rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.7); }
.lu-proof-row blockquote { margin: 0 0 0.875rem; font: 400 1rem/1.45 var(--sans); }
.lu-proof-row figcaption { font: 700 0.75rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
@media (max-width: 860px) { .lu-proof-row { grid-template-columns: 1fr; } }
