/* =====================================================
   Sound Decisions — Shared Stylesheet  (v4)
   All pages link to this file. Page-specific styles
   live in a <style> block inside each HTML file.
   ===================================================== */

/* ----- RESET & BASE ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #0a0a0a; color: #d8d8d8; line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ----- CSS VARIABLES ----- */
:root {
  --y: #f0c020;
  --y-dim: #c9991a;
  --bg0: #0a0a0a;
  --bg1: #111111;
  --bg2: #161616;
  --white: #ffffff;
  --text: #d0d0d0;
  --muted: #888888;
  --border: rgba(240,192,32,0.18);
  --gap: clamp(3rem, 7vw, 5.5rem);
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4 { font-family: 'Barlow Condensed', sans-serif; line-height: 1.06; letter-spacing: 0.01em; }
h2 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; color: var(--white); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; color: var(--white); }
p  { font-size: clamp(0.95rem, 1.3vw, 1.05rem); color: var(--text); }
strong { color: var(--y); font-weight: 600; }

/* ----- UTILITIES ----- */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.5rem, 5vw, 5rem); }
.tag  { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--y); border: 1px solid var(--y); padding: 0.25rem 0.65rem; border-radius: 2px; margin-bottom: 1rem; }
.rule { width: 3rem; height: 3px; background: var(--y); margin-bottom: 1.4rem; }

/* ----- BUTTONS ----- */
.btn { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.85rem 2rem; border-radius: 2px; transition: all 0.2s; cursor: pointer; }
.btn-y { background: var(--y); color: #000; border: 2px solid var(--y); }
.btn-y:hover { background: #fff; border-color: #fff; }
.btn-o { background: transparent; color: var(--y); border: 2px solid var(--y); }
.btn-o:hover { background: var(--y); color: #000; }

/* ----- SECTIONS ----- */
.s0 { background: var(--bg0); padding: var(--gap) 0; scroll-margin-top: 80px; }
.s1 { background: var(--bg1); padding: var(--gap) 0; scroll-margin-top: 80px; }

/* ----- NAV ----- */
#nav { position: fixed; top: 0; inset-inline: 0; z-index: 900; padding: 1.1rem 0; transition: background 0.3s, padding 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
#nav.solid { background: rgba(10,10,10,0.97); backdrop-filter: blur(14px); padding: 0.7rem 0; border-color: rgba(255,255,255,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: none !important; padding-inline: clamp(1.5rem, 3.5vw, 3rem) !important; }
.nav-logo img { height: 52px; width: auto; display: block; }
#nav.solid .nav-logo img { height: 42px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.82); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--y); }
.nav-cta { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--y); border: 2px solid var(--y); padding: 0.55rem 1.4rem; border-radius: 2px; transition: all 0.2s; }
.nav-cta:hover { background: var(--y); color: #000; }

/* ----- HAMBURGER ----- */
.hbg { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.4rem; }
.hbg span { display: block; width: 24px; height: 2px; background: #fff; transition: background 0.2s; }
.hbg:hover span { background: var(--y); }

/* ----- MOBILE MENU ----- */
#mob {
  display: none;
  position: fixed; inset: 0; z-index: 950;
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  flex-direction: column;
  padding: 4.5rem 1.5rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#mob.open { display: flex; }
#mob::before {
  content: 'Menu';
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  position: absolute; top: 1.85rem; left: 1.5rem;
}
#mob-close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  user-select: none;
}
#mob-close:hover, #mob-close:active {
  border-color: var(--y); color: var(--y);
  background: rgba(240,192,32,0.06);
}
#mob a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.45rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.18s, padding-left 0.2s, border-color 0.2s;
}
#mob a:first-of-type { border-top: 1px solid rgba(255,255,255,0.05); }
#mob a:hover, #mob a:active {
  color: var(--y);
  padding-left: 0.6rem;
  border-bottom-color: rgba(240,192,32,0.25);
}
/* Get in Touch — last link styled as CTA pill */
#mob a:last-of-type {
  margin-top: 1.5rem;
  padding: 0.95rem 1.5rem !important;
  border: 2px solid var(--y) !important;
  border-radius: 2px;
  text-align: center;
  font-size: 1.05rem; letter-spacing: 0.12em;
  background: transparent;
  color: var(--y) !important;
  transition: background 0.2s, color 0.2s;
}
#mob a:last-of-type:hover, #mob a:last-of-type:active {
  background: var(--y); color: #000 !important;
  padding-left: 1.5rem !important;
}
/* Subtle stagger on open */
#mob.open a {
  opacity: 0; transform: translateY(8px);
  animation: mob-fade-in 0.32s ease-out forwards;
}
#mob.open a:nth-of-type(1) { animation-delay: 0.04s; }
#mob.open a:nth-of-type(2) { animation-delay: 0.08s; }
#mob.open a:nth-of-type(3) { animation-delay: 0.12s; }
#mob.open a:nth-of-type(4) { animation-delay: 0.16s; }
#mob.open a:nth-of-type(5) { animation-delay: 0.20s; }
#mob.open a:nth-of-type(6) { animation-delay: 0.24s; }
#mob.open a:nth-of-type(7) { animation-delay: 0.28s; }
#mob.open a:nth-of-type(8) { animation-delay: 0.32s; }
@keyframes mob-fade-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #mob.open a { animation: none; opacity: 1; transform: none; }
}

