/* The client landing page (issues #146, #154): a client with two or more locations at one web address. Uses the storefront's own base
   look (storefront.css) and the home location's colors (theme.css); only the choices and the list of places are new. Open or closed is
   said in words, not colour alone. Phone first. */
.landing-page { padding-bottom: 3rem; }
.landing-hero { padding: 2rem 0 2.4rem; }
.landing-hero .hero-in { flex-direction: column; text-align: center; gap: .9rem; }
.landing-hero .logo { width: 6.5rem; height: 6.5rem; }
.landing-hero .logo.wide { width: 12rem; height: 6.5rem; }
.landing-hero h1 { font-size: clamp(1.9rem, 8vw, 3rem); }
.landing-hero .tagline { font-size: 1.1rem; margin-top: .4rem; }
.landing { max-width: 46rem; padding-top: 1.6rem; }
.ask { font-size: clamp(1.35rem, 5vw, 1.75rem); text-align: center; margin: 0 0 1.1rem; }
.landing-card { text-align: center; padding: 1.5rem 0; }
.landing-card .ask { margin-bottom: .4rem; }

/* step 1: big choices */
.choices, .places { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; grid-template-columns: 1fr; }
.choice { display: flex; align-items: center; gap: 1rem; min-height: 5.25rem; padding: 1.05rem 1.15rem; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.choice:hover { border-color: var(--accent); }
.choice:active { transform: translateY(1px); }
.choice-icon { flex: none; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.choice-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.choice-text { display: grid; gap: .15rem; min-width: 0; flex: 1; }
.choice-title { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.choice-sub { color: var(--muted); font-size: .95rem; line-height: 1.35; }

/* a right-pointing chevron drawn with borders (no image, no icon font) */
.chev { flex: none; width: .62rem; height: .62rem; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(45deg); margin-right: .35rem; opacity: .65; }
.choice:hover .chev { color: var(--accent); opacity: 1; }
.back-chev { transform: rotate(-135deg); margin: 0 .2rem 0 .3rem; }

/* step 2: places */
.back-row { margin: 0 0 .9rem; }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 650; text-decoration: none; }
.back:hover { color: var(--link, var(--accent)); }
.place { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.place:hover { border-color: var(--accent); }
.place-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.place .addr, .place .phone { color: var(--muted); font-size: .95rem; }
.place .state { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .25rem; }
.tag { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .7rem; border-radius: 999px; font-weight: 700; font-size: .82rem; background: #e6f4ea; color: #14532d; }
.tag::before { content: "\2713"; }
.tag.closed { background: #fdecea; color: #7f1a14; }
.tag.closed::before { content: "\2715"; }
.tag.off { background: #eceae6; color: #4a443d; }
.tag.off::before { content: "\2013"; }
.place .go { display: flex; gap: .4rem; align-items: center; justify-content: space-between; margin-top: .45rem; padding-top: .6rem; border-top: 1px solid var(--line); font-weight: 700; color: var(--link, var(--accent)); }
.place:hover .go { text-decoration: underline; }
.place .go .chev { color: var(--link, var(--accent)); opacity: 1; }

/* the location card (location first): name, address, open or closed, then a button for each thing it offers */
.place { display: grid; gap: .9rem; padding: 1.15rem 1.2rem 1.2rem; }
.place:hover { border-color: var(--line); }
.place-head { display: grid; gap: .25rem; }
.place-brand { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.place h3.place-name { margin: 0; }
.place .addr { margin: 0; }
.place .state { margin: .3rem 0 0; }
.place-acts { display: grid; gap: .5rem; grid-template-columns: 1fr 1fr; align-self: end; }
.act { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.9rem; padding: .6rem .8rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2; }
.act:hover { border-color: var(--accent); color: var(--link, var(--accent)); }
.act.main { grid-column: 1 / -1; background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-size: 1.05rem; min-height: 3.1rem; }
.act.main:hover { color: var(--on-accent); filter: brightness(1.06); }
/* a lone second button takes the whole row */
.act:not(.main):nth-child(2):last-child { grid-column: 1 / -1; }
.place-acts:not(.several) .act { grid-column: 1 / -1; }
.act-icon { display: inline-grid; flex: none; }
.act-icon svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) { .act { transition: border-color .15s ease, filter .15s ease; } }

/* rewards and gift cards: two smaller tiles under the main choices */
.extras { list-style: none; margin: 1.4rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.extras:only-child, .extras li:only-child { grid-column: 1 / -1; }
.extra { display: flex; align-items: center; gap: .7rem; min-height: 3.6rem; padding: .75rem .9rem; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.extra:hover { border-color: var(--accent); }
.extra-icon { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--link, var(--accent)); }
.extra-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.extra-text { display: grid; min-width: 0; }
.extra-title { font-weight: 750; }
.extra-sub { color: var(--muted); font-size: .85rem; line-height: 1.3; }
@media (max-width: 420px) { .extras { grid-template-columns: 1fr; } }

@media (min-width: 720px) {
  .landing-hero { padding: 3rem 0 3.2rem; }
  .landing { padding-top: 2.2rem; }
  /* two or more places side by side; one place stays a single centred card */
  .places { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
  .places:has(> .place:only-child) { grid-template-columns: minmax(0, 26rem); justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .choice, .place { transition: border-color .15s ease, transform .1s ease; }
}

.skip { position: absolute; left: .5rem; top: -4rem; z-index: 10; padding: .6rem 1rem; background: var(--surface); color: var(--ink); border-radius: 8px; font-weight: 700; }
.skip:focus { top: .5rem; }
.landing:focus { outline: none; }
