/* ==========================================================================
   PT. NUSANTARA REMPAH SEJAHTERA — TRADE & COMMODITY PORTAL
   ========================================================================== */
:root {
  --espresso: #2C1810;
  --espresso-dark: #1E100A;
  --espresso-soft: #46281C;
  --ochre: #B45309;
  --ochre-hover: #92400E;
  --olive: #4D7C0F;
  --olive-soft: #ECFCCB;
  --parchment: #FAF6F0;
  --linen: #F3ECE1;
  --card: #FFFFFF;
  --ink: #23140E;
  --muted: #645046;
  --border: #E5D7C5;
  --gold-tint: #FDE68A;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 6px 20px rgba(44, 24, 16, 0.06);
  --shadow-md: 0 14px 34px rgba(44, 24, 16, 0.09);
  --shadow-wa: 0 12px 26px rgba(21, 128, 61, 0.30);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--parchment);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, .font-serif-editorial {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -0.02em;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

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

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

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER & 6-MENU NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.28s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--espresso);
  color: var(--gold-tint);
  display: grid;
  place-items: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  border: 1.5px solid var(--ochre);
  flex-shrink: 0;
}

.brand-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--espresso);
  display: block;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-6-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-6-link {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.22s var(--ease);
}

.nav-6-link:hover {
  background: var(--linen);
  color: var(--espresso);
}

.nav-6-link.active {
  background: var(--espresso);
  color: var(--gold-tint);
}

.header-cta-btn {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--ochre);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.22s ease, transform 0.22s var(--ease);
}

.header-cta-btn:hover {
  background: var(--ochre-hover);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--espresso);
  font-size: 1.2rem;
  cursor: pointer;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 16, 10, 0.45);
  z-index: 980;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--parchment);
  border-left: 1px solid var(--border);
  z-index: 990;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: right 0.3s var(--ease);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-links {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.mobile-drawer-links a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--ink);
}

.mobile-drawer-links a.active,
.mobile-drawer-links a:hover {
  background: var(--linen);
  color: var(--ochre);
}

/* ==========================================================================
   COMMON ELEMENTS & BUTTONS
   ========================================================================== */
.section-pad {
  padding: 72px 0;
}

.section-linen {
  background-color: var(--linen);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--olive-soft);
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.eyebrow-ochre {
  background: #FEF3C7;
  color: var(--ochre);
}

.section-head {
  max-width: 740px;
  margin-bottom: 38px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--espresso);
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 0.97rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.btn-ochre {
  background: var(--ochre);
  color: #fff;
}

.btn-ochre:hover {
  background: var(--ochre-hover);
  transform: translateY(-2px);
}

.btn-espresso {
  background: var(--espresso);
  color: var(--gold-tint);
}

.btn-espresso:hover {
  background: var(--espresso-soft);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--espresso);
  color: var(--espresso);
}

.btn-outline:hover {
  background: var(--linen);
}

.btn-olive {
  background: var(--olive);
  color: #fff;
}

.btn-olive:hover {
  background: #3F6212;
  transform: translateY(-2px);
}

.subpage-header {
  background: var(--linen);
  border-bottom: 1px solid var(--border);
  padding: 50px 0 42px;
}

.subpage-header h1 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  color: var(--espresso);
  margin-bottom: 10px;
}

.subpage-header p {
  max-width: 740px;
  color: var(--muted);
  font-size: 1rem;
}

/* ==========================================================================
   HERO & CARDS (RATIO 16:9 / 4:3)
   ========================================================================== */
.hero-section {
  padding: 60px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 42px;
  align-items: center;
}

.hero-grid h1 {
  font-size: clamp(2.2rem, 4vw, 3.15rem);
  color: var(--espresso);
  line-height: 1.14;
  margin-bottom: 16px;
}

.hero-grid h1 em {
  color: var(--ochre);
  font-style: italic;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 24px;
}

.hero-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--olive);
}

.hero-photo-frame {
  background: var(--linen);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.hero-photo-frame img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
}

.hero-photo-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
}

/* 4 CV & 4 PT Grid */
.entities-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.entity-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

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

.entity-card img {
  aspect-ratio: 16 / 9;
}

.entity-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.badge-entity {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-cv {
  background: #FEF3C7;
  color: var(--ochre);
}

.badge-pt {
  background: var(--espresso);
  color: var(--gold-tint);
}

.entity-card h3 {
  font-size: 1.06rem;
  color: var(--espresso);
}

.entity-card p {
  font-size: 0.87rem;
  color: var(--muted);
}

.entity-detail-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

.entity-card-footer {
  margin-top: auto;
  padding-top: 10px;
}

/* 3 Core Categories & Catalog Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.commodity-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

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

.commodity-card img {
  aspect-ratio: 16 / 9;
}

.commodity-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.commodity-body h3 {
  font-size: 1.2rem;
  color: var(--espresso);
}

.commodity-body p {
  font-size: 0.89rem;
  color: var(--muted);
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.spec-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--linen);
  color: var(--espresso);
}

.commodity-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

/* 4-Step Process */
.steps-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--gold-tint);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.step-box h3 {
  font-size: 1.05rem;
  color: var(--espresso);
  margin-bottom: 6px;
}