/* ----- FOOTER ----- */
footer { background: #050505; border-top: 1px solid rgba(255,255,255,0.05); padding: 2.25rem 0; text-align: center; }
footer img { height: 90px; margin: 0 auto 1rem; }
footer p { font-size: 0.8rem; color: #444; }
footer span { color: var(--y); }
footer .footer-link {
  color: var(--y);
  transition: color 0.18s;
  border-bottom: 1px solid transparent;
}
footer .footer-link:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }
@media (max-width: 600px) {
  footer img { height: 64px; }
}

/* ----- RESPONSIVE — shared breakpoints ----- */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .hbg { display: flex; }
}
@media (max-width: 1200px) {
  .s0, .s1 { scroll-margin-top: 110px; }
}
@media (max-width: 600px) {
  p  { font-size: 1rem; line-height: 1.7; }
  h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  h3 { font-size: clamp(1.2rem, 5vw, 1.5rem); }
}

/* ----- FLOW NAVIGATION (linear page-to-page progression) ----- */
.flow-nav { background: var(--bg1); border-top: 1px solid rgba(255,255,255,0.06); padding: 3rem 0; }
.flow-nav-top { margin-bottom: 1.25rem; }
.flow-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.flow-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.flow-card { display: flex; align-items: center; justify-content: space-between; background: var(--bg2); border: 1px solid rgba(255,255,255,0.07); border-radius: 3px; padding: 1.4rem 1.75rem; transition: border-color 0.2s, background 0.2s; }
.flow-card:hover { border-color: var(--y); background: rgba(240,192,32,0.04); }
.flow-card-left { display: flex; flex-direction: column; gap: 0.15rem; }
.flow-card-sub { font-family: 'Barlow Condensed', sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.flow-card-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--white); line-height: 1.05; }
.flow-card-arrow { font-size: 1.5rem; color: var(--y); flex-shrink: 0; margin-left: 1rem; }
.flow-cta-row { display: flex; align-items: center; gap: 1.25rem; }
.flow-or { font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #3a3a3a; }

/* flow-nav single-card variant (only one next page) */
.flow-cards.flow-cards--single { grid-template-columns: 1fr; max-width: 480px; }

/* mobile flow nav */
@media (max-width: 640px) {
  .flow-cards { grid-template-columns: 1fr; }
  .flow-cta-row { flex-direction: column; align-items: stretch; }
  .flow-cta-row .btn { text-align: center; width: 100%; }
  .flow-or { display: none; }
}
