/*
Theme Name: KakobuyHot
Theme URI: https://kakobuyhot.com/
Author: KakobuyHot
Author URI: https://kakobuyhot.com/
Description: A clean, light SEO-focused theme for kakobuyhot.com. Homepage links to leosheet.com, includes 4 content hubs and 12 SEO articles about kakobuy shipping, kakobuy spreadsheet 2026, kakobuy haul, kakobuy QC finder and kakobuy sheets. Diagonal red/white title bands, tuned for Western audiences.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kakobuyhot
Tags: light, clean, blog, custom-menu, custom-logo, responsive-layout, seo, ecommerce
*/

:root {
  --brand-red: #e63946;
  --brand-red-dark: #c92c3a;
  --brand-red-soft: #fde8ea;
  --brand-pink: #ffe3e6;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;
  --bg: #ffffff;
  --bg-soft: #fff5f6;
  --bg-alt: #fafafa;
  --border: #ececec;
  --border-strong: #d9d9d9;
  --shadow: 0 4px 20px rgba(230, 57, 70, 0.06);
  --shadow-lg: 0 12px 40px rgba(230, 57, 70, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-red-dark); }
img { max-width: 100%; height: auto; }

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

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.logo {
  font-size: 1.35rem; font-weight: 800; color: var(--text-primary);
  letter-spacing: -.5px;
}
.logo span { color: var(--brand-red); }
.logo em { font-style: normal; background: var(--brand-red); color: #fff; padding: 2px 8px; border-radius: 6px; margin-left: 4px; font-size: 0.7em; letter-spacing: 1px; }

.main-nav { display: flex; gap: 24px; align-items: center; }
.main-nav a { color: var(--text-primary); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--brand-red); }

.dropdown { position: relative; }
.dropdown-toggle {
  background: none; border: 0; cursor: pointer;
  font: inherit; color: var(--text-primary); font-weight: 500;
  padding: 4px 0; display: inline-flex; align-items: center; gap: 4px;
}
.dropdown-toggle::after { content: "▾"; font-size: 0.7em; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 8px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 240px; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 9px 18px; color: var(--text-primary); font-size: 0.92rem;
}
.dropdown-menu a:hover { background: var(--brand-red-soft); color: var(--brand-red); }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 68px 0 84px;
  background: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, transparent 45%, var(--brand-red) 45%, var(--brand-red) 55%, transparent 55%, transparent 100%);
  opacity: 0.06;
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.hero .eyebrow {
  display: inline-block;
  background: var(--brand-red-soft); color: var(--brand-red);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: .5px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15; margin: 0 0 18px;
  font-weight: 800; letter-spacing: -1px;
}
.hero h1 .hl { color: var(--brand-red); }
.hero-sub {
  font-size: 1.1rem; color: var(--text-secondary);
  margin: 0 auto 30px; max-width: 640px;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  border: 2px solid transparent; cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: #fff; color: var(--brand-red); border-color: var(--brand-red); }
.btn-secondary:hover { background: var(--brand-red); color: #fff; }
.btn-accent { background: #1a1a1a; color: #fff; }
.btn-accent:hover { background: #333; color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-align: center; margin: 0 0 12px;
  font-weight: 800; letter-spacing: -.5px;
}
.section-sub {
  text-align: center; color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 44px;
}

/* Diagonal red/white title band */
.band-title {
  position: relative;
  padding: 44px 0;
  margin: 0 0 40px;
  background:
    repeating-linear-gradient(
      -18deg,
      var(--brand-red) 0px,
      var(--brand-red) 60px,
      #fff 60px,
      #fff 120px
    );
  overflow: hidden;
}
.band-title::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.55));
}
.band-title .container { position: relative; z-index: 1; }
.band-title h1, .band-title h2 {
  margin: 0; color: var(--text-primary);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -.5px;
  text-shadow: 0 2px 12px rgba(255,255,255,0.9);
}
.band-title .breadcrumb {
  margin: 0 0 10px; font-size: 0.9rem; color: var(--text-secondary);
  text-shadow: 0 2px 8px rgba(255,255,255,0.9);
}
.band-title .breadcrumb a { color: var(--brand-red-dark); font-weight: 600; }

