/* ==========================================================================
   CSS Custom Properties (Variables) - Light Theme
   ========================================================================== */
   :root {
    /* Brand Colors */
    --color-primary: #000000;    /* Black */
    --color-primary-light: #333333; 
    --color-accent-red: #E1251B; /* Vibrant Red from screenshot/logo */
    --color-accent-red-hover: #b51a12;
    --color-accent-yellow: #F0A500; /* Premium amber gold */
    
    /* Layout Colors */
    --color-bg-light: #ffffff;   /* Pure White */
    --color-bg-alt: #f8f9fa;     /* Slightly off-white for contrast sections */
    --color-text-main: #222222;  /* Dark grey for better readability */
    --color-text-muted: #555555;
    --color-border: #e0e0e0;

    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Reset & Global Styles
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.bg-light { background-color: var(--color-bg-alt); }
.mx-auto { margin-inline: auto !important; }

/* Section Shared */
section { padding: 5rem 0; }

.section-title {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
}
.section-title span { color: var(--color-accent-red); }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
}
.text-center .section-subtitle { margin-inline: auto; }

/* The Red Divider Line */
.divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--color-accent-red) 10%, var(--color-accent-red) 90%, transparent);
    margin: 1.5rem 0 2rem 0;
    opacity: 0.5;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
    background-color: #000;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.5rem 0;
}
.top-bar-inner {
    display: flex;
    justify-content: flex-end;
}
.contact-info-top {
    display: flex;
    gap: 2rem;
}
.contact-info-top span {
    font-weight: 500;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: rgba(225, 37, 27, 0.85); /* Translucent red */
    color: white;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(225, 37, 27, 0.3);
}
.btn-primary:hover {
    background-color: rgba(225, 37, 27, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(225, 37, 27, 0.4);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(225, 37, 27, 0.3);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: white;
}
.btn-secondary:hover {
    background-color: var(--color-primary-light);
}

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

.btn-large { padding: 0.7rem 1.6rem; font-size: 1rem; }
.btn-full { width: 100%; padding: 1rem; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    width: 100%;
    background: var(--color-bg-light);
    border-bottom: 2px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.3rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.logo { display: flex; align-items: center; }

.brand-logo {
    max-height: 85px;
    width: auto;
    object-fit: contain;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn-primary) {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
    padding-bottom: 4px;
    border-bottom: 3px solid transparent;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}
.nav-links a:not(.btn-primary):hover,
.nav-links a.active:not(.btn-primary) {
    border-bottom: 3px solid var(--color-accent-yellow);
}

.mobile-toggle {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px;
    position: relative;
    width: 30px;
    height: 22px;
    padding: 0;
}
.mobile-toggle span {
    display: block;
    position: absolute;
    width: 25px; height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    left: 0;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.25s ease,
                top 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { top: 18px; }

/* Animated X state */
.mobile-toggle.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-toggle.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: #f0f0f0; /* Fallback */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Backgrounds handled by pseudo-elements below */
}

/* Layer 1 (bottom): horizontally-flipped photo */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    transform: scaleX(-1);
}

/* Layer 2 (top): gradient fade overlay — left-white → right-transparent */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.92) 30%, rgba(255,255,255,0.15) 100%);
}

/* Add a red bottom border/gradient block like the screenshot */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 15px;
    background: linear-gradient(90deg, var(--color-accent-red), var(--color-accent-red));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.hero-text { max-width: 600px; }
.hero-text h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 1rem;
    color: var(--color-primary);
}
.hero-text h1 span {
    color: var(--color-accent-red);
    display: inline;
}

.hero-text p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}
.stat-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--color-accent-yellow);
}
.stat-card h3 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    color: var(--color-accent-red);
    margin-bottom: 0.2rem;
}

/* ==========================================================================
   Why Choose Us / About Us
   ========================================================================== */
.about-container { max-width: 900px; }
.about-text-content p {
    font-size: 1rem;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-top: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-top: 4px solid var(--color-accent-yellow);
}

