/* ============================================================
   MEGA Caps stylesheet
   Palette: England Red #C8102E, Navy #0A1628, Gold #C9A227,
   Parchment #F4EFE6. Type: Archivo Black display, Inter body.
   ============================================================ */

:root {
    --red: #C8102E;
    --red-dark: #A30D26;
    --navy: #0A1628;
    --navy-soft: #16263F;
    --gold: #C9A227;
    --gold-soft: #E3C766;
    --paper: #F4EFE6;
    --paper-dark: #EAE3D5;
    --white: #FFFFFF;
    --ink: #1A2233;
    --ink-light: #5A6478;
    --line: #DCD4C4;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(10, 22, 40, 0.10);
    --shadow-lift: 0 18px 44px rgba(10, 22, 40, 0.16);
    --font-display: 'Archivo Black', 'Arial Black', sans-serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 239, 230, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.25s ease;
}

.site-header.scrolled { box-shadow: 0 4px 18px rgba(10, 22, 40, 0.08); }

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: 0.04em;
}

.site-header__logo img { height: 38px; width: auto; }

.site-header__logo .logo-word { transform: translateY(1px); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--red); }

.cart-link { position: relative; }

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    margin-left: 4px;
    background: var(--red);
    color: var(--white);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: var(--navy) url('../images/hero-spitfire.jpg') center / cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10, 22, 40, 0.82) 0%, rgba(10, 22, 40, 0.55) 45%, rgba(10, 22, 40, 0.08) 80%);
}

.hero .container { position: relative; padding: 6rem 0; }

.hero__kicker {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.2rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.04;
    color: var(--white);
    text-transform: uppercase;
    max-width: 13ch;
    text-wrap: balance;
}

.hero__subtitle {
    margin-top: 1.2rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
    max-width: 44ch;
}

.hero__actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    padding: 0.85rem 1.7rem;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.65); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--block { width: 100%; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Trust strip ---------- */

.trust-strip { background: var(--navy); color: var(--white); }

.trust-strip .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem 2rem;
    padding: 0.9rem 0;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.trust-strip span { display: flex; align-items: center; gap: 0.5rem; opacity: 0.92; }

.trust-strip svg { width: 16px; height: 16px; fill: var(--gold); flex: none; }

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }

.section--tint { background: var(--paper-dark); }

.section__heading {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    text-transform: uppercase;
    color: var(--navy);
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
}

.section__lede {
    color: var(--ink-light);
    max-width: 62ch;
    margin-bottom: 2.6rem;
    font-size: 1.05rem;
}

.section__heading--center, .section__lede--center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Product grid ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.product-card__media { position: relative; background: #E9E4DA; }

.product-card__media img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.product-card__badge {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    background: var(--navy);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
}

.product-card__badge--gold { background: var(--gold); color: var(--navy); }
.product-card__badge--red { background: var(--red); }

.product-card__body {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__title {
    font-family: var(--font-display);
    font-size: 1.12rem;
    text-transform: uppercase;
    color: var(--navy);
    letter-spacing: 0.02em;
}

.product-card__desc {
    margin-top: 0.5rem;
    color: var(--ink-light);
    font-size: 0.93rem;
    flex: 1;
}

.product-card__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 1rem 0 1.1rem;
}

.product-card__price {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--navy);
}

.product-card__size-link {
    font-size: 0.85rem;
    color: var(--ink-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-body);
}

.product-card__size-link:hover { color: var(--red); }

.product-card__actions { display: grid; gap: 0.6rem; }

/* ---------- Story ---------- */

.story-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.story-grid img { border-radius: var(--radius); box-shadow: var(--shadow-lift); }

.story-copy h2 { margin-bottom: 1rem; }

.story-copy p { color: var(--ink-light); margin-bottom: 1rem; }

.story-points { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.8rem; }

.story-points li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; }

.story-points svg { width: 20px; height: 20px; fill: var(--red); flex: none; margin-top: 3px; }

/* ---------- Email signup ---------- */

.email-signup { background: var(--navy); color: var(--white); padding: 4rem 0; }

.email-signup__heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    text-transform: uppercase;
    text-align: center;
}

.email-signup__text { text-align: center; margin: 0.8rem auto 1.8rem; max-width: 46ch; color: rgba(255, 255, 255, 0.85); }

.email-signup__form {
    display: flex;
    gap: 0.7rem;
    max-width: 520px;
    margin: 0 auto;
}

.email-signup__input {
    flex: 1;
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
}

