/* =========================================================
   GCSE MATHS TUTOR
   Modern Homepage Styles
========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
    --accent: #eff6ff;
    --radius: 16px;
    --shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin-bottom: 16px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-navigation {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.nav-container {
    max-width: 1400px;
    margin: auto;

    padding: 0 30px;

    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--dark);
}

.site-logo span {
    color: var(--primary);
}

.navigation-links {
    display: flex;
    align-items: center;
    gap: 27px;
}

.navigation-links a {
    font-size: 14px;
    font-weight: 600;
    color: #475569;

    transition: 0.2s ease;
}

.navigation-links a:hover,
.navigation-links a.active {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary) !important;
    color: white !important;

    padding: 11px 18px;

    border-radius: 9px;

    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.22);
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;

    border: none;
    background: none;

    font-size: 26px;
    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    background:
        radial-gradient(
            circle at 85% 20%,
            #dbeafe 0,
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #f8fafc,
            #ffffff
        );

    padding: 90px 30px 85px;
}

.hero-container {
    max-width: 1200px;
    margin: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(320px, 0.8fr);

    gap: 70px;

    align-items: center;
}

.hero-label,
.section-label {
    color: var(--primary);

    text-transform: uppercase;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 15px;
}

.hero h1 {
    color: var(--dark);

    font-size: clamp(42px, 5vw, 70px);

    line-height: 1.04;

    letter-spacing: -3px;

    max-width: 800px;

    margin-bottom: 25px;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero-description {
    max-width: 680px;

    font-size: 19px;

    line-height: 1.7;

    color: var(--muted);

    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;

    gap: 13px;

    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 22px;

    border-radius: 10px;

    font-size: 15px;

    font-weight: 700;

    transition: 0.2s ease;
}

.primary-button {
    background: var(--primary);
    color: white;

    box-shadow:
        0 10px 25px
        rgba(37, 99, 235, 0.25);
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.secondary-button {
    border: 1px solid var(--border);
    background: white;
    color: var(--dark);
}

.secondary-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-trust {
    display: flex;

    flex-wrap: wrap;

    gap: 20px;

    margin-top: 25px;

    font-size: 13px;

    color: var(--muted);
}


/* =========================================================
   HERO CARD
========================================================= */

.hero-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 22px;

    padding: 34px;

    box-shadow:
        0 25px 60px
        rgba(15, 23, 42, 0.10);
}

.hero-card-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 28px;
}

.small-label {
    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: var(--muted);
}

.status-dot {
    color: #16a34a;

    font-size: 12px;
}

.hero-card h2 {
    color: var(--dark);

    font-size: 29px;

    line-height: 1.2;

    letter-spacing: -1px;

    margin-bottom: 15px;
}

.hero-card p {
    color: var(--muted);

    font-size: 15px;
}

.progress-box {
    margin: 30px 0;
}

.progress-label {
    display: flex;

    justify-content: space-between;

    font-size: 12px;

    margin-bottom: 9px;
}

.progress-bar {
    height: 8px;

    border-radius: 20px;

    background: #e2e8f0;

    overflow: hidden;
}

.progress-value {
    width: 78%;

    height: 100%;

    background: var(--primary);
}

.card-cta {
    display: block;

    text-align: center;

    padding: 13px;

    border-radius: 9px;

    background: var(--accent);

    color: var(--primary);

    font-weight: 800;

    font-size: 14px;
}


/* =========================================================
   VALUE STRIP
========================================================= */

.value-strip {
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.value-container {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);
}

.value-container > div {
    padding: 22px 25px;

    border-right: 1px solid var(--border);

    display: flex;

    gap: 12px;

    align-items: center;
}

.value-container > div:last-child {
    border-right: none;
}

.value-container strong {
    color: var(--primary);

    font-size: 13px;
}

.value-container span {
    font-size: 13px;

    font-weight: 700;

    color: var(--dark);
}


/* =========================================================
   PAGE LAYOUT
========================================================= */

.page-layout {
    max-width: 1400px;

    margin: auto;

    padding: 70px 30px;

    display: grid;

    grid-template-columns:
        220px
        minmax(0, 1fr)
        220px;

    gap: 35px;
}


