/* ====================================================
   ISLAMABAD QURAN ACADEMY — Complete Stylesheet
   Mobile-First Responsive | Secure | SEO-Optimized
   ==================================================== */

/* ── CSS Variables ── */
:root {
    --green-50: #ecfdf5;
    --green-100: #d1fae5;
    --green-200: #a7f3d0;
    --green-300: #6ee7b7;
    --green-400: #34d399;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;
    --green-800: #065f46;
    --green-900: #064e3b;
    --green-950: #022c22;
    --gold-50: #fffbeb;
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-700: #b45309;
    --gold-800: #92400e;
    --gold-900: #78350f;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-arabic: 'Amiri', serif;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Section Defaults ── */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--green-50);
}

.section-dark {
    background: linear-gradient(135deg, var(--green-900), var(--green-950));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1.5px solid var(--green-300);
    color: var(--green-700);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.section-badge-gold {
    border-color: var(--gold-400);
    color: var(--gold-300);
    background: rgba(251, 191, 36, 0.1);
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-title-white {
    color: var(--white);
}

.text-green {
    color: var(--green-600);
}

.text-gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--green-600), var(--gold-500));
    border-radius: 2px;
    margin-bottom: 20px;
}

.section-divider-center {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--green-600), var(--gold-500));
    border-radius: 2px;
    margin: 0 auto 20px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 680px;
}

.section-subtitle-light {
    color: rgba(255,255,255,0.8);
}

.text-center {
    text-align: center;
}

/* ── Islamic Pattern Overlay ── */
.hero-pattern,
.section-pattern,
.footer-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* ====================================================
   NAVIGATION
   ==================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-logo-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--green-800);
    line-height: 1.2;
}

.nav-logo-tagline {
    display: none;
    font-size: 11px;
    color: var(--gray-500);
}

.nav-links {
    display: none;
    gap: 2px;
}

.nav-links a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--green-700);
    background: var(--green-50);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-phone {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-700);
    white-space: nowrap;
}

.nav-cta {
    display: none;
    padding: 8px 18px;
    background: var(--green-600);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--green-700);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--green-50);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--green-100);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    gap: 2px;
    z-index: 999;
}

/* ====================================================
   HERO SECTION
   ==================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 50%, var(--green-950) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: var(--gold-300);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge svg {
    fill: var(--gold-400);
    flex-shrink: 0;
}

.hero-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title-accent {
    background: linear-gradient(90deg, var(--gold-400), var(--gold-600), var(--gold-400));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.hero-description {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 400px;
}

.hero-stat-number {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--gold-400);
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.4);
    animation: bounce-slow 2s ease-in-out infinite;
}

@keyframes bounce-slow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--green-600);
    color: var(--white);
    padding: 12px 28px;
    font-size: 15px;
}

.btn-primary:hover {
    background: var(--green-700);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    background: rgba(255,255,255,0.05);
    padding: 12px 28px;
    font-size: 15px;
    backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-green {
    border: 2px solid var(--green-200);
    color: var(--green-700);
    background: var(--white);
    padding: 10px 24px;
    font-size: 14px;
}

.btn-outline-green:hover {
    background: var(--green-50);
    border-color: var(--green-400);
}

.btn-outline-gold {
    border: 2px solid var(--gold-200);
    color: var(--gold-700);
    background: var(--white);
    padding: 10px 24px;
    font-size: 14px;
}

.btn-outline-gold:hover {
    background: var(--gold-50);
    border-color: var(--gold-400);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

/* ====================================================
   ABOUT SECTION
   ==================================================== */
.about-grid {
    display: grid;
    gap: 40px;
}

.about-image-wrap {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: var(--radius-xl);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3 / 2;
}

