/* Vinylizer theme. Loaded after portal.css: it re-points the portal's colour
   variables at Vinylizer's and adds the theme's header, footer and sign-in
   layouts. Brand colours and font set on the account in /admin override
   --brand, --accent and --font-body (see App\Support\Theme). Mobile first. */
:root {
    --brand: #B5530B;          /* burnt orange: buttons, links (white text passes AA) */
    --brand-bright: #DD6A12;   /* the old site's orange: highlights on black */
    --accent: #C62A1E;         /* the logo's red */
    --night: #0e0e0e;
    --night-2: #1b1b1b;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;

    /* The portal's names, re-pointed. */
    --blue: var(--brand);
    --blue-dark: color-mix(in srgb, var(--brand) 78%, #000);
    --blue-tint: color-mix(in srgb, var(--brand) 7%, #fff);
    --blue-soft: color-mix(in srgb, var(--brand) 14%, #fff);
    --ink: #161616;
    --muted: #5b5b5b;
    --quiet: #444;
    --line: #e4e0dc;
    --field: #bdb6b0;
    --surface: #f7f5f2;
    --radius: 12px;
}

body { font-family: var(--font-body); }
.page-title, .hero h1, .vz-display { font-family: var(--font-display); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.page-title { font-size: clamp(32px, 7vw, 48px); color: var(--ink); }
.hero { background: var(--night) url('hero.webp') center / cover no-repeat; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.45)); }
.hero > * { position: relative; }
.hero p { color: #e8e2dc; }
.btn { border-radius: 999px; letter-spacing: .2px; }
.btn.light { color: var(--brand); }
.card.strong, .summary-panel { border-color: var(--brand); }

/* ---- Header ---- */
.vz-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.vz-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.vz-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.vz-logo img { width: 52px; height: 52px; display: block; }
.vz-logo span { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 5vw, 24px); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.vz-header .vz-logo { min-width: 0; }
.vz-header .vz-logo img { flex: 0 0 auto; }
.vz-header .vz-logo span { overflow: hidden; text-overflow: ellipsis; }
.vz-nav { display: none; }
.vz-nav a { padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; border-radius: 999px; }
.vz-nav a:hover { background: var(--blue-tint); color: var(--brand); }
.vz-nav a[aria-current="page"] { color: var(--brand); background: var(--blue-tint); }
.vz-cart { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); }
.vz-cart:hover { background: var(--blue-tint); color: var(--brand); }
.vz-cart .count { position: absolute; top: 2px; right: 0; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* Mobile menu: a <details>, so it works without JavaScript. */
.vz-menu { position: relative; }
.vz-menu summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; }
.vz-menu summary::-webkit-details-marker { display: none; }
.vz-menu summary:hover { background: var(--blue-tint); }
.vz-menu-panel { position: absolute; right: 0; top: 52px; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 8px; display: flex; flex-direction: column; }
.vz-menu-panel a, .vz-menu-panel button { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; }
.vz-menu-panel a:hover, .vz-menu-panel button:hover { background: var(--blue-tint); color: var(--brand); }
.vz-menu-panel .who { padding: 10px 14px 6px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 6px; }
.vz-menu-panel form { margin: 0; }

@media (min-width: 900px) {
    .vz-header .wrap { min-height: 76px; }
    .vz-logo img { width: 64px; height: 64px; }
    .vz-nav { display: flex; gap: 2px; }
    .vz-menu .nav-only { display: none; }
}

/* ---- Footer ---- */
.vz-footer { background: var(--night); color: #cfc8c2; font-size: 14px; margin-top: 48px; }
.vz-footer .wrap { display: grid; gap: 24px; padding-top: 40px; padding-bottom: 32px; }
.vz-footer a { color: #fff; }
.vz-footer a:hover { color: var(--brand-bright); }
.vz-footer .vz-logo { color: #fff; }
.vz-footer .tagline { color: #e8e2dc; max-width: 360px; margin-top: 10px; }
.vz-footer h3 { font-family: var(--font-display); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-bright); margin-bottom: 10px; }
.vz-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vz-footer .legal { border-top: 1px solid #2a2a2a; padding-top: 18px; font-size: 13px; color: #9a938d; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (min-width: 760px) { .vz-footer .wrap { grid-template-columns: minmax(280px, 2fr) repeat(auto-fit, minmax(150px, 1fr)); } .vz-footer .legal { grid-column: 1 / -1; } }

/* ---- Sign-in pages ---- */
.vz-auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--night); }
.vz-auth-hero { position: relative; color: #fff; padding: 28px 20px 36px; background: var(--night) url('hero.webp') center / cover no-repeat; }
.vz-auth-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.9)); }
.vz-auth-hero > * { position: relative; }
.vz-auth-hero .vz-logo { color: #fff; }
.vz-auth-hero h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 8vw, 54px); line-height: 1.05; text-transform: uppercase; margin-top: 24px; }
.vz-auth-hero h2 em { font-style: normal; color: var(--brand-bright); }
.vz-auth-hero p { color: #e8e2dc; margin-top: 12px; max-width: 460px; }
.vz-auth-hero .big-logo { display: none; }
.vz-auth-form { flex: 1; background: #fff; border-radius: 22px 22px 0 0; margin-top: -18px; position: relative; padding: 28px 20px 40px; }
.vz-auth-form form { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.vz-auth-form h1 { font-family: var(--font-display); font-weight: 600; font-size: 32px; text-transform: uppercase; }
.vz-auth-foot { background: var(--night); color: #9a938d; font-size: 13px; text-align: center; padding: 14px 16px; }
.vz-auth-foot a { color: #fff; }
@media (min-width: 900px) {
    .vz-auth { flex-direction: row; flex-wrap: wrap; }
    .vz-auth-hero { flex: 1 1 50%; padding: 48px; display: flex; flex-direction: column; justify-content: center; }
    .vz-auth-hero .big-logo { display: block; width: min(360px, 70%); height: auto; margin-top: 32px; filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
    .vz-auth-form { flex: 1 1 50%; border-radius: 0; margin: 0; display: flex; align-items: center; padding: 48px; }
    .vz-auth-form form { width: 100%; }
    .vz-auth-foot { flex: 1 1 100%; }
}

/* ---- Guests, confirmation bar ---- */
.vz-signin { padding: 10px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.vz-signin:hover { background: var(--blue-dark); color: #fff; }
.vz-confirm { background: #fff4d6; color: #5a4300; border-bottom: 1px solid #e0b84a; font-size: 14px; }
.vz-confirm .wrap { padding-top: 10px; padding-bottom: 10px; }
.vz-confirm a { color: #5a4300; font-weight: 700; }

/* ---- Home ---- */
.vz-home-hero { padding: 32px 24px; border-radius: 20px; }
.vz-home-hero h1 { font-size: clamp(36px, 9vw, 64px); line-height: 1.02; }
.vz-hot { color: var(--brand-bright); }
.vz-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.vz-hero-logo { display: none; }
.vz-home-hero > div { flex: 1 1 380px; min-width: 0; }
.vz-section { display: flex; flex-direction: column; gap: 16px; }
.vz-section h2, .vz-steps h2 { font-size: clamp(24px, 5vw, 32px); }
.vz-steps { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.vz-steps ol { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.vz-steps strong { color: var(--brand); }
@media (min-width: 900px) {
    .vz-home-hero { padding: 56px; }
    .vz-hero-logo { display: block; width: 260px; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
    .vz-steps ol { flex-direction: row; gap: 28px; list-style-position: inside; padding: 0; }
    .vz-steps li { flex: 1; }
}

/* The generic product pictures (components/product-art), in Vinylizer's colours. */
.product-card .art, .summary-head .thumb { background: color-mix(in srgb, var(--brand) 9%, #fff); }
.product-card:hover { border-color: var(--brand); }
svg [fill="#003876"] { fill: var(--brand); }
svg [stroke="#003876"] { stroke: var(--brand); }
svg [fill="#5c7ea6"] { fill: var(--accent); }
svg [stroke="#8fa9c8"] { stroke: color-mix(in srgb, var(--brand) 45%, #fff); }
svg [fill="#14202e"] { fill: var(--night); }

[hidden] { display: none !important; }

/* ---- Menus set in /admin ---- */
.vz-drop { position: relative; }
.vz-drop summary { list-style: none; cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 15px; border-radius: 999px; display: flex; align-items: center; gap: 6px; }
.vz-drop summary::-webkit-details-marker { display: none; }
.vz-drop summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.vz-drop summary:hover, .vz-drop[open] summary, .vz-drop summary[aria-current="page"] { background: var(--blue-tint); color: var(--brand); }
.vz-drop-panel { position: absolute; left: 0; top: 48px; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 8px; display: flex; flex-direction: column; z-index: 30; }
.vz-drop-panel a { border-radius: 10px; }
.vz-menu-panel .vz-menu-head { padding: 12px 14px 4px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.vz-menu-panel a.sub { padding-left: 26px; font-weight: 500; }
.vz-menu-panel a[aria-current="page"] { color: var(--brand); background: var(--blue-tint); }
.vz-footer h3 a { color: inherit; text-decoration: none; }
.vz-legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.vz-legal-links a { color: #cfc8c2; }

/* ---- Pages written in /admin ---- */
.site-page { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.prose { line-height: 1.65; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .4px; line-height: 1.15; margin-top: 1.6em; }
.prose h2 { font-size: clamp(22px, 5vw, 28px); }
.prose h3 { font-size: 20px; }
.prose a { color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose blockquote { border-left: 4px solid var(--brand); padding-left: 16px; color: var(--quiet); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.vz-home-text { max-width: 760px; }
.vz-video { max-width: 900px; width: 100%; margin: 0 auto; }
.vz-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
.vz-footer .vz-logo span { white-space: normal; }

/* ---- FAQ, blog, downloads, contact (page kinds) ---- */
.site-faq { display: flex; flex-direction: column; gap: 10px; }
.site-faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.site-faq-item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 17px; position: relative; }
.site-faq-item summary::-webkit-details-marker { display: none; }
.site-faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--brand); }
.site-faq-item[open] summary::after { content: "–"; }
.site-faq-item[open] summary { color: var(--brand); }
.site-faq-item .prose { padding: 0 18px 18px; }
.site-page-blog, .site-page-faq { max-width: 960px; }
.site-posts { display: grid; gap: 18px; }
@media (min-width: 700px) { .site-posts { grid-template-columns: repeat(2, 1fr); } }
.site-post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.site-post-card:hover { border-color: var(--brand); }
.site-post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.site-post-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.site-post-card time { font-size: 13px; color: var(--muted); }
.site-post-card h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; line-height: 1.15; }
.site-post-card p { color: var(--quiet); }
.site-post-card .more { color: var(--brand); font-weight: 700; }
.site-pager { display: flex; justify-content: space-between; gap: 12px; }
.site-post-image { width: 100%; height: auto; border-radius: var(--radius); }
.site-post .crumbs a { color: var(--brand); font-weight: 600; text-decoration: none; }
.site-downloads { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-downloads li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.site-downloads p { color: var(--quiet); margin-top: 4px; }
.site-downloads .btn .muted { color: inherit; opacity: .8; font-weight: 500; }
.site-contact form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.site-contact textarea { width: 100%; font: inherit; }
.site-contact-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-downloads .btn { gap: 8px; }

/* ---- Categories ---- */
.catalogue-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 5vw, 28px); letter-spacing: .5px; text-transform: uppercase; }
.site-downloads-h { font-family: var(--font-display); font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: .4px; }

/* ---- Full width (css/storefront-wide.css): Vinylizer's colours ---- */
:root { --fw-band: var(--night); --fw-band-ink: #e8e2dc; --fw-hot: var(--brand-bright); --fw-btn: var(--brand); --fw-tint: #f3eee9; }
.fw-band { background: var(--night) url('hero.webp') center / cover no-repeat; }
.fw-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.55)); }
.vz-hero-logo { mix-blend-mode: lighten; }
@media (min-width: 1200px) {
    .vz-home-hero h1 { font-size: 92px; }
    .vz-home-hero p { font-size: 20px; max-width: 640px; }
    .vz-hero-logo { width: 360px; margin-right: 40px; }
    .vz-steps ol { gap: 64px; font-size: 18px; }
}