.email-signup__input::placeholder { color: rgba(255, 255, 255, 0.55); }

.email-signup__input:focus { outline: 2px solid var(--gold); border-color: transparent; }

.email-signup__privacy { text-align: center; margin-top: 1rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }

.input-light {
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-size: 1rem;
    font-family: var(--font-body);
}

.input-light::placeholder { color: var(--ink-light); }

.input-light:focus { outline: 2px solid var(--navy); border-color: transparent; }

/* ---------- Page shell (inner pages) ---------- */

.page-hero { background: var(--navy); color: var(--white); padding: 3.5rem 0 3rem; }

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.page-hero p { margin-top: 0.7rem; color: rgba(255, 255, 255, 0.82); max-width: 60ch; }

.page-body { padding: 3.5rem 0 4.5rem; }

.page-body .prose { max-width: 760px; }

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    text-transform: uppercase;
    color: var(--navy);
    margin: 2.2rem 0 0.8rem;
}

.prose h3 { font-size: 1.05rem; color: var(--navy); margin: 1.6rem 0 0.5rem; }

.prose p, .prose li { color: var(--ink-light); }

.prose ul, .prose ol { padding-left: 1.3rem; margin: 0.6rem 0 1rem; }

.prose a { color: var(--red); }

.prose strong { color: var(--ink); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }

.size-guide-table, .prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.93rem;
}

.size-guide-table th, .prose table th {
    background: var(--navy);
    color: var(--white);
    text-align: left;
    padding: 0.7rem 0.9rem;
    font-weight: 600;
}

.size-guide-table td, .prose table td {
    padding: 0.65rem 0.9rem;
    border-top: 1px solid var(--line);
    color: var(--ink);
}

/* ---------- Cart ---------- */

.cart-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.6rem;
    max-width: 820px;
}

.cart-row {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 1.1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.cart-row img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; }

.cart-row__name { font-weight: 700; color: var(--navy); }

.cart-row__unit { font-size: 0.85rem; color: var(--ink-light); }

.cart-row__qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--paper);
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

.qty-btn:hover { background: var(--paper-dark); }

.cart-row__line { text-align: right; }

.cart-row__price { font-family: var(--font-display); color: var(--navy); }

.cart-remove {
    background: none;
    border: none;
    color: var(--ink-light);
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 0.3rem;
}

.cart-remove:hover { color: var(--red); }

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.2rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--navy);
}

.cart-note { margin-top: 1rem; font-size: 0.88rem; color: var(--ink-light); }

.cart-empty { text-align: center; padding: 3rem 0; color: var(--ink-light); }

/* ---------- Modal ---------- */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.55);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.modal.active { display: flex; }

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.8rem;
}

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }

.modal-header h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; color: var(--navy); }

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ink-light);
}

.modal-close:hover { color: var(--red); }

/* ---------- FAQ accordion ---------- */

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--navy);
    padding: 1.1rem 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after { content: '+'; font-family: var(--font-display); color: var(--red); }

.faq-item[open] summary::after { content: '\2013'; }

.faq-item .faq-answer { padding: 0 0 1.2rem; color: var(--ink-light); }

/* ---------- Notices ---------- */

.notice {
    background: var(--white);
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin: 1.4rem 0;
    color: var(--ink);
    box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: var(--white); padding: 3rem 0 2rem; }

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-size: 1.3rem; }

.site-footer__brand img { height: 40px; }

.site-footer__tag { margin-top: 0.6rem; color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; max-width: 34ch; }

.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }

.site-footer__links a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 0.92rem; font-weight: 600; }

.site-footer__links a:hover { color: var(--gold-soft); }

.site-footer__copyright { padding-top: 1.4rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Utility ---------- */

.center { text-align: center; }

.mt-2 { margin-top: 2rem; }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
    .story-grid { grid-template-columns: 1fr; }
    .hero { min-height: 480px; }
    .hero::before {
        background: linear-gradient(180deg, rgba(10, 22, 40, 0.75) 0%, rgba(10, 22, 40, 0.55) 100%);
    }
}

@media (max-width: 620px) {
    .site-nav { gap: 1rem; }
    .site-nav a { font-size: 0.88rem; }
    .site-header__logo img { height: 30px; }
    .site-header__logo { font-size: 1.15rem; }
    .email-signup__form { flex-direction: column; }
    .trust-strip .container { justify-content: flex-start; }
    .cart-row { grid-template-columns: 64px 1fr; }
    .cart-row__line { grid-column: 2; text-align: left; }
}
