/* === VARIABLES === */
:root {
  --navy: #0a1628;
  --navy-light: #152238;
  --gold: #c9a84c;
  --gold-light: #e0c97f;
  --white: #ffffff;
  --off-white: #f8f6f0;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --max-width: 1200px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--navy); line-height: 1.7; background: var(--white); }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

/* === NAV === */
.main-nav { background: var(--navy); padding: 0; position: sticky; top: 0; z-index: 100; border-bottom: 2px solid var(--gold); }
.nav-container { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 1.5rem; }
.nav-logo { display: flex; align-items: center; padding: 1rem 0; }
.nav-name { color: var(--gold); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links li a { color: var(--white); padding: 1.2rem 0.8rem; display: block; font-size: 0.85rem; font-weight: 400; letter-spacing: 0.02em; transition: background 0.2s, color 0.2s; }
.nav-links li a:hover, .nav-links li a.active { color: var(--gold); background: rgba(201,168,76,0.1); }
.nav-cta { background: var(--gold) !important; color: var(--navy) !important; font-weight: 600 !important; border-radius: 4px; margin-left: 0.5rem; }
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }

/* === HERO === */
.hero { background: var(--navy); color: var(--white); padding: 8rem 1.5rem 6rem; text-align: center; position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: center; background-image: linear-gradient(rgba(10,22,40,0.6), rgba(10,22,40,0.8)), url("https://kevinphillipjohnson.atl1.cdn.digitaloceanspaces.com/431E7B33-3768-460D-9B58-1BA82A45372D_1_105_c.jpeg"); background-size: cover; background-position: center calc(40% - 450px); }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%); }
.hero-content { position: relative; max-width: 800px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1rem; color: var(--gold); }
.hero-tagline { font-size: 1rem; color: var(--gold-light); margin-bottom: 1rem; letter-spacing: 0.1em; font-weight: 300; }
.hero-intro { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === BUTTONS === */
.btn { display: inline-block; padding: 0.75rem 2rem; border-radius: 4px; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; cursor: pointer; border: none; text-align: center; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-full { width: 100%; }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-link { background: none; border: none; color: var(--white); cursor: pointer; font-size: 0.85rem; }

/* === SECTIONS === */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--off-white); }
.container { max-width: var(--max-width); margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 3rem; color: var(--navy); position: relative; }
.section-title::after { content: ""; display: block; width: 60px; height: 3px; background: var(--gold); margin: 1rem auto 0; }
.section-cta { text-align: center; margin-top: 2.5rem; }
.text-center { text-align: center; max-width: 700px; margin-left: auto; margin-right: auto; }
.empty-state { text-align: center; color: var(--gray); font-style: italic; padding: 2rem; }

/* === PAGE HERO === */
.page-hero { background: var(--navy); color: var(--gold); padding: 4rem 1.5rem 3rem; text-align: center; }
.hero-ggs { padding: 5rem 1.5rem 4rem; }

/* === CARDS === */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.three-col { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--white); border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--gray-light); }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-meta { color: var(--gray); font-size: 0.9rem; margin-bottom: 0.5rem; }
.card-badge { display: inline-block; background: var(--gold); color: var(--navy); padding: 0.2rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* === RECORDING CARDS === */
.recording-card { display: grid; grid-template-columns: 200px 1fr; }
.recording-cover { background: var(--navy-light); display: flex; align-items: center; justify-content: center; min-height: 200px; }
.recording-links { display: flex; gap: 1rem; margin-top: 1rem; }
.recording-links a { color: var(--gold); font-weight: 500; font-size: 0.9rem; }

/* === EVENTS === */
.event-card { display: flex; gap: 1.5rem; padding: 1.5rem; background: var(--white); border-radius: 8px; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid var(--gray-light); }
.event-card.past { opacity: 0.7; }
.event-date-badge { min-width: 70px; text-align: center; background: var(--navy); color: var(--gold); border-radius: 8px; padding: 0.75rem; display: flex; flex-direction: column; justify-content: center; }
.event-month { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.event-day { font-size: 1.8rem; font-weight: 700; font-family: var(--font-display); }
.event-details h3 { margin-bottom: 0.25rem; }

/* === SERVICES === */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.service-card { background: var(--white); border-radius: 8px; padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid var(--gray-light); text-align: center; transition: transform 0.2s; }
.service-card:hover { transform: translateY(-4px); }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { margin-bottom: 0.75rem; color: var(--navy); }
.service-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* === BIOGRAPHY === */
.bio-layout { display: grid; grid-template-columns: 350px 1fr; gap: 3rem; align-items: start; }
.bio-image { position: sticky; top: 100px; }
.bio-text h2 { margin-bottom: 1.5rem; color: var(--navy); }
.bio-text p { margin-bottom: 1rem; }
.credentials-list { margin: 1.5rem 0; padding-left: 1.5rem; list-style: disc; }
.credentials-list li { margin-bottom: 0.5rem; color: var(--gray); }

/* === GOLDEN GATE SINGERS === */
.ggs-story { max-width: 800px; margin: 0 auto; }
.ggs-story h2 { margin-bottom: 1.5rem; }
.ggs-story p { margin-bottom: 1rem; font-size: 1.05rem; }
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 2rem; }

/* === CATALOG FILTERS === */
.catalog-filters { display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-btn { padding: 0.5rem 1.5rem; border-radius: 30px; font-size: 0.9rem; color: var(--navy); background: var(--gray-light); font-weight: 500; transition: all 0.2s; }
.filter-btn.active, .filter-btn:hover { background: var(--gold); color: var(--navy); }

/* === CONTACT === */
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.contact-form-wrap h2 { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.3rem; font-size: 0.9rem; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.7rem; border: 1px solid var(--gray-light); border-radius: 4px; font-size: 0.95rem; font-family: var(--font-body); transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.contact-info { padding: 2rem; background: var(--off-white); border-radius: 8px; }
.contact-info h3 { margin-bottom: 1rem; color: var(--navy); }
.contact-detail { margin-bottom: 1.5rem; }
.contact-detail strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray); margin-bottom: 0.25rem; }

/* === FAQ === */
.faq { margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--gray-light); }
.faq summary { padding: 0.75rem 0; cursor: pointer; font-weight: 500; font-size: 0.95rem; }
.faq details p { padding: 0 0 1rem; color: var(--gray); font-size: 0.9rem; }

