/*
Theme Name:   Coterie Athletics Child
Theme URI:    https://coterie-athletics.com
Description:  Coterie Athletics child theme for Astra. Contains the full design system
              that mirrors the iOS app's visual language.
Author:       Coterie Athletics
Author URI:   https://coterie-athletics.com
Template:     astra
Version:      1.0.0
Tags:         coterie-athletics-com
Text Domain:  coterie-athletics-child
*/

/* ============================================================
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES
   Mirrors the iOS app's visual language (Coterie Blue, Inter font,
   12px radius, 4px spacing base unit)
   ============================================================ */

:root {
  /* --- Colors --- */
  --coterie-blue:        #0A89DE;
  --coterie-blue-dark:   #0872B8;
  --coterie-blue-darker: #065A90;
  --coterie-blue-light:  #E8F4FD;
  --coterie-blue-tint:   #D0EAFB;

  --text-primary:        #1A1A2E;
  --text-secondary:      #6B7280;
  --text-tertiary:       #9CA3AF;
  --text-on-primary:     #FFFFFF;

  --surface-white:       #FFFFFF;
  --surface-light:       #F5F7FA;
  --surface-medium:      #EEF2F7;
  --surface-dark:        #1A1A2E;  /* Dark section backgrounds */

  --border-light:        #E5E7EB;
  --border-medium:       #D1D5DB;

  --success:             #34C759;
  --warning:             #FF9500;
  --error:               #FF3B30;

  /* --- Typography --- */
  --font-family:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  2rem;       /* 32px */
  --text-4xl:  2.5rem;     /* 40px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.5rem;     /* 56px */
  --text-7xl:  4rem;       /* 64px */

  --leading-tight:  1.1;
  --leading-snug:   1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  --weight-regular:    400;
  --weight-medium:     500;
  --weight-semibold:   600;
  --weight-bold:       700;
  --weight-extrabold:  800;

  /* --- Spacing (4px base) --- */
  --space-1:   0.25rem;   /* 4px  */
  --space-2:   0.5rem;    /* 8px  */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-24:  6rem;      /* 96px */

  /* --- Border Radius (matches iOS) --- */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* --- Shadows (matches iOS card elevation) --- */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg:  0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl:  0 8px 40px rgba(0, 0, 0, 0.16);

  /* --- Transitions --- */
  --transition-fast:   150ms ease;
  --transition-base:   200ms ease;
  --transition-slow:   300ms ease;

  /* --- Layout --- */
  --container-max:   1200px;
  --section-pad-y:   5rem;      /* 80px desktop */
  --section-pad-y-sm: 3rem;     /* 48px mobile */
}


/* ============================================================
   BASE RESET & GLOBAL
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  background-color: var(--surface-white);
  margin: 0;
  padding: 0;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--coterie-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--coterie-blue-dark);
}


/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--text-primary);
  margin-top: 0;
  line-height: var(--leading-snug);
}

h1 { font-size: var(--text-5xl); font-weight: var(--weight-extrabold); }
h2 { font-size: var(--text-3xl); font-weight: var(--weight-bold); }
h3 { font-size: var(--text-2xl); font-weight: var(--weight-semibold); }
h4 { font-size: var(--text-xl);  font-weight: var(--weight-semibold); }
h5 { font-size: var(--text-lg);  font-weight: var(--weight-semibold); }
h6 { font-size: var(--text-base); font-weight: var(--weight-semibold); }

p {
  margin-top: 0;
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.text-display {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
}

.text-lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.text-primary-color { color: var(--text-primary) !important; }
.text-secondary-color { color: var(--text-secondary) !important; }
.text-white { color: var(--surface-white) !important; }
.text-blue { color: var(--coterie-blue) !important; }


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.section--light { background-color: var(--surface-light); }
.section--dark  { background-color: var(--surface-dark); color: var(--surface-white); }
.section--blue  { background-color: var(--coterie-blue); color: var(--surface-white); }

.section-title {
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-8);
  height: 48px;
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-fast),
              box-shadow var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary */
.btn-primary {
  background-color: var(--coterie-blue);
  color: var(--surface-white);
  border-color: var(--coterie-blue);
}

.btn-primary:hover {
  background-color: var(--coterie-blue-dark);
  border-color: var(--coterie-blue-dark);
  color: var(--surface-white);
  box-shadow: var(--shadow-md);
}

