/*
Theme Name: oopbuy Spreadsheet Dispatch
Theme URI: https://sheetcn.com/
Author: oopbuy Spreadsheet Team
Author URI: https://sheetcn.com/
Description: A last-mile-delivery-focused WordPress theme for the oopbuy Spreadsheet brand. Violet and lime 小清新 palette with an urban courier hero scene (e-scooter, apartment, smart locker), 8 chip-style product icons with delivery motion, product-category dropdown, Guides dropdown, hero CTAs linking to sheetcn.com, auto-generated SEO articles on pickup options, fragile shipping, delivery scheduling, reshipping, weather delays, and apartment delivery, internal linking, Open Graph, Twitter Cards, and JSON-LD.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oopbuy-spreadsheet-dispatch
Tags: seo, blog, one-column, custom-menu, featured-images, translation-ready
*/

/* ===== Design tokens — last-mile dispatch / violet + lime 小清新 ===== */
:root {
    --color-bg: #fdfcff;
    --color-surface: #f5f3ff;        /* violet-50 */
    --color-surface-2: #f7fee7;      /* lime-50 */
    --color-surface-3: #fef9c3;      /* butter */
    --color-surface-4: #fdf2f8;      /* pink-50 */
    --color-surface-5: #ecfdf5;      /* mint */
    --color-surface-6: #ecfeff;      /* cyan-50 */
    --color-border: #ede9fe;         /* violet-200 */
    --color-border-strong: #c4b5fd;  /* violet-300 */
    --color-text: #1e1b4b;
    --color-text-soft: #312e81;
    --color-text-muted: #6b7280;
    --color-primary: #7c3aed;        /* violet-600 */
    --color-primary-dark: #6d28d9;
    --color-primary-light: #c4b5fd;
    --color-accent: #65a30d;         /* lime-700 */
    --color-accent-dark: #4d7c0f;
    --color-accent-light: #bef264;
    --color-sun: #fcd34d;
    --color-rose: #fda4af;
    --color-cream: #fef3c7;
    --color-sky: #7dd3fc;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --shadow-sm: 0 1px 3px rgba(124, 58, 237, 0.08);
    --shadow-md: 0 10px 26px rgba(124, 58, 237, 0.14);
    --shadow-lg: 0 24px 48px -14px rgba(101, 163, 13, 0.22);
    --container: 1200px;
    --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Space Grotesk", sans-serif;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.72;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent-dark); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin: 0 0 .6em;
    letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; color: var(--color-text-soft); }
ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; color: var(--color-text-soft); }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 2px dashed var(--color-border-strong); margin: 2em 0; opacity: .5; }
blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 5px solid var(--color-primary);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-style: italic;
}

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%); }

/* ===== Header ===== */
.site-header {
    background: rgba(253, 252, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.32);
    position: relative;
}
.site-logo::after { content: "🛵"; font-size: 1.3rem; }
.site-title { font-size: 1.3rem; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.site-title a { color: var(--color-text); }
.site-tagline { font-size: .78rem; color: var(--color-text-muted); margin: 0; }

/* ===== Main nav ===== */
.main-nav { display: flex; align-items: center; }
.main-nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav li { position: relative; margin: 0; }
.main-nav a {
    display: inline-block;
    padding: 10px 14px;
    color: var(--color-text);
    font-weight: 500;
    font-size: .96rem;
    border-radius: var(--radius-md);
    transition: background .2s ease, color .2s ease;
}
.main-nav a:hover { background: var(--color-surface); color: var(--color-primary); }

.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 8px;
    opacity: .7;
}
.main-nav .sub-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    margin: 0;
    z-index: 50;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .sub-menu a {
    padding: 10px 14px;
    display: block;
    font-size: .92rem;
    font-weight: 500;
    color: var(--color-text-soft);
    border-radius: var(--radius-sm);
}
.main-nav .sub-menu a:hover { background: var(--color-surface); color: var(--color-primary); }

.menu-toggle {
    display: none;
    background: #fff;
    border: 1px solid var(--color-border-strong);
    width: 44px; height: 44px;
    border-radius: 14px;
    cursor: pointer;
    padding: 0;
    align-items: center; justify-content: center;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--color-text); position: relative; }
