/* bw-base.css — shared core styles for every BW UK page.
 *
 * Loaded by every HTML page via <link rel="stylesheet" href="bw-base.css">.
 * Covers reset, design tokens (CSS variables), category colour classes,
 * navbar + mobile menu, page-header pattern, footer + search form, base
 * button + form styles, and standard mobile breakpoints.
 *
 * Page-type stylesheets (bw-product.css, bw-checkout.css, etc.) layer
 * on top of this and only add page-specific rules.
 *
 * Design tokens drift inventory + normalisations applied during the CSS
 * extraction migration. See /Users/.../plans/snug-mapping-snail.md for context.
 */

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* overflow-x: clip (not hidden) so position:sticky on .product-image-col still works.
   hidden creates a scroll container that disables sticky on every descendant. */
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 90px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    overflow-x: clip;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Skip-to-main accessibility link */
.skip-link {
    position: absolute; top: -40px; left: 0;
    background: #000; color: #fff;
    padding: 0.6rem 1rem; z-index: 10000;
    text-decoration: none; border-radius: 0 0 4px 0;
}
.skip-link:focus { top: 0; outline: 2px solid #FDB827; }

/* ============================================================
   DESIGN TOKENS — single canonical :root for the whole site.
   Page-type stylesheets must not redeclare these.
   Category overrides live in body classes below.
   ============================================================ */
:root {
    --blue: #009CD9;
    --green: #3BB54A;
    --amber: #FDB827;
    --red: #EE3826;
    --purple: #7E3FB0;

    --text-dark: #1a1a1a;
    --text-body: #4a4a4a;
    --text-muted: #6b7280;
    --text-dim: #9ca3af;
    --text-white: #ffffff;

    --light-alt: #f7f7f7;
    --line: #e6e6e6;
}

/* Category accent tokens. Pages set <body class="cat-{category}"> and the
   --cat-* variables cascade into every rule using var(--cat-bright) etc. */
.cat-banners    { --cat-dark: #b8200f; --cat-bright: #EE3826; --cat-light: #ff5d4c; }
.cat-flags      { --cat-dark: #1f7a2c; --cat-bright: #3BB54A; --cat-light: #5dd56b; }
.cat-display    { --cat-dark: #5C2C84; --cat-bright: #7E3FB0; --cat-light: #B287D6; }
.cat-innovation { --cat-dark: #006c99; --cat-bright: #009CD9; --cat-light: #38bbef; }
.cat-shade      { --cat-dark: #946000; --cat-bright: #FDB827; --cat-light: #ffc94c; }

/* ============================================================
   NAVBAR (dark, fixed, with centered nav-links + dropdown)
   ============================================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0.6rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.4s ease;
    background: rgba(15,15,15,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.navbar.scrolled {
    background: rgba(15,15,15,0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.navbar-logo img { height: 56px; width: auto; }
.nav-links {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; gap: 1.8rem;
    list-style: none; align-items: center;
}
.nav-links > li { position: relative; }
.nav-links a, .nav-links > li > a {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
    text-decoration: none;
}
.nav-links a:hover, .nav-links a.active,
.nav-links > li > a:hover, .nav-links > li > a.active {
    color: var(--amber);
}
.nav-links > li > a.active::after,
.nav-links > li > a:hover::after,
.nav-links a.active::after,
.nav-links a:hover::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--amber);
}

/* Products dropdown */
.nav-links .has-dropdown > a .chev {
    font-size: 0.6rem; margin-left: 0.4rem;
    transition: transform 0.25s; opacity: 0.75;
}
.nav-links .has-dropdown:hover > a .chev { transform: rotate(180deg); opacity: 1; }
.dropdown {
    position: absolute; top: calc(100% + 6px); left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: rgba(15,15,15,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 230px;
    padding: 0.4rem 0;
    border-radius: 10px;
    list-style: none;
    box-shadow: 0 18px 45px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}
.nav-links .has-dropdown:hover > .dropdown {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.dropdown li { padding: 0; }
.nav-links .dropdown a {
    display: block;
    padding: 0.7rem 1.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-left-color 0.15s;
}
.nav-links .dropdown a:hover {
    background: rgba(255,255,255,0.04);
    color: var(--amber);
    border-left-color: var(--amber);
}
.nav-links .dropdown a::after { display: none !important; }
.dropdown-divider {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 0.35rem 0;
    pointer-events: none;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none; border: none;
    color: white; font-size: 1.5rem;
    cursor: pointer;
}
.mobile-menu {
    display: none;
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 300px;
    height: 100vh;
    background: #0f0f0f;
    z-index: 1500;
    padding: 5rem 2rem 2rem;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
    display: block;
    color: white;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
}
.mobile-menu-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none;
    color: white; font-size: 1.5rem;
    cursor: pointer;
}
.mobile-section { font-weight: 700 !important; }
.mobile-sub { padding-left: 1.25rem !important; font-size: 0.95rem !important; opacity: 0.92; }

/* ============================================================
   PAGE HEADER (hero / breadcrumb pattern used by most pages)
   ============================================================ */
.page-header {
    position: relative;
    padding: 9rem 2rem 5rem;
    background: #0f0f0f center/cover no-repeat;
    overflow: hidden;
    text-align: center;
    color: white;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,15,15,0.30) 0%, rgba(15,15,15,0.60) 100%),
                radial-gradient(circle at 30% 50%, rgba(253,184,39,0.10) 0%, transparent 60%);
    pointer-events: none;
}
.page-header-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.breadcrumb {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb i { font-size: 0.65rem; opacity: 0.5; }
.page-eyebrow {
    display: inline-block;
    font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.page-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.page-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255,255,255,0.85);
    line-height: 1.65;
    max-width: 720px;
    margin: 0 auto;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.page-meta { font-size: 0.85rem; color: rgba(255,255,255,0.7); letter-spacing: 0.1em; text-transform: uppercase; }

/* ============================================================
   BUTTONS — role-based classes site-wide
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: inherit;
}
.btn-primary {
    background: var(--amber);
    color: #0f0f0f;
    border-color: var(--amber);
}
.btn-primary:hover {
    background: #e6a416;
    border-color: #e6a416;
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: white;
}
.btn-outline:hover {
    background: white;
    color: #0f0f0f;
    border-color: white;
}
.btn-green {
    background: var(--green);
    color: #0f0f0f;
    border: 2px solid var(--green);
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-green:hover { background: transparent; color: var(--green); }

/* ============================================================
   FORM BASE — unified label sizing across all forms
   ============================================================ */
.form-row { display: grid; gap: 1.1rem; }
.form-row.two-col { grid-template-columns: 1fr 1fr; }
.form-row + .form-row { margin-top: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label {
    font-size: 0.78rem;        /* unified from 0.74/0.75/0.78 drift */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}
.form-field input, .form-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-dim); }
.form-field input:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,156,217,0.12);
}
.form-field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }

/* ============================================================
   FOOTER (shared across all pages)
   ============================================================ */
.footer { background: #0a0a0a; color: white; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    align-items: center;
}
.footer-main img { max-width: 280px; opacity: 0.85; }
.footer-search h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; color: white; }
.footer-search p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }
.search-form { display: flex; gap: 0.5rem; }
.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}
.search-form input::placeholder { color: rgba(255,255,255,0.5); }
.search-form input:focus { outline: none; border-color: var(--green); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); transition: color 0.3s; text-decoration: none; }
.footer-bottom a:hover { color: var(--amber); }

