:root {
  --bg-page: #faf9f6;
  --bg-surface: #ffffff;
  --bg-muted: #f1efe9;
  --bg-dark: #182220;
  --bg-dark-elevated: #22302d;

  --text-primary: #182220;
  --text-secondary: #4f5d59;
  --text-muted: #76837f;
  --text-on-dark: #f7f5f0;
  --text-on-dark-muted: #b6c2be;

  --accent: #b85d3b;
  --accent-hover: #9f4d2e;
  --accent-soft: #f7ebe6;
  --eco: #2c6e58;
  --eco-soft: #e7f3ee;

  --border: #e3dfd6;
  --border-strong: #cfc9bc;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(24, 34, 32, 0.05);
  --shadow-md: 0 12px 32px rgba(24, 34, 32, 0.08);
  --shadow-lg: 0 20px 50px rgba(24, 34, 32, 0.12);

  --container: 1200px;
  --header-height: 76px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 76px;
}

.section--muted {
  background-color: var(--bg-muted);
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-header {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.eyebrow--eco {
  color: var(--eco);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.font-display {
  font-family: var(--font-display);
}

.lead-text {
  font-size: 1.06rem;
  color: var(--text-secondary);
  margin: 0;
}

.section--dark .lead-text {
  color: var(--text-on-dark-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 8px 20px rgba(184, 93, 59, 0.25);
}

.btn-dark {
  background-color: var(--bg-dark);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: var(--bg-dark-elevated);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: rgba(24, 34, 32, 0.04);
}

.btn-outline-light {
  background-color: transparent;
  border-color: rgba(247, 245, 240, 0.35);
  color: var(--text-on-dark);
}

.btn-outline-light:hover {
  border-color: var(--text-on-dark);
  background-color: rgba(247, 245, 240, 0.08);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Shared Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bg-dark), var(--eco));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 2px;
  position: relative;
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text-primary);
}

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer */
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-nav-wrap {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow-md);
  }

  .header-nav-wrap.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* Hero */
.hero {
  padding-block: 64px 76px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--eco-soft);
  color: var(--eco);
}

.pill-badge--accent {
  background-color: var(--accent-soft);
  color: var(--accent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.hero-visual-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.card-icon--eco {
  background-color: var(--eco-soft);
  color: var(--eco);
}

/* Product Cards */
.product-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-thumb {
  background: var(--bg-muted);
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.product-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eco);
  margin-bottom: 6px;
}

.product-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0 0 16px;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

/* Filter Pills */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff;
}

/* Distribution Banner */
.region-pill {
  background: var(--bg-dark-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
}

.region-pill h3 {
  color: #fff;
  margin-bottom: 6px;
}

.region-pill p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
}

/* Lead Form */
.lead-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-primary);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.form-error {
  color: #b42318;
  font-size: 0.82rem;
  margin-top: 4px;
  display: none;
}

.form-field.has-error .form-error {
  display: block;
}

.form-field.has-error input {
  border-color: #b42318;
}

.lead-success {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--eco-soft);
  border: 1px solid rgba(44, 110, 88, 0.25);
  color: var(--text-primary);
}

/* Brochure Strip */
.brochure-card {
  background: linear-gradient(125deg, var(--bg-dark) 0%, #263934 100%);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: 60px 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-title {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-on-dark-muted);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 34, 32, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-panel {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-page);
  cursor: pointer;
  font-weight: 700;
}

/* Toast */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--bg-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  z-index: 300;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Admin Page */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.admin-page-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.admin-page-btn:hover {
  background: var(--bg-muted);
}

.admin-page-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(184, 93, 59, 0.25);
}

.serp-preview {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 16px;
}

.serp-url {
  font-size: 0.8rem;
  color: #202124;
  margin-bottom: 4px;
}

.serp-title {
  font-size: 1.15rem;
  color: #1a0dab;
  font-weight: 600;
  margin-bottom: 4px;
}

.serp-desc {
  font-size: 0.88rem;
  color: #4d5156;
  line-height: 1.45;
}

.char-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  float: right;
}

.char-count.is-warn {
  color: var(--accent);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}


/* Zero-scroll 2-column Admin Login */
body.is-login-mode {
  height: 100dvh;
  overflow: hidden;
}

body.is-login-mode #site-header,
body.is-login-mode #site-footer {
  display: none !important;
}

.login-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  height: 100dvh;
  overflow: hidden;
}

.login-split[hidden],
.form-grid[hidden],
[hidden] {
  display: none !important;
}

.login-brand-panel {
  background:
    radial-gradient(circle at 18% 20%, rgba(184, 93, 59, 0.22), transparent 52%),
    radial-gradient(circle at 82% 80%, rgba(44, 110, 88, 0.24), transparent 55%),
    var(--bg-dark);
  color: var(--text-on-dark);
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.login-brand-panel .brand-logo {
  color: #fff;
  font-size: 1.35rem;
}

.login-brand-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin: 0;
  color: #fff;
}

.login-brand-desc {
  margin: 0;
  max-width: 46ch;
  color: var(--text-on-dark-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.login-form-panel {
  background: var(--bg-page);
  padding: 14px clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 100dvh;
  overflow: hidden;
}

.login-form-box {
  width: 100%;
  max-width: 380px;
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
}

.login-form-box .form-grid {
  gap: 9px;
}

.login-form-box .form-field label {
  font-size: 0.8rem;
  margin-bottom: 3px;
}

.login-form-box .form-field input {
  padding: 8px 12px;
  font-size: 0.88rem;
  min-height: 38px;
}

.login-form-box .btn {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.login-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  font-size: 0.82rem;
}

.login-text-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
}

.login-text-link:hover {
  text-decoration: underline;
}

.login-copyright {
  width: 100%;
  max-width: 380px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding-top: 2px;
}

@media (max-width: 820px) {
  .login-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .login-brand-panel {
    padding: 14px 18px;
    gap: 6px;
  }

  .login-brand-tagline {
    font-size: 1.2rem;
  }

  .login-brand-desc {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .login-form-panel {
    height: 100%;
    padding: 12px 16px;
    gap: 8px;
  }

  .login-form-box {
    padding: 16px 18px;
  }
}


/* Open Graph Image Upload & Guidelines */
.og-upload-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--bg-page);
}

.og-preview-frame {
  width: 100%;
  aspect-ratio: 1200 / 630;
  max-height: 220px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: var(--bg-surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.og-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.og-preview-placeholder {
  color: var(--text-muted);
  font-size: 0.84rem;
  text-align: center;
  padding: 16px;
}

.og-upload-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.og-guidelines {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--eco-soft);
  border: 1px solid rgba(44, 110, 88, 0.2);
  font-size: 0.8rem;
  color: var(--text-primary);
}

.og-guidelines ul {
  margin: 6px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 3px;
}
