/* 
   CR Academy - Official Stylesheet
   Version 5.0 (Ultimate Premium Restoration)
   - Matches user provided screenshot for Contact Cards
   - Restores ALL missing component styles (Reviews, Success Stories, Footer)
   - Verified Mobile Responsiveness
*/

:root {
    --primary-h: 220;
    --primary-s: 85%;
    --primary-l: 55%;
    
    --primary-blue: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-blue-hover: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 10%));
    --primary-blue-light: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.08);
    
    --accent-orange: #ff8c42;
    --accent-pink: #ff4757;
    --text-bright: #ffffff;
    --text-main: #e2e8f0;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    --text-gray: #475569;
    
    --bg-light: #ffffff;
    --bg-soft: #f8fafc;
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.7);
    --border-soft: #f1f5f9;
    --border-dark: rgba(255, 255, 255, 0.1);
    
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.12);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
}

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

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

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section { padding: 120px 0; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 800;
}

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

.section-subtitle {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

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

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

/* --- TOP BAR --- */
.top-bar {
    background: var(--bg-dark);
    padding: 12px 0;
    color: white;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 30px;
}

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

.top-social a {
    color: rgba(255,255,255,0.6);
    font-weight: 700;
}

.top-social a:hover { color: white; }

/* --- HEADER --- */
.header {
    background: white;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

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

.logo-img { height: 58px; }

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 750;
    color: var(--text-dark);
    font-size: 0.95rem;
}

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

.btn-purchase {
    background: var(--primary-blue);
    color: white !important;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(30, 96, 213, 0.2);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* --- HERO --- */
.hero {
    min-height: 900px;
    background: var(--bg-dark);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    padding: 140px 0 240px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.92) 25%, rgba(2, 6, 23, 0.4) 100%);
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease backwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 5rem;
    animation: fadeInUp 0.8s ease backwards 0.6s;
}

.hero-actions .btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.play-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.play-btn-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
    font-size: 5rem;
    color: white;
    margin-bottom: 25px;
    line-height: 1.05;
}


.hero h1 span.typewriter {
    color: var(--primary-blue);
}

.hero p.tagline {
    font-size: 1.3rem;
    max-width: 650px;
    color: var(--text-main);
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.hero-image-side { position: relative; }

.hero-main-img-container {
    position: relative;
    padding: 20px;
}

.hero-main-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 4rem;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-floating-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(25px);
    padding: 1.8rem;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-floating-card.top { top: 40px; left: -50px; animation: floatAnim 5s infinite; }
.hero-floating-card.bottom { bottom: 80px; right: -50px; animation: floatAnim 5s infinite 2.5s; }

.lead-booking-bar {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1100px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2.5rem;
    padding: 1.8rem 3.5rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    z-index: 10;
}

.lead-booking-bar form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    flex: 1;
}

.lead-booking-bar input, .lead-booking-bar select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 12px;
    color: white;
}

/* --- COURSES --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.course-card {
    background: white;
    padding: 3.5rem;
    border-radius: 2.5rem;
    border: 1.5px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-blue);
    box-shadow: 0 25px 50px rgba(30, 96, 213, 0.1);
}

.course-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
}

.course-icon { font-size: 4rem; margin-bottom: 2rem; }
.course-title { font-size: 1.8rem; margin-bottom: 1.5rem; }
.course-desc { color: var(--text-muted); margin-bottom: 2.5rem; flex: 1; }

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px dashed #e2e8f0;
}

/* --- SUCCESS STORIES --- */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
}

