/* ============================================================
   Elevate Barbell Club — homepage styles
   Design tokens, hover states, scroll animations, responsive rules.
   Base look lives in the inline styles on index.html (1:1 with the
   Claude Design mockup); this file layers on the behaviour the
   design runtime used to provide (hover, motion, mobile).
   ============================================================ */

:root {
  --bg:        #0E0E0F;   /* near-black background            */
  --surface:   #17171A;   /* cards, sections                  */
  --surface-2: #1F1F23;   /* raised cards, pricing tiles       */
  --text:      #F4F4F2;   /* off-white body text              */
  --text-mut:  #A0A0A6;   /* secondary text                   */
  --border:    #2A2A2F;   /* subtle dividers                  */
  --steel:     #C9CDD4;   /* metallic silver (brand neutral)  */
  --accent:    #C79A4B;   /* molten gold — CTAs + badges only */
  --accent-h:  #B0863A;   /* hover                            */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }

/* Visible, accessible focus ring for keyboard users (WCAG) */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- hover states (were style-hover in the mockup) ---------- */
/* !important so they win over the element's inline base style */
.hv-gold:hover      { background: var(--accent-h) !important; }
.hv-outline:hover   { border-color: var(--steel) !important; }
.hv-nav:hover       { color: var(--text) !important; }
.hv-home:hover      { color: var(--steel) !important; }
.hv-steel:hover     { color: var(--text) !important; }
.hv-goldtext:hover  { color: var(--accent-h) !important; }
.hv-foot:hover      { color: var(--text) !important; }
.hv-footdim:hover   { color: var(--text-mut) !important; }
.hv-card:hover      { border-color: var(--accent) !important; transform: translateY(-4px); }
.hv-tag:hover       { border-color: var(--accent) !important; color: var(--text) !important; }

/* ---------- social icon buttons ---------- */
.dc-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--steel); text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.dc-social:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.dc-social svg { width: 20px; height: 20px; display: block; }

/* ---------- mobile nav ---------- */
.dc-menu-btn {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: 4px; cursor: pointer; padding: 0;
}
.dc-menu-btn span {
  display: block; width: 20px; height: 2px; background: var(--text);
  position: relative;
}
.dc-menu-btn span::before,
.dc-menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--text); transition: transform .25s ease, top .25s ease;
}
.dc-menu-btn span::before { top: -6px; }
.dc-menu-btn span::after  { top: 6px; }
.dc-header.nav-open .dc-menu-btn span { background: transparent; }
.dc-header.nav-open .dc-menu-btn span::before { top: 0; transform: rotate(45deg); }
.dc-header.nav-open .dc-menu-btn span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- scroll-reveal base state ---------- */
[data-anim-hidden] { opacity: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .dc-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .dc-grid--keep2 { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  /* stop any grid child (e.g. the map iframe cell) from forcing the track wider than the viewport */
  .dc-grid > *, .dc-grid--keep2 > * { min-width: 0; }
  .dc-flexcol { flex-direction: column !important; }
  .dc-wrap { padding-left: 24px !important; padding-right: 24px !important; }
  /* image sits above text once stacked */
  .dc-order-img { order: -1; }
}

@media (max-width: 860px) {
  /* nav → hamburger */
  .dc-menu-btn { display: inline-flex; }
  .dc-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: rgba(14,14,15,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    display: none !important;
  }
  .dc-header.nav-open .dc-nav { display: flex !important; }
  .dc-nav a { padding: 14px 0 !important; border-bottom: 1px solid var(--border); }
  .dc-headphone { display: none !important; }
  .dc-headbar { padding: 0 24px !important; height: 72px !important; }

  /* type + spacing scale down */
  .dc-h1  { font-size: 46px !important; line-height: 1.06 !important; }
  .dc-h2  { font-size: 32px !important; }
  .dc-cta-h2 { font-size: 40px !important; }
  .dc-big90 { font-size: 132px !important; }
  .dc-verse { font-size: 30px !important; }
  .dc-sec { padding-top: 76px !important; padding-bottom: 76px !important; }
  .dc-hero { min-height: 620px !important; }
  .dc-hero-pad { padding: 96px 24px !important; }
}

@media (max-width: 520px) {
  .dc-grid--keep2 { grid-template-columns: 1fr !important; }
  .dc-h1 { font-size: 38px !important; }
  .dc-big90 { font-size: 104px !important; }
  .dc-btnrow { flex-direction: column !important; align-items: stretch !important; }
  .dc-btnrow > a { justify-content: center; }
}

/* ---------- respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-anim-hidden] { opacity: 1 !important; }
  .hv-card:hover { transform: none; }
}