/* === ALERTS === */
.alert { padding: 1rem 1.5rem; border-radius: 6px; margin-bottom: 1.5rem; font-size: 0.95rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* === IMAGE PLACEHOLDER === */
.image-placeholder { background: var(--navy-light); color: var(--gold-light); display: flex; align-items: center; justify-content: center; min-height: 250px; border-radius: 8px; font-style: italic; font-size: 0.9rem; }

/* === FOOTER === */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 4rem 1.5rem 1rem; }
.footer-container { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { color: var(--gold); font-family: var(--font-display); margin-bottom: 0.75rem; }
.footer-links h4, .footer-social h4 { color: var(--gold); margin-bottom: 1rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--gold); }
.social-links { display: flex; flex-direction: column; gap: 0.5rem; }
.social-links a { color: rgba(255,255,255,0.7); }
.social-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.85rem; }

/* === ADMIN === */
.admin-body { background: #f1f5f9; min-height: 100vh; }
.admin-nav { background: var(--navy); padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.admin-logo { color: var(--gold) !important; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; padding: 1rem 0; }
.admin-nav-links { display: flex; gap: 1rem; align-items: center; }
.admin-nav-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; padding: 0.5rem; }
.admin-nav-links a:hover, .admin-nav-links a.active { color: var(--gold); }
.admin-main { max-width: var(--max-width); margin: 2rem auto; padding: 0 1.5rem; }
.admin-main h1 { margin-bottom: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.stat-card { background: var(--white); border-radius: 8px; padding: 2rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.stat-number { font-size: 2.5rem; font-weight: 700; font-family: var(--font-display); color: var(--navy); }
.stat-label { color: var(--gray); font-size: 0.9rem; margin-top: 0.5rem; }
.stat-highlight { border: 2px solid var(--gold); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.admin-table th { background: var(--navy); color: var(--gold); text-align: left; padding: 0.75rem 1rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-light); font-size: 0.9rem; }
.detail-row td { background: var(--off-white); font-size: 0.85rem; color: var(--gray); }
.status-badge { padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.status-new { background: #dbeafe; color: #1d4ed8; }
.status-read { background: #e0e7ff; color: #4338ca; }
.status-responded { background: #d1fae5; color: #065f46; }
.status-archived { background: #e5e7eb; color: #4b5563; }
.admin-login-wrap { max-width: 400px; margin: 10vh auto; background: var(--white); padding: 3rem; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); text-align: center; }
.admin-login-wrap h1 { margin-bottom: 2rem; color: var(--navy); }
.admin-login-form .form-group { text-align: left; }
.admin-back { margin-top: 1.5rem; font-size: 0.9rem; }
.admin-form { margin: 1.5rem 0; padding: 1.5rem; background: var(--white); border-radius: 8px; }
.add-form-toggle { margin-bottom: 2rem; }
.add-form-toggle summary { cursor: pointer; display: inline-block; }

/* === MOBILE === */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 1rem 1.5rem; }
  .hero { padding: 5rem 1.5rem 4rem; min-height: auto; }
  .bio-layout { grid-template-columns: 1fr; }
  .bio-image { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .recording-card { grid-template-columns: 1fr; }
  .recording-cover { min-height: 150px; }
  .stats-grid { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; }
}
