/* =========================================================
   USA Dance Erie Chapter 3032 – Shared Stylesheet (v2)
   Schwab-inspired mega-menu nav, real chapter voice
   ========================================================= */

:root {
  --color-navy:       #0b2545;
  --color-navy-dark:  #061a33;
  --color-blue:       #1d4e89;
  --color-blue-light: #e7eef7;
  --color-gold:       #d4a437;
  --color-gold-dark:  #a97f1d;
  --color-gold-light: #f5e6b3;
  --color-red:        #b3261e;
  --color-white:      #ffffff;
  --color-offwhite:   #f8f9fb;
  --color-text:       #1f2937;
  --color-text-soft:  #4b5563;
  --color-border:     #e2e6ed;

  --font-sans: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', 'Georgia', serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;

  --max-width: 1240px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 4px 14px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 12px 32px rgba(11, 37, 69, 0.18);

  --transition: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-navy); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 var(--space-md);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 var(--space-md); }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--color-offwhite); }
.section-navy {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
}
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--color-white); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-navy); color: var(--color-white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-navy-dark); color: var(--color-white); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--color-gold); color: var(--color-navy-dark); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--color-gold-dark); color: var(--color-white); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-outline:hover { background: var(--color-navy); color: var(--color-white); }
.btn-outline-light { background: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn-outline-light:hover { background: var(--color-white); color: var(--color-navy); }

/* Utility bar (above main header) */
.utility-bar { background: var(--color-navy-dark); color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.utility-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.utility-left { color: rgba(255,255,255,0.75); }
.utility-right { display: flex; gap: var(--space-lg); align-items: center; }
.utility-right a { color: rgba(255,255,255,0.9); font-weight: 500; }
.utility-right a:hover { color: var(--color-gold); text-decoration: none; }

/* Announcement banner */
.announcement {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  text-align: center;
  padding: 0.65rem var(--space-md);
  font-size: 0.92rem;
  font-weight: 500;
}
.announcement strong { margin-right: 0.3rem; }
.announcement a { color: var(--color-navy-dark); text-decoration: underline; margin-left: 0.3rem; font-weight: 700; }

/* Header */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  gap: var(--space-md);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--color-navy); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.brand-text { line-height: 1.15; }
.brand-title { font-weight: 700; font-size: 1.05rem; color: var(--color-navy); }
.brand-sub { font-size: 0.72rem; color: var(--color-text-soft); letter-spacing: 0.05em; text-transform: uppercase; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--color-navy);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
}

/* Main nav (Schwab-style mega-menu) */
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; align-items: center; }
.main-nav > ul > li { position: static; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.7rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.96rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--color-navy);
  background: var(--color-blue-light);
  text-decoration: none;
}
.main-nav .has-mega > a::after { content: '▾'; font-size: 0.7rem; margin-left: 0.2rem; opacity: 0.6; }

.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition);
  z-index: 99;
}
.main-nav .has-mega:hover .mega,
.main-nav .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}
.mega-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-gold);
}
.mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-col li { margin-bottom: 0.1rem; }
.mega-col a {
  display: block;
  padding: 0.45rem 0;
  color: var(--color-text);
  font-size: 0.94rem;
  font-weight: 500;
  border-radius: 4px;
  transition: color var(--transition);
}
.mega-col a:hover { color: var(--color-blue); text-decoration: none; }
.mega-col .item-sub { display: block; font-size: 0.82rem; color: var(--color-text-soft); font-weight: 400; margin-top: 0.1rem; }
.mega-feature {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
  color: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius);
}
.mega-feature h4 { color: var(--color-gold); border-bottom: 0; padding-bottom: 0; margin-bottom: 0.4rem; }
.mega-feature p { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-bottom: 0.75rem; }
.mega-feature a.mega-cta { display: inline-block; color: var(--color-gold); font-weight: 600; font-size: 0.9rem; }
.mega-feature a.mega-cta::after { content: ' →'; }
.mega-feature a.mega-cta:hover { color: var(--color-gold-light); text-decoration: none; }

.nav-cta-btn {
  margin-left: 0.3rem;
  padding: 0.55rem 1rem !important;
  background: var(--color-gold) !important;
  color: var(--color-navy-dark) !important;
  font-weight: 700 !important;
  border-radius: var(--radius) !important;
}
.nav-cta-btn:hover { background: var(--color-gold-dark) !important; color: var(--color-white) !important; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
  color: var(--color-white);
  padding: var(--space-2xl) 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212, 164, 55, 0.22), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(29, 78, 137, 0.45), transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.hero h1 { color: var(--color-white); margin-bottom: var(--space-md); }
