/* ============ GoldenBuds — Professional Manufacturer Website ============ */

/* ---------- Custom Properties ---------- */
:root {
  /* Primary green palette */
  --green-900: #064e2a;
  --green-800: #0a6b38;
  --green-700: #0e8a47;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;

  /* Neutrals */
  --gray-950: #0a0f0c;
  --gray-900: #1a2318;
  --gray-800: #2d3a30;
  --gray-700: #3f4f44;
  --gray-600: #56685c;
  --gray-500: #6b7f72;
  --gray-400: #8fa396;
  --gray-300: #b3c4b8;
  --gray-200: #d1ddd4;
  --gray-100: #e8ede9;
  --gray-50: #f5f8f6;

  /* Semantic */
  --color-primary: var(--green-700);
  --color-primary-hover: var(--green-800);
  --color-primary-dark: var(--green-900);
  --color-text: var(--gray-900);
  --color-text-secondary: var(--gray-600);
  --color-text-muted: var(--gray-500);
  --color-bg: #ffffff;
  --color-bg-subtle: var(--gray-50);
  --color-bg-muted: var(--gray-100);
  --color-border: var(--gray-200);
  --color-border-strong: var(--gray-300);

  /* Spacing & Sizing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(10,15,12,0.06);
  --shadow-md: 0 4px 16px rgba(10,15,12,0.08);
  --shadow-lg: 0 8px 32px rgba(10,15,12,0.10);
  --shadow-xl: 0 16px 48px rgba(10,15,12,0.12);
  --transition: 0.2s ease;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header (Two-Row Layout) ---------- */
.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  flex-direction: column;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--color-primary); }
.brand-mark { font-size: 26px; }
.brand-name { white-space: nowrap; }

.header-nav {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding: 2px 0 6px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.nav-link {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 13.5px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--color-primary); background: var(--green-50); text-decoration: none; }
.nav-link.active {
  color: var(--color-primary);
  background: var(--green-100);
  font-weight: 600;
}
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-left: 8px;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--color-primary-hover);
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(14,138,71,0.3);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 20px;
  cursor: pointer;
  color: var(--color-text);
  padding: 6px 10px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 40%, var(--green-600) 100%);
  color: #fff;
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(74,222,128,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 19px;
  opacity: 0.88;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(14,138,71,0.3);
  transform: translateY(-1px);
}
.btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  color: #fff;
  text-decoration: none;
}
.btn-light { background: #fff; color: var(--color-primary-dark); }
.btn-light:hover {
  background: var(--green-50);
  color: var(--color-primary-dark);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-ghost:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-subtle); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-head h2 { font-size: 30px; color: var(--green-900); font-weight: 800; letter-spacing: -0.02em; }
.more-link { font-weight: 600; font-size: 14.5px; color: var(--color-primary); }
.more-link:hover { text-decoration: underline; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--green-300);
  transform: translateY(-2px);
}
.card h3 { font-size: 17px; line-height: 1.4; font-weight: 600; }
.card h3 a { color: var(--color-text); }
.card h3 a:hover { color: var(--color-primary); }
.card p { color: var(--color-text-secondary); font-size: 14.5px; line-height: 1.6; }
.card time { color: var(--color-text-muted); font-size: 13px; }

/* Product cards */
.product-card { padding: 0; overflow: hidden; }
.product-card a { display: flex; flex-direction: column; height: 100%; color: inherit; }
.product-card a:hover { text-decoration: none; }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--color-bg-muted); }
.product-card .card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .card-body h3 { font-size: 16px; }
.product-card .card-body p { flex: 1; }

.price { color: var(--color-primary); font-weight: 700; font-size: 18px; display: block; margin-top: auto; }
.price-note { font-size: 12px; color: var(--color-text-muted); font-weight: 400; }

/* Article list */
.article-list .card { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 24px; }
.article-list .card h3 { flex: 1; }

/* ---------- OEM Band ---------- */
.oem-band {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  padding: 72px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.oem-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 120%, rgba(74,222,128,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.oem-band .container { position: relative; z-index: 1; }
.oem-band h2 { color: #fff; font-size: 32px; margin-bottom: 14px; font-weight: 800; letter-spacing: -0.02em; }
.oem-band p { max-width: 640px; margin: 0 auto 28px; color: rgba(255,255,255,0.8); font-size: 17px; }
.oem-band .btn-light { background: #fff; color: var(--green-800); }
.oem-band .btn-light:hover { background: var(--green-50); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* ---------- Why Section ---------- */
.why-section { padding: 72px 0; }
.why-section h2 { text-align: center; font-size: 30px; color: var(--green-900); margin-bottom: 40px; font-weight: 800; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; list-style: none; }
.why-item { background: var(--color-bg-subtle); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.why-item strong { color: var(--green-800); font-size: 15px; }
.why-item span { color: var(--color-text-secondary); font-size: 14px; line-height: 1.55; }

/* ---------- Prose / Article ---------- */
.prose { margin-top: 28px; }
.prose h2 { font-size: 24px; color: var(--green-900); margin: 36px 0 14px; font-weight: 700; letter-spacing: -0.01em; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; font-weight: 600; }
.prose p { margin: 0 0 18px; color: var(--gray-800); }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 8px; color: var(--gray-800); }
.prose img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.prose strong { color: var(--green-900); }
.prose blockquote { border-left: 4px solid var(--color-primary); background: var(--green-50); padding: 16px 20px; margin: 20px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--gray-700); }
.prose code { font-family: var(--font-mono); background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: 14px; }

.article-page { max-width: 800px; }
.article-meta { color: var(--color-text-muted); font-size: 14px; margin: 10px 0 0; }
.breadcrumb { font-size: 13px; color: var(--color-text-muted); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb::after { content: "›"; color: var(--gray-400); }

/* ---------- Product page ---------- */
.product-page { padding: 40px 0 60px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; align-items: start; }
.product-image img, .placeholder-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); background: var(--color-bg-muted); border: 1px solid var(--color-border); }
.placeholder-img { display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); font-size: 14px; }
.product-desc { color: var(--color-text-secondary); margin: 12px 0 20px; line-height: 1.7; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 16px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--color-border); }
.spec-table th { background: var(--green-50); width: 40%; color: var(--green-800); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td { background: var(--green-50); }

/* Product CTA */
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,0.7); padding: 60px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.site-footer h3 { color: #fff; margin-bottom: 14px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer p { font-size: 14px; margin-bottom: 12px; line-height: 1.6; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 14px; }
.site-footer a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 36px; padding-top: 20px; font-size: 13px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { margin-bottom: 14px; font-size: 48px; color: var(--green-800); }
.notfound p { color: var(--color-text-secondary); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-toggle { display: block; }
  .header-nav { position: relative; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    gap: 2px;
    z-index: 10;
  }
  .site-nav.open { display: flex; }
  .nav-link { width: 100%; padding: 10px 12px; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 24px; }
  .oem-band { padding: 48px 0; }
  .oem-band h2 { font-size: 24px; }
  .article-list .card { flex-direction: column; }
}

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
