/* Shared additions for the Netlify build of Sales Day of Service */
html { scroll-behavior: smooth; }
img { max-width: 100%; }
[id] { scroll-margin-top: 90px; }

/* Announcement banner */
.sdos-banner { background: var(--black); color: rgba(245,240,232,0.85); font-family: var(--fb); font-size: 0.8rem; text-align: center; padding: 10px 20px; line-height: 1.5; }
.sdos-banner a { color: var(--gold); font-weight: 700; text-decoration: none; white-space: nowrap; }
.sdos-banner a:hover { text-decoration: underline; }

/* Footer */
.sdos-foot-text { font-size: 0.8rem; line-height: 1.6; color: rgba(245,240,232,0.55); max-width: 320px; }
.sdos-foot-h { font-size: 0.65rem; font-weight: 700; color: rgba(245,240,232,0.4); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.sdos-foot-link { display: block; font-size: 0.8rem; color: rgba(245,240,232,0.7); text-decoration: none; margin-bottom: 8px; }
.sdos-foot-link:hover { color: var(--gold); }
.sdos-foot-copy { max-width: 1160px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(245,240,232,0.08); font-size: 0.7rem; color: rgba(245,240,232,0.35); }

/* Mobile menu button */
.sdos-menu { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.sdos-menu span { display: block; width: 24px; height: 2px; background: var(--black); border-radius: 2px; }

/* Simple pages (next event, thanks, 404) */
.sdos-simple { background: var(--cream); padding: 88px 48px 104px; }
.sdos-simple-inner { max-width: 640px; margin: 0 auto; }
.sdos-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.sdos-simple-h { font-family: var(--fd); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; color: var(--black); margin-bottom: 20px; }
.sdos-simple-h span { color: var(--gold); }
.sdos-simple-p { font-size: 1rem; line-height: 1.75; color: var(--muted); margin-bottom: 32px; max-width: 560px; }
.sdos-form { background: var(--white); border-radius: 16px; padding: 32px; display: grid; gap: 18px; box-shadow: 0 10px 40px rgba(26,24,20,0.06); }
.sdos-form label { display: grid; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--black); }
.sdos-form label span { font-weight: 400; color: var(--muted); }
.sdos-form input[type=text], .sdos-form input[type=email] { height: 46px; padding: 0 14px; border: 1.5px solid var(--cream-dk, #EDE5D4); border-radius: 8px; font: inherit; font-weight: 400; font-size: 0.95rem; background: var(--white); }
.sdos-form input:focus { outline: none; border-color: var(--gold); }
.sdos-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sdos-form fieldset { border: 0; display: grid; gap: 10px; }
.sdos-form legend { font-size: 0.78rem; font-weight: 700; margin-bottom: 8px; }
.sdos-form .sdos-radio { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 0.92rem; }
.sdos-form .sdos-radio input { accent-color: var(--gold); width: 18px; height: 18px; }
.sdos-form button { border: 0; cursor: pointer; justify-self: start; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { padding: 14px 20px !important; flex-wrap: wrap; }
  .sdos-menu { display: flex; }
  .nav-links, .nav-ctas { display: none !important; }
  .nav.open .nav-links { display: flex !important; flex-direction: column; gap: 16px; width: 100%; padding: 20px 0 8px; }
  .nav.open .nav-ctas { display: flex !important; flex-wrap: wrap; width: 100%; padding-bottom: 8px; }
  .nav.open .nav-links a { font-size: 0.9rem; }
}
@media (max-width: 860px) {
  section, .section, .hero, .prefooter, .footer, .sdos-simple, [class$="-section"] { padding-left: 20px !important; padding-right: 20px !important; }
  section, .section { padding-top: 56px !important; padding-bottom: 56px !important; }
  [class$="-grid"], [class*="-grid "], [class$="-inner"], [class*="-inner "], [class$="-row"], .story-inner, .footer-inner, .register-grid, .reg-grid,
  [class$="-body"], [class$="-stats"], [class$="-featured"], [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .ceo-grid, .coach-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  [class$="-inner"][style*="display:flex"], .hero-ctas, .prefooter-ctas { flex-wrap: wrap; }
  .formula-eq { grid-template-columns: 1fr !important; gap: 8px !important; text-align: center; }
  .sponsor-logos { grid-template-columns: 1fr !important; }
  .sponsor-logo-img { max-width: 100%; }
  .footer-inner { gap: 28px !important; }
  h1 { font-size: clamp(2.2rem, 10vw, 3rem) !important; }
  h2 { font-size: clamp(1.8rem, 8vw, 2.4rem) !important; }
  .btn { white-space: normal; text-align: center; }
  .sdos-form-row { grid-template-columns: 1fr; }
  .sdos-form { padding: 22px; }
  .logos-row { gap: 24px !important; }
  table { display: block; overflow-x: auto; }
}

/* Fixes on top of the design files */
.nav-links a.active { color: var(--black) !important; }
.ceo-photo, .coach-photo { position: relative; }
.ceo-photo-label, .ceo-photo-badge, .coach-badge { position: absolute !important; bottom: 10px; left: 10px; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--gold); color: var(--black); padding: 3px 8px; border-radius: 10px; }
.guest-photo { aspect-ratio: 2 / 1 !important; }