/* Secondary / Outlined */
.btn-secondary {
  background-color: #ffffff;
  color: var(--coterie-blue);
  border-color: var(--coterie-blue);
}

.btn-secondary:hover {
  background-color: var(--coterie-blue-light);
  color: var(--coterie-blue-dark);
  border-color: var(--coterie-blue-dark);
}

/* Ghost (for dark / blue backgrounds) */
.btn-ghost {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--surface-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: var(--surface-white);
  border-color: var(--surface-white);
}

/* Sizes */
.btn-lg {
  height: 56px;
  padding: 0 var(--space-12);
  font-size: var(--text-lg);
}

.btn-sm {
  height: 36px;
  padding: 0 var(--space-6);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
}

/* Button group */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}


/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.card--outlined {
  box-shadow: none;
  border: 1px solid var(--border-light);
}

.card--outlined:hover {
  border-color: var(--coterie-blue);
  box-shadow: var(--shadow-sm);
  transform: none;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background-color: var(--coterie-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.card-icon svg,
.card-icon img {
  width: 28px;
  height: 28px;
  color: var(--coterie-blue);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.card-body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}


/* ============================================================
   FEATURE GRID (3-column value prop sections)
   ============================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.feature-item {
  text-align: center;
}

.feature-item .card-icon {
  margin-left: auto;
  margin-right: auto;
}

.feature-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--coterie-blue);
  color: var(--surface-white);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin: 0 auto var(--space-6);
  flex-shrink: 0;
}


/* ============================================================
   SPORT STRIP
   ============================================================ */

.sports-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding: var(--space-8) 0;
}

.sport-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.sport-badge img,
.sport-badge svg {
  width: 48px;
  height: 48px;
}

.sport-badge span {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ============================================================
   STEPS / HOW IT WORKS
   ============================================================ */

.steps {
  display: flex;
  gap: var(--space-8);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(var(--space-6) + 20px);
  right: calc(var(--space-6) + 20px);
  height: 2px;
  background: var(--border-medium);
  z-index: 0;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--coterie-blue);
  color: var(--surface-white);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.step-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.step-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 0;
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  padding-top: calc(var(--section-pad-y) * 1.5);
  padding-bottom: var(--section-pad-y);
  background: linear-gradient(135deg, #0A1628 0%, #0A89DE 65%, #0652A0 100%);
  position: relative;
  overflow: hidden;
}

/* Dot grid texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.10) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}


.hero .container {
  position: relative;
  z-index: 1;
}

.hero .hero-title {
  color: #ffffff;
}

.hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.80);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-title {
  font-size: clamp(var(--text-4xl), 4vw, var(--text-6xl));
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.hero-visual img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}


/* ============================================================
   CTA BANNER (full-width blue section)
   ============================================================ */

.cta-banner {
  background: linear-gradient(135deg, #0A1628 0%, #0A89DE 60%, #0652A0 100%);
  text-align: center;
  padding: var(--section-pad-y) var(--space-6);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--surface-white);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}


/* ============================================================
   TRUST SIGNALS
   ============================================================ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}

.trust-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--coterie-blue-light);
}

.trust-name {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  font-size: var(--text-base);
}

.trust-role {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.trust-quote {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0;
}

/* ============================================================
   TEXT HIGHLIGHT (inline blue accent in headings)
   ============================================================ */

.text-highlight {
  color: var(--coterie-blue);
  position: relative;
  display: inline-block;
}

/* On dark hero backgrounds, use a lighter tint */
.hero .text-highlight {
  color: #7DD3FC;
}


/* ============================================================
   STATS STRIP
   ============================================================ */

.stats-strip {
  background: var(--surface-white);
  padding: var(--space-12) var(--space-6);
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.stat-number {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-extrabold);
  color: var(--coterie-blue);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}


/* ============================================================
   GUIDE CARDS (User Guides page)
   ============================================================ */

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.guide-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
}

.guide-card-body {
  flex: 1;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.guide-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(6, 82, 160, 0.10);
  color: var(--coterie-blue);
}

.guide-tag--host {
  background: rgba(10, 137, 222, 0.12);
  color: #0A89DE;
}

.guide-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--coterie-blue);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.guide-download-btn:hover {
  opacity: 0.7;
}