.hero-lede { font-size: 1.2rem; line-height: 1.55; margin-bottom: var(--space-lg); color: rgba(255,255,255,0.92); }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-lg);
}
.page-hero h1 { color: var(--color-white); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 680px; margin: 0; }
.breadcrumbs { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: var(--space-sm); }
.breadcrumbs a { color: rgba(255,255,255,0.9); }

/* Cards */
.card-grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--color-blue); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-blue-light);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-text-soft); flex: 1; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: var(--space-sm);
  font-weight: 600;
  color: var(--color-blue);
}
.card-link::after { content: '→'; transition: transform var(--transition); }
.card:hover .card-link::after { transform: translateX(4px); }

/* Placeholders */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-blue-light) 0%, #d8e3f2 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  font-weight: 500;
  font-size: 0.9rem;
  border: 2px dashed rgba(29, 78, 137, 0.3);
  text-align: center;
  padding: 1rem;
}
.img-placeholder.square { aspect-ratio: 1 / 1; }
.img-placeholder.tall { aspect-ratio: 3 / 4; }

/* Two-column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.two-col.reverse > *:first-child { order: 2; }

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 0.6rem 0 0.6rem 2rem; position: relative; border-bottom: 1px solid var(--color-border); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 22px;
  height: 22px;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Tables */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.schedule-table th, .schedule-table td { padding: 0.95rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.schedule-table th {
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table tr:nth-child(even) td { background: var(--color-offwhite); }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--color-blue-light); color: var(--color-navy); }
.badge.gold { background: var(--color-gold-light); color: #8a6812; }
.badge.red { background: #fde1df; color: var(--color-red); }

/* Pricing cards */
.price-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--color-gold);
  background: linear-gradient(180deg, #fffbf0 0%, var(--color-white) 100%);
  position: relative;
}
.price-card.featured::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-navy-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}
.price-card h3 { margin-bottom: 0.5rem; }
.price-amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin: var(--space-sm) 0;
}
.price-amount small { font-size: 1rem; font-weight: 500; color: var(--color-text-soft); }
.price-detail { color: var(--color-text-soft); font-size: 0.9rem; }
.price-card ul { list-style: none; padding: 0; margin: var(--space-md) 0; text-align: left; flex: 1; }
.price-card ul li { padding: 0.4rem 0 0.4rem 1.5rem; position: relative; font-size: 0.95rem; }
.price-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--color-gold); font-weight: 700; }

/* Forms */
.form-card {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  max-width: 720px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; color: var(--color-navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 0;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 137, 0.18);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group .hint { font-size: 0.83rem; color: var(--color-text-soft); margin-top: 0.3rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: var(--space-sm); }
.checkbox-row input { width: auto; margin-top: 0.3rem; }
.checkbox-row label { font-weight: 400; color: var(--color-text); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-md); }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Mission quote */
.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  color: var(--color-navy);
  max-width: 820px;
  margin: 0 auto;
  border-left: 4px solid var(--color-gold);
  padding-left: var(--space-lg);
  font-style: italic;
}
.section-navy .mission-quote { color: var(--color-white); }

/* Footer */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.85);
  padding: var(--space-2xl) 0 var(--space-md);
  margin-top: var(--space-2xl);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.site-footer h4 {
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.site-footer a:hover { color: var(--color-gold); text-decoration: none; }
.footer-brand { max-width: 340px; }
.footer-brand p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Utilities */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }

/* Responsive */
@media (max-width: 1024px) {
  .mega-inner { grid-template-columns: 1fr 1fr 1fr; }
  .mega-col.mega-feature { grid-column: span 3; }
}

@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-lg); }
  .two-col.reverse > *:first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .utility-bar { display: none; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: none;
    max-height: 80vh;
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-sm); }
  .main-nav > ul > li > a { padding: 0.8rem 1rem; justify-content: space-between; }
  .main-nav .has-mega > a::after { content: '+'; font-size: 1.2rem; }
  .main-nav .has-mega.open > a::after { content: '−'; }

  .mega {
    position: static;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--color-border);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: var(--color-offwhite);
  }
  .main-nav .has-mega.open .mega { display: block; }
  .mega-inner { grid-template-columns: 1fr; gap: var(--space-md); padding: var(--space-md); }
  .mega-col.mega-feature { grid-column: span 1; }
  .nav-cta-btn { margin: 0.5rem 0 0 !important; display: block; text-align: center; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-ctas .btn { width: 100%; }
  .section, .hero { padding: var(--space-xl) 0; }
}
