/* ==========================================================================
   DuriAtlas — Jurnal Botani & Kuliner Durian Nusantara
   Theme: Warm Tropical Editorial Broadsheet (Cream, Forest Green, Gold)
========================================================================== */
:root {
  --bg-page: #faf7f0;
  --bg-surface: #ffffff;
  --bg-accent-soft: #f2ece0;
  --forest: #1b3b2b;
  --forest-light: #2b5440;
  --gold: #b87a14;
  --gold-soft: #fdf5e6;
  --text-main: #1f2622;
  --text-muted: #525e57;
  --border-hairline: #e4dccb;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 4px 20px rgba(27, 59, 43, 0.06);
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-w: 1080px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

ul, ol {
  list-style: none;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Top Editorial Strip */
.edition-bar {
  background: var(--forest);
  color: #e9e4d7;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 0;
}

.edition-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hairline);
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--forest);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
}

/* Hero Section — Editorial Broadsheet Spread */
.hero-section {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--border-hairline);
}

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

.kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.65rem;
  line-height: 1.16;
  color: var(--forest);
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
}

.hero-meta span strong {
  color: var(--forest);
}

.hero-media-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-media-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.media-caption {
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* Quick Botanical Fact Strip */
.facts-strip {
  padding: 28px 0;
  background: var(--bg-accent-soft);
  border-bottom: 1px solid var(--border-hairline);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.fact-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.fact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}

.fact-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
}

.fact-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* General Section Formatting */
.content-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.content-section.alt-bg {
  background: var(--bg-surface);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.22;
  color: var(--forest);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Two-Column Editorial Split */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.editorial-text p {
  margin-bottom: 16px;
  color: var(--text-main);
  font-size: 0.98rem;
}

.editorial-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-soft);
  background: var(--bg-surface);
}

.editorial-photo-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.highlight-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
}

.highlight-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--forest);
  margin-bottom: 2px;
}

.highlight-item span {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Nutritional Composition Table — 100% Mobile Fit */
.composition-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.data-table-wrap {
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.data-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.9rem;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: var(--forest);
  color: #faf7f0;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td:nth-child(2) {
  font-weight: 700;
  color: var(--forest);
}

.table-footnote {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-accent-soft);
}

.nutrient-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nutrient-card {
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.nutrient-card h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--forest);
  margin-bottom: 6px;
}

.nutrient-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Interactive Widget: Durian Variety Explorer */
.explorer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.variety-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.variety-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.variety-btn:hover {
  border-color: var(--forest);
}

.variety-btn.active {
  background: var(--forest);
  color: #faf7f0;
  border-color: var(--forest);
}

.variety-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.variety-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--forest);
  margin-bottom: 8px;
}

.variety-origin {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.variety-summary {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.spec-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-page);
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
}

.spec-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.spec-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--forest);
}

.spec-track {
  height: 8px;
  background: #e7dfd0;
  border-radius: 999px;
  overflow: hidden;
}

.spec-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* Practical Culinary Cards (3-col) */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.guide-card {
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 22px;
}

.guide-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.guide-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--forest);
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--forest);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-top: 1px solid #f0eadc;
  padding-top: 14px;
}

.faq-item.open .faq-content {
  display: block;
}

/* Editorial Note & Footer */
.editorial-note {
  background: var(--bg-accent-soft);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 32px;
}

.site-footer {
  background: var(--forest);
  color: #dcd6c6;
  padding: 48px 0 32px;
}

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

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 0.88rem;
  color: #c5bfb0;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2b866;
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #aeb6b0;
}

/* Legal Subpage Layout */
.legal-page {
  padding: 56px 0 72px;
}

.legal-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.legal-card h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--forest);
  margin-bottom: 16px;
}

.legal-card h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--forest);
  margin: 24px 0 8px;
}

.legal-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.back-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-grid,
  .editorial-split,
  .composition-grid,
  .variety-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-hairline);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-block;
  }

  .hero-section {
    padding: 28px 0 24px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-lead {
    font-size: 0.96rem;
  }

  .hero-media-card img {
    height: 220px;
  }

  .editorial-photo-wrap img {
    height: 210px;
  }

  .content-section {
    padding: 42px 0;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .data-table th, .data-table td {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .explorer-box {
    padding: 18px;
  }

  .legal-card {
    padding: 24px 18px;
  }
}