.menu-toggle span::before, .menu-toggle span::after {
    content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--color-text);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
    line-height: 1.1;
    letter-spacing: -0.005em;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.38);
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; box-shadow: 0 14px 30px rgba(109, 40, 217, 0.45); }
.btn-accent {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(101, 163, 13, 0.38);
}
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; box-shadow: 0 14px 30px rgba(77, 124, 15, 0.46); }
.btn-outline {
    background: #fff;
    color: var(--color-text);
    border-color: var(--color-border-strong);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-lg { padding: 16px 32px; font-size: 1.08rem; }

/* ===== HERO — urban last-mile dispatch ===== */
.hero {
    position: relative;
    padding: 100px 0 240px;
    background:
        radial-gradient(1000px 500px at 10% 0%, rgba(124, 58, 237, 0.14), transparent 60%),
        radial-gradient(900px 460px at 100% 10%, rgba(101, 163, 13, 0.14), transparent 60%),
        radial-gradient(900px 460px at 50% 100%, rgba(252, 211, 77, 0.12), transparent 60%),
        linear-gradient(180deg, #f5f3ff 0%, #fdfcff 50%, #f7fee7 100%);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(124, 58, 237, 0.14) 1.8px, transparent 1.8px),
        radial-gradient(rgba(101, 163, 13, 0.12) 1.8px, transparent 1.8px);
    background-size: 32px 32px, 46px 46px;
    background-position: 0 0, 16px 23px;
    opacity: .5;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center top, #000 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center top, #000 40%, transparent 85%);
}

/* Urban scene at the bottom */
.hero-scene {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 220px;
    pointer-events: none;
    z-index: 1;
}
.hero-scene svg { width: 100%; height: 100%; }

/* Floating dispatch stickers */
.hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-sticker {
    position: absolute;
    display: inline-flex; align-items: center; justify-content: center;
    width: 78px; height: 78px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-md);
    font-size: 2.1rem;
    animation: hero-float 7s ease-in-out infinite;
}
.hero-sticker.s1 { top: 8%;  left: 3%;  background: var(--color-surface);    animation-delay: 0s;    transform: rotate(-7deg); }
.hero-sticker.s2 { top: 14%; right: 4%; background: var(--color-surface-2);  animation-delay: 1.4s;  transform: rotate(9deg); }
.hero-sticker.s3 { top: 44%; left: 6%;  background: var(--color-surface-3);  animation-delay: 2.4s;  transform: rotate(5deg); }
.hero-sticker.s4 { top: 46%; right: 6%; background: var(--color-surface-4);  animation-delay: 3.4s;  transform: rotate(-5deg); }
.hero-sticker.s5 { top: 70%; left: 14%; background: var(--color-surface-5);  animation-delay: 2s;    transform: rotate(10deg); }
.hero-sticker.s6 { top: 72%; right: 14%; background: var(--color-surface-6); animation-delay: 1.1s;  transform: rotate(-8deg); }

@keyframes hero-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -12px; }
}

.hero-content { position: relative; z-index: 3; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    background: #ffffff;
    color: var(--color-primary);
    font-weight: 600;
    font-size: .82rem;
    border-radius: 999px;
    margin-bottom: 22px;
    border: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}
.hero-eyebrow::before { content: "🛵"; font-size: 1rem; }
.hero-eyebrow::after { content: "📍"; font-size: 1rem; }
.hero h1 { margin: 0 0 20px; max-width: 820px; }
.hero h1 .accent-1 { color: var(--color-primary); }
.hero h1 .accent-2 { color: var(--color-accent-dark); }
.hero p.hero-lede {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--color-text-soft);
    max-width: 740px;
    margin: 0 0 32px;
    line-height: 1.65;
}
.hero-actions {
    display: flex; flex-wrap: wrap; gap: 14px;
    margin-bottom: 44px;
}
.hero-stats {
    display: inline-flex; flex-wrap: wrap; gap: 8px;
    padding: 22px 28px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}