.story-card {
    background: var(--bg-soft);
    border-radius: 2.5rem;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.story-image { height: 280px; position: relative; }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-stats {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--primary-blue);
    color: white;
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.story-content { padding: 3rem; }
.story-text { font-style: italic; font-size: 1.15rem; color: var(--text-dark); margin-bottom: 2rem; line-height: 1.7; }
.story-name { font-size: 1.4rem; margin-bottom: 5px; }
.story-position { color: var(--primary-blue); font-weight: 700; font-size: 0.9rem; }

/* --- REVIEWS (COMPREHENSIVE) --- */
.reviews-section-modern {
    background: #f8fafc;
    padding: 120px 0;
}

.reviews-header-wide {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
}

.overall-rating-card {
    background: white;
    padding: 2.5rem 3.5rem;
    border-radius: 2.5rem;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.big-score { font-size: 3.5rem; font-weight: 950; line-height: 1; }
.stars-gold { color: #FFD700; font-size: 1.5rem; margin: 8px 0; }
.review-count { color: var(--text-muted); font-weight: 700; }

.reviews-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.review-card-modern {
    background: white;
    padding: 3rem;
    border-radius: 2.5rem;
    border: 1.5px solid #f1f5f9;
    position: relative;
}

.review-card-top { display: flex; gap: 20px; margin-bottom: 25px; }
.reviewer-avatar {
    width: 65px;
    height: 65px;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.4rem;
}

.reviewer-name { font-size: 1.2rem; }
.verified-badge { font-size: 0.8rem; color: #10b981; font-weight: 700; margin-top: 4px; }

.review-rating-row { display: flex; justify-content: space-between; margin-bottom: 20px; align-items: center; }
.stars-modern { color: #FFD700; letter-spacing: 2px; }
.review-date-badge { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

.review-text-modern { color: var(--text-gray); font-style: italic; font-size: 1rem; line-height: 1.6; }

.google-source-icon { position: absolute; bottom: 2rem; right: 2rem; opacity: 0.3; }

/* --- CONTACT (MATCHING SCREENSHOT) --- */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 80px;
}

.info-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 1.5px solid #f1f5f9;
    box-shadow: 0 15px 35px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
}

.info-icon {
    width: 85px;
    height: 85px;
    background: #eff6ff;
    border-radius: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.info-details p {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.info-details span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
}

.form-card {
    background: white;
    padding: 1rem;
    border-radius: 3rem;
    box-shadow: var(--shadow-premium);
}

.form-header { margin-bottom: 2.5rem; }
.form-header h3 { font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; }
.form-header p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem;}

.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { margin-bottom: 25px; }

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 18px 22px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    outline: none;
    font-size: 1rem;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-blue-light);
}

.btn-glow-submit {
    width: 100%;
    padding: 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 900;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(30, 96, 213, 0.3);
}

.map-card { border-radius: 2.5rem; overflow: hidden; position: relative; }
.map-inner { height: 100%; min-height: 500px; }
.map-overlay-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1.5rem;
}
.map-overlay-card strong { display: block; font-size: 1.1rem; margin-bottom: 0.5rem; }
.map-overlay-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1rem; }
.map-link { color: var(--primary-blue); font-weight: 800; text-decoration: underline; }

/* --- FOOTER (COMPLETE) --- */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 120px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo { height: 75px; margin-bottom: 30px; }
.footer-desc { color: rgba(255,255,255,0.6); margin-bottom: 40px; font-size: 1.05rem; }

.footer-social { display: flex; gap: 18px; }
.footer-social a {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.footer-title { color: white; font-size: 1.35rem; margin-bottom: 35px; }
.footer-links li { margin-bottom: 18px; }
.footer-links a { color: rgba(255,255,255,0.5); font-weight: 600; }
.footer-links a:hover { color: white; padding-left: 8px; }

.footer-contact li { display: flex; gap: 15px; color: rgba(255,255,255,0.5); margin-bottom: 25px; font-weight: 600; }
.footer-contact span { color: var(--primary-blue); font-size: 1.2rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 40px; }
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.4);
}

/* --- CHATBOT --- */
.chatbot-wrapper { position: fixed; bottom: 40px; right: 40px; z-index: 99999; }
.chatbot-toggle {
    background: var(--primary-blue);
    color: white;
    padding: 16px 35px;
    border-radius: 99px;
    box-shadow: 0 15px 40px rgba(30,96,213,0.4);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 15px;
    border: none;
    cursor: pointer;
}

.chat-window {
    position: absolute;
    bottom: 95px;
    right: 0;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 2.5rem;
    display: none;
    flex-direction: column;
    box-shadow: 0 30px 90px rgba(0,0,0,0.3);
}

.chat-window.active { display: flex; animation: fadeInUp 0.4s ease; }

/* COMING SOON */
.coming-soon-page { min-height: 85vh; display: flex; align-items: center; background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%); }
.soon-grid { margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.soon-icon { font-size: 6rem; animation: floatAnim 4s infinite; margin-bottom: 2rem; }
.coming-soon-badge { background: var(--primary-blue); color: white; padding: 12px 30px; border-radius: 50px; font-weight: 900; }

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

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .section-title { font-size: 2.8rem; }
    .hero h1 { font-size: 3.5rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-stats { justify-content: center; }
    .footer-grid, .reviews-grid-modern, .contact-info-cards { grid-template-columns: 1fr 1fr; }
    .lead-booking-bar { flex-direction: column; width: 95%; }
    .lead-booking-bar form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .top-bar { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 50px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    }
    .nav-links.show { display: flex; }
    .header-actions .btn-purchase { display: none; }
    .footer-grid, .reviews-grid-modern, .contact-split-grid { grid-template-columns: 1fr; }
    .contact-info-cards { grid-template-columns: 1fr; gap: 20px; }
    .info-card { flex-direction: column; text-align: center; padding: 2rem 1.5rem; gap: 1rem; box-sizing: border-box; }
    .hero h1 { font-size: 2.5rem; }
    .lead-booking-bar form { grid-template-columns: 1fr; }
    
    /* Fix Reviews Header Overflow */
    .reviews-header-wide { flex-direction: column; align-items: center; text-align: center; gap: 30px; margin-bottom: 40px; }
    .overall-rating-card { flex-direction: column; padding: 1.5rem; gap: 1rem; width: 100%; box-sizing: border-box; }
    .big-score { font-size: 2.5rem; }

    /* Fix Chatbot Overflow */
    .chatbot-wrapper { right: 20px; bottom: 20px; }
    .chatbot-toggle { padding: 12px 25px; }
    .chat-window { width: calc(100vw - 40px); right: 0; }
}
