/**
 * Karla Dance of School - Modern Stylesheet
 * Location: Airakuzhi, Kollam, Kerala
 * Palette: Royal Temple Maroon, Warm Gold, Ivory, Velvet Charcoal
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Manjari:wght@400;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #800020;         /* Deep Temple Maroon */
    --primary-dark: #4A0210;    /* Dark Maroon */
    --primary-light: #A52A2A;   /* Light Crimson */
    --gold: #D4AF37;            /* Temple Gold */
    --gold-light: #F9E79F;      /* Soft Gold */
    --gold-dark: #B7950B;       /* Antique Bronze Gold */
    --gold-glow: rgba(212, 175, 55, 0.25);
    
    --bg-main: #0E090B;         /* Regal Obsidian */
    --bg-surface: #181114;      /* Deep Wine Slate */
    --bg-surface-elevated: #241A1E;
    --bg-card: rgba(36, 26, 30, 0.85);
    
    --text-primary: #F9F6F0;    /* Silk Ivory */
    --text-secondary: #D1C7BD;  /* Soft Warm Gray */
    --text-muted: #9C8E87;      /* Muted Sand */
    --border-color: rgba(212, 175, 55, 0.2);
    --border-highlight: rgba(212, 175, 55, 0.5);

    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #06B6D4;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --font-ml: 'Manjari', 'Outfit', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 9999px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-gold: 0 10px 25px rgba(212, 175, 55, 0.2);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Basics */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Malayalam font preference */
body.lang-ml, .lang-ml-text {
    font-family: var(--font-ml);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

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

/* Top Announcement Bar */
.top-announcement {
    background: linear-gradient(90deg, #4A0210 0%, #800020 50%, #4A0210 100%);
    color: #FFF;
    padding: 7px 16px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.announcement-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.top-contact-links {
    display: flex;
    gap: 16px;
    align-items: center;
}
.top-link {
    color: var(--gold-light);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.top-link:hover {
    color: #FFF;
}

/* Header & Navigation */
.site-header {
    background: rgba(24, 17, 20, 0.95);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.school-logo-emblem {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, #D4AF37 0%, #800020 85%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    font-size: 24px;
}

.brand-details h1 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-details span {
    font-size: 0.78rem;
    color: var(--gold);
    display: block;
    letter-spacing: 0.3px;
}

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

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 4px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--gold);
}

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

/* Language switch button */
.lang-switch-btn {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-color);
    color: var(--gold-light);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.lang-switch-btn:hover {
    background: var(--gold);
    color: var(--primary-dark);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.btn-login {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 500;
}
.btn-login:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #B7950B 100%);
    color: #1A0408;
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.4);
    color: #000;
}

.btn-secondary {
    background: rgba(128, 0, 32, 0.7);
    color: #FFF;
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: #800020;
    border-color: var(--gold);
    color: #FFF;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.btn-outline:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #FFF;
    border-color: var(--gold-light);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 90px 20px 80px;
    background: radial-gradient(circle at 80% 20%, rgba(128, 0, 32, 0.4) 0%, rgba(14, 9, 11, 0.95) 70%),
                linear-gradient(180deg, #181114 0%, #0E090B 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-ornament {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gold {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
    border: 1px solid var(--border-color);
}

.badge-maroon {
    background: rgba(128, 0, 32, 0.4);
    color: #FFB3BA;
    border: 1px solid rgba(128, 0, 32, 0.6);
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.18;
    color: #FFF;
    margin-bottom: 18px;
    font-weight: 700;
}

.hero-headline span {
    background: linear-gradient(90deg, #FFF 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subhead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 620px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-trust-row {
    display: flex;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.trust-item h4 {
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 700;
}
.trust-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Hero Visual Showcase */
.hero-visual-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-image-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: #241A1E;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-frame svg {
    width: 100%;
    height: 100%;
}

.hero-overlay-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(14, 9, 11, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-overlay-badge .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* Feature Grid */
.features-section {
    padding: 80px 20px;
    background: var(--bg-surface);
}

.section-container {
    max-width: 1240px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 54px;
}

.section-tag {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    color: #FFF;
    margin-bottom: 14px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--gold);
}

.feature-card h3 {
    font-size: 1.2rem;
    color: #FFF;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Packages Section */
.packages-section {
    padding: 85px 20px;
    background: var(--bg-main);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}

.package-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(212, 175, 55, 0.15);
}

.package-card.highlight {
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, rgba(74, 2, 16, 0.5) 0%, rgba(36, 26, 30, 0.95) 100%);
}

.package-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.package-code-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    border: 1px solid var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 12px;
}

.package-title {
    font-size: 1.45rem;
    color: #FFF;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.package-title-ml {
    font-size: 1.05rem;
    color: var(--gold-light);
    font-weight: 500;
}

.package-desc {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.package-meta {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 24px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    padding: 6px 0;
}
.meta-row:not(:last-child) {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.meta-label {
    color: var(--text-muted);
}
.meta-value {
    color: #FFF;
    font-weight: 600;
}
.meta-value.fee-highlight {
    color: var(--gold);
    font-size: 1.1rem;
}

/* Form Styles */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(14, 9, 11, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #FFF;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
    background: rgba(24, 17, 20, 0.95);
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Flash Alerts */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
}
.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: #A7F3D0;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #FECACA;
}
.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--warning);
    color: #FDE68A;
}

/* Gallery Section */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gold);
    color: #1A0408;
    font-weight: 600;
    border-color: var(--gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.gallery-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow-soft);
}
.gallery-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #241A1E;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-thumb img {
    transform: scale(1.05);
}
.gallery-caption {
    padding: 14px 16px;
}
.gallery-caption h4 {
    color: #FFF;
    font-size: 1rem;
    margin-bottom: 4px;
}
.gallery-caption p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Modal Lightbox */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    padding: 24px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.modal-close:hover {
    color: #FFF;
}

/* Footer */
.site-footer {
    background: #090507;
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .hero-headline {
        font-size: 2.3rem;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 30px;
        border-bottom: 1px solid var(--border-color);
        display: none;
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .top-announcement {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}
