/*
Theme Name: Kakobuy SEO Delivery
Theme URI: https://sheetcn.com/
Author: SheetCN
Author URI: https://sheetcn.com/
Description: A worldwide-shipping flavored WordPress theme for kakobuy spreadsheet content. Soft pastel background with globe routes and delivery motifs, duo-tone product icons, delivery-diary styled SEO articles.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kakobuy-seo-delivery
*/

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #26314E;
    background: #FFF7F0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #F58A5A; text-decoration: none; transition: color .2s ease; }
a:hover { color: #D86A3C; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: #26314E; margin-bottom: .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
p { margin-bottom: 1em; color: #3D4A6B; }
ul, ol { margin: 0 0 1em 1.2em; }
li { margin-bottom: .4em; color: #3D4A6B; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ GLOBAL BACKGROUND (Pastel + World Shipping Routes) ============ */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 10% 15%, rgba(255, 221, 198, 0.75) 0%, transparent 45%),
        radial-gradient(ellipse at 90% 20%, rgba(200, 238, 227, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(206, 232, 255, 0.6) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 95%, rgba(255, 232, 236, 0.6) 0%, transparent 50%),
        linear-gradient(180deg, #FFF7F0 0%, #FFFAF5 60%, #F6FBFF 100%);
    pointer-events: none;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'>\
<g fill='%23F58A5A' opacity='0.12'>\
<circle cx='120' cy='180' r='3'/><circle cx='180' cy='160' r='3'/><circle cx='240' cy='200' r='3'/><circle cx='300' cy='170' r='3'/>\
<circle cx='380' cy='210' r='3'/><circle cx='460' cy='180' r='3'/><circle cx='540' cy='220' r='3'/><circle cx='620' cy='190' r='3'/>\
<circle cx='720' cy='170' r='3'/><circle cx='820' cy='200' r='3'/><circle cx='900' cy='170' r='3'/><circle cx='980' cy='220' r='3'/>\
<circle cx='150' cy='540' r='3'/><circle cx='230' cy='560' r='3'/><circle cx='310' cy='540' r='3'/><circle cx='400' cy='580' r='3'/>\
<circle cx='490' cy='560' r='3'/><circle cx='580' cy='540' r='3'/><circle cx='670' cy='570' r='3'/><circle cx='760' cy='550' r='3'/>\
<circle cx='850' cy='580' r='3'/><circle cx='940' cy='560' r='3'/><circle cx='1030' cy='540' r='3'/>\
</g>\
<g stroke='%23F58A5A' stroke-width='1.5' stroke-dasharray='3 7' fill='none' opacity='0.22'>\
<path d='M100 350 Q 400 220 720 360 T 1120 300'/>\
<path d='M80 450 Q 420 340 760 460 T 1140 400'/>\
</g>\
<g stroke='%234EC2A6' stroke-width='1.5' stroke-dasharray='3 7' fill='none' opacity='0.22'>\
<path d='M90 680 Q 400 560 720 700 T 1130 620'/>\
</g>\
<g fill='%23F58A5A' opacity='0.4'>\
<circle cx='100' cy='350' r='5'/><circle cx='720' cy='360' r='5'/><circle cx='1120' cy='300' r='5'/>\
</g>\
<g fill='%234EC2A6' opacity='0.4'>\
<circle cx='90' cy='680' r='5'/><circle cx='720' cy='700' r='5'/><circle cx='1130' cy='620' r='5'/>\
</g>\
<g opacity='0.08' fill='%2326314E'>\
<path d='M160 300 Q 200 280 240 300 Q 260 320 230 340 Q 180 340 160 320 Z'/>\
<path d='M520 260 Q 580 240 640 260 Q 680 290 640 320 Q 560 320 520 290 Z'/>\
<path d='M860 300 Q 920 280 980 300 Q 1000 330 950 340 Q 880 340 860 320 Z'/>\
<path d='M300 500 Q 360 480 440 500 Q 460 530 400 540 Q 320 540 300 520 Z'/>\
<path d='M700 480 Q 780 460 860 480 Q 900 510 820 540 Q 740 540 700 510 Z'/>\
</g>\
</svg>");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
    opacity: 0.9;
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 247, 240, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(245, 138, 90, 0.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: #26314E; letter-spacing: -0.02em; }
.site-logo:hover { color: #F58A5A; }
.logo-mark {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #FFB38A 0%, #F58A5A 100%);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 6px 16px rgba(245, 138, 90, 0.3);
}
.logo-mark svg { width: 22px; height: 22px; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.main-nav li { margin: 0; position: relative; }
.main-nav a { display: block; padding: 10px 14px; color: #3D4A6B; font-weight: 500; font-size: .95rem; border-radius: 10px; }
.main-nav a:hover { color: #F58A5A; background: rgba(245, 138, 90, 0.08); }

.has-dropdown > a::after {
    content: ""; display: inline-block; margin-left: 6px;
    border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px);
}
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 260px;
    background: #fff; border-radius: 14px;
    box-shadow: 0 12px 40px rgba(38, 49, 78, 0.14);
    padding: 8px; opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: all .2s ease;
    list-style: none; display: block !important;
}
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li { margin: 0; }
.dropdown a { padding: 10px 14px; border-radius: 8px; font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.dropdown a::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: linear-gradient(135deg, #FFB38A, #F58A5A); flex-shrink: 0;
}
.dropdown a:hover { background: #FFF2E8; color: #F58A5A; }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; background: #FFF2E8; color: #F58A5A; align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.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: 999px;
    font-weight: 600; font-size: 1rem;
    transition: all .25s ease; text-align: center; cursor: pointer; line-height: 1; white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, #FFB38A 0%, #F58A5A 100%);
    color: #fff; box-shadow: 0 8px 22px rgba(245, 138, 90, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245, 138, 90, 0.45); color: #fff; }
.btn-secondary { background: #fff; color: #26314E; box-shadow: 0 4px 14px rgba(38, 49, 78, 0.08); border: 2px solid #26314E; }
.btn-secondary:hover { background: #26314E; color: #fff; transform: translateY(-2px); }

/* ============ HERO ============ */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
    background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(245, 138, 90, 0.25);
    border-radius: 999px; font-size: .85rem; font-weight: 600; color: #F58A5A; margin-bottom: 20px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #F58A5A; box-shadow: 0 0 0 4px rgba(245, 138, 90, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.7; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes slide { 0% { transform: translateX(-6px); } 100% { transform: translateX(6px); } }

.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero h1 .accent {
    background: linear-gradient(135deg, #F58A5A 0%, #FFB38A 40%, #4EC2A6 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 1.1rem; color: #3D4A6B; margin-bottom: 32px; max-width: 540px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(38, 49, 78, 0.1); }
.hero-meta-num { font-size: 1.6rem; font-weight: 800; color: #26314E; letter-spacing: -0.02em; }
.hero-meta-label { font-size: .85rem; color: #7A849E; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-left: auto; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.hero-globe { animation: spin 40s linear infinite; transform-origin: center; transform-box: fill-box; }
.hero-truck { animation: bob 3s ease-in-out infinite; }
.hero-pkg-a { animation: bob 2.6s ease-in-out infinite; }
.hero-pkg-b { animation: bob 3.4s ease-in-out infinite 0.5s; }
.hero-plane-small { animation: slide 4s ease-in-out infinite alternate; }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; position: relative; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-eyebrow {
    display: inline-block; padding: 4px 12px; background: #FFEDE2; color: #F58A5A;
    border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
}
.section-title { margin-bottom: 14px; }
.section-desc { color: #3D4A6B; font-size: 1.05rem; }

/* ============ CATEGORY GRID (DUO-TONE FILLED ICONS) ============ */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.category-card {
    position: relative; display: flex; flex-direction: column; padding: 24px;
    background: #fff; border-radius: 22px;
    box-shadow: 0 4px 24px rgba(38, 49, 78, 0.06);
    transition: all .3s ease; aspect-ratio: 4/5;
    text-decoration: none; color: inherit;
    border: 1px solid rgba(245, 138, 90, 0.08);
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(38, 49, 78, 0.12);
    border-color: rgba(245, 138, 90, 0.25); color: inherit;
}
.category-card .cat-visual {
    flex: 1; display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; border-radius: 16px;
    position: relative; overflow: hidden;
}
.category-card .cat-visual::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.75) 0%, transparent 55%);
}
.category-card .cat-visual svg { width: 60%; height: 60%; position: relative; z-index: 1; }
.category-card .cat-name { font-size: 1.08rem; font-weight: 700; color: #26314E; margin-bottom: 4px; }
.category-card .cat-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: #F58A5A; }
.category-card .cat-arrow::after { content: "→"; transition: transform .25s ease; }
.category-card:hover .cat-arrow::after { transform: translateX(4px); }

/* Soft tinted visual backgrounds per category (new palette) */
.cat-shoes .cat-visual       { background: linear-gradient(135deg, #FFEDE2 0%, #FFD3B5 100%); }
.cat-hoodies .cat-visual     { background: linear-gradient(135deg, #E4F6EE 0%, #B9EDD6 100%); }
.cat-tshirts .cat-visual     { background: linear-gradient(135deg, #FFF4D9 0%, #FFE493 100%); }
.cat-jackets .cat-visual     { background: linear-gradient(135deg, #EEEBFF 0%, #CFC6FF 100%); }
.cat-pants .cat-visual       { background: linear-gradient(135deg, #E1F0FF 0%, #BBDBFF 100%); }
.cat-headwear .cat-visual    { background: linear-gradient(135deg, #FFE4DF 0%, #FFBFB0 100%); }
.cat-accessories .cat-visual { background: linear-gradient(135deg, #FDE3EC 0%, #FFB5CC 100%); }
.cat-other .cat-visual       { background: linear-gradient(135deg, #E5F7E0 0%, #BEE9A8 100%); }

/* ============ ARTICLE ============ */
.article-section {
    background: #fff; border-radius: 24px; padding: 50px;
    box-shadow: 0 8px 30px rgba(38, 49, 78, 0.06);
    border: 1px solid rgba(245, 138, 90, 0.08);
}
.article-section h2 { margin-top: 1.4em; }
.article-section h2:first-child { margin-top: 0; }
.article-section h3 { margin-top: 1.4em; color: #F58A5A; }
.article-section p { color: #3D4A6B; font-size: 1.02rem; }
.article-section .lead {
    font-size: 1.15rem; color: #26314E;
    padding: 20px 24px;
    background: linear-gradient(135deg, #FFEDE2 0%, #FFF4EA 100%);
    border-left: 4px solid #F58A5A;
    border-radius: 10px; margin-bottom: 28px;
}

/* ============ GUIDE CARDS ============ */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.guide-card {
    display: flex; flex-direction: column; padding: 28px;
    background: #fff; border-radius: 20px;
    box-shadow: 0 4px 24px rgba(38, 49, 78, 0.06);
    transition: all .3s ease; text-decoration: none; color: inherit;
    position: relative; overflow: hidden;
    border: 1px solid rgba(245, 138, 90, 0.08);
}
.guide-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #FFB38A, #F58A5A, #4EC2A6, #7CC6FF);
}
.guide-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(38, 49, 78, 0.1); color: inherit; }
.guide-card .tag {
    display: inline-block; padding: 4px 10px; background: #FFEDE2; color: #F58A5A;
    border-radius: 999px; font-size: .78rem; font-weight: 700; margin-bottom: 14px;
    letter-spacing: 0.05em; text-transform: uppercase; width: fit-content;
}
.guide-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: #26314E; }
.guide-card p { color: #3D4A6B; font-size: .95rem; margin-bottom: 18px; flex: 1; }
.guide-card .read-link { color: #F58A5A; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.guide-card .read-link::after { content: "→"; transition: transform .25s ease; }
.guide-card:hover .read-link::after { transform: translateX(4px); }

/* ============ CTA BAND ============ */
.cta-band {
    background: linear-gradient(135deg, #FFB38A 0%, #F58A5A 50%, #D86A3C 100%);
    border-radius: 28px; padding: 60px 50px; text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.cta-band::before { width: 220px; height: 220px; top: -60px; left: -60px; }
.cta-band::after { width: 160px; height: 160px; bottom: -50px; right: -40px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.95); font-size: 1.1rem; max-width: 580px; margin: 0 auto 28px; }
.cta-band .btn-primary { background: #fff; color: #F58A5A; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
.cta-band .btn-primary:hover { background: #26314E; color: #fff; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.cta-band .btn-secondary:hover { background: #fff; color: #F58A5A; }

/* ============ FOOTER ============ */
.site-footer { background: #26314E; color: #B4BCD0; padding: 60px 0 30px; margin-top: 80px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; color: #B4BCD0; }
.site-footer a { color: #B4BCD0; font-size: .95rem; }
.site-footer a:hover { color: #FFB38A; }
.footer-brand p { color: #B4BCD0; max-width: 360px; font-size: .95rem; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; font-size: .85rem; color: #8891AC; }

/* ============ PROSE ============ */
.prose { max-width: 820px; margin: 0 auto; padding: 50px 20px; }
.prose .article-section { padding: 60px 50px; }
.prose .article-meta { display: flex; gap: 16px; font-size: .85rem; color: #7A849E; margin-bottom: 26px; flex-wrap: wrap; }
.prose .table-of-contents { background: #FFEDE2; border-radius: 14px; padding: 20px 26px; margin: 26px 0 32px; border: 1px solid rgba(245, 138, 90, 0.18); }
.prose .table-of-contents strong { display: block; margin-bottom: 10px; color: #26314E; }
.prose .table-of-contents ol { margin-bottom: 0; color: #3D4A6B; }

.related-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(38, 49, 78, 0.1); }
.related-nav a { display: block; padding: 18px 22px; background: #FFEDE2; border-radius: 14px; color: #26314E; }
.related-nav a:hover { background: #FFD3B5; color: #F58A5A; }
.related-nav .label { display: block; font-size: .78rem; color: #F58A5A; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.related-nav .title { font-weight: 600; font-size: 1rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .hero { padding: 50px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 420px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .article-section, .prose .article-section { padding: 32px 24px; }
    .cta-band { padding: 48px 24px; }
    .section { padding: 60px 0; }
}
@media (max-width: 720px) {
    .menu-toggle { display: inline-flex; }
    .main-nav { position: absolute; top: 100%; left: 20px; right: 20px; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(38, 49, 78, 0.14); padding: 12px; display: none; flex-direction: column; gap: 0; }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; width: 100%; gap: 0; }
    .main-nav li { width: 100%; }
    .main-nav a { padding: 12px 14px; }
    .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none !important; padding-left: 20px; }
    .has-dropdown.open > .dropdown { display: block !important; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .category-card { padding: 18px; aspect-ratio: 1/1.1; }
    .hero-buttons { justify-content: center; }
    .hero-inner, .section-header { text-align: center; }
    .hero-eyebrow { margin-left: auto; margin-right: auto; }
    .hero-meta { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .related-nav { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
    .btn { padding: 12px 20px; font-size: .92rem; }
    .cta-band { padding: 40px 20px; }
}
