/* ==========================================================================
   WW Housing Development LLC — landing.css
   The /start/ campaign page only. It borrows the tokens, the site header, .btn,
   .check, .form and .field components from global.css: no marquee, no
   pricing, no map, no footer columns.

   MOBILE FIRST: base rules target the smallest viewport; min-width queries
   enhance for larger screens (handbook §12).
   ========================================================================== */

/* ==========================================================================
   Header — the site's own header (global.css) with a call strip on top for
   phones and tablets, where the utility bar carrying the number is hidden
   ========================================================================== */

/* Section links land below the sticky header rather than behind it */
html {
  scroll-padding-top: calc(var(--nav-bar-height) + 3.5rem);
}

.call-strip {
  background-color: var(--clr-primary-deep);
  border-bottom: 1px solid var(--clr-line-on-dark);
}

.call-strip__inner {
  display: flex;
  justify-content: center;
  padding-block: var(--space-xs);
}

@media (min-width: 68em) {
  .call-strip {
    display: none;
  }
}

.call-strip__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--clr-surface);
  font-size: var(--fs-300);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: color var(--t-base) var(--ease-out);
}

.call-strip__link:hover,
.call-strip__link:focus-visible {
  color: var(--clr-accent-light);
}

.call-strip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 50%;
  background-color: var(--clr-accent-light);
  color: var(--clr-primary);
}

.call-strip__icon svg {
  width: 1rem;
  height: 1rem;
}

/* ==========================================================================
   Lead — the offer and the form, together above the fold on a laptop
   ========================================================================== */
.lead {
  position: relative;
  /* Contains the photograph's negative z-index */
  isolation: isolate;
  padding-block: var(--space-2xl);
  background-color: var(--clr-primary-deep);
}

.lead__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.lead__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Heavier than the site's other scrims: a form sits on this one, and the
   fields have to read as fields rather than as part of the photograph */
.lead__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(10, 30, 50, 0.86) 0%,
    rgba(10, 30, 50, 0.93) 100%
  );
}

.lead__grid {
  display: grid;
  gap: var(--space-2xl);
}

.lead__eyebrow {
  margin: 0 0 var(--space-sm);
  color: var(--clr-accent-light);
  font-size: var(--fs-200);
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead__title {
  margin: 0 0 var(--space-md);
  color: var(--clr-surface);
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead__text {
  margin: 0 0 var(--space-lg);
  max-width: 46ch;
  color: rgba(250, 247, 242, 0.86);
  font-size: var(--fs-500);
  line-height: 1.6;
}

.lead__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.lead__points .check {
  color: var(--clr-surface);
}

/* --------------------------------------------------------------------------
   The form card
   -------------------------------------------------------------------------- */
.book {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background-color: var(--clr-surface);
  box-shadow: 0 24px 60px rgba(10, 30, 50, 0.32);
  /* Clears the sticky-free bar when the closing button jumps to #book */
  scroll-margin-top: var(--space-lg);
}

.book__title {
  margin: 0 0 var(--space-2xs);
  font-size: var(--fs-500);
  font-weight: var(--fw-bold);
}

.book__text {
  margin: 0 0 var(--space-lg);
  color: var(--clr-muted);
  font-size: var(--fs-300);
  line-height: 1.6;
}

/* Visible labels here, unlike the site's contact form. On a page whose whole
   purpose is this form, a placeholder that vanishes on focus is not enough. */
.book .field__label {
  display: block;
  margin-bottom: var(--space-2xs);
  color: var(--clr-primary);
  font-size: var(--fs-200);
  font-weight: var(--fw-semibold);
}

.book__note {
  grid-column: 1 / -1;
  margin: var(--space-sm) 0 0;
  color: var(--clr-muted);
  font-size: var(--fs-300);
  text-align: center;
}

.book__note a {
  color: var(--clr-primary);
  font-weight: var(--fw-semibold);
  text-decoration-color: var(--clr-accent);
  text-decoration-thickness: 2px;
}

/* ==========================================================================
   The two principals — photograph, name, role, then the links
   ========================================================================== */
.people__title,
.gives__title {
  max-width: none;
  margin-bottom: var(--space-xl);
  margin-inline: auto;
  text-align: center;
}

.people__list {
  display: grid;
  gap: var(--space-lg);
}

.person {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background-color: var(--clr-surface-alt);
  /* The band behind them carries the tortoise-shell texture now, so the cards
     lift off it rather than sitting flat against the pattern */
  box-shadow: 0 16px 38px rgba(15, 42, 68, 0.07);
}

/* The ratio belongs to the frame, not to what is inside it — that way the
   photograph and the monogram standing in for one come out exactly the same
   height, whatever the source image's own dimensions happen to be */
.person__photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: rgba(15, 42, 68, 0.06);
}

.person__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The portrait is a head-and-shoulders crop; without this the face sits low */
  object-position: center 22%;
}

