/* Home sections: hero, how it works, why us, prices, CTA band. Mobile first; the card look comes from components.css. */

/* Our own flex/grid boxes set their gaps; drop the flow-layout margins inside them. */
:is(.lk-hero, .lk-how, .lk-why, .lk-prices, .lk-cta-band) .wp-block-group:not(.lk-section-head) > * { margin-block: 0; }
:is(.lk-hero, .lk-how, .lk-why, .lk-prices, .lk-cta-band) .wp-block-image img { display: block; }

/* Hero */
.lk-section.lk-hero { padding-block: 28px 56px; background: radial-gradient(640px 420px at 78% 30%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 70%), var(--bg); }
.lk-hero .lk-hero-grid { display: flex; flex-direction: column; gap: 20px; }
/* On phones both columns melt into one list so the price strip sits above the buttons and the photo below them. */
.lk-hero .lk-hero-copy, .lk-hero .lk-hero-media { display: contents; }
.lk-hero .lk-hero-price { order: 1; }
.lk-hero .lk-hero-actions { order: 2; }
.lk-hero .lk-hero-photo { order: 3; padding-top: 8px; }
.lk-hero .lk-hero-chips { order: 4; }
.lk-hero h1 { line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.lk-hero .lk-lead { max-width: 520px; }
.lk-hero .lk-hero-badge { align-self: flex-start; }
.lk-hero .lk-hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
.lk-hero .lk-hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
.lk-hero .lk-hero-actions .wp-block-button__link { width: 100%; }
.lk-hero .lk-hero-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lk-hero .lk-chip { width: 100%; }
.lk-hero .lk-hero-photo img { width: 100%; height: 230px; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius-panel);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent), 0 0 60px color-mix(in srgb, var(--gold) 16%, transparent), var(--shadow-image); }
.lk-hero .lk-hero-price { display: flex; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: var(--radius-card); background: var(--surface); }
.lk-hero .lk-hero-price-cell { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; }
.lk-hero .lk-hero-open { background: linear-gradient(var(--line-2), var(--line-2)) left center / 1px calc(100% - 24px) no-repeat; }
.lk-hero .lk-hero-price-label, .lk-hero .lk-hero-price-sub { font-size: 13px; line-height: 1.4; color: var(--muted); }
.lk-hero .lk-hero-price-value { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--gold); }
.lk-hero .lk-hero-open .lk-hero-price-value { color: var(--text); }
.lk-hero .lk-hero-price-value small { font-size: inherit; }

