/*
Theme Name: Hipobuy Delivery
Theme URI: https://sheetcn.com/
Author: Hipobuy
Author URI: https://sheetcn.com/
Description: Fresh ground-delivery themed SEO site for the Hipobuy Spreadsheet affiliate hub. Lime/amber palette, sticker-style product icons, six all-original articles for Google indexing.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.6
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: hipobuy-delivery
Tags: one-column, custom-menu, featured-images, seo, affiliate
*/

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.72;
    color: #3f3f46;
    background: #fffbeb;
    -webkit-font-smoothing: antialiased;
}

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

a { color: #65a30d; text-decoration: none; transition: color .2s ease; }
a:hover { color: #4d7c0f; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.3; color: #1c1917; margin: 0 0 .6em; letter-spacing: -0.015em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }

ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .4em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
    background: rgba(255, 251, 235, .92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #fde68a;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}
.site-brand a {
    font-size: 1.4rem;
    font-weight: 900;
    color: #1c1917;
    letter-spacing: -0.015em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.site-brand .brand-accent { color: #f59e0b; }
.site-brand .brand-mark {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #a3e635 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(132,204,22,.3);
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav a,
.main-nav .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: #3f3f46;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 10px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.main-nav a:hover,
.main-nav .nav-toggle:hover { background: #f7fee7; color: #65a30d; }
.main-nav .caret { font-size: .7rem; }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid #ecfccb;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(132,204,22,.15), 0 4px 10px rgba(0,0,0,.04);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all .18s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    color: #44403c;
    font-size: .92rem;
}
.dropdown-menu a:hover { background: #f7fee7; color: #65a30d; }

.mobile-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.4rem;
    cursor: pointer;
    color: #1c1917;
}

/* ---------- Hero (ground delivery scene) ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(253, 164, 175, .3), transparent 70%),
        radial-gradient(900px 500px at 10% 110%, rgba(190, 242, 100, .4), transparent 70%),
        radial-gradient(700px 300px at 50% 50%, rgba(254, 243, 199, .55), transparent 75%),
        linear-gradient(165deg, #fffbeb 0%, #fef3c7 35%, #f7fee7 70%, #fff1f2 100%);
    padding: 100px 0 110px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid #fde68a;
}
.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero-decor svg { position: absolute; }

.hero-van { bottom: 10%; right: 7%; width: 180px; animation: vanDrive 6s ease-in-out infinite; }
.hero-scooter { bottom: 14%; left: 7%; width: 130px; animation: scooterDrive 5s ease-in-out infinite reverse; }
.hero-boxes { top: 20%; right: 14%; width: 100px; animation: boxBounce 4s ease-in-out infinite; }
.hero-pin { top: 10%; left: 20%; width: 60px; animation: pinBounce 2.5s ease-in-out infinite; }
.hero-plant-a { bottom: 8%; left: 32%; width: 55px; opacity: .85; }
.hero-plant-b { bottom: 10%; right: 32%; width: 50px; opacity: .85; }
.hero-cloud { top: 14%; left: 8%; width: 130px; opacity: .8; }
.hero-road {
    bottom: 7%; left: 5%; width: 90%; height: 4px; opacity: .4;
}

@keyframes vanDrive {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-8px) translateY(-3px); }
}
@keyframes scooterDrive {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(10px) translateY(-4px); }
}
@keyframes boxBounce {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes pinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.9);
    border: 1px solid #d9f99d;
    color: #4d7c0f;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(132,204,22,.14);
}
.hero h1 {
    font-size: 2.85rem;
    max-width: 880px;
    margin: 0 auto .5em;
    letter-spacing: -0.03em;
    color: #1c1917;
}
.hero h1 .accent {
    background: linear-gradient(90deg, #65a30d, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .lede {
    font-size: 1.18rem;
    color: #52525b;
    max-width: 740px;
    margin: 0 auto 2.4em;
    line-height: 1.65;
}
.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, #84cc16 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(132,204,22,.3);
}
.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(132,204,22,.38);
}
.btn-secondary {
    background: #ffffff;
    color: #65a30d;
    border-color: #bef264;
}
.btn-secondary:hover {
    background: #65a30d;
    color: #ffffff;
    border-color: #65a30d;
    transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-light { background: #ffffff; }
.section-tint {
    background:
        radial-gradient(600px 220px at 15% 0%, rgba(247, 254, 231, .9), transparent 70%),
        radial-gradient(500px 220px at 85% 100%, rgba(254, 243, 199, .9), transparent 70%),
        #fffbeb;
}
.section-title {
    text-align: center;
    font-size: 2.05rem;
    margin-bottom: .4em;
}
.section-sub {
    text-align: center;
    color: #78716c;
    max-width: 720px;
    margin: 0 auto 2.8em;
    font-size: 1.02rem;
}

/* ---------- Category grid (sticker-style icons on ring-badges) ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: 2px solid var(--ring, #ecfccb);
    border-radius: 22px;
    padding: 28px 18px 24px;
    color: #1c1917;
    font-weight: 700;
    transition: all .25s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.category-card:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 18px 32px var(--shadow, rgba(132,204,22,.22));
    color: var(--primary);
}
.category-card .icon-wrap {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--bg, #f7fee7);
    border: 3px solid var(--ring, #ecfccb);
    transition: transform .3s ease;
    position: relative;
}
.category-card:hover .icon-wrap { transform: rotate(-8deg) scale(1.05); }
.category-card .icon-wrap:after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 60%;
    height: 6px;
    background: rgba(0,0,0,.08);
    border-radius: 50%;
    transform: translateX(-50%);
    filter: blur(3px);
}
.category-card .icon-wrap svg { width: 46px; height: 46px; position: relative; z-index: 1; }
.category-card .label { font-size: 1rem; }

/* per-card themes */
.cat-shoes       { --bg:#fff1f2; --ring:#fecdd3; --primary:#e11d48; --shadow:rgba(225,29,72,.2); }
.cat-hoodies     { --bg:#f7fee7; --ring:#d9f99d; --primary:#65a30d; --shadow:rgba(132,204,22,.2); }
.cat-tshirts     { --bg:#eff6ff; --ring:#bfdbfe; --primary:#2563eb; --shadow:rgba(37,99,235,.2); }
.cat-jackets     { --bg:#fef3c7; --ring:#fde68a; --primary:#d97706; --shadow:rgba(217,119,6,.2); }
.cat-pants       { --bg:#f0fdfa; --ring:#99f6e4; --primary:#0d9488; --shadow:rgba(13,148,136,.2); }
.cat-headwear    { --bg:#fdf4ff; --ring:#f5d0fe; --primary:#a21caf; --shadow:rgba(162,28,175,.2); }
.cat-accessories { --bg:#fff7ed; --ring:#fed7aa; --primary:#ea580c; --shadow:rgba(234,88,12,.2); }
.cat-other       { --bg:#ecfeff; --ring:#a5f3fc; --primary:#0891b2; --shadow:rgba(8,145,178,.2); }

/* ---------- Article grid ---------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card {
    background: #ffffff;
    border: 1px solid #fde68a;
    border-radius: 20px;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    transition: all .22s ease;
    position: relative;
    overflow: hidden;
}
.article-card:before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #a3e635, #f59e0b, #fda4af);
    opacity: 0;
    transition: opacity .2s ease;
}
.article-card:hover {
    border-color: #fcd34d;
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(245,158,11,.15);
}
.article-card:hover:before { opacity: 1; }
.article-card .tag {
    display: inline-block;
    background: linear-gradient(135deg, #f7fee7, #fef3c7);
    color: #65a30d;
    font-size: .72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: .08em;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 16px;
    border: 1px solid #ecfccb;
}
.article-card h3 {
    margin: 0 0 10px;
    font-size: 1.14rem;
    color: #1c1917;
}
.article-card p {
    color: #57534e;
    font-size: .94rem;
    flex-grow: 1;
    margin-bottom: 1.1em;
}
.article-card .read-more {
    font-weight: 800;
    font-size: .9rem;
    align-self: flex-start;
    color: #65a30d;
}
.article-card .read-more:after { content: " ↗"; }

/* ---------- Content / article body ---------- */
.content-area {
    max-width: 820px;
    margin: 0 auto;
    padding: 70px 20px 20px;
}
.content-area h1 { font-size: 2.35rem; letter-spacing: -0.03em; }
.content-area h2 { font-size: 1.5rem; }
.content-area h3 { font-size: 1.18rem; }
.content-area ul li, .content-area ol li { color: #44403c; }
.content-area .lede {
    font-size: 1.14rem;
    color: #52525b;
    margin-bottom: 1.6em;
}
.content-area .inline-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0;
}
.related-box {
    margin-top: 54px;
    padding: 30px 32px;
    background: linear-gradient(135deg, #f7fee7 0%, #fef3c7 55%, #fff1f2 100%);
    border-radius: 20px;
    border: 1px solid #d9f99d;
}
.related-box h3 { margin-top: 0; color: #3f6212; }
.related-box ul { margin-bottom: 0; }
.related-box a { color: #65a30d; font-weight: 600; }

.back-home {
    display: inline-block;
    margin-top: 36px;
    font-weight: 700;
    color: #65a30d;
}
.back-home:before { content: "↩ "; }

/* ---------- Footer ---------- */
.site-footer {
    background: #1c1917;
    color: #d6d3d1;
    padding: 56px 0 24px;
    margin-top: 70px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}
.site-footer h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 14px;
    letter-spacing: .02em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d6d3d1; font-size: .92rem; }
.site-footer a:hover { color: #a3e635; }
.footer-bottom {
    border-top: 1px solid #292524;
    padding-top: 20px;
    text-align: center;
    font-size: .85rem;
    color: #a8a29e;
}
.footer-bottom a { color: #a3e635; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.3rem; }
}

@media (max-width: 720px) {
    h1 { font-size: 1.75rem; }
    .hero { padding: 60px 0 68px; }
    .hero h1 { font-size: 2rem; }
    .hero .lede { font-size: 1.02rem; }
    .section { padding: 56px 0; }
    .section-title { font-size: 1.6rem; }
    .hero-van { width: 110px; }
    .hero-scooter { width: 80px; }
    .hero-boxes { width: 65px; }
    .hero-pin { width: 42px; }
    .hero-cloud { width: 85px; }
    .hero-plant-a, .hero-plant-b { width: 38px; }

    .mobile-toggle { display: inline-flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        border-top: 1px solid #fde68a;
        box-shadow: 0 10px 20px rgba(0,0,0,.05);
        display: none;
        padding: 10px 16px;
    }
    .main-nav.open { display: block; }
    .main-nav > ul {
        flex-direction: column;
        gap: 2px;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 0;
        padding-left: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #fefce8;
    }
    .dropdown.open .dropdown-menu { display: block; }

    .article-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 420px) {
    .btn { padding: 12px 22px; font-size: .95rem; }
    .category-card { padding: 22px 12px 18px; }
    .category-card .icon-wrap { width: 66px; height: 66px; }
    .category-card .icon-wrap svg { width: 36px; height: 36px; }
}
