/*
Theme Name: 11+ Intensive Prep Site Shell
Theme URI: https://11plusintensiveprep.co.uk/
Author: 11Plus Intensive Prep
Description: A responsive public and learner-facing WordPress theme matching the 11Plus Intensive Prep landing-page palette and navigation.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: ep11-site-shell
*/

:root {
    --ep11-ink: #172033;
    --ep11-muted: #5f6b7a;
    --ep11-teal: #0f766e;
    --ep11-teal-dark: #115e59;
    --ep11-teal-light: #ccfbf1;
    --ep11-amber: #d97706;
    --ep11-cream: #fffaf0;
    --ep11-line: #dce6e4;
    --ep11-white: #ffffff;
    --ep11-page: #f8fbfa;
    --ep11-shadow: 0 18px 50px rgba(15, 23, 42, .09);
    --ep11-radius: 24px;
    --ep11-content: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ep11-page);
    color: var(--ep11-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.68;
}


a {
    color: var(--ep11-teal-dark);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--ep11-teal);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 4px;
}

.ep11-shell-container {
    width: min(var(--ep11-content), calc(100% - 40px));
    margin-inline: auto;
}

.ep11-shell-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    transform: translateY(-170%);
    padding: 10px 14px;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.ep11-shell-skip-link:focus {
    transform: translateY(0);
}

/* Legacy visual header/navigation removed in v1.1.0.
   The Power Up shell plugin owns site-wide navigation. */

body.ep11-shell-landing-active .ep11-shell-front-main {
    overflow: clip;
    background: #fff;
}

body.ep11-shell-landing-active #ep11-landing {
    margin-top: 0;
}

/* Standard public pages */
.ep11-shell-page-hero {
    padding: clamp(54px, 7vw, 90px) 0 46px;
    border-bottom: 1px solid var(--ep11-line);
    background:
        radial-gradient(circle at 88% 16%, rgba(20, 184, 166, .15), transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(245, 158, 11, .09), transparent 25%),
        linear-gradient(180deg, #fbfffe, #fff);
}

.ep11-shell-page-hero .ep11-shell-eyebrow {
    margin: 0 0 10px;
    color: var(--ep11-teal);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ep11-shell-page-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--ep11-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 5vw, 4.45rem);
    letter-spacing: -.038em;
    line-height: 1.07;
}

.ep11-shell-breadcrumbs {
    margin: 0 0 18px;
    color: #64748b;
    font-size: .9rem;
    font-weight: 750;
}

.ep11-shell-breadcrumbs a {
    color: var(--ep11-teal-dark);
}

.ep11-shell-page-main {
    padding: clamp(42px, 7vw, 82px) 0;
}

.ep11-shell-content {
    width: min(880px, 100%);
    margin-inline: auto;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--ep11-line);
    border-radius: var(--ep11-radius);
    background: #fff;
    box-shadow: var(--ep11-shadow);
}

.ep11-shell-content-wide {
    width: min(1040px, 100%);
}

.ep11-shell-content > :first-child {
    margin-top: 0;
}

.ep11-shell-content > :last-child {
    margin-bottom: 0;
}

.ep11-shell-content h2,
.ep11-shell-content h3 {
    color: var(--ep11-ink);
    line-height: 1.2;
}

.ep11-shell-content h2 {
    margin-top: 1.8em;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    letter-spacing: -.025em;
}

.ep11-shell-content h3 {
    margin-top: 1.6em;
}

.ep11-shell-content p,
.ep11-shell-content li {
    color: #455468;
}

.ep11-shell-content blockquote {
    margin: 1.6em 0;
    padding: 18px 22px;
    border-left: 4px solid var(--ep11-amber);
    border-radius: 0 14px 14px 0;
    background: var(--ep11-cream);
    color: #6b4c15;
}

.ep11-shell-content .wp-block-button__link,
.ep11-shell-content button[type="submit"],
.ep11-shell-content input[type="submit"] {
    border: 0;
    border-radius: 999px;
    background: var(--ep11-teal);
    color: #fff;
    font-weight: 900;
}

.ep11-shell-content .wp-block-button__link:hover,
.ep11-shell-content button[type="submit"]:hover,
.ep11-shell-content input[type="submit"]:hover {
    background: var(--ep11-teal-dark);
}

/* Registration and ordinary form readability */
.ep11-shell-content label,
.ep11-shell-content .wpforms-field-label {
    color: var(--ep11-ink) !important;
    font-weight: 900 !important;
}

.ep11-shell-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.ep11-shell-content select,
.ep11-shell-content textarea,
.ep11-shell-content .wpforms-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.ep11-shell-content .wpforms-form select,
.ep11-shell-content .wpforms-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px !important;
    border: 2px solid #b8c8c5 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--ep11-ink) !important;
}

.ep11-shell-content textarea,
.ep11-shell-content .wpforms-form textarea {
    min-height: 130px;
}

.ep11-shell-content input:focus,
.ep11-shell-content select:focus,
.ep11-shell-content textarea:focus {
    border-color: var(--ep11-teal) !important;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .14) !important;
}

.ep11-shell-content .wpforms-description,
.ep11-shell-content .wpforms-field-description {
    color: #526174 !important;
    font-weight: 650;
}

.ep11-shell-content .wpforms-submit {
    min-height: 48px;
    padding: 12px 22px !important;
}

/* Learner/course pages */
.ep11-shell-course-main {
    padding: 26px 0 54px;
    background: #f5f9f8;
}

.ep11-shell-course-canvas {
    width: min(1280px, calc(100% - 28px));
    margin-inline: auto;
}

body.ep11-shell-course-page .ep11-shell-footer {
    padding-top: 30px;
}

/* Legacy visual footer removed in v1.1.0. */

/* 404 */
.ep11-shell-not-found {
    max-width: 760px;
    margin: 70px auto;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--ep11-line);
    border-radius: var(--ep11-radius);
    background: #fff;
    box-shadow: var(--ep11-shadow);
    text-align: center;
}

.ep11-shell-not-found h1 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.ep11-shell-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--ep11-teal);
    color: #fff !important;
    font-weight: 900;
    text-decoration: none;
}

/* Core block alignment */
.alignwide {
    width: min(1080px, 100%);
    margin-inline: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .ep11-shell-container {
        width: min(100% - 26px, var(--ep11-content));
    }

    .ep11-shell-page-hero {
        padding: 42px 0 34px;
    }

    .ep11-shell-page-main {
        padding: 28px 0 48px;
    }

    .ep11-shell-content {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .ep11-shell-course-canvas {
        width: min(100% - 14px, 1280px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