@media (min-width: 1024px) {
  .lk-section.lk-hero { padding-block: 72px 104px; }
  .lk-hero .lk-hero-grid { display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 572fr); gap: 48px; align-items: center; }
  .lk-hero .lk-hero-copy { display: flex; flex-direction: column; gap: 24px; }
  .lk-hero .lk-hero-media { display: block; position: relative; }
  .lk-hero h1 { line-height: 1.04; }
  .lk-hero .lk-hero-actions { flex-direction: row; align-items: center; gap: 12px; }
  .lk-hero .lk-hero-actions .wp-block-button__link { width: auto; }
  .lk-hero .lk-hero-chips { display: flex; flex-wrap: wrap; padding-top: 8px; }
  .lk-hero .lk-chip { width: auto; }
  .lk-hero .lk-hero-photo { padding-top: 0; }
  .lk-hero .lk-hero-photo img { height: 440px; }
  .lk-hero .lk-hero-price { position: absolute; left: -32px; bottom: 32px; background: color-mix(in srgb, var(--bg) 90%, transparent);
    border-color: color-mix(in srgb, var(--gold) 55%, transparent); box-shadow: var(--shadow-card); backdrop-filter: blur(10px); }
  .lk-hero .lk-hero-price-cell { padding: 16px 20px; gap: 4px; }
  .lk-hero .lk-hero-open { display: none; }
  .lk-hero .lk-hero-price-label { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
  .lk-hero .lk-hero-price-value { font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
  .lk-hero .lk-hero-price-value small { font-size: 20px; letter-spacing: 0; }
  .lk-hero .lk-hero-price-sub { font-size: 14px; }
}

/* How it works */
.lk-how .lk-how-steps { display: grid; gap: 12px; }
.lk-how .lk-step { padding: 20px; gap: 12px; }
.lk-how .lk-step-num { font-size: 36px; }
.lk-how .lk-step .lk-tile { width: 44px; height: 44px; }
.lk-how .lk-step .lk-h3 { font-size: 20px; }
.lk-how .lk-step .lk-text, .lk-how .lk-how-onsite-text .lk-text { font-size: 15px; }
.lk-how .lk-how-onsite { box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; padding: 16px; border-radius: var(--radius-panel); background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
/* The photo is the whole locker wall; zoomed in on the black terminal column (x 67%, y 40% of lockers.webp) at a fixed aspect, so the crop holds at any width. */
.lk-how .lk-how-photo { position: relative; aspect-ratio: 326 / 190; overflow: hidden; border-radius: 14px; box-shadow: var(--shadow-image); }
.lk-how .lk-how-photo img { position: absolute; left: 50%; top: 50%; width: 230%; max-width: none; height: auto; transform: translate(-67.2%, -39.8%); }
.lk-how .lk-how-onsite-text { display: flex; flex-direction: column; gap: 14px; padding: 0 4px 4px; }
.lk-how .lk-how-sbo { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
/* Keypad graphic (decorative, aria-hidden): screen with locker number and PIN, keys 1-9 C 0 OK, caption. */
.lk-how .lk-keypad { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border-radius: 14px;
  background: var(--bg); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); font-family: var(--font-display); font-weight: 600; }
.lk-keypad-screen { width: 148px; box-sizing: border-box; padding: 8px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 4px; }
.lk-keypad-screen > span { display: flex; align-items: center; justify-content: space-between; height: 20px; font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.lk-keypad-screen b { font-weight: 700; font-size: 18px; letter-spacing: 0.02em; color: var(--gold); }
.lk-keypad-screen > span + span b { font-size: 16px; letter-spacing: 0.24em; color: var(--text); }
.lk-keypad-keys { width: 148px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.lk-keypad-keys > span { height: 24px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--text); }
.lk-keypad-keys > .is-ok { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.lk-keypad-caption { display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700; font-size: 12px; line-height: 1.35; letter-spacing: 0.14em; color: var(--text); }
.lk-keypad-caption > :last-child { color: var(--gold); }

@media (min-width: 782px) {
  .lk-how .lk-how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .lk-how .lk-step { padding: 28px; gap: 16px; }
  .lk-how .lk-step-num { font-size: 44px; }
  .lk-how .lk-step .lk-tile { width: 48px; height: 48px; }
  .lk-how .lk-step .lk-h3 { font-size: 22px; }
  .lk-how .lk-step .lk-text { font-size: 16px; }
}
@media (min-width: 1024px) {
  .lk-how .lk-how-onsite { flex-direction: row; align-items: center; gap: 40px; padding: 20px 40px 20px 20px; }
  .lk-how .lk-how-photo { flex: 0 0 400px; aspect-ratio: 400 / 260; border-radius: var(--radius-card); }
  .lk-how .lk-how-photo img { width: 244%; }
  .lk-how .lk-how-onsite-text { flex: 1 1 0; padding: 0; }
  .lk-how .lk-how-sbo { font-size: 40px; }
  .lk-how .lk-how-onsite-text .lk-text { font-size: 17px; }
  .lk-how .lk-keypad { flex-shrink: 0; }
}

/* Why us */
.lk-why .lk-why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lk-why .lk-feature { padding: 16px; gap: 10px; }
.lk-why .lk-feature .lk-tile { width: 40px; height: 40px; }
.lk-why .lk-feature-title { font-size: 16px; }
.lk-why .lk-feature .lk-text { font-size: 14px; line-height: 1.5; }

@media (min-width: 782px) {
  .lk-why .lk-why-grid { gap: 20px; }
  .lk-why .lk-feature { padding: 24px; gap: 14px; }
  .lk-why .lk-feature .lk-tile { width: 48px; height: 48px; }
  .lk-why .lk-feature-title { font-size: 19px; }
  .lk-why .lk-feature .lk-text { font-size: 15px; }
}
@media (min-width: 1024px) {
  .lk-why .lk-why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Prices: auto-fit takes 2 cards today and 3-4 when a city adds sizes. */
.lk-prices .lk-prices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; padding-top: 6px; }
.lk-prices .lk-price { padding: 20px; }
.lk-prices .lk-price.is-popular { padding-top: 28px; }
.lk-prices .lk-price-flag { left: 20px; }
.lk-prices .lk-prices-title { display: flex; flex-direction: column; gap: 2px; }
.lk-prices .lk-price-val small { margin-left: 0; }
.lk-prices .lk-price > .wp-block-buttons { margin-top: auto; }
.lk-prices .lk-prices-note { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--muted); }
.lk-prices .lk-prices-note .wp-block-image { flex-shrink: 0; padding-top: 2px; }

@media (min-width: 782px) {
  .lk-prices .lk-price { padding: 32px; }
  .lk-prices .lk-price.is-popular { padding-top: 40px; }
  .lk-prices .lk-price-flag { left: 32px; }
}

/* CTA band: the lockers-word graphic comes from its own pattern; here it only gets the yellow variant and its size. */
.lk-section.lk-cta-band { padding-block: 56px 64px; }
.lk-cta-band .lk-cta { padding: 0; background: none; flex-direction: column; align-items: stretch; gap: 28px; }
.lk-cta-band .lk-cta > :not(.lk-cta-text) { align-self: center; }
.lk-cta-band .lk-cta-text { order: 1; gap: 14px; }
.lk-cta-band .lk-cta-title { font-size: 30px; }
.lk-cta-band .lk-cta-p { font-size: 16px; }
.lk-cta-band .wp-block-buttons { padding-top: 14px; }
.lk-cta-band .wp-block-button, .lk-cta-band .wp-block-button__link { width: 100%; }
.lk-cta-band .lk-lockers { --col-w: 64px; --col-h: 166px; --seam: 2px;
  --lk-door: var(--gold); --lk-seam: var(--gold-ink); --lk-letter: var(--gold-ink); --lk-lock: var(--gold-ink);
  --lk-lock-dot: color-mix(in srgb, var(--gold-ink) 80%, var(--gold)); --lk-plate: var(--text); --lk-plate-ink: var(--gold-ink);
  --lk-door-line: color-mix(in srgb, var(--gold-ink) 28%, transparent); }

@media (min-width: 1024px) {
  .lk-section.lk-cta-band { padding-block: 80px; }
  .lk-cta-band .lk-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .lk-cta-band .lk-cta-text { order: 0; gap: 20px; }
  .lk-cta-band .lk-cta-title { font-size: 48px; }
  .lk-cta-band .lk-cta-p { font-size: 18px; }
  .lk-cta-band .wp-block-buttons { padding-top: 8px; }
  .lk-cta-band .wp-block-button, .lk-cta-band .wp-block-button__link { width: auto; }
  .lk-cta-band .lk-lockers { --col-w: min(112px, 7.8vw); --col-h: calc(var(--col-w) * 2.857); --seam: 3px; }
}
