/*
 * Grade Improve - Main Website Theme
 * ------------------------------------------------------------
 * Theme direction:
 * - Simple, clean, modern education-platform style
 * - Light white / very light blue background
 * - Soft blue and teal palette
 * - Rounded cards and buttons
 * - Parent-friendly, calm, trustworthy feeling
 * - Responsive web first
 */

:root {
    --color-bg: #f7fbff;
    --color-bg-soft: #eef8fb;
    --color-white: #ffffff;
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-teal: #14b8a6;
    --color-text: #102033;
    --color-muted: #5f6f85;
    --color-border: #dbeafe;
    --color-card-shadow: rgba(37, 99, 235, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --container: 1120px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.navbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    color: var(--color-text);
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
}

.nav-links a {
    color: var(--color-muted);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: white !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    color: var(--color-primary) !important;
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    text-decoration: none;
}

.hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.14), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(37, 99, 235, 0.12), transparent 30%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e6fffb;
    color: #0f766e;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 18px;
    color: var(--color-muted);
    margin: 0 0 26px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 24px 60px var(--color-card-shadow);
}

.hero-card img,
.illustration-card img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.section {
    padding: 64px 0;
}

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

.section-title h2 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.section-title p {
    color: var(--color-muted);
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 12px 32px var(--color-card-shadow);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.card p {
    color: var(--color-muted);
    margin-bottom: 0;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.illustration-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 18px 48px var(--color-card-shadow);
}

.faq-list {
    max-width: 880px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 14px;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.faq-item p {
    margin: 0;
    color: var(--color-muted);
}

.cta-box {
    background: linear-gradient(135deg, #1d4ed8, #0f766e);
    color: white;
    border-radius: var(--radius-lg);
    padding: 42px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 118, 110, 0.22);
}

.cta-box p {
    color: rgba(255, 255, 255, 0.88);
}

.site-footer {
    padding: 36px 0;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 14px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
}

/* Responsive behaviour for tablets and phones. */
@media (max-width: 860px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .hero-grid,
    .two-column {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 42px;
    }
}
