/*
Theme Name: Panduan DAN777 Terracotta 6jiHamnl
Theme URI: https://dan777login.asia/
Author: Panduan DAN777 Indonesia
Description: Tema editorial independen bergaya terracotta organik untuk Panduan DAN777 Indonesia.
Version: 1.0.0
Text Domain: panduan-dan777
*/

:root {
  --cream: #f7f0e5;
  --paper: #fffdf8;
  --sand: #efe1d2;
  --forest: #314a43;
  --terracotta: #a94f38;
  --sage: #557565;
  --ochre: #b77812;
  --ink: #302a26;
  --muted: #665e58;
  --line: #dccdbd;
  --info: #e8f0ea;
  --focus: #245c4a;
  --wide: 1280px;
  --read: 760px;
  --shadow: 0 16px 38px rgba(80,50,35,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Noto Sans", "Segoe UI", Arial, sans-serif; font-size: 18px; line-height: 1.78; overflow-wrap: anywhere; }
a { color: #1c5e4b; text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: #843a28; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-wrap { width: min(var(--wide), calc(100% - clamp(32px, 8vw, 96px))); margin-inline: auto; }
.read-wrap { width: min(var(--read), calc(100% - 32px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,248,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.custom-logo-link { display: inline-flex; flex: 0 0 auto; min-height: 48px; align-items: center; }
.custom-logo { width: auto; max-width: 270px; height: 58px; object-fit: contain; }
.site-name-fallback { font-size: 1.05rem; font-weight: 800; text-decoration: none; color: var(--forest); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav a { display: flex; align-items: center; min-height: 48px; padding: 9px 11px; border-radius: 12px; color: var(--ink); font-size: .82rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--sand); color: var(--terracotta); }
.nav-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--forest); font: inherit; font-weight: 700; }

main { display: block; }
.hero { position: relative; overflow: hidden; padding: clamp(42px, 7vw, 92px) 0 clamp(56px, 8vw, 105px); background: linear-gradient(145deg, var(--paper) 0 54%, var(--sand) 54%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -170px; bottom: -320px; border-radius: 50%; background: var(--terracotta); opacity: .14; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--terracotta); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--forest); line-height: 1.16; text-wrap: balance; }
h1 { margin: 0 0 22px; font-size: clamp(2.2rem, 4.1vw, 3rem); letter-spacing: -.035em; }
h2 { margin: 0 0 22px; font-size: clamp(1.75rem, 3.6vw, 2.75rem); letter-spacing: -.025em; }
h3 { margin: 32px 0 14px; font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.25em; }
.hero-copy > p:not(.eyebrow) { font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero-figure { margin: 0; border-radius: 52px 16px 52px 16px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.3deg); background: var(--forest); }
.hero-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-figure figcaption, .editorial-figure figcaption { padding: 11px 16px; background: var(--forest); color: #fffdf8; font-size: .78rem; line-height: 1.45; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border-radius: 14px; background: var(--forest); color: #fff; font-weight: 800; text-decoration: none; }
.button-link:hover { background: var(--terracotta); color: #fff; }

.content-section { position: relative; padding: clamp(50px, 8vw, 96px) 0; }
.content-section:nth-of-type(even) { background: var(--paper); }
.content-section.tint { background: var(--sand); }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 450px); gap: clamp(32px, 6vw, 78px); align-items: start; }
.section-grid.reverse { grid-template-columns: minmax(280px, 450px) minmax(0, 1fr); }
.section-grid.reverse .section-copy { order: 2; }
.editorial-figure { margin: 0; position: sticky; top: 110px; border-radius: 16px 44px 16px 44px; overflow: hidden; box-shadow: var(--shadow); background: var(--forest); }
.editorial-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.content-section .section-copy > :last-child { margin-bottom: 0; }
.callout { margin: 30px 0; padding: 22px 24px; border-left: 5px solid var(--terracotta); border-radius: 0 18px 18px 0; background: var(--info); }
.verdict-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 28px 0; }
.verdict-card { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.verdict-card h3 { margin-top: 0; }

.article-shell { padding: clamp(44px, 7vw, 84px) 0 clamp(70px, 9vw, 112px); }
.article-header { width: min(900px, 100%); margin: 0 auto 44px; text-align: center; }
.article-header .lede { color: var(--muted); font-size: 1.1rem; }
.article-content { width: min(var(--read), 100%); margin-inline: auto; }
.article-content h2 { margin-top: 2.3em; }
.article-content h3 { margin-top: 1.8em; }
.article-content table { width: 100%; border-collapse: collapse; margin: 28px 0; background: var(--paper); box-shadow: var(--shadow); font-size: .92rem; }
.article-content th, .article-content td { padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: var(--forest); color: #fff; }
.article-content ol, .article-content ul { padding-left: 1.3em; }
.flow-asset, .matrix-asset, .timeline-asset, .checklist-asset, .comparison-asset { margin: 30px 0; padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: var(--sand); box-shadow: var(--shadow); }

.faq-section { padding: clamp(54px, 8vw, 92px) 0; background: var(--forest); color: #fffdf8; }
.faq-section h2 { color: #fffdf8; }
.faq-item { margin: 12px 0; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; background: rgba(255,255,255,.07); }
.faq-item summary { min-height: 52px; padding: 15px 48px 15px 18px; cursor: pointer; font-weight: 800; }
.faq-answer { padding: 0 18px 18px; }

.site-footer { padding: 58px 0 28px; background: #233832; color: #fffdf8; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer h2 { color: #fffdf8; font-size: 1.25rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #fff4da; }
.footer-note { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); font-size: .85rem; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; padding: 16px clamp(16px, 5vw, 32px) 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-nav a { font-size: .95rem; }
  .hero-grid, .section-grid, .section-grid.reverse { grid-template-columns: 1fr; }
  .section-grid.reverse .section-copy { order: initial; }
  .editorial-figure { position: static; width: min(620px, 100%); margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.7; }
  .site-wrap { width: calc(100% - 32px); }
  .custom-logo { max-width: 210px; height: 52px; }
  .primary-nav ul { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .hero-figure { transform: none; border-radius: 28px 12px; }
  .hero-figure img { aspect-ratio: 4/3; object-position: center; }
  .content-section { padding-block: 50px; }
  .verdict-grid, .footer-grid { grid-template-columns: 1fr; }
  .article-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article-content th, .article-content td { min-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
