/*
Theme Name: Hipobuy Courier
Theme URI: https://sheetcn.com/
Author: Hipobuy
Author URI: https://sheetcn.com/
Description: Smart-delivery themed SEO site for the Hipobuy Spreadsheet affiliate hub. Teal/coral palette, blob-shape 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-courier
Tags: one-column, custom-menu, featured-images, seo, affiliate
*/

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.72;
    color: #334155;
    background: #fafaf9;
    -webkit-font-smoothing: antialiased;
}

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

a { color: #0d9488; text-decoration: none; transition: color .2s ease; }
a:hover { color: #0f766e; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: #0f172a; 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(250, 250, 249, .9);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #ccfbf1;
    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: 800;
    color: #0f172a;
    letter-spacing: -0.015em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.site-brand .brand-accent { color: #fb7185; }
.site-brand .brand-mark {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #5eead4 0%, #fb7185 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(20,184,166,.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: #334155;
    font-weight: 600;
    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: #f0fdfa; color: #0d9488; }
.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 #ccfbf1;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(20,184,166,.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: 500;
    color: #475569;
    font-size: .92rem;
}
.dropdown-menu a:hover { background: #f0fdfa; color: #0d9488; }

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

/* ---------- Hero (drone / smart delivery scene) ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(254, 205, 211, .35), transparent 70%),
        radial-gradient(900px 500px at 10% 110%, rgba(153, 246, 228, .4), transparent 70%),
        radial-gradient(700px 300px at 50% 50%, rgba(254, 240, 138, .25), transparent 75%),
        linear-gradient(170deg, #fafaf9 0%, #f0fdfa 35%, #fff1f2 100%);
    padding: 100px 0 130px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid #ccfbf1;
}
.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero-decor svg { position: absolute; }

.hero-drone-a { top: 14%; left: 10%; width: 160px; animation: droneHover 4s ease-in-out infinite; }
.hero-drone-b { top: 24%; right: 12%; width: 110px; animation: droneHover 5s ease-in-out infinite reverse; }
.hero-locker { bottom: 10%; right: 8%; width: 140px; }
.hero-phone { top: 40%; left: 7%; width: 85px; animation: phoneWiggle 3s ease-in-out infinite; }
.hero-skyline { bottom: 0; left: 0; width: 100%; height: 90px; opacity: .35; }
.hero-signal { top: 20%; left: 44%; width: 40px; animation: signalPulse 2.5s ease-in-out infinite; }
.hero-dot-path {
    top: 36%; left: 10%; width: 85%; height: 50px; opacity: .5;
}

@keyframes droneHover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes phoneWiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(3deg); }
}
@keyframes signalPulse {
    0%, 100% { opacity: .4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.9);
    border: 1px solid #99f6e4;
    color: #0f766e;
    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(20,184,166,.14);
}
.hero h1 {
    font-size: 2.85rem;
    max-width: 880px;
    margin: 0 auto .5em;
    letter-spacing: -0.03em;
    color: #0f172a;
}
.hero h1 .accent {
    background: linear-gradient(90deg, #0d9488, #fb7185);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .lede {
    font-size: 1.18rem;
    color: #475569;
    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, #14b8a6 0%, #fb7185 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(20,184,166,.3);
}
.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(20,184,166,.38);
}
.btn-secondary {
    background: #ffffff;
    color: #0d9488;
    border-color: #5eead4;
}
.btn-secondary:hover {
    background: #0d9488;
    color: #ffffff;
    border-color: #0d9488;
    transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-light { background: #ffffff; }
.section-tint {
    background:
        radial-gradient(600px 220px at 15% 0%, rgba(240, 253, 250, .9), transparent 70%),
        radial-gradient(500px 220px at 85% 100%, rgba(255, 241, 242, .8), transparent 70%),
        #fafaf9;
}
.section-title {
    text-align: center;
    font-size: 2.05rem;
    margin-bottom: .4em;
}
.section-sub {
    text-align: center;
    color: #64748b;
    max-width: 720px;
    margin: 0 auto 2.8em;
    font-size: 1.02rem;
}

/* ---------- Category grid (blob organic icon backgrounds) ---------- */
.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: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px 20px 26px;
    color: #0f172a;
    font-weight: 700;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.category-card:before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 90px;
    height: 90px;
    background: var(--blob-bg, #ccfbf1);
    border-radius: 48% 52% 65% 35% / 46% 54% 46% 54%;
    opacity: .45;
    transition: all .4s ease;
}
.category-card:hover {
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: 0 18px 32px var(--shadow, rgba(20,184,166,.18));
    color: var(--primary);
}
.category-card:hover:before {
    transform: scale(1.5) rotate(45deg);
    opacity: .6;
}
.category-card .icon-wrap {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    transition: transform .3s ease;
}
.category-card .icon-wrap:before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--blob-bg, #ccfbf1);
    border-radius: 60% 40% 55% 45% / 50% 50% 50% 50%;
    animation: blobMorph 8s ease-in-out infinite;
}
.category-card:hover .icon-wrap { transform: rotate(-5deg); }
.category-card .icon-wrap svg { width: 50px; height: 50px; position: relative; z-index: 1; }
.category-card .label {
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

@keyframes blobMorph {
    0%, 100% { border-radius: 60% 40% 55% 45% / 50% 50% 50% 50%; }
    33% { border-radius: 50% 50% 40% 60% / 55% 45% 60% 40%; }
    66% { border-radius: 45% 55% 60% 40% / 40% 60% 50% 50%; }
}

/* per-card themes */
.cat-shoes       { --blob-bg:#fecdd3; --primary:#e11d48; --shadow:rgba(225,29,72,.2); }
.cat-hoodies     { --blob-bg:#ccfbf1; --primary:#0d9488; --shadow:rgba(13,148,136,.2); }
.cat-tshirts     { --blob-bg:#fef3c7; --primary:#d97706; --shadow:rgba(217,119,6,.2); }
.cat-jackets     { --blob-bg:#dbeafe; --primary:#2563eb; --shadow:rgba(37,99,235,.2); }
.cat-pants       { --blob-bg:#e0e7ff; --primary:#4f46e5; --shadow:rgba(79,70,229,.2); }
.cat-headwear    { --blob-bg:#fed7aa; --primary:#ea580c; --shadow:rgba(234,88,12,.2); }
.cat-accessories { --blob-bg:#fbcfe8; --primary:#be185d; --shadow:rgba(190,24,93,.2); }
.cat-other       { --blob-bg:#d9f99d; --primary:#4d7c0f; --shadow:rgba(77,124,15,.2); }

/* ---------- Article grid ---------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card {
    background: #ffffff;
    border: 1px solid #ccfbf1;
    border-radius: 22px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: all .22s ease;
    position: relative;
    overflow: hidden;
}
.article-card:before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #5eead4, #fda4af);
    border-radius: 50%;
    opacity: 0;
    transition: opacity .25s ease;
}
.article-card:hover {
    border-color: #99f6e4;
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(20,184,166,.14);
}
.article-card:hover:before { opacity: .15; }
.article-card .tag {
    display: inline-block;
    background: linear-gradient(135deg, #f0fdfa, #fff1f2);
    color: #0d9488;
    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 #ccfbf1;
    position: relative;
    z-index: 1;
}
.article-card h3 {
    margin: 0 0 10px;
    font-size: 1.14rem;
    color: #0f172a;
    position: relative;
    z-index: 1;
}
.article-card p {
    color: #475569;
    font-size: .94rem;
    flex-grow: 1;
    margin-bottom: 1.1em;
    position: relative;
    z-index: 1;
}
.article-card .read-more {
    font-weight: 800;
    font-size: .9rem;
    align-self: flex-start;
    color: #0d9488;
    position: relative;
    z-index: 1;
}
.article-card .read-more:after { content: " ⟶"; }

/* ---------- Content ---------- */
.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: #334155; }
.content-area .lede {
    font-size: 1.14rem;
    color: #475569;
    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, #f0fdfa 0%, #fff1f2 60%, #fef3c7 100%);
    border-radius: 22px;
    border: 1px solid #ccfbf1;
}
.related-box h3 { margin-top: 0; color: #0f766e; }
.related-box ul { margin-bottom: 0; }
.related-box a { color: #0d9488; font-weight: 600; }

.back-home {
    display: inline-block;
    margin-top: 36px;
    font-weight: 700;
    color: #0d9488;
}
.back-home:before { content: "⇠ "; }

/* ---------- Footer ---------- */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    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;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; font-size: .92rem; }
.site-footer a:hover { color: #5eead4; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: .85rem;
    color: #94a3b8;
}
.footer-bottom a { color: #5eead4; }

/* ---------- 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 90px; }
    .hero h1 { font-size: 2rem; }
    .hero .lede { font-size: 1.02rem; }
    .section { padding: 56px 0; }
    .section-title { font-size: 1.6rem; }
    .hero-drone-a { width: 100px; }
    .hero-drone-b { width: 70px; }
    .hero-locker { width: 85px; }
    .hero-phone { width: 55px; }
    .hero-signal { width: 28px; }

    .mobile-toggle { display: inline-flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        border-top: 1px solid #ccfbf1;
        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: #f0fdfa;
    }
    .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: 24px 14px 20px; }
    .category-card .icon-wrap { width: 72px; height: 72px; }
    .category-card .icon-wrap svg { width: 40px; height: 40px; }
}
