/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Inter:wght@300;400;500&display=swap');

:root {
    --primary: #8B7355;
    --secondary: #2C2C2C;
    --accent: #C4B5A0;
    --light: #FAF9F7;
    --cream: #F5F3F0;
    --white: #FFFFFF;
    --text: #3A3A3A;
    --text-light: #8A8A8A;
    --border: #EBEBEB;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.7;
    font-size: 13px;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    color: var(--secondary);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 16px;
}

h4 {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--secondary);
    letter-spacing: 0.5px;
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.25s ease;
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 1.5px;
    background-color: var(--secondary);
    transition: all 0.3s ease;
}

/* Classes Hero Section */
.classes-hero {
    padding: 140px 0 80px;
    background: var(--light);
    text-align: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-title {
    font-size: 44px;
    margin-bottom: 16px;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Classes Grid Section */
.classes-section {
    padding: 90px 0;
    background-color: var(--white);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.class-box {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 40px 32px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.class-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Badges */
.badge-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 12px;
}

.badge-popular {
    background-color: var(--primary);
    color: var(--white);
}

.badge-premium {
    background-color: var(--secondary);
    color: var(--white);
}

.badge-new {
    background-color: #9DAD7F;
    color: var(--white);
}

.badge-special {
    background-color: #C45438;
    color: var(--white);
}

/* Class Box Content */
.class-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 24px;
}

.class-title {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--secondary);
    font-weight: 400;
}

.class-description {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 300;
}

.class-features {
    list-style: none;
    margin-bottom: 28px;
}

.class-features li {
    font-size: 12px;
    color: var(--text-light);
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
    font-weight: 300;
}

.class-features li::before {
    content: 'o';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 500;
}

/* Buttons */
.btn-discover {
    display: inline-block;
    padding: 12px 28px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    margin-top: auto;
}

.btn-discover:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.15);
}

/* Group Detail Section */
.group-detail-section {
    padding: 30px;
    /* padding: 90px 0; */
    background-color: var(--light);
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
    top: 0;
}

.group-detail-section.active {
    display: block;
}

.back-link {
    margin-bottom: 32px;
}

.back-link a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: var(--secondary);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 400;
}

.section-intro {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 56px;
    font-weight: 300;
}

/* Levels Grid */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.level-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 36px 28px;
    transition: all 0.3s ease;
}

.level-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.level-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.level-header h3 {
    font-size: 20px;
    color: var(--secondary);
}

.level-badge {
    font-size: 10px;
    padding: 4px 12px;
    background-color: var(--cream);
    color: var(--primary);
    border-radius: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.level-description {
    text-align: justify;
    font-size: 10px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 24px;
    font-weight: 300;
    height: 200px;
}

.level-details h4 {
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 12px;
}

.level-details ul {
    list-style: none;
    margin-bottom: 20px;
}

.level-details li {
    font-size: 12px;
    color: var(--text);
    padding-left: 16px;
    margin-bottom: 6px;
    position: relative;
    font-weight: 300;
}

.level-details li::before {
    content: 'o';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.level-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 24px;
}

.level-info span {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 300;
}

.btn-book {
    width: 100%;
    padding: 12px 28px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--primary);
    background-color: var(--primary);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.btn-book:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-1px);
}

/* CTA Section */
.cta-section {
    padding: 72px 0;
    background: #aa4126;
    text-align: center;
}

.cta-content {
    max-width: 560px;
    margin: 0 auto;
}

.cta-title {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 400;
}

.cta-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin-bottom: 32px;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.btn-primary {
    padding: 13px 32px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--white);
    background-color: var(--white);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
}

/* Footer */
.footer {
    background-color: #ffffff;
    color: #aa4126;
    padding: 56px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #aa4126;
    margin-bottom: 16px;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.footer-section p,
.footer-section ul {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #aa4126;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 80px 32px;
        gap: 28px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.08);
        align-items: flex-start;
    }

    .nav-menu.active {
        right: 0;
    }

    .classes-hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .classes-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .levels-grid {
        grid-template-columns: 1fr;
    }

    .classes-section,
    .group-detail-section {
        padding: 64px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .class-box {
        padding: 32px 24px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}