/* =========================================================
   SIDEBARS
========================================================= */

.sidebar-card {
    position: sticky;

    top: 105px;

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 20px;

    background: var(--light);
}

.sidebar-card h3 {
    color: var(--dark);

    font-size: 15px;

    margin-bottom: 14px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    display: block;

    padding: 10px 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.5;

    transition: 0.2s;
}

.sidebar-list a:hover {
    color: var(--primary);

    padding-left: 3px;
}


/* =========================================================
   CENTRAL CONTENT
========================================================= */

.main-content {
    min-width: 0;
}

.intro-section {
    max-width: 850px;

    margin-bottom: 75px;
}

.intro-section h2,
.services-section h2,
.topics-section h2,
.why-section h2 {
    color: var(--dark);

    font-size: 36px;

    line-height: 1.2;

    letter-spacing: -1.3px;

    margin-bottom: 20px;
}

.intro-section p {
    font-size: 17px;

    color: var(--muted);
}


/* =========================================================
   SERVICES
========================================================= */

.services-section {
    margin-bottom: 75px;
}

.section-heading {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    align-items: end;

    margin-bottom: 28px;
}

.text-link {
    color: var(--primary);

    font-size: 14px;

    font-weight: 800;

    white-space: nowrap;
}

.feature-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 17px;
}

.feature-card {
    padding: 25px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: white;

    transition: 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);

    border-color: #bfdbfe;

    box-shadow: var(--shadow);
}

.feature-icon {
    width: 43px;

    height: 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--accent);

    color: var(--primary);

    border-radius: 10px;

    font-weight: 900;

    margin-bottom: 18px;
}

.feature-card h3 {
    color: var(--dark);

    font-size: 19px;

    margin-bottom: 8px;
}

.feature-card p {
    color: var(--muted);

    font-size: 14px;
}

.card-link {
    color: var(--primary);

    font-size: 13px;

    font-weight: 800;
}


/* =========================================================
   TOPICS
========================================================= */

.topics-section {
    padding: 55px 0;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    margin-bottom: 75px;
}

.topics-section > p {
    color: var(--muted);

    max-width: 700px;

    margin-bottom: 25px;
}

.topic-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}

.topic-grid a {
    padding: 14px 16px;

    background: var(--light);

    border: 1px solid var(--border);

    border-radius: 9px;

    color: var(--dark);

    font-size: 14px;

    font-weight: 700;

    transition: 0.2s;
}

.topic-grid a:hover {
    color: var(--primary);

    border-color: #bfdbfe;

    background: var(--accent);
}


/* =========================================================
   WHY SECTION
========================================================= */

.why-section {
    margin-bottom: 75px;
}

.why-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.why-number {
    color: var(--primary);

    font-size: 12px;

    font-weight: 900;
}

.why-grid h3 {
    color: var(--dark);

    font-size: 19px;

    margin: 10px 0 7px;
}

.why-grid p {
    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    background: var(--dark);

    color: white;

    border-radius: 20px;

    padding: 45px;

    position: relative;

    overflow: hidden;
}

.cta-section::after {
    content: "";

    position: absolute;

    width: 230px;

    height: 230px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.25);

    right: -70px;

    top: -80px;
}

.cta-content {
    position: relative;

    z-index: 2;

    max-width: 650px;
}

.cta-section h2 {
    font-size: 32px;

    line-height: 1.2;

    margin-bottom: 12px;
}

.cta-section p {
    color: #cbd5e1;

    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;

    padding: 13px 20px;

    border-radius: 9px;

    background: white;

    color: var(--dark);

    font-size: 14px;

    font-weight: 800;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #020617;

    color: #cbd5e1;

    margin-top: 30px;
}

.footer-container {
    max-width: 1200px;

    margin: auto;

    padding: 60px 30px;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 60px;
}

.footer-logo {
    color: white;

    font-size: 22px;

    font-weight: 900;

    margin-bottom: 12px;
}

.footer-logo span {
    color: #60a5fa;
}

.footer-brand p {
    max-width: 470px;

    color: #94a3b8;

    font-size: 14px;
}

.site-footer h4 {
    color: white;

    font-size: 14px;

    margin-bottom: 15px;
}

