/* ============================================================
   KEITH BEBER MUSIC ACADEMY - MASTER STYLESHEET
   ============================================================ */

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-cream: #fcf9f5;
    --color-dark: #1e1e1e;
    --color-gold: #b8860b;
    --color-gold-light: #d4a847;
    --color-gray: #4a4a4a;
    --color-gray-light: #f0ebe5;
    --color-white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.07);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.10);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-cream);
    color: var(--color-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    line-height: 1.08;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 1.5rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-gold);
    margin-top: 0.5rem;
    border-radius: 2px;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.subhead {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-gray);
    max-width: 680px;
    line-height: 1.6;
}

.section-title-centered {
    text-align: center;
}

.section-title-centered h2::after {
    margin: 0.5rem auto 0;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #d0cbc4;
    font-size: 1.2rem;
    transition: all var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-dark);
    color: #ffffff !important;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--color-gold);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.3);
}

.btn-gold {
    background-color: var(--color-gold);
    color: #ffffff !important;
}

.btn-gold:hover {
    background-color: var(--color-dark);
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-dark);
    color: var(--color-dark) !important;
}

.btn-outline:hover {
    background: var(--color-dark);
    color: #ffffff !important;
    border-color: var(--color-dark);
}

.btn-nav {
    background: var(--color-gold);
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.btn-nav:hover {
    background: var(--color-dark);
    color: #ffffff !important;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    padding: 20px 0;
    background: var(--color-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.92);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo a span {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.nav-links .btn-nav {
    background: var(--color-gold);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 50px;
}

.nav-links .btn-nav:hover {
    background: var(--color-dark);
}

.nav-links .btn-nav::after {
    display: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- HERO SECTION --- */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--color-cream) 0%, #f5efe8 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,134,11,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-content .badge {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-white);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
}

.hero-content .subhead {
    margin: 1.5rem 0 2.5rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.hero-image .floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-white);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-image .floating-card .icon {
    font-size: 2rem;
}

.hero-image .floating-card .text {
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-image .floating-card .text small {
    display: block;
    font-weight: 400;
    color: var(--color-gray);
    font-size: 0.8rem;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- SECTIONS --- */
.section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.section:last-of-type {
    border-bottom: none;
}

.section-alt {
    background: var(--color-white);
}

/* --- GRID & CARDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px 30px;
    margin-top: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.card {
    background: var(--color-white);
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: var(--color-gold-light);
}

.card .icon {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    display: block;
}

.card h3 {
    font-size: 1.3rem;
}

.card p {
    font-size: 0.98rem;
    color: var(--color-gray);
    margin-top: 0.25rem;
}

.card .learn-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.card .learn-more:hover {
    color: var(--color-dark);
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image .image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 40px 24px 20px;
    color: var(--color-white);
    font-size: 0.9rem;
}

.about-text h2 {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: var(--color-gray);
}

.teacher-list {
    list-style: none;
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.teacher-list li {
    font-size: 0.85rem;
    background: var(--color-gray-light);
    padding: 4px 16px;
    border-radius: 50px;
    color: var(--color-dark);
}

.teacher-list li::before {
    content: '🎵 ';
    font-size: 0.8rem;
}

/* --- STATS --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    text-align: center;
    padding: 40px 0;
}

.stat-item .number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
    display: block;
}

.stat-item .label {
    font-size: 0.95rem;
    color: var(--color-gray);
    font-weight: 500;
}

/* --- CTA SECTION --- */
.cta {
    background: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: var(--color-white);
}

.cta h2::after {
    background: var(--color-gold);
    margin: 0.5rem auto 0;
}

.cta .subhead {
    color: #d0cbc4;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn {
    background: var(--color-gold);
}

.cta .btn:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

/* --- BANDCAMP SECTION --- */
.bandcamp-section {
    background: var(--color-gray-light);
    padding: 60px 0;
}

.bandcamp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.bandcamp-info h2 {
    margin-top: 0;
}

.bandcamp-info .subhead {
    margin-bottom: 1.5rem;
}

.bandcamp-embed iframe {
    width: 100%;
    height: 120px;
    border: 0;
    border-radius: var(--radius-sm);
}

/* --- FOOTER --- */
.site-footer {
    background: var(--color-dark);
    color: #d0cbc4;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo a {
    color: var(--color-white);
    font-size: 1.6rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul a {
    color: #d0cbc4;
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.95rem;
}

.footer-links ul a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #d0cbc4;
    font-size: 1.2rem;
    transition: color var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--color-gold);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 40px;
    }
    .bandcamp-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 20px 0;
        gap: 16px;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-content .subhead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .hero-image .floating-card {
        position: static;
        margin-top: 16px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        width: 100%;
        justify-content: center;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }