/* ==========================================================================
   Highway Dispos: Component library
   Depends on colors_and_type.css
   ========================================================================== */

/* ==========================================================================
   Buttons
   Hit target: 44x44 min. Icon + label always, never icon-only.
   ========================================================================== */
.hd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--hit-min);
  min-width: var(--hit-min);
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: var(--bw-rule) solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-default),
              color var(--dur-fast) var(--ease-default),
              border-color var(--dur-fast) var(--ease-default),
              transform var(--dur-fast) var(--ease-default);
  user-select: none;
  white-space: nowrap;
}
.hd-btn:focus-visible {
  outline: 3px solid var(--hd-blue);
  outline-offset: 2px;
}
.hd-btn:active {
  transform: translateY(1px);
}
.hd-btn svg,
.hd-btn .hd-btn-ico {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* Primary: sunrise gold on cream pages */
.hd-btn--primary {
  background: var(--hd-gold);
  color: var(--hd-forest);
  border-color: var(--hd-gold);
}
.hd-btn--primary:hover { background: var(--hd-gold-ink); border-color: var(--hd-gold-ink); }

/* Secondary: forest outline on cream */
.hd-btn--secondary {
  background: transparent;
  color: var(--hd-forest);
  border-color: var(--hd-forest);
}
.hd-btn--secondary:hover { background: var(--hd-forest); color: var(--hd-cream); }

/* Tertiary: text link in forest green */
.hd-btn--tertiary {
  background: transparent;
  color: var(--hd-forest);
  border-color: transparent;
  padding: 10px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--hd-green);
}
.hd-btn--tertiary:hover { color: var(--hd-green); }

.hd-btn--lg { padding: 14px 28px; font-size: var(--fs-lg); }
.hd-btn--sm { padding: 8px 14px;  font-size: var(--fs-sm); min-height: 40px; }
.hd-btn[disabled], .hd-btn[aria-disabled="true"] {
  opacity: 0.5; pointer-events: none;
}

/* ==========================================================================
   Cards
   Warm cream page, white card, forest hairline, 12px radius, 24px padding.
   ========================================================================== */
.hd-card {
  background: var(--bg-card);
  border: var(--bw-hair) solid var(--hd-forest);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-1);
}
.hd-card__eyebrow { 
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--hd-green);
  margin: 0 0 var(--sp-2);
}
.hd-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  color: var(--hd-forest);
  margin: 0 0 var(--sp-2);
}
.hd-card__body {
  color: var(--fg-2);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  margin: 0;
}

/* Product card variant */
.hd-card--product {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hd-card--product .hd-card__media {
  position: relative;
  background: var(--hd-cream-2);
  aspect-ratio: 4 / 3;
  border-bottom: var(--bw-hair) solid var(--border-hair);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-3);
}
.hd-card--product .hd-card__stamp {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: var(--hd-cream);
  border: var(--bw-hair) solid var(--hd-forest);
  color: var(--hd-forest);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hd-card--product .hd-card__body-wrap {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.hd-card--product .hd-card__price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--hd-forest);
}
.hd-card--product .hd-card__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Top navigation
   ========================================================================== */
.hd-nav {
  background: var(--hd-cream);
  border-bottom: var(--bw-hair) solid var(--border-hair);
  padding: var(--sp-3) var(--sp-5);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-5);
  font-family: var(--font-body);
}
.hd-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--hd-forest);
}
.hd-nav__brand-mark { width: 56px; height: 56px; }

/* Dual brand mark: HW-61 + HW-23 side-by-side with slight overlap, signaling
   "system of locations" on umbrella pages. Single-shield variants (Standish,
   Au Gres) use the default .hd-nav__brand-mark above.
   Selectors use .site-nav prefix to win over per-page rules at @media 1023px
   that set the base brand-mark to 48x48 (those rules also use .site-nav). */
