/*
Theme Name: Acbuy Spreadsheet SEO
Theme URI: https://sheetfinds.com/
Author: SheetFinds
Author URI: https://sheetfinds.com/
Description: A clean, minimal, SEO-optimized WordPress theme dedicated to the Acbuy Spreadsheet topic. Light background, Western aesthetic, mobile responsive, with a category dropdown, guide dropdown, hero buttons and 12 auto-generated 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: acbuy-spreadsheet
Tags: seo, blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   RESET & BASE
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2c3542;
    background-color: #fbfcfe;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: #2b6cb0;
    text-decoration: none;
    transition: color .18s ease;
}
a:hover { color: #1a4b82; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a202c;
    line-height: 1.3;
    margin: 0 0 .6em;
    font-weight: 700;
    letter-spacing: -.01em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
    background: linear-gradient(90deg, #eaf4ff 0%, #f2ecff 100%);
    color: #3c4a63;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #e6eaf3;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: #3c4a63; margin-left: 14px; }
.top-bar a:hover { color: #1a4b82; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #ebeef3;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 20px;
}

.site-branding a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1a202c;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -.02em;
}
.site-branding .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4facfe 0%, #7367f0 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(115,103,240,.25);
}

/* =========================================================
   PRIMARY NAV + DROPDOWNS
   ========================================================= */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 6px;
}
.main-navigation > ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
}
.main-navigation > ul > li { position: relative; }
.main-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #2c3542;
    font-weight: 500;
    font-size: 15px;
    transition: background .18s ease, color .18s ease;
}
.main-navigation a:hover { background: #f2f5fb; color: #1a4b82; }

.acs-dropdown { position: relative; }
.acs-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: #2c3542;
    font-family: inherit;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.acs-dropdown-toggle:hover { background: #f2f5fb; color: #1a4b82; }
.acs-dropdown-toggle::after {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 4px;
    opacity: .65;
    transition: transform .2s ease;
}
.acs-dropdown.is-open > .acs-dropdown-toggle::after {
    transform: rotate(-135deg) translateY(2px) translateX(2px);
    opacity: .9;
}

.main-navigation .acs-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0;
    min-width: 260px;
    max-width: min(360px, calc(100vw - 24px));
    background: #ffffff;
    border: 1px solid #e6eaf3;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(30, 45, 90, .12);
    padding: 8px;
    margin: 0;
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    list-style: none;
    z-index: 200;
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.main-navigation .acs-dropdown.is-open > .acs-dropdown-menu {
    display: flex !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.main-navigation .acs-dropdown-menu li { width: 100%; position: static; margin: 0; padding: 0; list-style: none; }
.main-navigation .acs-dropdown-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14.5px;
    color: #37425a;
    width: 100%;
    text-decoration: none;
}
.main-navigation .acs-dropdown-menu a:hover { background: #eaf4ff; color: #1a4b82; }

/* Header CTA button */
.header-cta {
    background: linear-gradient(135deg, #4facfe 0%, #7367f0 100%);
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(79,172,254,.35);
}
.header-cta:hover { background: linear-gradient(135deg, #3f9be6 0%, #5f57d8 100%); color: #fff !important; }

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #e2e6ef;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: #37425a;
    margin: 4px 0;
    border-radius: 2px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    background:
        radial-gradient(1200px 500px at 10% -10%, #e3ecff 0, rgba(227,236,255,0) 60%),
        radial-gradient(1000px 500px at 100% 0%, #f0e7ff 0, rgba(240,231,255,0) 60%),
        linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
    padding: 82px 0 72px;
    text-align: center;
}
.hero-eyebrow {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #e2e8f6;
    color: #4a5876;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    max-width: 820px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1a202c 0%, #4a5876 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lead {
    max-width: 700px;
    margin: 0 auto 34px;
    font-size: 1.1rem;
    color: #4a5876;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #7367f0 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(79,172,254,.35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 28px rgba(79,172,254,.45); }

.btn-secondary {
    background: #ffffff;
    color: #1a4b82;
    border-color: #d5e0ef;
}
.btn-secondary:hover { background: #eef4fc; color: #1a4b82; }

.btn-ghost {
    background: transparent;
    color: #4a5876;
    border-color: #d5dae5;
}
.btn-ghost:hover { background: #f2f5fb; }

/* =========================================================
   SECTION SHARED
   ========================================================= */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: #f6f9fd; }

.section-header {
    text-align: center;
    margin-bottom: 44px;
}
.section-header .eyebrow {
    color: #7367f0;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}
.section-header h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.25rem);
    margin: 0 0 12px;
}
.section-header p {
    color: #4a5876;
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.02rem;
}

/* =========================================================
   CATEGORY GRID
   ========================================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}
.category-card {
    background: #ffffff;
    border: 1px solid #e6eaf3;
    border-radius: 14px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #1a202c;
    font-weight: 600;
    transition: all .2s ease;
    box-shadow: 0 2px 8px rgba(30, 45, 90, .04);
}
.category-card:hover {
    transform: translateY(-3px);
    border-color: #c7d6f0;
    box-shadow: 0 12px 26px rgba(30, 45, 90, .10);
    color: #1a4b82;
}
.category-card .cat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eaf4ff 0%, #f2ecff 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #7367f0;
    flex-shrink: 0;
}
.category-card .cat-name { font-size: 15.5px; }
.category-card .cat-sub {
    display: block;
    font-size: 12.5px;
    color: #7a8699;
    font-weight: 500;
    margin-top: 2px;
}

/* =========================================================
   FEATURES / VALUE
   ========================================================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.feature-card {
    background: #ffffff;
    border: 1px solid #ebeef3;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(30, 45, 90, .04);
}
.feature-card .icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4facfe 0%, #7367f0 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}
.feature-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.feature-card p { color: #4a5876; margin: 0; font-size: 14.5px; }

/* =========================================================
   ARTICLES GRID
   ========================================================= */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.article-card {
    background: #ffffff;
    border: 1px solid #e6eaf3;
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: 0 2px 10px rgba(30, 45, 90, .04);
    display: flex;
    flex-direction: column;
    transition: all .2s ease;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(30, 45, 90, .10);
    border-color: #c7d6f0;
}
.article-card .tag {
    display: inline-block;
    background: #eaf4ff;
    color: #1a4b82;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 14px;
    width: fit-content;
}
.article-card h3 { font-size: 1.15rem; margin: 0 0 10px; }
.article-card h3 a { color: #1a202c; }
.article-card h3 a:hover { color: #2b6cb0; }
.article-card p { color: #4a5876; font-size: 14.5px; margin: 0 0 16px; }
.article-card .read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #2b6cb0;
}
.article-card .read-more::after {
    content: "→";
    transition: transform .18s ease;
}
.article-card .read-more:hover::after { transform: translateX(3px); }

/* =========================================================
   CTA STRIP
   ========================================================= */
.cta-strip {
    background: linear-gradient(135deg, #4facfe 0%, #7367f0 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.cta-strip h2 { color: #fff; margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-strip p { color: rgba(255,255,255,.9); margin: 0 auto 26px; max-width: 600px; }
.cta-strip .btn-primary {
    background: #fff;
    color: #4a5876;
    box-shadow: 0 10px 28px rgba(0,0,0,.15);
}
.cta-strip .btn-primary:hover { background: #f6f9fd; color: #1a4b82; }
.cta-strip .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta-strip .btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }

/* =========================================================
   SINGLE POST / PAGE
   ========================================================= */
.single-hero {
    background: linear-gradient(180deg, #eaf4ff 0%, #ffffff 100%);
    padding: 64px 0 40px;
    text-align: center;
}
.single-hero .breadcrumbs {
    color: #6b7797;
    font-size: 13.5px;
    margin-bottom: 14px;
}
.single-hero .breadcrumbs a { color: #6b7797; }
.single-hero .breadcrumbs a:hover { color: #1a4b82; }
.single-hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); max-width: 860px; margin: 0 auto 16px; }
.single-hero .meta { color: #6b7797; font-size: 14px; }

.entry-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 46px;
    padding: 56px 0 72px;
}
.entry-content {
    background: #fff;
    padding: 40px 44px;
    border-radius: 16px;
    border: 1px solid #ebeef3;
    box-shadow: 0 2px 12px rgba(30, 45, 90, .04);
    font-size: 16.5px;
    color: #303a4c;
}
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
    border-left: 4px solid #7367f0;
    background: #f6f9fd;
    padding: 14px 20px;
    margin: 1.4em 0;
    color: #37425a;
    border-radius: 0 8px 8px 0;
}
.entry-content a { color: #2b6cb0; font-weight: 500; border-bottom: 1px dashed rgba(43,108,176,.4); }
.entry-content a:hover { color: #1a4b82; border-bottom-color: #1a4b82; }
.entry-content .inline-cta {
    background: linear-gradient(135deg, #eaf4ff 0%, #f2ecff 100%);
    border: 1px solid #dfe6f4;
    border-radius: 14px;
    padding: 22px;
    margin: 30px 0;
    text-align: center;
}
.entry-content .inline-cta p { margin: 0 0 12px; font-weight: 600; color: #1a202c; }

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.widget {
    background: #fff;
    border: 1px solid #ebeef3;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(30, 45, 90, .04);
}
.widget h4 {
    font-size: 15px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #7367f0;
    margin: 0 0 14px;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { border-bottom: 1px solid #eef2f8; }
.widget li:last-child { border-bottom: 0; }
.widget li a {
    display: block;
    padding: 10px 0;
    color: #37425a;
    font-size: 14.5px;
    font-weight: 500;
}
.widget li a:hover { color: #1a4b82; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 30px;
    margin-top: 40px;
}
.site-footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h5 {
    color: #fff;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 16px;
}
.site-footer a { color: #cbd5e1; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand p { color: #94a3b8; font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 40px;
    padding-top: 22px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .entry-wrap { grid-template-columns: 1fr; }
    .site-footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #ebeef3;
        padding: 12px 20px 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,.06);
        display: none;
    }
    .main-navigation.is-open { display: flex; }
    .main-navigation > ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 2px;
    }
    .main-navigation > ul > li { width: 100%; }
    .main-navigation a { width: 100%; }
    .main-navigation .acs-dropdown-toggle { width: 100%; justify-content: space-between; }
    .main-navigation .acs-dropdown-menu {
        position: static !important;
        box-shadow: none;
        border: 0;
        border-left: 2px solid #eaf4ff;
        border-radius: 0;
        margin-left: 8px;
        padding: 4px 0 4px 8px;
        max-height: none;
        min-width: 0;
        max-width: none;
    }
    .main-navigation .acs-dropdown.is-open > .acs-dropdown-menu { display: flex !important; }
    .hero { padding: 60px 0 50px; }
    .section { padding: 56px 0; }
    .entry-content { padding: 28px 22px; }
    .site-footer .container { grid-template-columns: 1fr; }
}

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

/* =========================================================
   CLICKABILITY GUARDS — ensure CTA + category buttons
   are never blocked by overlays or stacking context bugs
   ========================================================= */
.hero,
.section,
.cta-strip,
.site-footer { position: relative; z-index: 1; }

.hero-buttons,
.category-grid,
.site-header nav ul,
.site-footer ul {
    position: relative;
    z-index: 5;
}

.hero-buttons .btn,
.cta-strip .btn,
.category-grid .category-card,
.header-cta,
.site-footer a,
.main-navigation .acs-dropdown-menu a {
    position: relative !important;
    z-index: 6 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none;
}

.main-navigation .acs-dropdown-menu {
    z-index: 300 !important;
}
.main-navigation .acs-dropdown.is-open > .acs-dropdown-menu a {
    pointer-events: auto !important;
}

