/* The main site: home and partners. Extends styles.css, which owns the
   palette, the grain overlay, the banner, and the social footer.

   Everything here sits at z-index 2 for the same reason .copy does over
   there: the grain layer is fixed above the images, so text has to come out
   from under it or it loses its edges. */

:root {
  --card: rgba(13, 39, 49, 0.45);
  --hairline: rgba(243, 232, 201, 0.22);
}

.page--wide { max-width: 880px; }

/* The nav now lives in styles.css: the store page shares the header and
   doesn't load this file. */

/* Links inside body copy are underlined, because an orange word on cream
   copy isn't obviously clickable on a phone in daylight. */
.copy__link,
.copy__body a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ---------- Find Us ---------- */
.find {
  position: relative;
  z-index: 2;
  margin-top: clamp(2rem, 6vw, 3rem);
}

.find__heading {
  color: var(--orange);
  font-family: "Alfa Slab One", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  text-align: center;
  margin: 0 0 clamp(1rem, 3vw, 1.5rem);
}

.stops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
}

.stop {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.stop__city {
  font-family: "Alfa Slab One", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--cream);
  margin: 0;
  line-height: 1.2;
}

.stop__venue {
  font-size: 0.88rem;
  opacity: 0.8;
  margin: 0.2rem 0 0;
  line-height: 1.4;
}

/* Open-or-closed right now, worked out in the browser against the location's
   own timezone. See openState() in site.js. */
.stop__status {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  opacity: 0.75;
}

.stop__status[data-open="true"] {
  color: var(--navy);
  background: var(--orange);
  border-color: var(--orange);
  opacity: 1;
}

/* The full week, one row per day. Two grid columns with no gap between them,
   so today's highlight can run the width of the row as one unbroken band. */
.stop__hours {
  margin: 0.9rem 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
}

.stop__day,
.stop__time {
  margin: 0;
  padding: 0.24rem 0.55rem;
}

.stop__day {
  font-weight: 700;
  white-space: nowrap;
}

.stop__time {
  text-align: right;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

/* Days we're shut stay on the page so the week keeps its shape, but they
   recede. */
.stop__day.is-closed,
.stop__time.is-closed { opacity: 0.4; }

/* Today. Which row this lands on is decided in the browser against the
   location's own timezone, not baked into the cached response. */
.stop__day[data-today="true"],
.stop__time[data-today="true"] {
  background: rgba(240, 146, 42, 0.16);
  color: var(--orange);
  opacity: 1;
}

.stop__day[data-today="true"] { border-radius: 6px 0 0 6px; }
.stop__time[data-today="true"] { border-radius: 0 6px 6px 0; }

/* .sr-only now lives in styles.css, which the banner needs it for. */

.stop__fallback {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.85;
}

.stop__fallback a { color: var(--orange); }

.stop__address {
  display: block;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
  color: var(--cream);
  font-size: 0.85rem;
  line-height: 1.45;
  opacity: 0.85;
  text-decoration: none;
}

a.stop__address:hover,
a.stop__address:focus-visible {
  color: var(--orange);
  opacity: 1;
}

.find__note {
  margin: clamp(1rem, 2.5vw, 1.25rem) auto 0;
  max-width: 480px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.7;
}

.find__note a { color: var(--orange); }

/* ---------- OG promo band ---------- */
.promo {
  position: relative;
  z-index: 2;
  margin-top: clamp(2.5rem, 7vw, 3.5rem);
  padding: clamp(1.25rem, 4vw, 1.85rem);
  border-radius: 16px;
  border: 1px solid var(--orange);
  background: rgba(240, 146, 42, 0.12);
  text-align: center;
}

.promo__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

.promo__heading {
  font-family: "Alfa Slab One", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--orange);
  margin: 0.35rem 0 0.65rem;
}

.promo__body {
  margin: 0 auto;
  max-width: 460px;
  font-size: clamp(0.88rem, 1.6vw, 0.98rem);
  line-height: 1.55;
  opacity: 0.9;
}

.promo__count {
  margin: 0.8rem 0 0;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.7vw, 1rem);
  color: var(--orange);
}

.btn--promo {
  background: var(--orange);
  color: var(--navy);
  margin-top: clamp(1rem, 2.5vw, 1.25rem);
  min-width: min(100%, 260px);
}

/* ---------- Partners ---------- */
.partners {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: clamp(2rem, 5vw, 2.75rem) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
}

/* Flex rather than a two-column grid so a partner with no logo file needs no
   different markup: drop .partner__mark and the content simply takes the row.
   The wrap basis puts the crest above the text on a phone. */
.partner {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1.25rem, 3.5vw, 2rem);
}

.partner__mark {
  flex: 0 0 auto;
  width: clamp(88px, 15vw, 124px);
}

.partner__mark img {
  width: 100%;
  height: auto;
}

/* min-width: 0 stops a long address link from forcing the column wider than
   the card and pushing the crest off on its own line. */
.partner__content {
  flex: 1 1 16rem;
  min-width: 0;
}

.partner__role {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.partner__name {
  font-family: "Alfa Slab One", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  margin: 0.35rem 0 0.75rem;
  line-height: 1.2;
}

.partner__body {
  margin: 0;
  font-size: clamp(0.88rem, 1.6vw, 0.98rem);
  line-height: 1.6;
  opacity: 0.9;
}

.partner__details {
  margin: clamp(1rem, 2.5vw, 1.25rem) 0 0;
  padding-top: clamp(0.85rem, 2vw, 1rem);
  border-top: 1px solid var(--hairline);
  font-size: 0.86rem;
  line-height: 1.5;
}

.partner__details dt {
  font-weight: 700;
  opacity: 0.75;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.partner__details dt + dd { margin: 0.15rem 0 0; }
.partner__details dd + dt { margin-top: 0.75rem; }

.partner__details dd {
  margin: 0;
  opacity: 0.9;
}

.partner__details a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.partner__details a:hover,
.partner__details a:focus-visible { color: var(--orange); }

.partner__tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--navy);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.partner__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: clamp(1rem, 2.5vw, 1.25rem) 0 0;
}

.partners__note {
  position: relative;
  z-index: 2;
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  max-width: 480px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.7;
}

.partners__note a { color: var(--orange); }

/* ---------- Buttons ----------
   The OG storefront has its own copy of these in og.css; the main site only
   needs the two shapes it actually uses. */
.btn {
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 140ms ease, background 140ms ease, color 140ms ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn:hover { opacity: 0.88; }

.btn--ghost {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--cream);
  color: var(--navy);
  opacity: 1;
}

.btn--sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
}

/* ---------- Footer nav ---------- */
.social__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  margin-top: 0.5rem;
}

.social__navlink {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.social__navlink:hover,
.social__navlink:focus-visible {
  color: var(--orange);
  opacity: 1;
}

/* The banner is a link on inner pages; styles.css turns off pointer events on
   the whole header, so turn them back on for the anchor. */
.top-banner a { pointer-events: auto; display: block; }