.step-box p {
  font-size: 0.87rem;
  color: var(--muted);
}

/* Espresso CTA Banner */
.espresso-cta-wrap {
  padding: 36px 0 76px;
}

.espresso-cta-box {
  background: linear-gradient(135deg, var(--espresso-dark) 0%, var(--espresso) 65%, var(--espresso-soft) 100%);
  color: var(--parchment);
  border-radius: var(--radius-lg);
  padding: 46px 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(253, 230, 138, 0.25);
  box-shadow: var(--shadow-md);
}

.espresso-cta-box h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  color: var(--gold-tint);
  margin-bottom: 8px;
}

.espresso-cta-box p {
  max-width: 620px;
  color: rgba(250, 246, 240, 0.88);
  font-size: 0.95rem;
}

/* ==========================================================================
   FILTER BAR, SEARCH & SPECIFICATION TABLE
   ========================================================================== */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--ochre);
  color: var(--ochre);
}

.filter-btn.active {
  background: var(--espresso);
  color: var(--gold-tint);
  border-color: var(--espresso);
}

.search-box-input {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--card);
  min-width: 260px;
  font-size: 0.88rem;
}

.search-box-input:focus {
  outline: none;
  border-color: var(--ochre);
}

.table-card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.commodity-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  text-align: left;
}

.commodity-table th {
  background: var(--espresso);
  color: var(--gold-tint);
  padding: 14px 16px;
  font-size: 0.83rem;
  font-weight: 700;
}

.commodity-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: top;
}

.commodity-table tr:nth-child(even) td {
  background: #FCF9F4;
}

/* ==========================================================================
   TENTANG, ARTIKEL & KONTAK COMPONENTS
   ========================================================================== */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.legal-checklist {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.legal-checklist li {
  background: var(--linen);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--olive);
  font-size: 0.9rem;
}

.faq-wrapper {
  max-width: 860px;
  display: grid;
  gap: 12px;
}

.faq-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: var(--card);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--espresso);
  cursor: pointer;
}

.faq-plus {
  font-size: 1.25rem;
  color: var(--ochre);
  transition: transform 0.25s ease;
}

.faq-card.open .faq-plus {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease);
  background: #FCF9F4;
}

.faq-card.open .faq-body {
  max-height: 260px;
}

.faq-body-inner {
  padding: 0 22px 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-grid-2 {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
}

.panel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-detail-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.contact-detail-item:last-of-type {
  border-bottom: none;
}

.contact-detail-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 3px;
}

.map-frame {
  width: 100%;
  height: 310px;
  border: 0;
  border-radius: var(--radius-md);
}

.form-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 6px;
}

.input-ctrl {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--parchment);
  font-size: 0.91rem;
  color: var(--ink);
}

.input-ctrl:focus {
  outline: none;
  border-color: var(--ochre);
  background: #fff;
}

.wa-live-preview {
  margin-top: 16px;
  padding: 15px;
  border-radius: var(--radius-sm);
  background: var(--linen);
  border: 1px dashed var(--ochre);
  font-size: 0.86rem;
  white-space: pre-line;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (ALL 6 PAGES) & FOOTER
   ========================================================================== */
.floating-wa-container {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.floating-wa-tooltip {
  background: var(--espresso);
  color: var(--gold-tint);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 0.77rem;
  font-weight: 600;
  max-width: 280px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(253, 230, 138, 0.3);
}

.floating-wa-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: #16A34A;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-wa);
  transition: transform 0.22s var(--ease), background 0.22s ease;
}

.floating-wa-button:hover {
  background: #15803D;
  transform: translateY(-2px);
}

.site-footer {
  background: var(--espresso-dark);
  color: rgba(250, 246, 240, 0.86);
  padding: 54px 0 26px;
  margin-top: 36px;
}

.footer-4-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(253, 230, 138, 0.16);
}

.footer-col h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--gold-tint);
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.87rem;
}

.footer-col a:hover {
  color: var(--gold-tint);
}

.footer-copy {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.81rem;
  color: rgba(250, 246, 240, 0.65);
}

@media (max-width: 1040px) {
  .entities-grid-4,
  .steps-grid-4,
  .footer-4-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .nav-6-list,
  .header-cta-btn {
    display: none;
  }
  .mobile-menu-btn {
    display: grid;
    place-items: center;
  }
  .hero-grid,
  .grid-3,
  .about-split,
  .contact-grid-2,
  .form-2-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .entities-grid-4,
  .steps-grid-4,
  .footer-4-grid {
    grid-template-columns: 1fr;
  }
  .floating-wa-tooltip {
    display: none;
  }
}
