/* ==============================================
   Swar Shaili — Music Academy, Pune
   style.css
   ============================================== */

/* ── Custom Properties ── */
:root {
    --bg:            #FFF8F0;
    --bg-alt:        #F5EDE0;
    --primary:       #6B4226;
    --primary-dark:  #3D2B1F;
    --accent:        #D4A853;
    --accent-light:  #EDD07A;
    --terracotta:    #C8956C;
    --text:          #3D2B1F;
    --text-muted:    #8C6D5A;
    --border:        #E8D5C0;
    --white:         #FFFFFF;
    --shadow-sm:     0 2px 10px rgba(107, 66, 38, 0.08);
    --shadow:        0 4px 24px rgba(107, 66, 38, 0.12);
    --shadow-lg:     0 10px 40px rgba(107, 66, 38, 0.18);
    --radius:        14px;
    --radius-sm:     7px;
    --nav-h:         76px;
    --ease:          0.3s ease;
    --font-head:     'Playfair Display', Georgia, serif;
    --font-body:     'Lato', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg) url('../images/hero-instruments.svg') repeat;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Layout ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.section        { padding: 88px 0; }
.section-alt    { background: rgba(245, 237, 224, 0.7); }

/* ── Section header ── */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 10px;
}
.section-header h2 {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 16px;
}
.divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--terracotta));
    border-radius: 2px;
    margin: 0 auto 20px;
}
.section-desc {
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    transition: all var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 4px 18px rgba(212, 168, 83, 0.38);
}
.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 168, 83, 0.48);
}
.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: #fff;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}
.btn-card {
    background: var(--primary);
    color: #fff;
    padding: 11px 26px;
    font-size: 0.88rem;
    border-radius: 50px;
    align-self: flex-start;
}
.btn-card:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 15px 24px;
    border-radius: var(--radius);
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    background: #1ebe5b;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.42);
}
.full-width { width: 100%; }

/* ── Navigation ── */
#navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--nav-h);
    background: transparent;
    transition: background var(--ease), box-shadow var(--ease);
}
#navbar.scrolled {
    background: rgba(42, 26, 14, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-logo .logo-text {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 700;
    padding: 8px 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links li a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color var(--ease);
    position: relative;
    padding-bottom: 10px;
}
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--ease);
    border-radius: 1px;
}
.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent);
}
.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}
.nav-cta {
    background: var(--accent) !important;
    color: var(--primary-dark) !important;
    padding: 9px 24px;
    border-radius: 50px;
    font-weight: 700 !important;
    margin-left: 8px;
    transition: background var(--ease), transform var(--ease) !important;
}
.nav-cta:hover { background: var(--accent-light) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    border-radius: 6px;
    transition: background var(--ease);
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: all var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background:
        linear-gradient(145deg, rgba(46,26,14,0.82) 0%, rgba(107,66,38,0.72) 55%, rgba(74,44,24,0.80) 100%);
    overflow: hidden;
}
.hero-bg-notes {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 1.5rem;
    color: rgba(212, 168, 83, 0.06);
    letter-spacing: 1.5em;
    line-height: 3.5;
    padding: 0 16px;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    word-break: break-all;
}
/* Radial glows */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,168,83,0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200,149,108,0.08) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 80px;
    max-width: 960px;
}
.hero-pre {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    opacity: 0.9;
}
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 6vw, 4.5rem);
    white-space: nowrap;
    color: #fff;
    font-weight: 700;
    line-height: 1.0;
    margin-bottom: 14px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--accent);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.hero-tagline {
    font-family: var(--font-head);
    font-style: italic;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 48px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 72px;
    align-items: center;
}
.about-image-col {
    position: relative;
}
.image-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-alt);
    box-shadow: var(--shadow-lg);
    position: relative;
}
.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F0E4D0, #E5CEAF);
    color: var(--text-muted);
    text-align: center;
    padding: 24px;
}
.img-placeholder span { font-size: 2.5rem; }
.img-placeholder p { font-size: 0.78rem; line-height: 1.6; }
.img-placeholder code {
    background: rgba(107,66,38,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--primary);
}
.img-placeholder.large span { font-size: 2rem; }
.years-badge {
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--terracotta) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: #fff;
    border: 3px solid var(--bg);
}
.badge-num {
    font-family: var(--font-head);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
}
.years-badge small {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    opacity: 0.92;
    margin-top: 2px;
}
.about-content h3 {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--primary);
    margin-bottom: 14px;
    line-height: 1.25;
}
.about-intro {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 30px;
}
.credentials {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}
.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--ease);
}
.credential-item:hover { box-shadow: var(--shadow); }
.cred-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.credential-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 2px;
}
.credential-item p { font-size: 0.84rem; color: var(--text-muted); }
.stats-row {
    display: flex;
    gap: 14px;
}
.stat-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat-num {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat-label {
    margin-top: 6px;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    text-align: center;
}

/* ── Classes ── */
.classes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 36px;
}
.class-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 30px;
    box-shadow: var(--shadow);
    transition: transform var(--ease), box-shadow var(--ease);
}
.class-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.class-icon { font-size: 2.4rem; }
.class-card h3 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    color: var(--primary);
    line-height: 1.25;
}
.class-card > p { color: var(--text-muted); font-size: 0.94rem; flex: 1; }
.class-details {
    display: flex;
    flex-direction: column;
    gap: 9px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
}
.class-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.87rem;
    color: var(--text);
}
.schedule-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: rgba(255,255,255,0.88);
    padding: 20px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 0.95rem;
}
.schedule-banner span { font-size: 1.4rem; flex-shrink: 0; }
.schedule-banner strong { color: var(--accent); }

