/*
Theme Name: Kakobuy US
Theme URI: https://kakobuy-us.com/
Author: Kakobuy US
Author URI: https://kakobuy-us.com/
Description: A light, clean SEO-focused theme for kakobuy shipping and kakobuy spreadsheet guides. Includes 1 homepage, 4 content hubs, and 12 SEO articles. All product links open on leosheet.com.
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: kakobuy-us
Tags: light, clean, blog, custom-menu, custom-logo, responsive-layout, seo, ecommerce
*/

/* ============================================
   Kakobuy US - Light Clean Theme
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #ff6b6b;
  --primary-dark: #ee5a5a;
  --accent: #4ecdc4;
  --accent-dark: #3db8b0;
  --text-dark: #2d3436;
  --text-body: #4a5568;
  --text-muted: #718096;
  --bg-white: #ffffff;
  --bg-light: #fafbfc;
  --bg-soft: #f7f9fc;
  --border: #e8ecf1;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

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

h1, h2, h3, h4 { color: var(--text-dark); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.9rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: .75rem; }
h4 { font-size: 1.1rem; margin-bottom: .5rem; }
p { margin-bottom: 1rem; }

/* ============ Header ============ */
.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }

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

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
}
.dropdown-toggle:hover { color: var(--primary); }
.dropdown-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .2s;
}
.dropdown.open .dropdown-toggle::after { transform: rotate(-135deg); margin-top: 3px; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all .2s;
}
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--text-body);
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.dropdown-menu a:hover { background: var(--bg-soft); color: var(--primary); }

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

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .25s;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,107,107,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,107,107,0.4);
}
.btn-secondary {
  background: #fff;
  color: var(--text-dark);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(78,205,196,0.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #fff5f5 0%, #fff9f0 50%, #f0fbfa 100%);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,107,0.12), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(78,205,196,0.10), transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,107,107,0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #2d3436 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Sections ============ */
.section {
  padding: 70px 0;
}
.section-alt {
  background: var(--bg-soft);
}
.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ============ Category Grid ============ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all .3s;
  color: var(--text-dark);
  display: block;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: var(--text-dark);
}
.category-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #fff5f5, #f0fbfa);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.category-card h4 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.category-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ============ Article Grid ============ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.article-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.article-thumb {
  height: 180px;
  background: linear-gradient(135deg, #fff5f5 0%, #f0fbfa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary);
  position: relative;
}
.article-thumb.thumb-2 { background: linear-gradient(135deg, #f0fbfa 0%, #fff9f0 100%); color: var(--accent); }
.article-thumb.thumb-3 { background: linear-gradient(135deg, #fff9f0 0%, #fff5f5 100%); color: #f9a826; }
.article-thumb.thumb-4 { background: linear-gradient(135deg, #f5f0ff 0%, #f0fbfa 100%); color: #8b7ff9; }

.article-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-tag {
  display: inline-block;
  background: rgba(78,205,196,0.12);
  color: var(--accent-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  align-self: flex-start;
}
.article-card h3 { margin-bottom: 10px; font-size: 1.15rem; line-height: 1.4; }
.article-card h3 a { color: var(--text-dark); }
.article-card h3 a:hover { color: var(--primary); }
.article-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 16px; flex: 1; }
.article-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-more:hover { gap: 10px; }

/* ============ Feature Row ============ */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.feature {
  text-align: center;
  padding: 20px;
}
.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), #ff9e7d);
  color: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(255,107,107,0.25);
}
.feature-icon.accent { background: linear-gradient(135deg, var(--accent), #7de5dc); box-shadow: 0 8px 24px rgba(78,205,196,0.25); }
.feature-icon.warm { background: linear-gradient(135deg, #f9a826, #ffcb5e); box-shadow: 0 8px 24px rgba(249,168,38,0.25); }
.feature-icon.purple { background: linear-gradient(135deg, #8b7ff9, #b0a5ff); box-shadow: 0 8px 24px rgba(139,127,249,0.25); }

/* ============ CTA Band ============ */
.cta-band {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff9e7d 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 40px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 24px; font-size: 1.1rem; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cta-band .btn-primary:hover { background: #fff9f0; color: var(--primary-dark); }

/* ============ Article Page ============ */
.article-hero {
  background: linear-gradient(135deg, #fff5f5 0%, #f0fbfa 100%);
  padding: 60px 0;
}
.article-hero .container { max-width: 820px; }
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
}

.article-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 50px 20px;
}
.article-content h2 { margin-top: 36px; }
.article-content h3 { margin-top: 28px; }
.article-content p { font-size: 1.05rem; line-height: 1.8; }
.article-content ul, .article-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 24px;
  margin: 24px 0;
  background: var(--bg-soft);
  color: var(--text-body);
  font-style: italic;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.article-content .inline-cta {
  background: linear-gradient(135deg, #fff5f5, #f0fbfa);
  padding: 24px;
  border-radius: var(--radius-lg);
  margin: 30px 0;
  text-align: center;
}
.article-content .inline-cta p { margin-bottom: 16px; font-weight: 500; color: var(--text-dark); }

.related-articles {
  background: var(--bg-soft);
  padding: 60px 0;
}

/* ============ Footer ============ */
.site-footer {
  background: #1a202c;
  color: #a0aec0;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #a0aec0; font-size: 0.92rem; }
.footer-col a:hover { color: var(--primary); }
.footer-about { color: #a0aec0; font-size: 0.92rem; line-height: 1.7; }
.footer-logo { color: #fff; font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }
.footer-logo span { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 24px;
  text-align: center;
  font-size: 0.88rem;
  color: #718096;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    box-shadow: var(--shadow-md);
    gap: 12px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0 12px;
    min-width: unset;
    display: none;
  }
  .dropdown.open .dropdown-menu { display: block; transform: none; }
  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 1.9rem; }
  .section { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .article-content { padding: 30px 16px; }
}
