/* "Landing Page" template (page-landing.php), used by Private Events.
   Loads after content-page.css and reuses its .content-details /
   .content-cards / .content-card rules; only what differs is here.
   Breakpoints match the rest of the theme: 68.75em (where the desktop
   nav takes over) and 37.4375em (phones). */

/* ---- Hero: text on solid dark, photo fading in from the right ------- */
.landing-page{padding-top:0}
.landing-hero{position:relative;display:flex;align-items:flex-end;min-height:44em;padding:12em 0 5em;background:#111;color:#fff;overflow:hidden}
.landing-hero picture{display:contents}
/* The photo starts 22% in from the left, so its subject lands to the
   right of the text column instead of behind it. */
.landing-hero-photo{position:absolute;top:0;bottom:0;left:22%;width:78%;height:100%;object-fit:cover;object-position:50% 35%}
/* Solid #111 under the text, then a long eased fade (many stops, so no
   visible edge) that is fully clear by 70%, where the subject sits. */
.landing-hero.has-photo::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#111 0%,#111 22%,rgba(17,17,17,.94) 28%,rgba(17,17,17,.82) 34%,rgba(17,17,17,.64) 40%,rgba(17,17,17,.44) 46%,rgba(17,17,17,.26) 52%,rgba(17,17,17,.12) 58%,rgba(17,17,17,.04) 64%,rgba(17,17,17,0) 70%)}
.landing-hero-copy{position:relative;z-index:2}
.landing-hero .eyebrow{margin:0 0 .75em;color:var(--blush);font-size:1.125em;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.landing-hero h1{max-width:12em;margin:0;font-family:Montserrat,Arial,sans-serif;font-size:4em;font-weight:800;line-height:1.05;letter-spacing:-.02em}
.landing-hero .lead{max-width:22em;margin:.75em 0 0;font-size:1.5em;font-style:italic;font-weight:500;line-height:1.4}
.landing-hero .body-copy{max-width:30em;margin:1em 0 0;font-size:1.125em;line-height:1.55}
.landing-hero .body-copy>:first-child{margin-top:0}
.landing-hero .body-copy>:last-child{margin-bottom:0}
.landing-hero .body-copy a{color:#fff;text-decoration:underline;text-underline-offset:.2em}
.landing-hero .button{margin-top:2em}

/* ---- Shared centered section heading + intro ---------------------- */
.landing-section-head{max-width:46em;margin:0 auto 3em;text-align:center}
.landing-page .landing-section-head h2,
.landing-contact h2{margin:0;font-family:Montserrat,Arial,sans-serif;font-size:2.75em;font-weight:600;line-height:1.15;letter-spacing:-.01em}
.landing-page .landing-section-head h2 strong,
.landing-contact h2 strong{font-weight:800}
.landing-intro{font-size:1.125em;line-height:1.6}
.landing-section-head .landing-intro{margin-top:1em}
.landing-intro p{margin:0}
.landing-intro p+p{margin-top:1em}

/* ---- Cards with a photo on top ------------------------------------- */
.landing-details .content-cards{align-items:stretch}
.content-card.has-photo{display:flex;flex-direction:column;padding:0;overflow:hidden}
/* The photo is positioned inside .content-card-media so its own pixel
   size never sets the card's height; the box decides the shape. */
.content-card-media{position:relative;aspect-ratio:3/2;overflow:hidden}
.content-card-media .content-card-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.content-card.has-photo .content-card-body{padding:1.75em 2em 2em}

/* ---- Photo gallery: one large photo, up to four small ---------------- */
.landing-gallery{padding:6em 0;background:#fff}
.landing-mosaic{display:grid;grid-template-columns:2fr 1fr 1fr;grid-auto-rows:clamp(8em,15.5vw,14em);gap:1em}
.landing-mosaic img{width:100%;height:100%;object-fit:cover;border-radius:1.25em}
.landing-mosaic img:first-child{grid-row:span 2}
/* Fewer than five photos still fills the grid without gaps. */
.landing-mosaic.count-1{grid-template-columns:1fr;grid-auto-rows:auto}
.landing-mosaic.count-1 img:first-child{grid-row:auto;aspect-ratio:16/9}
.landing-mosaic.count-2{grid-template-columns:1fr 1fr;grid-auto-rows:clamp(14em,28vw,26em)}
.landing-mosaic.count-2 img:first-child{grid-row:auto}
.landing-mosaic.count-3{grid-template-columns:2fr 1fr}
.landing-mosaic.count-4 img:last-child{grid-column:span 2}

/* ---- Contact: photo + heading, text, button ------------------------ */
.landing-contact{padding:6em 0;background:var(--cream)}
.landing-contact-grid{display:grid;grid-template-columns:22em minmax(0,1fr);gap:5em;align-items:center}
.landing-contact-grid.no-photo{grid-template-columns:minmax(0,1fr);max-width:46em;text-align:center}
.landing-contact-photo img{width:100%;height:auto}
.landing-contact-copy .landing-intro{margin-top:1em;max-width:40em}
.landing-contact-grid.no-photo .landing-intro{margin-inline:auto}
.landing-contact .button{margin-top:2em}
.landing-closing{margin:1.5em 0 0;font-size:1.375em;font-style:italic;font-weight:500;line-height:1.4}

/* ---- Service area: cities + grey map, in place of Reach Out ------- */
/* White, with the same 7.5em padding as .reach-out (css/custom.css), so
   the footer's drips sit the same distance below it. */
.service-area{padding:7.5em 0;background:#fff}
.service-area-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,28em);gap:5em;align-items:center}
.service-area-grid.no-map{grid-template-columns:minmax(0,1fr);max-width:46em}
.service-area-eyebrow{margin:0 0 .75em;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.service-area h2{margin:0;font-family:Montserrat,Arial,sans-serif;font-size:2.75em;font-weight:600;line-height:1.15;letter-spacing:-.01em;text-wrap:balance}
.service-area h2 strong{font-weight:800}
.service-area-intro{max-width:36em;margin-top:1em}
.service-area-cities{display:flex;flex-wrap:wrap;gap:.75em;margin:2em 0 0;padding:0;list-style:none}
.service-area-cities span,.service-area-cities a{display:inline-flex;align-items:center;gap:.5em;padding:.75em 1.25em;border-radius:999em;background:#f2f2f2;color:#111;font-size:1.125em;font-weight:700;line-height:1.2;text-decoration:none}
.service-area-cities a:hover{background:#e2e2e2}
.service-area-cities a:focus-visible{outline:.125em solid #111;outline-offset:.1875em}
.service-area-cities svg{flex:none;width:1em;height:1em}
.service-area .button{margin-top:2em}
.service-area-svg{display:block;width:100%;height:auto}
.service-area-land{fill:#e6e6e6}
.service-area-water{fill:#fff;fill-rule:evenodd}
.service-area-dam{fill:none;stroke:#e6e6e6;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.service-area-pin{fill:#111;stroke:#fff;stroke-width:2.5}

/* ---- Tablet / small laptop ---------------------------------------- */
@media(max-width:68.75em){
  .landing-hero{min-height:36em;padding:9em 0 var(--section-gap)}
  .landing-hero h1{font-size:2.75em}
  .landing-hero .lead{font-size:1.25em}
  /* Keep the text in the left ~half so it never reaches the subject,
     and override style.css's full-width pink buttons (under 56.25em)
     until phone widths, where the photo moves below the text. */
  .landing-hero .lead{max-width:min(22em,46vw)}
  .landing-hero .body-copy{max-width:min(30em,46vw)}
  .landing-hero .button{width:auto}
  .landing-gallery,.landing-contact,.service-area{padding-block:var(--section-gap)}
  .landing-section-head{margin-bottom:2em}
  .landing-page .landing-section-head h2,.landing-contact h2{font-size:2.25em}
  .landing-contact-grid{grid-template-columns:1fr;gap:2.5em}
  .landing-contact-photo{max-width:18em}
  /* content-page.css stacks the cards in one column here; full-width
     3:2 photos would be ~600px tall each, so sit the photo beside the
     text instead until phone widths. */
  .content-card.has-photo{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
  .content-card-media{aspect-ratio:auto;min-height:13em}
  .content-card.has-photo .content-card-body{align-self:center}
  .service-area h2{font-size:2.25em}
  /* Map below the copy, at most 28em wide. */
  .service-area-grid{grid-template-columns:minmax(0,1fr);gap:2.5em}
  .service-area-map{max-width:28em}
}

/* Narrow tablets: push the photo further right so the subject clears
   the headline. */
@media(min-width:37.5em) and (max-width:56.25em){
  .landing-hero-photo{left:34%;width:66%}
  .landing-hero h1{font-size:2.5em}
}

/* ---- Phones ------------------------------------------------------- */
@media(max-width:37.4375em){
  /* 9em top, like the homepage hero copy on phones, so the eyebrow
     clears the logo sticker that hangs below the 3.75em header. */
  .landing-hero{display:block;min-height:0;padding:9em 0 3em}
  /* Like the homepage hero on phones: the text sits on solid dark at the
     top and the photo fills the bottom 30em, fading in under the
     button, so the subject's face shows below the text, not behind it.
     The Phone hero photo field (a <source> in page-landing.php) can
     swap in a different photo for this layout. */
  .landing-hero.has-photo{padding-bottom:23em}
  .landing-hero-photo{top:auto;left:0;width:100%;height:30em;object-position:56% 50%}
  .landing-hero.has-photo::before{background:linear-gradient(180deg,#111 0%,#111 calc(100% - 30em),rgba(17,17,17,.85) calc(100% - 27em),rgba(17,17,17,.5) calc(100% - 24em),rgba(17,17,17,.18) calc(100% - 20.5em),rgba(17,17,17,0) calc(100% - 17em))}
  .landing-hero h1{font-size:2.25em}
  .landing-hero .lead{max-width:none;font-size:1.125em}
  .landing-hero .body-copy{max-width:none;font-size:1em}
  .landing-hero .button,.landing-contact .button{width:100%}
  .landing-section-head{text-align:left}
  .landing-page .landing-section-head h2,.landing-contact h2{font-size:2em}
  .landing-intro{font-size:1em}
  .content-card.has-photo{display:flex}
  .content-card-media{aspect-ratio:3/2;min-height:0}
  .content-card.has-photo .content-card-body{padding:1.5em}
  .landing-mosaic,.landing-mosaic.count-3{grid-template-columns:1fr 1fr;grid-auto-rows:9em;gap:.75em}
  .landing-mosaic img{border-radius:1em}
  .landing-mosaic img:first-child{grid-column:span 2;grid-row:span 2}
  .landing-mosaic.count-2 img{grid-column:auto;grid-row:auto}
  .landing-mosaic.count-3 img:not(:first-child){grid-row:auto}
  .landing-mosaic.count-4 img:last-child{grid-column:span 2}
  .landing-closing{font-size:1.125em}
  .service-area h2{font-size:2em}
  .service-area .button{width:100%}
  .service-area-cities span,.service-area-cities a{padding:.625em 1em;font-size:1em}
}