.footer-links a {
    display: block;

    color: #94a3b8;

    font-size: 13px;

    margin-bottom: 8px;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    font-size: 13px;

    color: #94a3b8;
}

.footer-cta {
    display: inline-block;

    padding: 9px 14px;

    background: var(--primary);

    color: white;

    border-radius: 7px;

    font-size: 12px;

    font-weight: 800;
}

.footer-bottom {
    max-width: 1200px;

    margin: auto;

    padding: 20px 30px;

    border-top: 1px solid #1e293b;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-size: 12px;

    color: #64748b;
}

.footer-bottom div {
    display: flex;

    gap: 20px;
}

.footer-bottom a:hover {
    color: white;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .page-layout {
        grid-template-columns:
            180px
            minmax(0, 1fr)
            180px;
    }

    .navigation-links {
        gap: 16px;
    }

}


@media (max-width: 900px) {

    .hero-container {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .hero-card {
        max-width: 600px;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }

    .sidebar-left,
    .sidebar-right {
        display: none;
    }

    .value-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-container > div:nth-child(2) {
        border-right: none;
    }

}


@media (max-width: 700px) {

    .nav-container {
        min-height: 65px;

        padding: 0 20px;
    }

    .mobile-menu-button {
        display: block;
    }

    .navigation-links {
        display: none;

        position: absolute;

        left: 15px;

        right: 15px;

        top: 70px;

        padding: 20px;

        background: white;

        border: 1px solid var(--border);

        border-radius: 12px;

        box-shadow: var(--shadow);

        flex-direction: column;

        align-items: stretch;

        gap: 0;
    }

    .navigation-links.mobile-open {
        display: flex;
    }

    .navigation-links a {
        padding: 12px 5px;
    }

    .nav-cta {
        text-align: center;

        margin-top: 8px;
    }

    .hero {
        padding: 65px 20px;
    }

    .hero h1 {
        font-size: 43px;

        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .value-container {
        grid-template-columns: 1fr;
    }

    .value-container > div {
        border-right: none;

        border-bottom: 1px solid var(--border);
    }

    .page-layout {
        padding: 50px 20px;
    }

    .feature-grid,
    .topic-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;

        flex-direction: column;
    }

    .intro-section h2,
    .services-section h2,
    .topics-section h2,
    .why-section h2 {
        font-size: 30px;
    }

    .cta-section {
        padding: 30px 25px;
    }

    .cta-section h2 {
        font-size: 27px;
    }

    .footer-container {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 45px 25px;
    }

    .footer-bottom {
        flex-direction: column;

        padding: 20px 25px;
    }

}























/* ==========================================================================
   GCSE Maths Tutor Booking Form
   Add this to the site's main stylesheet, or load this file on contact.php.
   These styles deliberately use the existing template's visual language.
   ========================================================================== */

.gcse-booking-form {
    margin-top: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.form-field label {
    font-weight: 700;
    line-height: 1.4;
}

.form-field label span {
    margin-left: 0.2rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(30, 40, 60, 0.16);
    border-radius: 12px;
    background: #fff;
    padding: 0.9rem 1rem;
    font: inherit;
    line-height: 1.45;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(30, 80, 160, 0.55);
    box-shadow: 0 0 0 4px rgba(30, 80, 160, 0.08);
}

.form-field small {
    line-height: 1.5;
    opacity: 0.72;
}

.form-section-heading {
    margin: 2.5rem 0 1.15rem;
}

.form-section-heading h2 {
    margin-top: 0.3rem;
}

.form-submit-area {
    margin-top: 2rem;
    padding: 1.4rem;
    border-radius: 16px;
    background: rgba(30, 40, 60, 0.035);
}

.form-submit-area p {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.form-submit-button {
    border: 0;
    cursor: pointer;
}

.form-error {
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid rgba(180, 40, 40, 0.2);
    background: rgba(180, 40, 40, 0.06);
    line-height: 1.5;
    font-weight: 600;
}

@media (max-width: 900px) {

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

}

@media (max-width: 600px) {

    .gcse-booking-form {
        margin-top: 1rem;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        border-radius: 10px;
        padding: 0.82rem 0.9rem;
    }

    .form-submit-area {
        padding: 1.1rem;
    }

}
