/*
Theme Name: SuperbuyBuy Logistics
Theme URI: https://sheetcn.com/
Author: SheetCN
Author URI: https://sheetcn.com/
Description: Fresh logistics & delivery themed SEO WordPress theme for SuperbuyBuy spreadsheet guides.
Version: 1.0.0
Requires at least: 5.6
Tested up to: 6.7
License: GPL v2 or later
Tags: seo, fresh, logistics, one-column, custom-menu
Text Domain: superbuybuy2
*/

/* === TOKENS === */
:root {
  --mint:       #e6faf4;
  --mint-mid:   #b2eed9;
  --mint-deep:  #3dbf8a;
  --peach:      #fff4ee;
  --peach-mid:  #ffd4b8;
  --sky:        #eaf6ff;
  --sky-mid:    #b8dff8;
  --white:      #ffffff;
  --accent:     #2bbf8a;
  --accent-h:   #22a076;
  --accent-bg:  #e6faf4;
  --amber:      #f59e0b;
  --amber-bg:   #fffbeb;
  --text:       #1a2e26;
  --muted:      #4d7a68;
  --border:     #c0e8d5;
  --surface:    #f2fdf8;
  --surface2:   #e0f7ee;
  --radius:     10px;
  --radius-lg:  16px;
  --max-w:      1200px;
  --gap:        20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--surface);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: 60px 0; }
.section + .section { padding-top: 0; }

/* === NAV === */
#site-nav {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(43,191,138,.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.site-logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.3px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.site-logo span { color: var(--accent); }
.logo-truck { font-size: 1.25rem; }

#primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: nowrap;
}
#primary-menu > li { position: relative; }
#primary-menu > li > a,
#primary-menu > li > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 13px;
  border-radius: var(--radius);
  font-size: .83rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, background .15s;
  font-family: inherit;
}
#primary-menu > li > a:hover,
#primary-menu > li > button:hover { color: var(--accent); background: var(--accent-bg); }
#primary-menu > li > button::after { content: ' \25be'; font-size: .65rem; }

.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  min-width: 215px;
  padding: 6px;
  list-style: none;
  box-shadow: 0 8px 24px rgba(43,191,138,.10);
  z-index: 300;
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu { display: block; }
.sub-menu li a {
  display: block;
  padding: 9px 12px;
  font-size: .83rem;
  color: var(--muted);
  border-radius: 7px;
  transition: color .15s, background .15s;
}
.sub-menu li a:hover { color: var(--accent); background: var(--accent-bg); }

.nav-cta > a, a.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  border-radius: var(--radius) !important;
  padding: 8px 18px !important;
  transition: background .15s !important;
}
.nav-cta > a:hover, a.nav-cta:hover { background: var(--accent-h) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
}

/* === HERO === */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d4f5e9 0%, #e8fdf5 35%, #fef9f0 70%, #e8f6ff 100%);
  padding: 80px var(--gap) 68px;
  text-align: center;
}
/* Decorative background dots */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(43,191,138,.12) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(43,191,138,.06) 1px, transparent 1px);
  background-size: 40px 40px, 20px 20px;
  background-position: 0 0, 10px 10px;
  pointer-events: none;
}
.hero-icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 2rem;
}
.hero-icon-row .arrow { font-size: 1rem; color: var(--accent); opacity: .7; }
.hero-tag {
  display: inline-block;
  background: rgba(43,191,138,.12);
  border: 1.5px solid var(--mint-deep);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto 16px;
  letter-spacing: -.4px;
  color: var(--text);
}
.hero h1 span { color: var(--accent); }
.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1.5px solid rgba(43,191,138,.2);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-icon {
  width: 32px;
  height: 32px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  transition: background .15s, transform .12s;
  box-shadow: 0 4px 16px rgba(43,191,138,.28);
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); color: var(--white); }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--border);
  color: var(--accent);
  padding: 11px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  background: var(--white);
  transition: border-color .15s, background .15s;
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-bg); }

/* === STATS BAR === */
.stats-bar {
  background: var(--white);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  padding: 24px var(--gap);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .78rem; color: var(--muted); margin-top: 3px; }

/* === SECTION HEADING === */
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.section-head p { color: var(--muted); font-size: .9rem; }

/* === CATEGORY GRID === */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(43,191,138,.14);
  transform: translateY(-2px);
}
.cat-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-bg);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--mint-mid);
}
.cat-name { font-weight: 700; font-size: .88rem; color: var(--text); }
.cat-sub  { font-size: .74rem; color: var(--muted); margin-top: 2px; }

/* === ARTICLE BOX === */
.article-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: 0 4px 20px rgba(43,191,138,.07);
}
.article-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.article-box h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 18px; line-height: 1.3; color: var(--text); }
.article-box h3 { font-size: 1.05rem; font-weight: 700; margin: 26px 0 8px; color: var(--text); }
.article-box p  { color: var(--muted); line-height: 1.78; margin-bottom: 14px; font-size: .93rem; }
.article-box p strong { color: var(--text); }
.article-box a  { color: var(--accent); }
.article-box a:hover { text-decoration: underline; }
.article-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* === GUIDE CARDS === */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}
.guide-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
}
.guide-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(43,191,138,.1);
  transform: translateY(-2px);
}
.guide-badge {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  width: fit-content;
}
.guide-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.38; color: var(--text); }
.guide-card p  { font-size: .83rem; color: var(--muted); flex: 1; margin-bottom: 20px; }
.guide-link { font-size: .83rem; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 5px; }
.guide-link::after { content: ' \2192'; }
.guide-link:hover { text-decoration: underline; }

/* === SINGLE POST === */
.post-wrap { max-width: 800px; margin: 0 auto; padding: 56px var(--gap); }
.post-header { margin-bottom: 32px; }
.post-badge {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.post-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.post-meta { font-size: .8rem; color: var(--muted); }
.post-content { line-height: 1.78; }
.post-content h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 10px; color: var(--text); }
.post-content h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; color: var(--text); }
.post-content p  { color: var(--muted); margin-bottom: 16px; font-size: .93rem; }
.post-content p strong { color: var(--text); }
.post-content a  { color: var(--accent); }
.post-content a:hover { text-decoration: underline; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 16px; color: var(--muted); font-size: .93rem; }
.post-content li { margin-bottom: 6px; }
.internal-links {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 36px 0;
}
.internal-links h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.internal-links ul { list-style: none; padding: 0; margin: 0; }
.internal-links ul li { margin-bottom: 8px; }
.internal-links ul li a { font-size: .88rem; color: var(--accent); }
.internal-links ul li a:hover { text-decoration: underline; }
.back-home { margin-top: 32px; }

/* === FOOTER === */
#site-footer {
  background: var(--white);
  border-top: 1.5px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
.footer-about-text { font-size: .83rem; color: var(--muted); margin-top: 12px; line-height: 1.72; }
.footer-col h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: .83rem; color: var(--muted); margin-bottom: 9px; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1.5px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: .78rem; color: var(--muted); }
.footer-bottom a { color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-about { grid-column: 1 / -1; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .article-box { padding: 24px 20px; }
  .nav-toggle { display: flex; }
  #primary-menu {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1.5px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
  }
  #primary-menu.is-open { display: flex; }
  #primary-menu > li > a,
  #primary-menu > li > button { font-size: .9rem; padding: 10px 14px; }
  .sub-menu { position: static; border: none; background: var(--surface2); box-shadow: none; margin-top: 2px; }
  .hero-trust { gap: 12px; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px var(--gap) 44px; }
}