.hd-nav__brand-mark.hd-nav__brand-mark--dual,
.site-nav .hd-nav__brand-mark.hd-nav__brand-mark--dual {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  height: 56px !important;
  flex-shrink: 0;
}
.hd-nav__brand-mark--dual > [data-hd-shield]:nth-child(1) {
  position: relative;
  z-index: 2;
  display: inline-block;
  flex: 0 0 auto;
}
.hd-nav__brand-mark--dual > [data-hd-shield]:nth-child(2) {
  position: relative;
  z-index: 1;
  display: inline-block;
  flex: 0 0 auto;
  margin-left: -10px;
  transform: rotate(4deg) translateY(4px);
  transform-origin: 50% 50%;
}
@media (max-width: 1023px) {
  .site-nav .hd-nav__brand-mark.hd-nav__brand-mark--dual {
    height: 48px !important;
  }
}
@media (max-width: 480px) {
  .site-nav .hd-nav__brand-mark.hd-nav__brand-mark--dual {
    height: 44px !important;
  }
  .hd-nav__brand-mark--dual > [data-hd-shield]:nth-child(2) {
    margin-left: -8px;
  }
}
.hd-nav__brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  letter-spacing: 0.02em;
  line-height: 1;
}
.hd-nav__center {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  justify-content: center;
}
.hd-nav__links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--sp-5);
}
.hd-nav__links a {
  color: var(--hd-forest);
  font-weight: 600;
  font-size: var(--fs-md);
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-default);
}
.hd-nav__links a:hover,
.hd-nav__links a[aria-current="page"] {
  border-bottom-color: var(--hd-green);
}
.hd-nav__right { display: flex; align-items: center; gap: var(--sp-3); }

/* Location picker (used inside nav or as standalone) */
.hd-locpicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--hd-cream-2);
  border: var(--bw-hair) solid var(--hd-forest);
  color: var(--hd-forest);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  min-height: 40px;
  cursor: pointer;
}
.hd-locpicker__label { 
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.hd-locpicker__value { font-weight: 700; }
.hd-locpicker__tabs {
  display: inline-flex;
  background: var(--hd-cream-2);
  border: var(--bw-hair) solid var(--border-hair);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 2px;
}
.hd-locpicker__tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--hd-forest);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 36px;
}
.hd-locpicker__tab[aria-pressed="true"] {
  background: var(--hd-forest);
  color: var(--hd-cream);
}

/* Mobile nav collapse */
@media (max-width: 767px) {
  .hd-nav {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand toggle"
      "center center"
      "right right";
    row-gap: var(--sp-3);
  }
  .hd-nav__brand  { grid-area: brand; }
  .hd-nav__center { grid-area: center; justify-content: flex-start; }
  .hd-nav__right  { grid-area: right; }
  .hd-nav__links {
    flex-wrap: wrap;
    gap: var(--sp-3);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.hd-footer {
  background: var(--hd-forest);
  color: var(--hd-cream);
  padding: var(--sp-9) var(--sp-5) var(--sp-6);
  font-family: var(--font-body);
}
.hd-footer a { color: var(--hd-cream); text-decoration: underline; text-underline-offset: 3px; }
.hd-footer__grid {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--container-wide);
  margin: 0 auto;
}
.hd-footer__col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--hd-gold);
  margin: 0 0 var(--sp-3);
}
.hd-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.hd-footer__license {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hd-cream);
  opacity: 0.9;
}
.hd-footer__location h5 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-md);
  margin: 0 0 var(--sp-2);
  color: var(--hd-cream);
}
.hd-footer__hours {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--hd-cream);
  line-height: 1.7;
}
.hd-footer__bottom {
  max-width: var(--container-wide);
  margin: var(--sp-7) auto 0;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(250, 246, 237, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(250, 246, 237, 0.8);
}
.hd-footer__socials {
  display: flex; gap: var(--sp-3);
}
.hd-footer__socials a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(250, 246, 237, 0.3);
  border-radius: var(--radius-full);
  text-decoration: none;
}
@media (max-width: 1023px) {
  .hd-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .hd-footer__grid { grid-template-columns: 1fr; }
  .hd-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.hd-faq { display: flex; flex-direction: column; gap: 0; }
.hd-faq__item {
  border-bottom: var(--bw-hair) solid var(--border-hair);
}
.hd-faq__item:first-child { border-top: var(--bw-hair) solid var(--border-hair); }
.hd-faq__summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--hd-forest);
  min-height: var(--hit-min);
}
.hd-faq__summary::-webkit-details-marker { display: none; }
.hd-faq__chev {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--hd-forest);
  transition: transform var(--dur-med) var(--ease-default);
}
.hd-faq__item[open] .hd-faq__chev { transform: rotate(180deg); }
.hd-faq__item[open] .hd-faq__summary { color: var(--hd-green); }
.hd-faq__body {
  padding: 0 0 var(--sp-5);
  color: var(--fg-2);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  max-width: 72ch;
}