.person__body {
  padding: var(--space-lg) var(--space-sm) var(--space-sm);
}

.person__name {
  margin: 0 0 var(--space-2xs);
  font-size: var(--fs-500);
  font-weight: var(--fw-bold);
}

.person__role {
  margin: 0 0 var(--space-lg);
  color: var(--clr-muted);
  font-size: var(--fs-400);
}

/* Links on the left, the way through to the About page on the right */
.person__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-line);
}

.person__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.person__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-pill);
  color: var(--clr-primary);
  font-size: var(--fs-300);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out);
}

.person__link svg {
  width: 0.9375rem;
  height: 0.9375rem;
  flex: none;
  color: var(--clr-accent);
  transition: transform var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out);
}

.person__link:hover,
.person__link:focus-visible {
  background-color: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-surface);
}

.person__link:hover svg,
.person__link:focus-visible svg {
  color: var(--clr-accent-light);
  transform: translateX(0.25rem);
}

/* ==========================================================================
   What the conversation gives you

   The step cards themselves are the shared .process block in global.css; all
   this section adds is its ground.
   ========================================================================== */
.gives {
  background-color: var(--clr-surface-alt);
}

/* ==========================================================================
   Closing call to action
   ========================================================================== */
.closer {
  position: relative;
  /* Contains the photograph's negative z-index */
  isolation: isolate;
  padding-block: var(--section-space);
  background-color: var(--clr-primary-deep);
}

.closer__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.closer__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closer__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(10, 30, 50, 0.78) 0%,
    rgba(10, 30, 50, 0.88) 100%
  );
}

.closer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.closer__title {
  margin: 0;
  max-width: 20ch;
  color: var(--clr-surface);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.closer__text {
  margin: 0;
  max-width: 52ch;
  color: rgba(250, 247, 242, 0.86);
  font-size: var(--fs-500);
  line-height: 1.7;
}

.closer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.closer__call {
  color: var(--clr-surface);
  font-weight: var(--fw-semibold);
  text-decoration-color: var(--clr-accent);
  text-decoration-thickness: 2px;
}

/* ==========================================================================
   Foot — a line, not a sitemap
   ========================================================================== */
.landing-foot {
  padding-block: var(--space-lg);
  background-color: var(--clr-primary-deep);
}

.landing-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.landing-foot__copy {
  margin: 0;
  color: rgba(250, 247, 242, 0.7);
  font-size: var(--fs-200);
}

.landing-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin: 0;
}

.landing-foot__links a {
  color: rgba(250, 247, 242, 0.82);
  font-size: var(--fs-200);
  text-decoration: none;
  transition: color var(--t-base) var(--ease-out);
}

.landing-foot__links a:hover,
.landing-foot__links a:focus-visible {
  color: var(--clr-accent-light);
}

/* ==========================================================================
   Larger screens — min-width only
   ========================================================================== */
@media (min-width: 48em) {
  .book__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }

  .book {
    padding: var(--space-xl);
  }

  .people__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .lead {
    padding-block: var(--section-space);
  }

  /* Copy and form side by side, so the offer and the thing it asks for are
     on screen together rather than one scroll apart */
  .lead__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
    gap: var(--space-2xl);
    align-items: center;
  }

}
