/* =============================================
   G-Champ Abacus & Brain Gym — Shared Styles
   Extracted from index.html for multi-page use
   DO NOT modify the visual design
   ============================================= */

/* CSS Variables */
:root {
    --primary-red: #E31B23;
    --primary-blue: #1a73e8;
    --primary-orange: #ff6b35;
    --primary-purple: #9932CC;
    --dark-red: #B8151C;
    --dark-purple: #7B28A3;
    --light-red: #FF4D55;
    --light-purple: #B366D9;
    --gold: #FFD700;
    --cream: #FFF8F0;
    --dark: #1A1A2E;
    --gray-dark: #2D2D44;
    --gray: #6B7280;
    --gray-light: #F3F4F6;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-purple) 100%);
    --gradient-warm: linear-gradient(135deg, #FF6B6B 0%, var(--primary-red) 50%, var(--primary-purple) 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-glow-red: 0 0 30px rgba(227, 27, 35, 0.3);
    --shadow-glow-purple: 0 0 30px rgba(153, 50, 204, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--gray-light);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================
   Navigation
   ===================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 5%;
    box-shadow: var(--shadow-md);
}

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

.logo {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 30px;
    }
}

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

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

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

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

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

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 220px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 15px 0;
    margin-top: 15px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.dropdown-content a {
    display: block;
    padding: 10px 25px;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: var(--gray-light);
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-glow-red);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-purple);
}

.nav-cta::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 1001;
}

/* =====================
   Buttons
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow-red);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(227, 27, 35, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* =====================
   Sections & Headers
   ===================== */
section {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header .overline {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-purple);
    margin-bottom: 15px;
    display: block;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* =====================
   Animations
   ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left,
.slide-in-right {
    opacity: 1 !important;
    transform: none !important;
}

.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1 !important;
    transform: none !important;
}

/* =====================
   Mobile Menu
   ===================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9999;
    padding: 100px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 10px;
}

.mobile-menu a {
    font-size: 1.2rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
}

.mobile-menu a:hover {
    color: var(--primary-red);
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    z-index: 10001;
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* =====================
   Footer
   ===================== */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto 50px;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .footer-logo {
        height: 40px;
    }
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
}

.footer-certifications {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cert-badge {
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-badge i {
    color: var(--gold);
}

/* =====================
   WhatsApp Float Button
   ===================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* =====================
   Page Content (for new pages)
   ===================== */
.page-content {
    padding-top: 80px; /* Space for fixed navbar */
}

.page-content section:first-child {
    padding-top: 60px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 5%;
    padding-top: 90px;
    font-size: 0.9rem;
    color: var(--gray);
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--primary-red);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--gray);
}

/* FAQ Section (reusable) */
.faq-item {
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    background: var(--white);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--gray-light);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-purple);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--gray);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

/* CTA Section (reusable) */
.cta-section {
    background: var(--gradient-primary);
    text-align: center;
    padding: 80px 5%;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background: var(--white);
    color: var(--primary-red);
    font-weight: 700;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Video Facade */
.video-facade {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    cursor: pointer;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-facade .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(255,0,0,0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-facade .play-btn::after {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

/* =====================
   Responsive — Shared
   ===================== */
@media (max-width: 1200px) {
    .section-header h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 4%;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .breadcrumb {
        padding-top: 75px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}