.hero-stat {
    padding: 0 18px;
    border-right: 2px dashed var(--color-border-strong);
}
.hero-stat:last-child { border-right: 0; }
.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat:nth-child(2n) strong { color: var(--color-accent-dark); }
.hero-stat:nth-child(3n) strong { color: #d97706; }
.hero-stat span { font-size: .82rem; color: var(--color-text-muted); font-weight: 500; }

/* ===== Section headings ===== */
.section-head { text-align: center; max-width: 740px; margin: 0 auto 48px; }
.section-head p { font-size: 1.05rem; color: var(--color-text-soft); }

/* ===== Category grid — chip/pill cards ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    color: var(--color-text);
    overflow: hidden;
    text-decoration: none;
    padding: 28px 20px 22px;
    position: relative;
}
.category-card::before {
    content: "ETA 7d";
    position: absolute;
    top: 14px; right: 14px;
    padding: 3px 10px;
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: var(--font-display);
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
    color: var(--color-text);
}
.category-illustration {
    width: 112px;
    height: 112px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.category-illustration svg { width: 68%; height: 68%; }
/* motion lines on hover */
.category-illustration::after {
    content: "";
    position: absolute;
    right: -4px; top: 50%;
    width: 20px; height: 2px;
    background: currentColor;
    opacity: 0;
    transition: opacity .2s ease, right .2s ease;
    border-radius: 2px;
}
.category-card:hover .category-illustration::after {
    opacity: .5;
    right: -12px;
}
.cat-shoes      .category-illustration { background: #ede9fe; color: #7c3aed; }
.cat-hoodies    .category-illustration { background: #d9f99d; color: #65a30d; }
.cat-tshirts    .category-illustration { background: #fef3c7; color: #d97706; }
.cat-jackets    .category-illustration { background: #fecdd3; color: #e11d48; }
.cat-pants      .category-illustration { background: #a5f3fc; color: #0891b2; }
.cat-headwear   .category-illustration { background: #fed7aa; color: #ea580c; }
.cat-accessories .category-illustration { background: #c7d2fe; color: #4338ca; }
.cat-other      .category-illustration { background: #bbf7d0; color: #16a34a; }

.category-card h3 { font-size: 1.08rem; margin: 0 0 4px; font-weight: 700; }
.category-card p { font-size: .88rem; color: var(--color-text-muted); margin: 0 0 12px; }
.category-card .cat-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .88rem;
    color: var(--color-primary);
    font-weight: 600;
}
.category-card .cat-link::after { content: "→"; transition: transform .2s ease; }
.category-card:hover .cat-link::after { transform: translateX(3px); }

/* ===== Article grid ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-thumb {
    aspect-ratio: 16/9;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #1e1b4b;
    font-size: 1.05rem;
    padding: 20px;
    text-align: center;
    letter-spacing: -0.01em;
}
.article-thumb-1 { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }
.article-thumb-2 { background: linear-gradient(135deg, #f7fee7 0%, #d9f99d 100%); }
.article-thumb-3 { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.article-thumb-4 { background: linear-gradient(135deg, #fecdd3 0%, #fda4af 100%); }
.article-thumb-5 { background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%); }
.article-thumb-6 { background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%); }
.article-thumb::before {
    content: "📬";
    position: absolute;
    top: 14px; left: 14px;
    width: 36px; height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}
.article-thumb-2::before { content: "🫙"; }
.article-thumb-3::before { content: "⏰"; }
.article-thumb-4::before { content: "🔁"; }
.article-thumb-5::before { content: "🌧️"; }
.article-thumb-6::before { content: "🏢"; }
.article-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.article-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    margin-bottom: 12px;
}
.article-card h3 { font-size: 1.14rem; margin: 0 0 10px; font-weight: 700; }
.article-card h3 a { color: var(--color-text); }
.article-card h3 a:hover { color: var(--color-primary); }
.article-excerpt {
    color: var(--color-text-muted);
    font-size: .94rem;
    margin: 0 0 16px;
    flex-grow: 1;
}
.article-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .85rem;
    color: var(--color-text-muted);
    padding-top: 14px;
    border-top: 2px dashed var(--color-border-strong);
}
.article-meta a { font-weight: 700; }

/* ===== Longform ===== */
.longform { max-width: 760px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; }
.longform h2 { margin-top: 2em; }
.longform h3 { margin-top: 1.6em; }
.longform p, .longform ul, .longform ol { color: var(--color-text); }
.longform .toc {
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 6px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin: 24px 0 40px;
    box-shadow: var(--shadow-sm);
}
.longform .toc h4 { margin: 0 0 10px; font-size: 1rem; color: var(--color-primary); }
.longform .toc ol { margin: 0; padding-left: 1.2em; }
.longform .toc a { font-weight: 600; }

/* ===== CTA band ===== */
.cta-band {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "🛵 📬 🏢 📍 ⏰";
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: space-around;
    font-size: 3.2rem;
    opacity: .14;
    pointer-events: none;
    letter-spacing: 1.8em;
}
.cta-band h2 { color: #fff; margin: 0 0 12px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.94); font-size: 1.05rem; margin: 0 0 24px; position: relative; }
.cta-band .btn-group { position: relative; display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ===== Single/page ===== */
.post-hero {
    padding: 64px 0 24px;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}
.post-hero .container { max-width: 820px; }
.breadcrumbs { font-size: .88rem; color: var(--color-text-muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .sep { margin: 0 6px; opacity: .6; }
.post-category {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    margin-bottom: 14px;
}
.post-hero h1 { margin: 0 0 16px; }
.post-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
    color: var(--color-text-muted);
    font-size: .92rem;
    padding: 10px 0 30px;
}
.single-content, .page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 0 60px;
    font-size: 1.05rem;
    line-height: 1.82;
}
.single-content h2, .page-content h2 { margin-top: 1.8em; }
.single-content h3, .page-content h3 { margin-top: 1.4em; }
.single-content p, .page-content p { color: var(--color-text); }

.internal-link-box {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border-left: 4px solid var(--color-primary);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 32px 0;
}
.internal-link-box strong { display: block; color: var(--color-text); margin-bottom: 4px; }
.internal-link-box a { font-weight: 700; }

.related-posts {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
    padding: 64px 0;
    border-top: 1px solid var(--color-border);
}
.related-posts h2 { text-align: center; margin-bottom: 36px; }

/* ===== Footer ===== */
.site-footer {
    background: linear-gradient(180deg, #312e81 0%, #1e1b4b 100%);
    color: #ddd6fe;
    padding: 68px 0 26px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .site-title a { color: #fff; }
.footer-brand p { color: #c4b5fd; font-size: .95rem; margin-top: 10px; }
.footer-col h4 {
    color: #fff;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #c4b5fd; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    padding-top: 24px;
    border-top: 2px dashed rgba(196, 181, 253, 0.25);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .88rem;
    color: #a78bfa;
}

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0 0; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 700;
}
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero { padding: 70px 0 180px; }
    .hero-sticker { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 16px; }
    .hero-scene { height: 150px; }
    .hero-stat strong { font-size: 1.3rem; }
    .cta-band { padding: 44px 24px; }
    .section { padding: 60px 0; }
}

@media (max-width: 720px) {
    .menu-toggle { display: inline-flex; }
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav > ul { flex-direction: column; padding: 10px 16px 16px; gap: 2px; }
    .main-nav > ul > li { width: 100%; }
    .main-nav a { width: 100%; padding: 12px 10px; }
    .main-nav .sub-menu {
        position: static;
        box-shadow: none;
        border: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0 0 8px 16px;
        min-width: 0;
    }
    .menu-item-has-children > a::after { float: right; margin-top: 8px; }
    .hero-sticker.s2, .hero-sticker.s4, .hero-sticker.s6 { display: none; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .hero-actions { flex-direction: column; }
    .hero-stat { border-right: 0; border-bottom: 2px dashed var(--color-border-strong); padding: 8px 0; }
    .hero-stat:last-child { border-bottom: 0; }
}

/* ===== Utilities ===== */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}
.text-center { text-align: center; }
