/* ============================================================
   EQASA Study Guides — "Modern Academy" style
   Navy / blue / teal, bold Montserrat display + Work Sans body.
   ============================================================ */

:root {
    --navy: #0B2545;
    --navy-deep: #071A33;
    --blue: #1D5FA8;
    --teal: #23A6A0;
    --bg: #F4F7FA;
    --white: #FFFFFF;
    --text: #0B2545;
    --text-soft: #38516E;
    --text-faint: #7A8CA3;
    --border: #D9E4EF;
    --gradient: linear-gradient(120deg, var(--blue), var(--teal));

    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Work Sans', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-card: 0 12px 32px -12px rgba(11, 37, 69, 0.18);
    --shadow-hero: 0 24px 48px -12px rgba(11, 37, 69, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--teal); }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 10px 24px -8px rgba(29, 95, 168, 0.55);
}
.btn-primary:hover { color: var(--white); }
.btn-ghost {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--border);
}
.btn-block { width: 100%; }

/* ---- Nav ---- */
.site-nav {
    background: var(--white);
    box-shadow: inset 0 -3px 0 var(--teal);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-nav .container {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand img { height: 42px; width: auto; border-radius: 6px; }
.brand-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.2px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}
.nav-links a:hover { color: var(--blue); }
.lang-toggle {
    display: flex;
    gap: 4px;
    background: #EAF1F8;
    padding: 4px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.lang-toggle a {
    padding: 5px 11px;
    border-radius: 14px;
    color: var(--text-faint);
}
.lang-toggle a.active {
    background: var(--blue);
    color: var(--white);
}
.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero {
    padding: 72px 0;
}
.hero .container {
    display: flex;
    align-items: center;
    gap: 56px;
}
.hero-copy { flex: 1; }
.hero-media { flex: 0.85; display: flex; justify-content: center; }
.hero-media img {
    max-width: 340px;
    border-radius: 14px;
    box-shadow: var(--shadow-hero);
}
.kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    background: var(--gradient);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}
h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--navy);
    margin: 0 0 16px;
}
.hero h1 { font-size: 48px; line-height: 1.1; font-weight: 800; }
.hero p { font-size: 18px; color: var(--text-soft); max-width: 460px; margin: 0 0 28px; }
.hero-actions { display: flex; align-items: center; gap: 18px; }
.hero-actions .secondary-link { font-size: 14px; font-weight: 600; color: var(--blue); }

/* ---- About ---- */
.about {
    background: var(--white);
    padding: 64px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.about .container { max-width: 780px; text-align: center; }
.about h2 { font-size: 30px; }
.about p { font-size: 17px; color: var(--text-soft); }

/* ---- Modules ---- */
.modules { padding: 72px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--text-soft); font-size: 16px; }

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.module-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.module-cover {
    aspect-ratio: 3/4;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    padding: 16px;
}
.module-cover img { width: 100%; height: 100%; object-fit: cover; }
.module-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.module-body .module-num {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-faint);
}
.module-body h3 { font-size: 17px; margin: 0; }
.module-price { font-size: 22px; font-weight: 800; color: var(--blue); margin-top: auto; }

/* ---- Pricing strip ---- */
.pricing-strip {
    background: var(--navy);
    padding: 32px 0;
}
.pricing-strip .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.price-chip {
    background: var(--white);
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--blue);
    min-width: 88px;
}
.price-chip.courier { background: var(--gradient); border-color: transparent; }
.price-chip .chip-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-faint);
}
.price-chip.courier .chip-label { color: var(--white); }
.price-chip .chip-price { font-size: 19px; font-weight: 800; color: var(--navy); }
.price-chip.courier .chip-price { color: var(--white); }

/* ---- Order form ---- */
.order-section { padding: 64px 0 96px; }
.order-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.order-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 36px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-grid .field-full { grid-column: 1 / -1; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
}
.field textarea { min-height: 88px; resize: vertical; }
.field-error {
    color: #C0392B;
    font-size: 12.5px;
    margin-top: 6px;
    display: none;
}
.field.has-error input, .field.has-error textarea { border-color: #C0392B; }
.field.has-error .field-error { display: block; }

.module-rows { margin: 28px 0; border-top: 1px solid var(--border); }
.module-row {
    display: grid;
    grid-template-columns: 2.4fr 1fr 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.module-row .module-row-name { font-weight: 700; font-size: 15px; }
.module-row .module-row-price { font-size: 13px; color: var(--text-faint); }
.module-row input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    text-align: center;
}
.module-row .row-subtotal { text-align: right; font-weight: 700; }

.signature-block { margin: 28px 0; }
.signature-pad-wrap {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    position: relative;
}
#signature-pad {
    display: block;
    width: 100%;
    height: 180px;
    touch-action: none;
    cursor: crosshair;
    border-radius: var(--radius-sm);
}
.signature-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.signature-actions button {
    background: none;
    border: none;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.signature-hint { font-size: 13px; color: var(--text-faint); }

/* ---- Order summary sidebar ---- */
.summary-card {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: sticky;
    top: 96px;
}
.summary-card h3 { color: var(--white); font-size: 18px; }
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: #C7D6E8;
}
.summary-line.total {
    border-bottom: none;
    margin-top: 8px;
    padding-top: 16px;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
}
.summary-card .btn { margin-top: 24px; }

/* ---- Confirmation ---- */
.confirmation { padding: 80px 0; text-align: center; }
.confirmation .container { max-width: 640px; }
.confirmation h1 { font-size: 34px; }
.confirmation p { color: var(--text-soft); font-size: 17px; }
.confirmation .btn { margin: 10px; }
.pdf-embed {
    width: 100%;
    height: 640px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: 28px 0;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--navy-deep);
    padding: 24px 0;
    text-align: center;
}
.site-footer span { font-size: 12px; color: var(--text-faint); letter-spacing: 0.3px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .hero .container { flex-direction: column; }
    .hero-media { order: -1; }
    .hero p { max-width: none; }
    .order-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .form-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
