@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary: #3b82f6;
    --accent: #eff6ff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --glass-header: rgba(255, 255, 255, 0.8);
    --border-color: #e5e7eb;
    --transition: all 0.3s ease;
}

/* ── Global Reset + Overflow Fix ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
}

.container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* ── Hero ── */
.hero {
    padding: 12rem 0 8rem;
    background: linear-gradient(rgba(10, 20, 50, 0.65), rgba(10, 20, 50, 0.75)), url('img1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* ── Sections ── */
section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-gray);
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 3rem;
}

/* ── Feature Cards ── */
/* FIX: was minmax(260px,1fr) — caused overflow on mobile */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    min-width: 0; /* prevents grid blowout */
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ── Process Steps ── */
/* FIX: was minmax(200px,1fr) */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 2rem;
}

.process-step {
    position: relative;
    min-width: 0;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* ── Document Grid ── */
/* FIX: was minmax(250px,1fr) */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 1.5rem;
}

.doc-card {
    background: var(--bg-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    min-width: 0;
}

/* ── Stats ── */
/* FIX: was minmax(200px,1fr) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ── FAQ ── */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* ── YouTube Grid (inline style override) ── */
.yt-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
}

/* ── Eligibility Grid (inline style override) ── */
.eligibility-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
}

/* ── Footer ── */
footer {
    background-color: #0f172a;
    color: white;
    padding: 4rem 0 2rem;
}

/* FIX: was minmax(250px,1fr) */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: #94a3b8;
    margin-bottom: 0.8rem;
}

.footer-info a {
    color: var(--secondary);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* ── Sticky Contact ── */
.sticky-contact {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 2000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.sticky-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    gap: 0.3rem;
    transition: var(--transition);
}

.sticky-btn i {
    font-size: 1.5rem;
}

.call-btn {
    background-color: #c09d5c;
    color: white;
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
}

.sticky-btn:hover {
    filter: brightness(1.1);
}

@media (min-width: 769px) {
    .sticky-contact {
        bottom: 2rem;
        right: 2rem;
        left: auto;
        width: auto;
        flex-direction: column;
        align-items: flex-end;
        gap: 1rem;
        box-shadow: none;
    }

    .sticky-btn {
        width: 60px;
        height: 60px;
        flex: none;
        border-radius: 50%;
        padding: 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .sticky-btn span {
        display: none;
    }

    .sticky-btn i {
        font-size: 28px;
    }
}

/* ── Animations ── */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Contact Section ── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-item strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.contact-detail-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ── Form ── */
.contact-form-wrap {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.contact-form label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--bg-gray);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.btn-submit {
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem;
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
}

.form-success {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #166534;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-error {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #991b1b;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ════════════════════════════════════════
   MOBILE RESPONSIVE  (≤ 768px)
   All horizontal scroll fixes live here
   ════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Hero */
    .hero {
        padding: 8rem 0 5rem;
        background-attachment: scroll; /* fixed causes iOS scroll issues */
    }

    .hero h1 {
        font-size: 1.9rem;
        word-break: break-word;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Nav */
    .nav-links {
        display: none;
    }

    /* Force ALL multi-col grids to single column */
    .feature-grid,
    .process-grid,
    .doc-grid,
    .stats-grid,
    .footer-grid,
    .contact-layout,
    .yt-grid,
    .eligibility-grid {
        grid-template-columns: 1fr !important;
    }

    /* Form row: stack name + phone vertically */
    .contact-form .form-row {
        grid-template-columns: 1fr !important;
    }

    /* Section titles */
    .section-title {
        font-size: 1.75rem;
        word-break: break-word;
    }

    /* Sections less padding on mobile */
    section {
        padding: 3.5rem 0;
    }

    /* Contact form padding */
    .contact-form-wrap {
        padding: 1.5rem;
    }

    /* Stat numbers smaller */
    .stat-item h3 {
        font-size: 2rem;
    }
}

/* ── Very small phones (≤ 380px) ── */
@media (max-width: 380px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}