/*
Theme Name: Kakobuy Spreadsheet SEO
Theme URI: https://sheetfinds.com/
Author: Sheetfinds
Author URI: https://sheetfinds.com/
Description: A clean, light, SEO-focused WordPress theme built around the kakobuy spreadsheet niche. Features a category dropdown, hero CTA buttons, product category grid, and a Guide article hub optimized for Google indexing.
Version: 1.1.3
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: kakobuy-seo
Tags: seo, one-page, blog, light, minimalist, custom-menu, translation-ready
*/

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: #0f172a;
    background: #e0f2fe;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; transition: color .2s ease; }
a:hover { color: #1d4ed8; }
h1, h2, h3, h4 { color: #0f172a; line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }

/* ---------- Layout container ---------- */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.site-logo a {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.site-logo span { color: #2563eb; }

/* ---------- Primary nav ---------- */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 6px;
    align-items: center;
}
.main-nav a {
    color: #334155;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: .95rem;
}
.main-nav a:hover { background: #f1f5f9; color: #0f172a; }

.dropdown { position: relative; }
.dropdown > button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #334155;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.dropdown > button:hover { background: #f1f5f9; color: #0f172a; }
.dropdown > button::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    display: inline-block;
    margin-top: -2px;
    transition: transform .2s ease;
}
.dropdown.open > button::after { transform: rotate(-135deg); margin-top: 2px; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
    padding: 8px;
    display: none;
    flex-direction: column;
    max-height: 70vh;
    overflow-y: auto;
}
.dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu a {
    padding: 10px 12px;
    border-radius: 8px;
    color: #334155;
    font-size: .92rem;
    font-weight: 500;
    display: block;
}
.dropdown-menu a:hover { background: #e0f2fe; color: #0369a1; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.55);
}
.btn-primary:hover { color: #ffffff; transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.65); }
.btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}
.btn-secondary:hover { border-color: #94a3b8; background: #f8fafc; }
.btn-ghost {
    background: transparent;
    color: #2563eb;
    padding: 10px 16px;
}
.btn-ghost:hover { background: #eff6ff; }

/* ---------- Hero ---------- */
.hero {
    padding: 90px 0 70px;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(255, 255, 255, 0.7), transparent 60%),
        radial-gradient(700px 400px at 0% 10%, rgba(186, 230, 253, 0.5), transparent 60%),
        linear-gradient(180deg, #bae6fd 0%, #e0f2fe 100%);
    text-align: center;
}
.hero .eyebrow {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
    font-size: .8rem;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 3rem;
    max-width: 820px;
    margin: 0 auto 20px;
    letter-spacing: -0.02em;
}
.hero h1 span { color: #2563eb; }
.hero p.lead {
    font-size: 1.15rem;
    max-width: 660px;
    margin: 0 auto 34px;
    color: #475569;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ---------- Section wrappers ---------- */
.section { padding: 72px 0; }
.section-alt { background: #ffffff; border-top: 1px solid #dbeafe; border-bottom: 1px solid #dbeafe; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header h2 { font-size: 2.1rem; }
.section-header p { color: #64748b; font-size: 1.05rem; }

/* ---------- Category grid ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover {
    transform: translateY(-3px);
    border-color: #7dd3fc;
    box-shadow: 0 18px 32px -18px rgba(14, 165, 233, 0.45);
    color: #0f172a;
}
.cat-card .cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e0f2fe;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: background .2s ease, color .2s ease;
}
.cat-card .cat-icon svg { width: 24px; height: 24px; display: block; }
.cat-card:hover .cat-icon { background: #0284c7; color: #ffffff; }
.cat-card .cat-name { line-height: 1.3; flex: 1; }
.cat-card .arrow {
    width: 26px; height: 26px; border-radius: 50%;
    background: #eff6ff; color: #2563eb;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .85rem;
    transition: background .2s ease;
    flex: 0 0 auto;
}
.cat-card:hover .arrow { background: #2563eb; color: #ffffff; }
.cat-card > * { pointer-events: none; }

/* ---------- Feature strip ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 28px 26px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { margin: 0; color: #64748b; font-size: .96rem; }
.feature-card .icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: #eff6ff; color: #2563eb;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700; margin-bottom: 16px;
}

/* ---------- Guide grid ---------- */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.guide-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .2s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -18px rgba(15, 23, 42, 0.18); }
.guide-card .tag {
    align-self: flex-start;
    background: #ecfdf5;
    color: #047857;
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.guide-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.guide-card p { color: #64748b; font-size: .93rem; margin-bottom: 18px; flex: 1; }
.guide-card .read-more {
    font-weight: 600;
    font-size: .9rem;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
}
.cta-banner h2 { font-size: 1.9rem; margin-bottom: 12px; }
.cta-banner p { color: #475569; max-width: 560px; margin: 0 auto 26px; }
.cta-banner .hero-actions { justify-content: center; }

/* ---------- Article (single guide) ---------- */
.article-hero {
    padding: 60px 0 30px;
    background: #ffffff;
    border-bottom: 1px solid #eef2f7;
}
.article-hero .breadcrumbs {
    color: #64748b;
    font-size: .88rem;
    margin-bottom: 16px;
}
.article-hero .breadcrumbs a { color: #2563eb; }
.article-hero h1 {
    font-size: 2.4rem;
    max-width: 820px;
    margin-bottom: 14px;
}
.article-hero .meta {
    color: #94a3b8;
    font-size: .9rem;
}
.article-body {
    padding: 40px 0 60px;
}
.article-body .content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #334155;
}
.article-body .content h2 { font-size: 1.55rem; margin-top: 1.8em; }
.article-body .content h3 { font-size: 1.2rem; margin-top: 1.5em; }
.article-body .content ul, .article-body .content ol { margin: 0 0 1.2em; }
.article-body .content li { margin-bottom: 6px; }
.article-body .content a {
    color: #2563eb;
    border-bottom: 1px solid #dbeafe;
}
.article-body .content a:hover { color: #1d4ed8; border-bottom-color: #93c5fd; }

.article-cta {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 26px 28px;
    margin: 40px 0 10px;
    text-align: center;
}
.article-cta h3 { font-size: 1.15rem; margin-bottom: 10px; }
.article-cta p { color: #64748b; margin-bottom: 18px; }

.related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eef2f7;
}
.related h3 { font-size: 1.2rem; margin-bottom: 18px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 56px 0 30px;
    margin-top: 40px;
}
.site-footer h4 { color: #ffffff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .01em; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #ffffff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: .92rem; }
.footer-brand p { color: #94a3b8; font-size: .92rem; max-width: 320px; }
.footer-bottom {
    text-align: center;
    color: #64748b;
    font-size: .85rem;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-family: inherit;
}
.nav-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: #0f172a;
    margin: 4px 0;
    border-radius: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 60px 0 50px; }
    .section { padding: 56px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .article-hero h1 { font-size: 1.9rem; }
    .nav-toggle { display: inline-flex; flex-direction: column; }
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        padding: 16px 20px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav a, .dropdown > button { width: 100%; text-align: left; justify-content: space-between; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 12px;
        max-height: none;
    }
    .site-header { position: relative; }
}
@media (max-width: 560px) {
    .hero h1 { font-size: 1.8rem; }
    .cta-banner { padding: 36px 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .btn { padding: 12px 20px; font-size: .95rem; }
}