.about-image-badge {
    position: absolute;
    background: var(--white);
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.about-float-1 {
    bottom: -12px;
    left: -8px;
}

.about-float-2 {
    top: -12px;
    right: -8px;
    animation-delay: 1s;
}

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

.about-badge-icon {
    width: 44px;
    height: 44px;
    background: var(--green-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-badge-icon svg {
    stroke: var(--green-700);
}

.about-badge-stars {
    display: flex;
    gap: 2px;
}

.about-image-badge strong {
    display: block;
    font-size: 13px;
    color: var(--gray-900);
}

.about-image-badge small {
    font-size: 11px;
    color: var(--gray-500);
}

.about-text {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-checklist {
    display: grid;
    gap: 10px;
    margin: 24px 0 28px;
}

.about-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.about-checklist svg {
    flex-shrink: 0;
}

/* ====================================================
   COURSES
   ==================================================== */
.courses-grid {
    display: grid;
    gap: 20px;
}

.course-card {
    background: var(--white);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(5, 150, 105, 0.1);
    border-color: var(--green-200);
}

.course-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.course-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon-green {
    background: var(--green-100);
    color: var(--green-700);
}

.course-icon-gold {
    background: var(--gold-100);
    color: var(--gold-700);
}

.course-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}

.course-badge-green {
    background: var(--green-100);
    color: var(--green-700);
}

.course-badge-gold {
    background: var(--gold-100);
    color: var(--gold-700);
}

.course-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.course-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--green-600);
    margin-bottom: 12px;
}

.course-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.course-features {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.course-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.5;
}

.course-features li::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--green-100);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ====================================================
   HOW IT WORKS
   ==================================================== */
.steps-grid {
    display: grid;
    gap: 24px;
    position: relative;
}

.step-card {
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 0;
    right: calc(50% - 50px);
    background: var(--gold-400);
    color: var(--green-950);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
}

.step-icon {
    width: 72px;
    height: 72px;
    margin: 8px auto 20px;
    background: var(--green-600);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.25);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ====================================================
   WHY CHOOSE US
   ==================================================== */
.features-grid {
    display: grid;
    gap: 16px;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--green-400);
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

/* ====================================================
   TESTIMONIALS
   ==================================================== */
.testimonials-grid {
    display: grid;
    gap: 16px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-100);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--green-700);
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
    color: var(--gray-900);
}

.testimonial-author small {
    font-size: 12px;
    color: var(--gray-500);
}

/* ====================================================
   LOCATIONS
   ==================================================== */
.locations-grid {
    display: grid;
    gap: 16px;
}

.location-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.location-card:hover {
    box-shadow: var(--shadow-md);
}

.location-main {
    border: 2px solid var(--green-500);
    background: linear-gradient(135deg, rgba(5,150,105,0.03), rgba(251,191,36,0.03));
}

.location-pin {
    color: var(--gray-400);
    margin-bottom: 8px;
}

.location-main .location-pin {
    color: var(--green-600);
}

.location-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.location-badge {
    display: inline-block;
    background: var(--green-600);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.location-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

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

.faq-item {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--green-200);
    background: rgba(5, 150, 105, 0.02);
}

.faq-question {
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    transition: var(--transition);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--green-600);
    flex-shrink: 0;
    margin-left: 12px;
    transition: var(--transition);
}

.faq-item[open] .faq-question::after {
    content: '\2212';
}

.faq-question:hover {
    color: var(--green-700);
}

.faq-answer {
    padding: 0 20px 18px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.8;
}

/* ====================================================
   CONTACT
   ==================================================== */
.contact-grid {
    display: grid;
    gap: 32px;
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
}

.form-row {
    display: grid;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-800);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
}

.form-error {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    min-height: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-disclaimer {
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 12px;
}

/* ── CAPTCHA Styles (Contact Form) ── */
.captcha-group .captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.captcha-question-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 2px solid var(--green-200);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    user-select: none;
    min-width: 140px;
    justify-content: center;
    transition: border-color 0.2s;
}

.captcha-question-box svg {
    color: var(--green-600);
    flex-shrink: 0;
}

.captcha-question-box .captcha-text {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
    color: var(--green-800);
    letter-spacing: 2px;
}

.captcha-group input[type="text"] {
    flex: 1;
    min-width: 120px;
}

/* Contact Success */
.contact-success {
    background: linear-gradient(135deg, rgba(5,150,105,0.05), rgba(251,191,36,0.05));
    border: 2px solid var(--green-200);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    text-align: center;
}

.contact-success-icon {
    margin-bottom: 20px;
}

.contact-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.contact-success p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.contact-success-note {
    font-size: 14px;
    color: var(--gray-500);
}

.contact-success-note a {
    color: var(--green-700);
    font-weight: 600;
}

/* Contact Info */
.contact-info-card {
    background: linear-gradient(135deg, rgba(5,150,105,0.04), rgba(5,150,105,0.01));
    border: 1px solid var(--green-100);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    margin-bottom: 16px;
}

.contact-info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: var(--transition);
}

a.contact-info-item:hover {
    transform: translateX(4px);
}