/* Active nav link highlight */
.coterie-nav .nav-links a.active {
  color: #fff !important;
  font-weight: var(--weight-semibold);
  border-bottom: 2px solid rgba(255,255,255,0.6);
  padding-bottom: 2px;
}

/* ============================================================
   SECTION WATERMARK (large faded logo on white-bg sections)
   ============================================================ */

.has-watermark {
  position: relative !important;
  overflow: hidden !important;
}

.has-watermark > .container {
  position: relative;
  z-index: 1;
}

.section-watermark {
  position: absolute;
  right: -8%;
  bottom: -20%;
  width: 110%;
  max-width: 1120px;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.section-watermark img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.10;
  filter: grayscale(100%);
}

@media (max-width: 768px) {
  .section-watermark {
    width: 160%;
    right: -20%;
    bottom: -6%;
  }
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(32px);
}

[data-animate].is-visible {
  animation: fadeInUp 0.6s ease forwards;
}

[data-animate]:nth-child(2) { animation-delay: 0.1s; }
[data-animate]:nth-child(3) { animation-delay: 0.2s; }

/* Cards inside animated sections stagger */
[data-animate].is-visible .card:nth-child(1) { animation: fadeInUp 0.5s 0.05s ease both; }
[data-animate].is-visible .card:nth-child(2) { animation: fadeInUp 0.5s 0.15s ease both; }
[data-animate].is-visible .card:nth-child(3) { animation: fadeInUp 0.5s 0.25s ease both; }


/* App Store badge */
.app-store-badge {
  display: inline-block;
}

.app-store-badge img {
  height: 48px;
  width: auto;
}


/* ============================================================
   CUSTOM NAVIGATION (standalone — used by content page templates)
   Frosted glass + glowing CTA. High specificity + !important to
   override Astra global styles.
   ============================================================ */

/* Glow pulse for "Become a Host" CTA in nav */
@keyframes navCtaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10, 137, 222, 0.55), 0 2px 8px rgba(10,137,222,0.35); }
  50%       { box-shadow: 0 0 0 7px rgba(10, 137, 222, 0), 0 2px 8px rgba(10,137,222,0.35); }
}

.coterie-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  /* Solid dark navy */
  background: #0A1628 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35) !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* Circle logo watermark in nav — right-aligned, 25% opacity */
.coterie-nav::after {
  content: '' !important;
  position: absolute !important;
  right: -2% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 17% !important;
  max-width: 225px !important;
  aspect-ratio: 1 / 1 !important;
  background-image: url('https://coterie-athletics.com/img_lib/coterie-circle-simple-black-logo1.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
  opacity: 0.15 !important;
  filter: invert(1) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.coterie-nav .nav-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 240px !important;
  gap: 2rem !important;
  max-width: var(--container-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.coterie-nav .nav-logo {
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  color: #ffffff !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.coterie-nav .nav-logo:hover { opacity: 0.85 !important; }

/* Logo image — readable height, auto width */
.coterie-nav .nav-logo img {
  max-height: 216px !important;
  max-width: 720px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.55)) drop-shadow(0 0 14px rgba(255,255,255,0.25)) !important;
  transition: filter 0.25s ease !important;
}

.coterie-nav .nav-logo:hover img {
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.75)) drop-shadow(0 0 20px rgba(255,255,255,0.35)) !important;
}

/* Nav links — horizontal row, no bullets */
.coterie-nav .nav-links {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 2rem !important;
  flex: 1 !important;
  align-items: center !important;
}

.coterie-nav .nav-links li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

.coterie-nav .nav-links li::before {
  display: none !important;
  content: none !important;
}

/* Animated underline on nav links */
.coterie-nav .nav-links a {
  color: rgba(255,255,255,0.75) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  padding-bottom: 3px !important;
  position: relative !important;
  transition: color 0.2s ease !important;
}

.coterie-nav .nav-links a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: #0A89DE !important;
  border-radius: 2px !important;
  transition: width 0.25s ease !important;
}

.coterie-nav .nav-links a:hover {
  color: #ffffff !important;
}

.coterie-nav .nav-links a:hover::after {
  width: 100% !important;
}

.coterie-nav .nav-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex-shrink: 0 !important;
}

/* Glowing "Become a Host" CTA button */
.coterie-nav .nav-actions .btn-primary {
  animation: navCtaGlow 2.4s ease-in-out infinite !important;
}

