/* ========================================================
   Courses Zone Academy - English Subdomain Design System
   Modern, Unified, Pixel-Perfect, Responsive & Arabic RTL
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Brand Colors */
    --primary: #1e40af;           /* Professional Royal Blue */
    --primary-dark: #1e3a8a;      /* Deep Navy Blue */
    --primary-light: #eff6ff;     /* Ice Blue background */
    --primary-glow: rgba(30, 64, 175, 0.15);

    --secondary: #d97706;         /* Amber Accent */
    --secondary-hover: #b45309;
    --secondary-light: #fef3c7;

    --success: #10b981;           /* Emerald Green */
    --success-light: #ecfdf5;

    --whatsapp: #25d366;          /* WhatsApp Brand Green */
    --whatsapp-dark: #1ea952;
    --whatsapp-glow: rgba(37, 211, 102, 0.35);

    /* Neutrals */
    --dark: #0f172a;              /* Slate 900 */
    --dark-alt: #1e293b;          /* Slate 800 */
    --text: #334155;              /* Slate 700 */
    --text-muted: #64748b;        /* Slate 500 */
    --border: #e2e8f0;            /* Slate 200 */
    --border-light: #f1f5f9;      /* Slate 100 */
    --light: #f8fafc;             /* Slate 50 */
    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);

    /* Layout */
    --container-max: 1220px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --font-sans: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    color: var(--text);
    background-color: var(--white);
}

body {
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.page-content {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Containers */
.site-container,
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Sections */
.section {
    padding: 4.5rem 0;
}

.section-light {
    background-color: var(--light);
}

.section-title-wrap {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0.75rem 0;
    line-height: 1.35;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #4338ca 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    line-height: 1;
}

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

.badge-secondary {
    background-color: var(--secondary-light);
    color: var(--secondary-hover);
}

.badge-success {
    background-color: var(--success-light);
    color: #065f46;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    text-decoration: none;
    line-height: 1.25;
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.25);
}

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

.btn-secondary:hover {
    background: var(--secondary-hover);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 4px 14px var(--whatsapp-glow);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--light);
    border-color: #cbd5e1;
    color: var(--primary);
    transform: translateY(-2px);
}

/* ================= Top Bar ================= */
.top-bar {
    background: var(--dark);
    color: #e2e8f0;
    font-size: 0.8125rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #cbd5e1;
}

.top-bar-item a {
    color: #ffffff;
    font-weight: 700;
}

.top-bar-item a:hover {
    color: #93c5fd;
}

/* ================= Site Header & Navigation ================= */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    gap: 1rem;
}

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

.brand-text-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-family: var(--font-sans);
    line-height: 1;
}

.brand-text-logo .brand-name-en {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: system-ui, -apple-system, sans-serif;
}

.brand-text-logo .brand-badge-en {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.775rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(30, 64, 175, 0.2);
    font-family: system-ui, -apple-system, sans-serif;
}

/* Footer light version */
.brand-text-logo.light-version .brand-name-en {
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text-logo.light-version .brand-badge-en {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.site-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.nav-cta {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================= Hero Section ================= */
.hero-section {
    padding: 4.5rem 0 5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

/* Alerts & Notifications */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-xl);
}

.contact-item .icon,
.icon {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-block;
    flex-shrink: 0;
}

.hero-badges {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.65rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.4rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-feature-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    width: 100%;
}

.feature-box-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-box-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
}

.pulse-indicator {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ================= Dual Cards (Offline vs Online) ================= */
.dual-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.mode-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mode-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: #cbd5e1;
}

.mode-card-header {
    margin-bottom: 1.25rem;
}

.mode-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 0.65rem;
}

.mode-card-desc {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.mode-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    color: var(--text);
}

.mode-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* ================= Features Grid ================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.15rem;
    line-height: 1;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.65rem;
}

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

/* ================= Levels Grid ================= */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.level-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    position: relative;
}

.level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px var(--primary-glow);
}

.level-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.level-code {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    font-family: monospace;
}

.level-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0.5rem 0 0.85rem;
}

.level-desc {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.level-topics {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem;
    font-size: 0.875rem;
    line-height: 1.6;
    border: 1px solid var(--border-light);
}

.level-topics strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.level-topics ul {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--text);
}

/* ================= Steps Grid ================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 6px 14px var(--primary-glow);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ================= CTA Banner ================= */
.cta-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    color: var(--white);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 30px -10px rgba(30, 64, 175, 0.4);
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.35;
}

.cta-desc {
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 2.25rem;
    opacity: 0.92;
    line-height: 1.8;
    color: #eff6ff;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ================= FAQ Accordion ================= */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    text-align: right;
    gap: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text);
    line-height: 1.8;
    font-size: 0.975rem;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* ================= Forms & Card ================= */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 760px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-size: 0.975rem;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control {
    resize: vertical;
}

/* ================= Level Test Interactive UI ================= */
.test-question-card {
    padding: 1.5rem 0;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.q-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.q-hint {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
}

.test-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.test-option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.05rem;
    font-weight: 600;
}

.test-option-label:hover {
    border-color: var(--primary);
    background: var(--light);
}

.test-option-label.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* ================= Floating WhatsApp Button ================= */
.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9999;
    width: 62px;
    height: 62px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px var(--whatsapp-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--whatsapp);
    opacity: 0.6;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.floating-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

.floating-whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: var(--white);
    font-size: 0.825rem;
    font-weight: 700;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: var(--shadow-md);
}

.floating-whatsapp:hover .floating-whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

/* ================= Footer ================= */
.site-footer {
    background: #090f1e;
    color: #94a3b8;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.footer-text {
    font-size: 0.925rem;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

.footer-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.925rem;
}

.footer-links a {
    color: #cbd5e1;
    transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
    color: #60a5fa;
    transform: translateX(-4px);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.925rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.contact-item .icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* Animations */
.animate-fadeIn {
    animation: fadeIn 0.35s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= Responsive Media Queries ================= */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-title {
        font-size: 2.35rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 65px;
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.75rem;
        box-shadow: var(--shadow-xl);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        visibility: hidden;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
    }
    .nav-menu.active {
        transform: translateY(0);
        visibility: visible;
    }
    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    .nav-cta {
        width: 100%;
        margin-right: 0;
        margin-top: 0.5rem;
    }
    .nav-cta .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-card {
        padding: 2rem 1.25rem;
    }
    .cta-banner {
        padding: 2.5rem 1.25rem;
    }
    .cta-title {
        font-size: 1.75rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 0.35rem;
    }
    .floating-whatsapp {
        bottom: 20px;
        left: 20px;
        width: 54px;
        height: 54px;
    }
}
