/* Hanplay Landing Page Design System & Styles */

:root {
    --primary: #a71c1d;       /* Crimson Red */
    --primary-hover: #8e1516;
    --secondary: #c37e1f;     /* Gold */
    --secondary-hover: #aa6b18;
    --bg-cream: #FDFBF7;      /* Cream background */
    --bg-accent: #f5ede2;     /* Slightly darker cream */
    --text-dark: #2C2C2C;     /* Charcoal text */
    --text-muted: #555555;    /* Gray text */
    --white: #FFFFFF;
    --border-color: rgba(167, 28, 29, 0.12);
    --border-hover: rgba(167, 28, 29, 0.3);
    --shadow-sm: 0 4px 12px rgba(167, 28, 29, 0.02);
    --shadow-md: 0 12px 30px rgba(167, 28, 29, 0.06);
    --shadow-lg: 0 20px 48px rgba(167, 28, 29, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-chinese: 'STKaiti', 'KaiTi', 'BiauKai', 'Noto Serif SC', serif;
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

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

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(167, 28, 29, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 28, 29, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(167, 28, 29, 0.05);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(195, 126, 31, 0.25);
}

.btn-gold:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(195, 126, 31, 0.35);
}

/* Navbar */
header.navbar-container {
    background-color: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 16px 0;
}

header.navbar-container.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
}

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

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

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

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

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