/* "Download App" in nav — white bg, coterie blue text/border */
.coterie-nav .nav-actions .btn-secondary {
  background-color: #ffffff !important;
  color: var(--coterie-blue) !important;
  border-color: var(--coterie-blue) !important;
}

.coterie-nav .nav-actions .btn-secondary:hover {
  background-color: var(--coterie-blue-light) !important;
  color: var(--coterie-blue-dark) !important;
  border-color: var(--coterie-blue-dark) !important;
}

.coterie-nav .nav-hamburger {
  display: none !important;
  background: none !important;
  border: none !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  color: #ffffff !important;
  padding: 0.5rem !important;
  line-height: 1 !important;
}

@media (max-width: 768px) {
  .coterie-nav .nav-links,
  .coterie-nav .nav-actions {
    display: none !important;
    position: absolute !important;
    top: 160px !important;
    left: 0 !important;
    right: 0 !important;
    background: #0A1628 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    padding: 1rem 1.5rem !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
    z-index: 9998 !important;
  }

  .coterie-nav .nav-links {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .coterie-nav .nav-actions {
    flex-direction: column !important;
    padding-top: 0 !important;
    align-items: stretch !important;
  }

  .coterie-nav .nav-links.open,
  .coterie-nav .nav-actions.open {
    display: flex !important;
  }

  .coterie-nav .nav-hamburger { display: block !important; }
  .coterie-nav .nav-links:not(.open),
  .coterie-nav .nav-actions:not(.open) { display: none !important; }

  .nav-links.open,
  .nav-actions.open {
    display: flex;
  }

  .nav-hamburger { display: block; }
}

/* Astra header overrides (still needed for pages that use get_header) */
.site-header {
  border-bottom: 1px solid var(--border-light);
}

.ast-menu-item-cta > a {
  background-color: var(--coterie-blue) !important;
  color: var(--surface-white) !important;
  border-radius: var(--radius-lg) !important;
  border: 2px solid var(--coterie-blue) !important;
  padding: 0.5rem 1.5rem !important;
  font-weight: var(--weight-semibold) !important;
  transition: background-color var(--transition-base), border-color var(--transition-base) !important;
}

.ast-menu-item-cta > a:hover {
  background-color: var(--coterie-blue-dark) !important;
  border-color: var(--coterie-blue-dark) !important;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--surface-dark);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}

/* Circle logo watermark in footer — right-aligned, 25% opacity */
.site-footer::after {
  content: '';
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  width: 26%;
  max-width: 290px;
  aspect-ratio: 1 / 1;
  background-image: url('https://coterie-athletics.com/img_lib/coterie-circle-simple-black-logo1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0.15;
  filter: invert(1);
  pointer-events: none;
  z-index: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  position: relative;
  z-index: 1;
}

.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}

.footer-col h4 {
  color: var(--surface-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: var(--space-2);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--surface-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.social-links {
  display: flex;
  gap: var(--space-4);
}

.social-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--surface-white);
}


/* ============================================================
   FAQ SECTION
   ============================================================ */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-6) 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  cursor: pointer;
}

.faq-answer {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}


/* ============================================================
   CHECKLIST
   ============================================================ */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background-color: var(--coterie-blue-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230A89DE'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Prevent horizontal scroll globally */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Responsive 2-column grid — used on Sports, Contact, About pages */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.grid-2col-asymmetric {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  align-items: start;
}

/* Sport image placeholder blocks */
.sport-img-block {
  background: var(--coterie-blue-light);
  border-radius: var(--radius-2xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    flex-direction: column;
    gap: var(--space-6);
  }

  .steps::before {
    display: none;
  }

  .grid-2col,
  .grid-2col-asymmetric {
    gap: var(--space-10);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: var(--section-pad-y-sm);
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-visual {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    justify-content: center;
  }

  .cta-banner h2 {
    font-size: var(--text-3xl);
  }

  /* Stack 2-col grids on mobile */
  .grid-2col,
  .grid-2col-asymmetric {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Reset visual order on mobile — image always below text */
  .grid-2col > *:last-child,
  .grid-2col-asymmetric > *:last-child {
    order: unset;
  }

  .sport-img-block {
    display: none; /* Hide placeholder blocks on mobile — text-only is cleaner */
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .sports-strip {
    gap: var(--space-6);
  }
}