.contact-info-icon {
    width: 42px;
    height: 42px;
    background: var(--green-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    flex-shrink: 0;
    transition: var(--transition);
}

a.contact-info-item:hover .contact-info-icon {
    background: var(--green-200);
}

.contact-info-item strong {
    display: block;
    font-size: 14px;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.contact-info-item span {
    font-size: 13px;
    color: var(--gray-600);
}

/* WhatsApp Card */
.whatsapp-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 2px solid #86efac;
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}

.whatsapp-icon-wrap {
    width: 52px;
    height: 52px;
    background: #22c55e;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.whatsapp-card strong {
    display: block;
    font-size: 16px;
    color: var(--gray-900);
}

.whatsapp-card span {
    font-size: 13px;
    color: var(--gray-600);
}

/* Offer Card */
.offer-card {
    background: linear-gradient(135deg, var(--gold-50), #fffbeb);
    border: 1px solid var(--gold-200);
    border-radius: var(--radius-xl);
    padding: 24px;
    text-align: center;
}

.offer-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 12px 0 8px;
}

.offer-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
    background: var(--green-950);
    color: var(--green-200);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    gap: 32px;
    padding: 48px 0 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.footer-logo strong {
    font-size: 15px;
    color: var(--white);
    display: block;
    line-height: 1.2;
}

.footer-logo small {
    font-size: 11px;
    color: var(--green-400);
}

.footer-about p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: var(--green-800);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-300);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--green-700);
    color: var(--white);
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col ul {
    display: grid;
    gap: 8px;
}

.footer-col ul a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--green-400);
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 6px;
}

.footer-nap {
    font-size: 12px !important;
    color: rgba(255,255,255,0.3) !important;
}

/* ====================================================
   WHATSAPP FLOATING BUTTON
   ==================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 56px;
    height: 56px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
    animation: pulse-green 2s infinite;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.5);
}

/* ====================================================
   BACK TO TOP
   ==================================================== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 900;
    width: 44px;
    height: 44px;
    background: var(--green-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--green-700);
    transform: translateY(-2px);
}

/* ─── WhatsApp Floating Button ─── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    text-decoration: none;
}
.whatsapp-float svg { pointer-events: none; }
.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: #fff;
    color: #374151;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}
@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
}

/* ====================================================
   TABLET (768px+)
   ==================================================== */
@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 56px;
    }

    .section-title {
        font-size: 34px;
    }

    .section-subtitle {
        font-size: 17px;
    }

    /* Nav */
    .nav-container {
        height: 72px;
    }

    .nav-logo img {
        width: 44px;
        height: 44px;
    }

    .nav-logo-name {
        font-size: 16px;
    }

    .nav-logo-tagline {
        display: block;
    }

    .nav-phone {
        display: flex;
    }

    .nav-cta {
        display: inline-flex;
    }

    /* Hero */
    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-ctas {
        flex-direction: row;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 48px;
    }

    /* Courses */
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Locations */
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 3fr 2fr;
        gap: 40px;
    }

    .contact-form {
        padding: 36px 32px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

/* ====================================================
   DESKTOP (1024px+)
   ==================================================== */
@media (min-width: 1024px) {
    .section {
        padding: 100px 0;
    }

    .container {
        padding: 0 40px;
    }

    .section-title {
        font-size: 38px;
    }

    /* Nav */
    .nav-container {
        height: 80px;
    }

    .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: row;
        position: static;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
    }

    /* Hero */
    .hero-title {
        font-size: 52px;
    }

    .hero-description {
        font-size: 18px;
    }

    /* Courses */
    .courses-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Locations */
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ====================================================
   LARGE DESKTOP (1280px+)
   ==================================================== */
@media (min-width: 1280px) {
    .section-title {
        font-size: 42px;
    }

    .hero-title {
        font-size: 58px;
    }

    .hero-content {
        padding: 120px 40px 80px;
    }
}

/* ====================================================
   PRINT STYLES
   ==================================================== */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .hero-scroll-indicator,
    .hero-ctas {
        display: none !important;
    }

    .hero {
        min-height: auto;
        background: var(--white);
    }

    .hero-bg, .hero-overlay, .hero-pattern {
        display: none;
    }

    .hero-title,
    .hero-title-accent,
    .hero-description,
    .hero-stat-number {
        color: var(--gray-900);
        -webkit-text-fill-color: var(--gray-900);
    }

    body {
        color: #000;
    }
}

/* ====================================================
   ACCESSIBILITY - Focus & Reduced Motion
   ==================================================== */
:focus-visible {
    outline: 3px solid var(--green-500);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}