/* ── Events ── */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}
.event-tag {
    display: inline-block;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--ease), transform var(--ease);
}
.event-tag:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.events-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 24px;
}
.event-card {
    flex: 0 1 calc(33.333% - 12px);
    min-width: 200px;
}
.event-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    transition: transform var(--ease), box-shadow var(--ease);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-img-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}
.event-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.event-card:hover .event-img-wrap img { transform: scale(1.05); }
.event-img-wrap .img-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F0E4D0, #E5CEAF);
    font-size: 2rem;
}
.event-caption {
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.helper-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 8px;
}
.helper-note code {
    background: var(--border);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary);
}

/* ── Gallery ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--bg-alt);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .img-placeholder.large {
    display: none;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F0E4D0, #E5CEAF);
}
.gallery-hover {
    position: absolute;
    inset: 0;
    background: rgba(42, 26, 14, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--ease);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.gallery-item:hover .gallery-hover { opacity: 1; }

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.info-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.info-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--primary);
    margin-bottom: 3px;
    font-weight: 700;
}
.info-item p { font-size: 0.87rem; color: var(--text-muted); }

/* Form */
.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 7px;
    letter-spacing: 0.02em;
}
.form-group label span { color: var(--terracotta); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease);
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.16);
}
.form-group textarea { resize: vertical; min-height: 108px; }

/* ── Footer ── */
footer {
    background: var(--primary-dark);
    padding: 52px 0 24px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    margin-bottom: 24px;
}
.footer-brand .logo-text {
    font-family: var(--font-head);
    font-size: 1.55rem;
    color: var(--accent);
    display: block;
    margin-bottom: 5px;
}
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.42); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--ease);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.28);
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }
.lb-content {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: var(--radius);
    overflow: hidden;
}
.lb-content img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius);
}
.lb-close, .lb-prev, .lb-next {
    position: absolute;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.lb-close {
    top: 18px; right: 22px;
    width: 42px; height: 42px;
    font-size: 1.1rem;
}
.lb-prev, .lb-next {
    top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px;
    font-size: 2rem;
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* ── Fade-up animations ── */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-image-col {
        max-width: 300px;
        margin: 0 auto;
    }
    .classes-grid { grid-template-columns: 1fr; }
    .event-card   { flex: 0 1 calc(50% - 9px); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }

    /* Mobile nav */
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(30, 16, 6, 0.97);
        flex-direction: column;
        gap: 0;
        padding: 10px 0 16px;
        display: none;
        box-shadow: 0 8px 28px rgba(0,0,0,0.35);
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links li a {
        display: block;
        padding: 13px 24px;
        width: 100%;
        border-radius: 0;
    }
    .nav-links li a::after { display: none; }
    .nav-cta {
        margin: 8px 24px 0 !important;
        width: calc(100% - 48px) !important;
        border-radius: 8px !important;
        display: block;
        text-align: center;
        padding: 12px 20px !important;
    }

    .hero-title { font-size: clamp(1.3rem, 5.5vw, 2.2rem); white-space: nowrap; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 200px; }

    .stats-row { gap: 10px; }
    .stat-box  { padding: 14px 8px; }

    .event-card   { flex: 0 1 calc(50% - 9px); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-form-wrap { padding: 24px 20px; }
    .footer-top { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }

    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
}

@media (max-width: 380px) {
    .event-card   { flex: 0 1 calc(50% - 9px); }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .hero-buttons .btn { width: 180px; }
}