.nav-mobile-panel {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 4px;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .nav-cta {
        display: none;
    }
    .nav-toggle {
        display: block;
    }

    .nav-mobile-panel {
        display: none;
    }

    .navbar-container.nav-open .nav-mobile-panel {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-cream, #fff);
        box-shadow: var(--shadow-sm);
        padding: 8px 24px 20px;
    }

    .navbar-container.nav-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .navbar-container.nav-open .nav-links li {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-container.nav-open .nav-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 14px;
    }

    .navbar-container.nav-open .nav-cta .btn {
        width: 100%;
        text-align: center;
    }
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px 0;
    background-image: url('img/template/background.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-grid > * {
    min-width: 0;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

.hero-tag {
    display: inline-block;
    max-width: 100%;
    padding: 6px 16px;
    background-color: rgba(167, 28, 29, 0.08);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(167, 28, 29, 0.15);
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 900px) {
    .hero-actions {
        justify-content: center;
    }
}

.hero-media {
    display: flex;
    justify-content: center;
    position: relative;
}

/* CSS Book/Tablet Mockup */
.mockup-container {
    width: 100%;
    max-width: 400px;
    height: 520px;
    perspective: 1500px;
}

.book-mockup {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border-radius: 12px;
}

.book-mockup:hover {
    transform: rotateY(-5deg) rotateX(5deg);
}

.book-cover {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url('img/template/cover.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    z-index: 2;
    transform: translateZ(25px);
}

.book-spine {
    width: 50px;
    height: 100%;
    position: absolute;
    top: 0;
    left: -25px;
    background: var(--primary);
    transform: rotateY(-90deg) translateZ(0px);
    border-radius: 4px 0 0 4px;
}

.book-pages {
    width: 100%;
    height: calc(100% - 10px);
    position: absolute;
    top: 5px;
    left: 10px;
    background: #eaeaea;
    border-radius: 0 10px 10px 0;
    z-index: 1;
    transform: translateZ(10px);
    border: 1px solid #ddd;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

/* Features Section */
.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(167, 28, 29, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Art Gallery Showcase */
.gallery-section {
    background-color: var(--bg-accent);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.gallery-img-container {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.gallery-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.02));
}

.gallery-item-char {
    font-family: var(--font-chinese);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 2px;
}

.gallery-item-pinyin {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.gallery-item-en {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Ebook Sandbox Demo */
.demo-section {
    border-bottom: 1px solid var(--border-color);
}

.demo-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.demo-tab-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-family: var(--font-heading);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.demo-tab-btn:hover {
    border-color: var(--border-hover);
}

.demo-tab-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(167, 28, 29, 0.2);
}

.demo-content-viewport {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    min-height: 500px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .demo-content-viewport {
        padding: 20px;
    }
}

.demo-panel {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.4s ease forwards;
}

.demo-panel.active {
    display: block;
}

/* Tab 1: Interactive Flashcard Card Component */
.sandbox-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.flip-card {
    background-color: transparent;
    width: 280px;
    height: 380px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: var(--shadow-sm);
    border-radius: 16px;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    border: 1.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

.flip-card-front {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.4) 0%, rgba(255, 255, 255, 0.9) 100%);
    color: black;
}

.flip-card-back {
    background: var(--white);
    transform: rotateY(180deg);
    border-color: rgba(167, 28, 29, 0.25);
    background-image: url('img/template/background.png');
    background-size: cover;
}

.card-hint-tap {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Flashcard Demo contents */
.demo-card-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.demo-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.demo-card-char {
    font-family: var(--font-chinese);
    font-size: 3.5rem;
    color: var(--primary);
    line-height: 1;
    margin: 15px 0;
}

.demo-card-pinyin {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
}

.demo-card-translation {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.demo-card-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(167, 28, 29, 0.2) 20%, rgba(167, 28, 29, 0.2) 80%, transparent);
    position: relative;
    margin: 15px auto;
}

.demo-card-divider::after {
    content: '';
    position: absolute;
    top: -2.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
}

.demo-card-example {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.demo-controls {
    display: flex;
    gap: 15px;
}

/* Tab 2: Phrases Page Demo */
.sandbox-phrases-container {
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Noto Serif', serif;
}

.phrase-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.phrase-demo-booktitle {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.phrase-demo-chaptitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.phrase-demo-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.phrase-demo-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(167, 28, 29, 0.06);
    transition: var(--transition);
    border-radius: 8px;
    padding: 10px;
}

.phrase-demo-row:hover {
    background-color: rgba(167, 28, 29, 0.02);
}

.phrase-demo-vocab {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1.5px solid rgba(167, 28, 29, 0.15);
    padding-right: 15px;
}

.phrase-demo-vocab-char {
    font-family: var(--font-chinese);
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 700;
}

.phrase-demo-vocab-pinyin {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-style: italic;
}

.phrase-demo-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.phrase-demo-translation {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.phrase-demo-sentence {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.phrase-demo-sentence-pinyin {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 4px;
}

.phrase-demo-sentence-en {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

/* Tab 3: Interactive Quiz Demo */
.sandbox-quiz-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.quiz-demo-card {
    background: var(--bg-cream);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.quiz-demo-qnum {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.quiz-demo-question {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.quiz-demo-question span {
    font-family: var(--font-chinese);
    color: var(--primary);
    font-size: 1.75rem;
    font-weight: 700;
    padding: 0 4px;
}

.quiz-demo-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-demo-option {
    background-color: var(--white);
    border: 1.5px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-demo-option:hover {
    border-color: var(--primary);
    background-color: rgba(167, 28, 29, 0.01);
}

.quiz-demo-option.correct {
    background-color: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.quiz-demo-option.incorrect {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
    animation: shake 0.4s ease;
}

.quiz-status-icon {
    font-size: 1.25rem;
}

.quiz-feedback-box {
    margin-top: 24px;
    padding: 15px;
    border-radius: 12px;
    background-color: rgba(167, 28, 29, 0.04);
    border: 1px dashed var(--primary);
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    display: none;
    animation: fadeIn 0.3s ease;
}

/* Pricing Section */
.pricing-section {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: stretch;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border: 2.5px solid var(--primary);
    background-color: var(--white);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured::before {
    content: 'FOUNDING PRICE';
    position: absolute;
    top: 25px;
    right: -35px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 40px;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.pricing-card-header {
    margin-bottom: 30px;
}

.pricing-tier {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-price-container {
    display: flex;
    align-items: baseline;
    margin: 24px 0;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.pricing-card.featured .pricing-price {
    color: var(--primary);
}

.pricing-period {
    color: var(--text-muted);
    font-size: 1rem;
    margin-left: 8px;
}

.pricing-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.pricing-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.pricing-features-list li i {
    color: var(--primary);
    font-size: 1.1rem;
}

.pricing-card.featured .pricing-features-list li i {
    color: var(--secondary);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-quote {
    font-size: 1rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--bg-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.testimonial-role {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 20px 24px;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
}

.faq-question:hover {
    background-color: rgba(167, 28, 29, 0.01);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px 24px;
    max-height: 500px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary);
    font-size: 1.25rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Footer style */
.footer-section {
    background-color: var(--bg-accent);
    padding: 60px 0 30px 0;
    border-top: 1px solid var(--border-color);
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

.footer-about-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 15px;
    max-width: 320px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

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

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

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary) 20%, var(--primary) 80%, transparent);
    margin-bottom: 30px;
    opacity: 0.15;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.footer-quote-text {
    font-style: italic;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}
