/* ============================================================
   CALLAN EGGEN COACHING — SHARED STYLESHEET
   ============================================================ */

:root {
  --bg:           #090908;
  --surface:      #0f0f0e;
  --surface-2:    #161615;
  --surface-3:    #1d1d1b;
  --border:       rgba(255,255,255,0.06);
  --border-2:     rgba(255,255,255,0.11);
  --text:         #ece7de;
  --text-muted:   rgba(236,231,222,0.72);
  --text-faint:   rgba(236,231,222,0.38);
  --gold:         #c9a96e;
  --gold-light:   rgba(201,169,110,0.10);
  --gold-mid:     rgba(201,169,110,0.28);
  --white:        #ffffff;
  --black:        #000000;
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif:   'DM Serif Display', serif;
  --font-body:    'Inter', sans-serif;
  --nav-h:        72px;
  --max-w:        1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 56px; }

/* ── NAV ─────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 500;
  transition: background 0.4s, border-color 0.4s;
}
#nav.scrolled {
  background: rgba(9,9,8,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 56px;
  height: var(--nav-h); display: flex;
  align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.45rem;
  letter-spacing: 0.08em; color: var(--text);
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-apply {
  background: var(--gold) !important; color: var(--black) !important;
  padding: 10px 26px; border-radius: 2px; font-weight: 700 !important;
  letter-spacing: 0.12em; transition: opacity 0.2s !important;
}
.nav-apply:hover { opacity: 0.82 !important; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 6px;
}
.nav-burger span { width: 22px; height: 1.5px; background: var(--text); display: block; transition: 0.3s; }
#mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(9,9,8,0.98); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px); z-index: 499;
  padding: 28px 32px 40px; flex-direction: column;
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 15px 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
#mobile-nav a:hover { color: var(--text); }
#mobile-nav .mob-apply {
  margin-top: 20px; background: var(--gold); color: var(--black);
  padding: 15px 24px; text-align: center; border-radius: 2px;
  font-weight: 700; border-bottom: none;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 56px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 56px;
  border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.f-brand-logo {
  font-family: var(--font-display); font-size: 1.5rem;
  letter-spacing: 0.08em; display: block; margin-bottom: 16px;
}
.f-brand-logo span { color: var(--gold); }
.f-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.f-brand-email { font-size: 0.8rem; color: var(--gold); transition: opacity 0.2s; }
.f-brand-email:hover { opacity: 0.75; }
.f-social { display: flex; gap: 14px; margin-top: 16px; }
.f-social a {
  width: 34px; height: 34px; border: 1px solid var(--border-2);
  border-radius: 2px; display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); transition: border-color 0.2s, color 0.2s;
}
.f-social a:hover { border-color: var(--gold); color: var(--gold); }
.f-social svg { width: 15px; height: 15px; }
.f-col h4 {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 20px;
}
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.f-col ul a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.f-col ul a:hover { color: var(--text); }
.f-newsletter-label {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 20px;
}
.f-newsletter-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.f-form { display: flex; }
.f-form input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border);
  border-right: none; color: var(--text); font-family: var(--font-body);
  font-size: 0.8rem; padding: 12px 14px; outline: none;
  border-radius: 2px 0 0 2px; transition: border-color 0.2s;
}
.f-form input::placeholder { color: var(--text-faint); }
.f-form input:focus { border-color: var(--gold-mid); }
.f-form button {
  background: var(--gold); color: var(--black); border: none;
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 12px 18px; cursor: pointer; border-radius: 0 2px 2px 0;
  transition: opacity 0.2s; white-space: nowrap;
}
.f-form button:hover { opacity: 0.85; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding: 0 56px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom small { font-size: 0.7rem; color: var(--text-faint); letter-spacing: 0.06em; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--font-body);
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; border-radius: 2px; position: relative;
  transition: opacity 0.2s, transform 0.18s, border-color 0.2s; cursor: pointer; border: none;
  overflow: hidden;
}
.btn:active { transform: scale(0.98); }
.btn-gold  { background: var(--gold); color: var(--black); padding: 16px 40px; }
.btn-gold:hover { opacity: 0.83; transform: translateY(-1px); }
.btn-gold-lg { background: var(--gold); color: var(--black); padding: 20px 56px; font-size: 0.76rem; }
.btn-gold-lg:hover { opacity: 0.83; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); padding: 16px 40px; border: 1px solid var(--border-2); }
.btn-outline:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.03); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--black); padding: 16px 40px; }
.btn-white:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── TYPOGRAPHY HELPERS ──────────────────────────────────── */
.eyebrow {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); flex-shrink: 0; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ''; width: 24px; height: 1px; background: var(--gold); flex-shrink: 0; }
.display-xl {
  font-family: var(--font-display); line-height: 0.93;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text);
  font-size: clamp(3.5rem, 7.5vw, 8rem);
}
.display-lg {
  font-family: var(--font-display); line-height: 0.93;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text);
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
}
.display-md {
  font-family: var(--font-display); line-height: 0.95;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text);
  font-size: clamp(2.2rem, 4vw, 4rem);
}
.serif-lg {
  font-family: var(--font-serif); font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  line-height: 1.15; color: var(--text);
}
.serif-md {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  line-height: 1.2; color: var(--text);
}
.lead { font-size: 1.05rem; color: var(--text-muted); line-height: 1.85; }
.body-sm { font-size: 0.875rem; color: var(--text-muted); line-height: 1.8; }
.gold-text { color: var(--gold); }