.icon-wrap {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

/* ==========================================================================
   Services Section
   ========================================================================== */
.service-block {
    text-align: left;
    margin-bottom: 4rem;
    background: var(--color-bg-light);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-title {
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--color-accent-red);
}

.service-block > p {
    margin-bottom: 2rem;
    font-size: 1rem;
}

.licence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.licence-card {
    background: var(--color-bg-alt);
    padding: 1.5rem;
    border-left: 3px solid var(--color-accent-yellow);
    border-radius: 4px;
}

.licence-card h4 { margin-bottom: 0.8rem; }
.licence-card p { font-size: 0.95rem; margin-bottom: 0; }

.service-note {
    font-style: italic;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    text-align: left;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.course-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-header {
    background: var(--color-primary);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.course-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent-red);
}

.course-header h3 { color: white; margin-bottom: 0; font-size: 1.2rem; }

.price {
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-accent-yellow);
}

.course-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-body .btn-primary {
    margin-top: auto;
    width: 100%;
    display: block;
}

.service-block .btn-primary {
    margin-top: 1.5rem;
    width: 100%;
    display: block;
}
.course-body p { margin-bottom: 1rem; }
.course-body ul { margin-bottom: 2rem; flex-grow: 1; }
.course-body ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.course-body ul li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--color-accent-yellow);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h3 { font-size: clamp(1.5rem, 4vw, 1.8rem); margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; }

.info-item {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.info-item strong { margin-right: 0.5rem; }

.contact-form form {
    display: flex; flex-direction: column; gap: 1.2rem;
    background: var(--color-bg-alt);
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent-red);
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    font-family: var(--font-body);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials { padding: 5rem 0; }

.google-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.google-stars { color: #FFD100; font-size: 1rem; letter-spacing: 1px; }
.google-score { font-weight: 700; font-size: 1rem; color: var(--color-primary); }
.google-label { font-size: 0.85rem; color: var(--color-text-muted); }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.8rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: var(--transition-smooth);
}
.testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}

.testimonial-card--featured {
    border-top: 3px solid var(--color-accent-red);
    background: #fff9f9;
}

.testimonial-stars {
    color: #FFD100;
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    flex-grow: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}
.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-primary);
}
.testimonial-author span {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-accent-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--color-primary);
    color: white;
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 { color: white; margin-bottom: 1rem; }
.footer-brand h3 span { color: var(--color-accent-yellow); }
.footer-brand p { color: #ccc; max-width: 350px; line-height: 1.7; }

.footer-links h4, .footer-legal h4 { color: white; margin-bottom: 1rem; }
.footer-links a, .footer-legal a {
    color: #ccc; display: block; margin-bottom: 0.5rem; transition: 0.2s;
}
.footer-links a:hover, .footer-legal a:hover { color: var(--color-accent-yellow); }

.footer-bottom {
    padding: 1.5rem 2rem; text-align: center; border-top: 1px solid #333; color: #888;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-fade-up { animation: fadeUp 1s ease-out forwards; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Animated Form Container */
.enroll-form-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.enroll-form-container.open {
    max-height: 1000px; /* High value to allow content to grow */
    opacity: 1;
    margin-top: 1rem;
}

/* Ensure the form inside is visible and flexes correctly when open */
.enroll-form-container form {
    display: flex;
    flex-direction: column;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%; background: white;
        padding: 2rem; border-bottom: 1px solid var(--color-border);
    }
    .nav-links.show { display: flex; }
    .mobile-toggle { display: flex; }
    .top-bar-inner { justify-content: center; }
    .contact-container { grid-template-columns: 1fr; }

    /* Top bar: keep phone + email on ONE line */
    .contact-info-top {
        gap: 0.8rem;
        flex-wrap: nowrap;
        align-items: center;
    }
    .contact-info-top span {
        font-size: 0.68rem;
        white-space: nowrap;
    }

    /* Footer: stack columns on mobile so text doesn't wrap word-by-word */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-brand p {
        max-width: 100%;
    }

    /* Keep hero image on mobile — stronger gradient so text stays readable */
    .hero {
        min-height: 70vh;
    }
    /* Mobile: switch gradient to top-to-bottom so text stays readable */
    .hero-bg::after {
        background: linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 55%, rgba(255,255,255,0.4) 100%);
    }
    /* ::before keeps scaleX(-1) from the shared rule above */
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 52px;
    height: 52px;
    bottom: 25px;
    right: 25px;
    background-color: var(--color-accent-red);
    color: white;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    background-color: var(--color-accent-red-hover);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 46px;
        height: 46px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        width: 22px;
        height: 22px;
    }
}
