/* ============================================================
   ERIK WEIR — Global Stylesheet
   Atlas Connect Solutions · mobile-first
   ============================================================ */

/* ── TOKENS ── */
:root {
  --ivory:      #F8F5F0;
  --cream:      #EDE8DF;
  --cream-dk:   #DDD8CE;
  --gold:       #B8952A;
  --gold-lt:    #D4AF50;
  --gold-pale:  rgba(184,149,42,0.12);
  --charcoal:   #1A1A1A;
  --slate:      #3A3A3A;
  --mist:       #7A7A72;
  --white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --radius: 0;

  --transition: 0.22s ease;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);

  --nav-h: 72px;
  --max-w: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY HELPERS ── */
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: block;
  margin-bottom: 0.85rem;
}
.gold-rule {
  width: 42px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.6rem;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 0.88rem; font-weight: 600; letter-spacing: 0.06em; }
em { font-style: italic; color: var(--gold); }
p { font-size: 1rem; color: var(--mist); font-weight: 300; line-height: 1.85; }
p + p { margin-top: 1rem; }

/* ── LAYOUT HELPERS ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(4rem, 8vw, 8rem) var(--gutter);
}
.section--dark { background: var(--charcoal); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--ivory { background: var(--ivory); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  text-align: center;
}
.btn-primary    { background: var(--charcoal); color: var(--white); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); }
.btn-gold       { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn-outline    { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-light { background: transparent; color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.3); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-white      { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn-white:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ── NAV ── */
#nav-placeholder { position: relative; z-index: 200; }

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(248,245,240,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184,149,42,0.12);
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links .btn-cta {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.55rem 1.4rem;
  transition: background var(--transition);
  border: 1px solid transparent;
}
.nav-links .btn-cta::after { display: none; }
.nav-links .btn-cta:hover { background: var(--gold); color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--charcoal);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  z-index: 199;
  padding: 1.5rem var(--gutter) 2rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .mobile-cta {
  margin-top: 1.2rem;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.9rem;
  text-align: center;
  border-bottom: none;
}
.mobile-nav .mobile-cta:hover { background: var(--gold); color: var(--white); }

/* ── FOOTER ── */
.site-footer {
  background: var(--charcoal);
  padding: clamp(3.5rem, 6vw, 5.5rem) var(--gutter) 0;
  color: rgba(255,255,255,0.4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .nav-logo { color: var(--white); display: inline-block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; color: rgba(255,255,255,0.32); }
.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.footer-col a {
  display: block;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding: 1.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.76rem; color: rgba(255,255,255,0.25); }
.social-links { display: flex; gap: 0.7rem; }
.social-link {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }

/* ── SHARED COMPONENTS ── */

/* Gold accent bar (used on hero images) */
.gold-bar-v {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
}

/* Image placeholder (dev stand-in) */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dk) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
}
.img-placeholder svg { opacity: 0.14; }
.img-placeholder span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 500;
}

/* CTA band */
.cta-band {
  background: var(--gold);
  padding: clamp(3rem, 5vw, 4.5rem) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
}
.cta-band-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  margin-top: 0.4rem;
}

/* Testimonial card */
.testimonial-card {
  background: var(--white);
  padding: 2rem 2rem 1.8rem;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5.5rem;
  color: var(--gold);
  opacity: 0.18;
  position: absolute;
  top: 0.3rem; left: 1.5rem;
  line-height: 1;
  pointer-events: none;
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-top: 1.6rem;
}
.testimonial-author {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 500;
}
.testimonial-role { font-size: 0.72rem; color: var(--mist); margin-top: 0.2rem; }

/* Early enrollment badge */
.early-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.67rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}
.early-badge::before { content: '★'; }

/* Coaching program card */
.program-card {
  border: 1px solid var(--cream);
  padding: 2.5rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.program-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.program-card.featured { background: var(--charcoal); border-color: var(--charcoal); }
.program-card.featured .card-tag   { background: var(--gold); color: var(--white); }
.program-card.featured .card-title { color: var(--white); }
.program-card.featured .card-price { color: var(--white); }
.program-card.featured .card-desc  { color: rgba(255,255,255,0.45); }
.program-card.featured .card-list li { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.08); }
.program-card.featured .card-list li::before { color: var(--gold-lt); }

.card-tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.28rem 0.7rem;
  background: var(--cream);
  color: var(--mist);
  margin-bottom: 1.2rem;
  align-self: flex-start;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.card-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.card-price-sub { font-size: 0.76rem; color: var(--mist); letter-spacing: 0.08em; margin-bottom: 1.4rem; }
.card-desc { font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.75; }
.card-list { flex-grow: 1; margin-bottom: 2rem; }
.card-list li {
  font-size: 0.87rem;
  color: var(--slate);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  line-height: 1.5;
}
.card-list li::before { content: '—'; color: var(--gold); flex-shrink: 0; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Page offset for fixed nav */
.page-body { padding-top: var(--nav-h); }

/* ── FORM STYLES (shared across contact / enroll) ── */
.form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  padding: clamp(1.5rem, 3vw, 2.8rem);
}
.form-wrap--light {
  background: var(--white);
  border: 1px solid var(--cream);
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Dark form variant */
.form-dark label { color: rgba(255,255,255,0.38); }
.form-dark input,
.form-dark select,
.form-dark textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
}
.form-dark input::placeholder,
.form-dark textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-dark input:focus,
.form-dark select:focus,
.form-dark textarea:focus { border-color: var(--gold); }
.form-dark select option { background: var(--charcoal); }

/* Light form variant */
.form-light label { color: var(--mist); }
.form-light input,
.form-light select,
.form-light textarea {
  background: var(--ivory);
  border: 1px solid var(--cream-dk);
  color: var(--charcoal);
}
.form-light input:focus,
.form-light select:focus,
.form-light textarea:focus { border-color: var(--gold); }

.form-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.22);
  text-align: center;
  margin-top: 0.9rem;
  line-height: 1.6;
}
.form-note--light { color: var(--mist); }

/* ── RESPONSIVE BREAKPOINTS ── */

/* Tablet */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --gutter: 1.25rem; }

  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* Footer disclaimer */
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.4rem 0 1.8rem;
  margin-top: 0;
}
.footer-disclaimer p {
  font-size: 0.68rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.18);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