/* "Website by LekkerSite" credit — placed as a small second line in the
   footer-bottom block on every page. Scoped selector (0,2,0) wins against
   the generic .footer-bottom a (0,1,1) above so the link stays orange. */
.footer-credit { margin-top: 0.4rem; font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.footer-bottom .lekker-link { color: #E07A3A; font-weight: 600; text-decoration: none; transition: color 0.2s ease; }
.footer-bottom .lekker-link:hover { color: #C56528; text-decoration: underline; }

/* Social sidebar visuals vary per page (left-attached panel on contact, free-
   floating right-side circles on the homepage). Each page-type CSS owns its
   own .social-sidebar styling. Don't add it to bw-base.css. */

/* ============================================================
   RESPONSIVE BREAKPOINTS — added 768px tablet tier
   ============================================================ */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .mobile-menu { display: block; }
    .page-header { padding: 7.5rem 1.5rem 4rem; background-attachment: scroll; }
    .footer-main { grid-template-columns: 1fr; gap: 2rem; text-align: center; padding: 2.75rem 1.5rem; }
    .footer-main > div:first-child { display: flex; justify-content: center; }
}

@media (max-width: 768px) {
    .page-header { padding: 7rem 1.25rem 3.5rem; }
    .page-title { font-size: clamp(1.85rem, 6vw, 2.4rem); }
    .form-row.two-col { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .navbar { padding: 0.5rem 1rem; }
    .navbar-logo img { height: 44px; }
    .page-header { padding: 6rem 1rem 3rem; }
}

/* Defensive horizontal-overflow clip for small screens. Catches cases where
   a stray fixed-width element (e.g. the variants-table action cell with
   qty-stepper + Add to Cart button) would otherwise push the page wider
   than the viewport. Only applied at <= 900px so it doesn't interfere
   with desktop layout or the .product-image-col sticky position
   (which is only active above 1100px). */
@media (max-width: 900px) {
    html, body { overflow-x: clip; max-width: 100%; }
}

/* Newsletter radio pills (shared by contact, quote, anywhere we ask Y/N).
   Originally lived in bw-contact.css; moved here so other forms can reuse. */
.newsletter-radios { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }
.radio-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 100px; cursor: pointer; font-size: 0.9rem; font-weight: 500; color: var(--text-body); background: white; text-transform: none; letter-spacing: 0; transition: all 0.2s ease; }
.radio-pill:hover { border-color: var(--blue); }
.radio-pill input[type="radio"] { margin: 0; cursor: pointer; }
.radio-pill input[type="radio"]:checked + span { color: var(--blue); font-weight: 700; }
.radio-pill:has(input:checked) { border-color: var(--blue); background: rgba(0,156,217,0.06); }
/* Mobile: each pill takes equal share so the radio inputs + labels can never
   crowd or visually overlap each other. Also bumps the touch target up. */
@media (max-width: 600px) {
    .newsletter-radios { gap: 0.5rem; }
    .radio-pill { flex: 1 1 0; justify-content: center; padding: 0.7rem 1rem; min-width: 0; }
}

/* Mobile (<=900px): hide back-to-top button so it doesn't stack with the
   floating cart FAB at the bottom-right corner. The FAB is the priority
   mobile affordance; scroll-to-top is a desktop nicety. */
@media (max-width: 900px) {
    .back-to-top { display: none !important; }
}