/* ---------- Category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.category-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  color: var(--text-primary); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-red);
  color: var(--text-primary);
}
.category-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--brand-red-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 12px;
}
.category-card h4 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 700; }
.category-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Hub cards (4 hubs) ---------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.hub-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px; color: var(--text-primary);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-red);
  color: var(--text-primary);
}
.hub-card .hub-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--brand-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 14px;
}
.hub-card h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 700; }
.hub-card p { margin: 0 0 16px; color: var(--text-secondary); font-size: 0.95rem; flex-grow: 1; }
.hub-card .hub-link { color: var(--brand-red); font-weight: 600; font-size: 0.92rem; }
.hub-card .hub-link::after { content: " →"; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px;
  background: var(--brand-red-soft);
  border-radius: var(--radius-lg);
  margin-top: 34px;
}
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 1.6rem; font-weight: 800; color: var(--brand-red); display: block; }
.stat-item .stat-label { font-size: 0.85rem; color: var(--text-secondary); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-item {
  background: #fff; border: 1px solid var(--border);
  padding: 24px; border-radius: var(--radius);
}
.feature-item .feature-icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.feature-item h4 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.feature-item p { margin: 0; font-size: 0.92rem; color: var(--text-secondary); }

/* ---------- Steps ---------- */
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps-list li {
  counter-increment: step;
  position: relative; padding: 22px 22px 22px 78px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 14px;
}
.steps-list li::before {
  content: counter(step);
  position: absolute; left: 22px; top: 22px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.steps-list li h4 { margin: 0 0 6px; font-size: 1.06rem; }
.steps-list li p { margin: 0; color: var(--text-secondary); font-size: 0.94rem; }

/* ---------- Article ---------- */
.article-content { max-width: 820px; margin: 40px auto 60px; padding: 0 20px; }
.article-content h2 {
  margin: 40px 0 14px;
  font-size: 1.55rem; font-weight: 800;
  padding-left: 14px; border-left: 4px solid var(--brand-red);
  letter-spacing: -.3px;
}
.article-content h3 { margin: 26px 0 10px; font-size: 1.2rem; font-weight: 700; }
.article-content p { margin: 0 0 16px; color: var(--text-primary); }
.article-content ul, .article-content ol { margin: 0 0 20px; padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content .article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 0.9rem;
  margin: 6px 0 20px;
}
.article-content .article-meta span { display: inline-flex; align-items: center; gap: 4px; }

.inline-cta {
  background: var(--brand-red-soft);
  border-left: 4px solid var(--brand-red);
  padding: 22px 24px; border-radius: 12px;
  margin: 30px 0; text-align: center;
}
.inline-cta p { margin: 0 0 12px; font-weight: 600; color: var(--brand-red-dark); }

/* Related list */
.related-articles {
  background: var(--bg-soft);
  padding: 26px; border-radius: var(--radius-lg);
  margin: 40px 0 0;
}
.related-articles h3 { margin: 0 0 16px; }
.related-articles ul { list-style: none; padding: 0; margin: 0; }
.related-articles li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.related-articles li:last-child { border-bottom: 0; }
.related-articles a { font-weight: 600; }

/* Article listing (on hubs) */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.article-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
  color: var(--text-primary);
}
.article-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: var(--brand-red); color: var(--text-primary);
}
.article-card .article-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  color: var(--brand-red); background: var(--brand-red-soft);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
  align-self: flex-start;
}
.article-card h4 { margin: 0 0 8px; font-size: 1.06rem; font-weight: 700; line-height: 1.35; }
.article-card p { margin: 0 0 14px; color: var(--text-secondary); font-size: 0.92rem; flex-grow: 1; }
.article-card .read-more { color: var(--brand-red); font-weight: 600; font-size: 0.9rem; }
.article-card .read-more::after { content: " →"; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 10px;
}
.faq details[open] { border-color: var(--brand-red); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1rem; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  color: var(--brand-red); font-weight: 700; font-size: 1.3rem;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--text-secondary); }

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a1a; color: #eaeaea;
  padding: 50px 0 24px; margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h4 { margin: 0 0 10px; color: #fff; font-size: 1.1rem; }
.footer-brand p { margin: 0; font-size: 0.9rem; color: #b7b7b7; }
.footer-col h5 {
  margin: 0 0 14px; color: #fff;
  font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase;
}
.footer-col a { display: block; color: #b7b7b7; margin-bottom: 8px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--brand-red); }
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 30px; padding-top: 20px;
  text-align: center; font-size: 0.85rem; color: #888;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 18px 20px; border-bottom: 1px solid var(--border); gap: 12px;
  }
  .main-nav.open { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; min-width: 0; opacity: 1; visibility: visible; transform: none; padding: 6px 0 0 12px; }
  .dropdown-menu a { padding: 6px 0; }
  .hero { padding: 44px 0 56px; }
  .footer-grid { grid-template-columns: 1fr; }
}