/* ==========================================================================
   Dutchie iframe wrapper
   ========================================================================== */
.hd-dutchie {
  background: var(--hd-cream);
  border: var(--bw-hair) solid var(--border-hair);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.hd-dutchie__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
}
.hd-dutchie__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-2xl);
  color: var(--hd-forest);
  margin: 0;
}
.hd-dutchie__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hd-dutchie__frame {
  background: var(--hd-white);
  border: var(--bw-hair) solid var(--border-hair);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.hd-dutchie__cta {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Age-gate modal
   ========================================================================== */
.hd-agegate {
  position: fixed;
  inset: 0;
  background: var(--hd-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  z-index: 9999;
}
.hd-agegate[hidden] { display: none; }
.hd-agegate__inner {
  width: 100%;
  max-width: 520px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}
.hd-agegate__shield { width: 160px; height: 160px; }
.hd-agegate__q {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--hd-forest);
  margin: 0;
}
.hd-agegate__sub {
  font-size: var(--fs-md);
  color: var(--fg-2);
  max-width: 40ch;
  margin: 0;
}
.hd-agegate__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: 100%;
  max-width: 320px;
}
.hd-agegate__fine {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Stat box
   ========================================================================== */
.hd-stat {
  background: var(--hd-cream);
  border: var(--bw-hair) solid var(--border-hair);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.hd-stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-5xl);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  color: var(--hd-forest);
}
.hd-stat__cap {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--hd-ink);
  line-height: var(--lh-snug);
}
.hd-stat__sub {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   Mobile refinements (added 2026-04-24, post-launch QA pass)
   These use body-prefix specificity (0,0,1,1) to win over
   per-page <style> declarations (0,0,1,0) without !important.
   ============================================================ */
@media (max-width: 767px) {
  /* Section padding: trim from sp-11 (96px) to sp-9 (64px) */
  body .section,
  body .photos,
  body .locations,
  body .values,
  body .scr,
  body .story,
  body .why,
  body .menu,
  body .legal-toc,
  body .faq__index,
  body .faq__cats {
    padding-top: var(--sp-9);
    padding-bottom: var(--sp-9);
  }
  /* Hero: tighter at mobile, less than 100vh dominance */
  body .hero {
    min-height: auto;
    padding-top: var(--sp-7);
    padding-bottom: var(--sp-8);
  }
  /* Hero CTAs full-width, stacked, native mobile feel */
  body .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  body .hero__ctas .hd-btn {
    min-width: 0;
    width: 100%;
  }
  /* Generic 4-up tile grids drop to 2-up on phones (not 1-up).
     !important wins over per-page @media rules that set 1fr at <=639px. */
  body .values__grid,
  body .why__grid,
  body .gmp__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--sp-3);
  }
  /* Compact location cards */
  body .loc-card {
    padding: var(--sp-5);
  }
  body .loc-card__shield {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 480px) {
  /* At smallest sizes, value tiles can keep 2-up but tighter */
  body .values__grid,
  body .why__grid,
  body .gmp__grid {
    gap: 8px;
  }
}
