/* NYCC store landing pages (template-parts/store-landing.php), loaded on /locations/9th-avenue/ and /locations/5th-avenue/ only.
   2.1.0 ("The Marquee", phase 2): the store's photograph full-bleed under the lockup and the plaque, one row of categories, a balanced
   "Before you visit", large photographs, the other store as a full-width band and the closing marquee. Tokens, buttons, the plaque, the
   store panel, the tile grade, the FAQ and the closing band are in site.css. */

/* 1. The hero. On phones the photograph is a full-bleed picture and the lockup rises over its foot; from 900 px the photograph fills the
   whole band and the copy and the plaque stand on its night gradient (phase2/tools/photo-contrast.py measures every text). */
.landing-hero{position:relative;isolation:isolate;display:grid;gap:var(--s-6);padding:0 0 var(--s-7);background:var(--night);border-bottom:1px solid var(--line)}
.landing-hero .location-media-hero{aspect-ratio:4/3;margin:0}
.landing-hero .location-media-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,var(--night) 4%,rgba(10,39,19,.55) 38%,rgba(10,39,19,0) 70%)}
.landing-hero .location-plaque{aspect-ratio:4/3}
.landing-hero-copy{position:relative;display:grid;justify-items:start;min-width:0;margin-top:calc(-1*var(--s-9));padding:0 var(--edge)}
.landing-hero h1{display:grid;justify-items:start;gap:var(--s-2);margin:0 0 var(--s-5);text-shadow:0 0 18px var(--night)}
.landing-title-brand{font-size:var(--fs-2);font-weight:500;line-height:1.3;letter-spacing:.14em;text-transform:uppercase;color:var(--paper)}
.landing-title-name{display:block}
.landing-title-line{font-size:var(--fs-3);font-weight:400;line-height:1.3;letter-spacing:0;color:var(--paper)}
.landing-title-whole{font-size:var(--fs-5)}
.location-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-3) var(--s-4)}
.landing-hero-plaque{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-2) var(--s-5);padding:0 var(--edge)}
.landing-hero-plaque .plaque{min-width:232px}
.landing-phone{margin:0}
.landing-phone-link{display:inline-flex;align-items:center;min-height:44px;color:var(--gold);font-size:var(--fs-3);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.3em}
@media(min-width:900px){
 .landing-hero{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:var(--s-7);min-height:clamp(560px,calc(100svh - var(--header) - 120px),780px);padding:var(--s-9) var(--gutter) var(--s-8)}
 .landing-hero .location-media-hero,.landing-hero .location-plaque{position:absolute;inset:0;z-index:-2;aspect-ratio:auto}
 /* The night gradient: dark under the copy at the left and along the foot, clear over the sign. */
 .landing-hero .location-media-hero::after{background:linear-gradient(90deg,rgba(10,39,19,.94) 0,rgba(10,39,19,.8) 34%,rgba(10,39,19,.2) 64%,rgba(10,39,19,.35)),linear-gradient(0deg,var(--night) 0,rgba(10,39,19,0) 46%)}
 .landing-hero-copy{margin:0;padding:0}
 .landing-hero-plaque{flex-direction:column;padding:0}
}

/* 2. Shop by category: one row whatever the number of categories (a rail that scrolls sideways on phones). Tiles have no frame. */
.landing-categories{padding:var(--section) var(--gutter)}
.landing-menu-links{display:flex;flex-wrap:wrap;gap:0 var(--s-6)}
.landing-tiles{display:grid;grid-auto-flow:column;grid-auto-columns:62%;gap:var(--s-3);margin:0 calc(-1*var(--edge));padding:0 var(--edge) var(--s-3);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--edge);list-style:none}
.landing-tiles li{scroll-snap-align:start}
.landing-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;height:100%;aspect-ratio:4/5}
.landing-tile:not(.landing-tile-photo){gap:var(--s-4);padding:var(--s-4);background:var(--night)}
/* The category name sits on a slim night band at the foot of the photograph. */
.landing-tile-photo .landing-tile-name{position:relative;z-index:2;width:100%;padding:var(--s-3) var(--s-4);background:var(--night);border-top:1px solid var(--brass)}
.landing-tile-name{font-size:var(--fs-2);font-weight:500;line-height:1.3}
.landing-tile:hover .landing-tile-name{color:var(--gold)}
.landing-tile:focus-visible{outline-offset:-4px}
@media(min-width:700px){.landing-tiles{grid-auto-columns:minmax(0,1fr);gap:var(--s-4);margin:0;padding:0;overflow:visible}}

/* 3. Before you visit: three balanced parts on wide screens. */
.landing-visit{padding:var(--section) var(--gutter);background:var(--night);border-block:1px solid var(--line)}
.landing-visit>h2{margin-bottom:var(--s-6)}
.landing-visit-grid{display:grid;gap:var(--s-6)}
.landing-visit-part{display:grid;align-content:start;gap:var(--s-2);padding-top:var(--s-4);border-top:1px solid var(--brass)}
.landing-visit-part h3{margin:0 0 var(--s-1);font-size:var(--fs-3)}
.landing-visit-part p{margin:0;color:var(--muted)}
.landing-visit-part p a{color:var(--gold);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.3em;overflow-wrap:anywhere}
.landing-visit-part .landing-address{color:var(--paper);font-size:var(--fs-3);line-height:1.35}
.landing-visit-part strong{color:var(--paper);font-weight:500}
@media(min-width:900px){.landing-visit-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s-7)}}

/* 4. Around the store: the copy beside large photographs. On phones the photographs run edge to edge under the copy; from 900 px the
   first fills the left of the band to the screen's edge and the second sits under the copy. */
.landing-about{display:grid;gap:var(--s-6);padding:var(--section) 0}
.landing-about-copy{padding:0 var(--gutter)}
.landing-about-text{max-width:var(--measure);color:var(--muted)}
.landing-about-text p:last-child{margin-bottom:0}
.landing-photo{margin:0;overflow:hidden;background:var(--night)}
.landing-photo img{width:100%;height:100%;object-fit:cover}
@media(min-width:900px){
 .landing-about{grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-areas:"one copy";align-items:end;column-gap:var(--s-8);row-gap:var(--s-6)}
 .landing-about.has-two{grid-template-areas:"one copy" "one two"}
 .landing-about-copy{grid-area:copy;padding:0 var(--gutter) 0 0}
 .landing-photo-1{grid-area:one;align-self:stretch;min-height:min(72svh,640px)}
 .landing-photo-2{grid-area:two;margin-right:var(--gutter)}
}

/* 7. The other store: a full-width band, the photograph bleeding to the screen's edge. */
.landing-other{background:var(--night);border-top:1px solid var(--line)}
.landing-other .location-card{padding-bottom:var(--s-8)}
.landing-other .location-card-body{padding:0 var(--gutter)}
@media(min-width:900px){
 .landing-other .location-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;padding:0}
 .landing-other .location-photo{align-self:stretch;aspect-ratio:auto;min-height:480px}
 .landing-other .location-photo::after{inset:0 0 0 55%;background:linear-gradient(90deg,rgba(10,39,19,0),var(--night))}
 .landing-other .location-card-body{margin:0;padding:var(--s-8) var(--gutter) var(--s-8) var(--s-7)}
}