/* ── GRAIN ───────────────────────────────────────────────── */
.grain { position: relative; }
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 2; }

/* ── IMG PLACEHOLDER ─────────────────────────────────────── */
.img-ph {
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  color: rgba(255,255,255,0.13); overflow: hidden; position: relative;
}
.img-ph::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.04) 0%, transparent 60%);
}
.img-ph svg { opacity: 0.25; }
.img-ph span {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; position: relative;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.75s ease, transform 0.75s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.8s ease; }
.fade-in.in { opacity: 1; }
/* Hero (first section of every page) must paint immediately — entrance animations above the fold delay LCP by seconds on mobile */
main > section:first-of-type .fade-up, main > section:first-of-type .fade-in { opacity: 1; transform: none; transition: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.45s; }

/* accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .fade-up, .fade-in { opacity: 1; transform: none; }
}

/* ── STICKY MOBILE CTA ───────────────────────────────────── */
.sticky-apply {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 400; padding: 14px 20px;
  background: rgba(9,9,8,0.96); border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.sticky-apply a {
  display: block; text-align: center; background: var(--gold);
  color: var(--black); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 15px 24px; border-radius: 2px;
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.gold-rule { width: 40px; height: 1px; background: var(--gold); }
.gold-rule.center { margin: 0 auto; }

/* ── SECTION SPACING ─────────────────────────────────────── */
.py-xl { padding-top: 120px; padding-bottom: 120px; }
.py-lg { padding-top: 96px;  padding-bottom: 96px;  }
.py-md { padding-top: 72px;  padding-bottom: 72px;  }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav-inner { padding: 0 32px; }
  .footer-grid { padding: 0 32px 56px; grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding: 0 32px; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .sticky-apply { display: block; }
  .footer-grid { padding: 0 20px 48px; grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { padding: 0 20px; }
  .py-xl { padding-top: 72px; padding-bottom: 72px; }
  .py-lg { padding-top: 60px; padding-bottom: 60px; }
}

/* ── MOBILE CARD CAROUSELS ───────────────────────────────
   On phones, card grids become horizontal swipe carousels
   instead of stacking into one very tall column. */
.m-carousel-hint { display: none; }
@media (max-width: 768px) {
  .m-carousel {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    background: none !important;
    border: none !important;
    padding: 2px 2px 10px;
    scrollbar-width: none;
  }
  .m-carousel::-webkit-scrollbar { display: none; }
  .m-carousel > * {
    flex: 0 0 86%;
    min-width: 86%;
    scroll-snap-align: center;
    border: 1px solid var(--border);
    padding: 36px 28px !important;
  }
  .m-carousel-hint {
    display: block;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-faint);
    text-align: right; margin-bottom: 10px;
  }
}
@media (max-width: 768px) {
  .m-carousel-hint { margin-top: 48px; }
  .m-carousel-hint + .tg-grid { margin-top: 0; }

  /* Service cards: force single column (overrides inline style) */
  .svc-cards { grid-template-columns: 1fr !important; }

  /* Tighten paragraph text throughout — targets inline line-height values */
  p { line-height: 1.65 !important; }
  li { line-height: 1.55; }

  /* Reduce lead text size slightly */
  .lead { font-size: 0.875rem; line-height: 1.7 !important; }

  /* Carousel card body text */
  .m-carousel > * p { font-size: 0.82rem !important; line-height: 1.6 !important; }

  /* Testimonial quotes */
  .tf-quote { font-size: 1rem; line-height: 1.6; }
  .tf-mini-q { font-size: 0.82rem; line-height: 1.6; }
  .t-wide-quote { font-size: 0.95rem; line-height: 1.6; }
  .t-quote { font-size: 0.875rem; line-height: 1.6; }
  .ft-quote { font-size: 1rem !important; line-height: 1.6; }
  .ft-content { padding: 36px 20px !important; }

  /* Who list items */
  .who-list li { font-size: 0.82rem; }
}
