/* PT Royal Vanilla Nusantara — static stylesheet */
:root {
  --background: #FBF8F1;
  --foreground: #3B2418;
  --primary: #3B2418;
  --primary-foreground: #FBF8F1;
  --secondary: #F1EBDC;
  --muted: #EDE6D2;
  --muted-foreground: #6B5B47;
  --border: #E2D6BD;
  --gold: #B8893E;
  --gold-foreground: #2A1A10;
  --leaf: #6B7F3A;
  --destructive: #B23A2B;
  --radius: 0.5rem;
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; line-height: 1.15; color: var(--primary); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.grid { display: grid; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 48px; width: auto; }
.brand-text { display: none; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--primary); }
.brand-tagline { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
@media (min-width: 640px) { .brand-text { display: flex; } }

.nav { display: none; gap: 2rem; align-items: center; }
.nav a {
  font-size: 0.875rem; font-weight: 500; color: rgba(59, 36, 24, 0.75);
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--gold); }
@media (min-width: 768px) { .nav { display: flex; } .menu-btn { display: none; } }

.menu-btn {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  color: var(--foreground);
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 500; color: rgba(59, 36, 24, 0.85);
  border-bottom: 1px solid rgba(226, 214, 189, 0.4);
}
.mobile-nav a.active { color: var(--gold); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(59,36,24,0.95) 0%, rgba(59,36,24,0.8) 50%, rgba(59,36,24,0.4) 100%);
}
.hero-inner {
  position: relative;
  display: grid; gap: 2.5rem;
  padding: 5rem 1.5rem;
  max-width: 1200px; margin: 0 auto;
  color: var(--primary-foreground);
}
@media (min-width: 768px) { .hero-inner { padding: 9rem 1.5rem; } }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--primary-foreground);
  line-height: 1.05;
}
.hero h1 .gold { color: var(--gold); display: block; font-size: 0.8em; margin-top: 0.25rem; }
.hero p.lead { margin-top: 1.5rem; max-width: 36rem; font-size: 1.05rem; color: rgba(251,248,241,0.85); line-height: 1.65; }

.hero-card {
  display: none;
  background: rgba(251, 248, 241, 0.95);
  border: 1px solid rgba(251,248,241,0.15);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.4);
  max-width: 22rem;
  justify-self: end;
  transition: transform 0.4s, box-shadow 0.4s;
}
@media (min-width: 1024px) { .hero-card { display: block; } }
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45); }
.hero-card img { height: 160px; width: auto; margin: 0 auto; transition: transform 0.5s; }
.hero-card img:hover { transform: scale(1.05); }
.hero-card .small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.25em; text-align: center; color: var(--gold); margin-top: 1.25rem; }
.hero-card .name { font-family: var(--font-display); font-size: 1.15rem; text-align: center; color: var(--primary); margin-top: 0.5rem; }
.hero-card .cap { text-align: center; font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--gold-foreground); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -8px rgba(184,137,62,0.5); }
.btn-ghost { background: transparent; color: var(--primary-foreground); border-color: rgba(251,248,241,0.4); }
.btn-ghost:hover { background: rgba(251,248,241,0.1); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 2.5rem; height: 1px; background: var(--gold);
}

/* Quick facts */
.facts {
  background: var(--primary); color: var(--primary-foreground);
}
.facts-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(251,248,241,0.1);
}
@media (min-width: 768px) { .facts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .facts-grid { grid-template-columns: repeat(6, 1fr); } }
.fact { background: var(--primary); padding: 2rem 1.5rem; text-align: center; transition: background 0.3s; }
.fact:hover { background: rgba(59, 36, 24, 0.85); }
.fact-l { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(251,248,241,0.6); }
.fact-v { font-size: 0.875rem; font-weight: 600; margin-top: 0.75rem; }

/* Two column */
.two-col { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; align-items: center; } }
.two-col img.cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 50px -15px rgba(0,0,0,0.25); transition: transform 1.2s; }
.image-wrap { overflow: hidden; border-radius: var(--radius); }
.image-wrap:hover img.cover { transform: scale(1.05); }

h2.display { font-size: clamp(2rem, 4vw, 3rem); margin-top: 1.25rem; }
h2.display + p { margin-top: 1.5rem; font-size: 1rem; line-height: 1.7; color: rgba(59,36,24,0.85); }
.read-more { display: inline-flex; gap: 0.5rem; align-items: center; margin-top: 2rem; font-weight: 600; font-size: 0.875rem; color: var(--gold); transition: gap 0.2s; }
.read-more:hover { gap: 0.75rem; }

/* Why choose */
.bg-sec { background: rgba(241, 235, 220, 0.6); }
.reasons {
  margin-top: 3.5rem;
  display: grid; gap: 1px; background: var(--border);
}
@media (min-width: 768px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.reason {
  background: var(--background); padding: 2rem;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}
.reason:hover { transform: translateY(-4px); background: rgba(241,235,220,0.4); box-shadow: 0 10px 25px -10px rgba(0,0,0,0.15); }
.reason h3 { font-size: 1.25rem; }
.reason p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.65; }

/* CTA */
.cta {
  background: var(--primary); color: var(--primary-foreground);
  border-radius: 1rem; padding: 4rem 2rem; text-align: center;
}
@media (min-width: 768px) { .cta { padding: 4rem 4rem; } }
.cta h2 { color: var(--primary-foreground); font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 1.25rem auto 0; max-width: 50rem; }

/* Page header */
.page-header { border-bottom: 1px solid var(--border); background: rgba(241,235,220,0.4); }
.page-header-inner { max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem; }
.page-header h1 { margin-top: 1.25rem; font-size: clamp(2.5rem, 5vw, 4rem); }
.page-header p { margin-top: 1rem; max-width: 36rem; color: var(--muted-foreground); }

/* Prose / about */
.prose { max-width: 50rem; margin: 0 auto; }
.prose p { margin-top: 1.25rem; font-size: 1rem; line-height: 1.75; color: rgba(59,36,24,0.85); }
.prose p:first-child { margin-top: 0; }
.prose strong { color: var(--primary); font-weight: 600; }

.card {
  background: var(--background); border: 1px solid var(--border);
  border-radius: 1rem; padding: 2.5rem;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  margin-top: 2.5rem;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px -12px rgba(0,0,0,0.18); border-color: rgba(184,137,62,0.4); }
.card .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); }
.card .big { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.85rem); line-height: 1.4; color: var(--primary); margin-top: 1rem; }
.card ul li { padding: 0.4rem 0; color: rgba(59,36,24,0.85); }

/* Products */
.applications { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.tag {
  border: 1px solid rgba(184,137,62,0.4);
  background: var(--background);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem; color: var(--primary);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.tag:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(184,137,62,0.1); }

.grades { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 768px) { .grades { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grades { grid-template-columns: repeat(3, 1fr); } }
.grade-card {
  background: var(--background); border-radius: 1rem;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.08);
  border: 1px solid rgba(226,214,189,0.6);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.5s, box-shadow 0.5s, border-color 0.5s;
}
.grade-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -15px rgba(0,0,0,0.25); border-color: rgba(184,137,62,0.4); }
.grade-card .grade-img { aspect-ratio: 4/3; overflow: hidden; background: var(--secondary); }
.grade-card .grade-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.grade-card:hover .grade-img img { transform: scale(1.1); }
.grade-card .body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.grade-card .code { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold); }
.grade-card .name { font-family: var(--font-display); font-size: 1.75rem; color: var(--primary); margin-top: 0.5rem; }
.grade-card dl { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(226,214,189,0.6); display: flex; flex-direction: column; gap: 0.75rem; }
.grade-card dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; }
.grade-card dt { color: var(--gold); }
.grade-card dd { margin: 0; color: rgba(59,36,24,0.85); text-align: right; }

.capacity { background: var(--primary); color: var(--primary-foreground); border-radius: 1rem; padding: 3.5rem 2rem; text-align: center; }
.capacity .small { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold); }
.capacity .big { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem); margin-top: 1rem; }
.capacity .big span { font-size: 0.5em; color: rgba(251,248,241,0.7); }

/* Partnership */
.points { margin-top: 2rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .points { grid-template-columns: repeat(2, 1fr); } }
.point {
  border: 1px solid var(--border); background: var(--background);
  border-radius: var(--radius); padding: 1.25rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.point:hover { transform: translateY(-4px); border-color: rgba(184,137,62,0.6); box-shadow: 0 10px 25px -10px rgba(0,0,0,0.15); }
.point p { font-family: var(--font-display); font-size: 1rem; color: var(--primary); }

.dark-section { background: var(--primary); color: var(--primary-foreground); padding: 5rem 0; }
.dark-section h2 { color: var(--primary-foreground); margin-top: 1.25rem; font-size: clamp(2rem, 4vw, 3rem); }
.dark-section .point { background: rgba(251,248,241,0.05); border-color: rgba(251,248,241,0.15); }
.dark-section .point:hover { background: rgba(251,248,241,0.1); }
.dark-section .point p { color: var(--gold); }
.dark-section .text-soft { color: rgba(251,248,241,0.85); }

.qc-list { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .qc-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .qc-list { grid-template-columns: repeat(5, 1fr); } }
.qc {
  background: rgba(241,235,220,0.4); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.qc:hover { transform: translateY(-4px); background: var(--background); border-color: rgba(184,137,62,0.6); box-shadow: 0 10px 25px -10px rgba(0,0,0,0.15); }
.qc .num { font-family: var(--font-display); font-size: 1.75rem; color: var(--gold); }
.qc p { margin-top: 0.75rem; font-family: var(--font-display); font-size: 1rem; color: var(--primary); }

/* Contact */
.contact-grid { display: grid; gap: 4rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info dl { margin-top: 2.5rem; border-top: 1px solid var(--border); }
.contact-info dl > div {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem;
}
.contact-info dt { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-foreground); }
.contact-info dd { margin: 0; font-family: var(--font-display); font-size: 1rem; color: var(--primary); text-align: right; }

.form-field { display: block; margin-bottom: 1.25rem; }
.form-field > span {
  display: block;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold);
}
.form-field input, .form-field textarea, .form-field select {
  margin-top: 0.5rem;
  width: 100%; border: 1px solid var(--border);
  background: var(--background); padding: 0.85rem 1.25rem;
  font: inherit; font-size: 0.9rem; color: var(--primary);
  border-radius: 9999px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { border-radius: 1rem; resize: vertical; min-height: 7rem; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184,137,62,0.2);
}
.form-error { margin-top: 0.4rem; font-size: 0.75rem; color: var(--destructive); }
.submit-btn {
  width: 100%; background: var(--gold); color: var(--gold-foreground);
  border: none; border-radius: 9999px;
  padding: 1.1rem 1.5rem; font-size: 0.875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.25em;
  transition: transform 0.2s, box-shadow 0.2s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(184,137,62,0.5); }
.form-sent { text-align: center; color: var(--gold); margin-top: 1rem; font-size: 0.875rem; }
.form-foot { text-align: center; margin-top: 1rem; font-size: 0.75rem; color: var(--muted-foreground); }
.form-foot a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }

.map-wrap {
  margin-top: 3rem; overflow: hidden; border-radius: 1rem;
  border: 1px solid var(--border); box-shadow: 0 4px 12px -4px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}
.map-wrap:hover { box-shadow: 0 20px 40px -15px rgba(0,0,0,0.2); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Legal docs */
.docs { margin-top: 3rem; display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .docs { grid-template-columns: repeat(2, 1fr); } }
.doc {
  position: relative; overflow: hidden;
  border-radius: 1rem; border: 1px solid var(--border);
  background: var(--background); box-shadow: 0 10px 25px -10px rgba(0,0,0,0.15);
}
.doc .doc-img {
  position: relative; aspect-ratio: 1 / 1.4;
  background-size: cover; background-position: top center;
  user-select: none;
}
.doc .watermark {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-30deg, transparent 0 120px, rgba(184,137,62,0.25) 120px 121px);
  pointer-events: none;
}
.doc figcaption {
  padding: 0.75rem 1.25rem; border-top: 1px solid var(--border);
  background: var(--background); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold);
}
.doc-note { text-align: center; margin-top: 2.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted-foreground); }

/* Footer */
.site-footer { margin-top: 6rem; background: var(--primary); color: var(--primary-foreground); }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid; gap: 2.5rem;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }
.footer-inner h4 { color: var(--gold); font-family: var(--font-display); font-size: 1rem; }
.footer-inner ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: rgba(251,248,241,0.8); }
.footer-inner a:hover { color: var(--gold); }
.footer-inner .brand img { background: rgba(251,248,241,0.1); padding: 4px; border-radius: 4px; }
.footer-inner p { color: rgba(251,248,241,0.7); font-size: 0.875rem; line-height: 1.7; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid rgba(251,248,241,0.1); }
.footer-bottom p { max-width: 1200px; margin: 0 auto; padding: 1.25rem 1.5rem; font-size: 0.75rem; color: rgba(251,248,241,0.6); }

/* Animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rise-in { animation: rise 0.9s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .rise-in { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* Utility */
.center { text-align: center; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.hidden-mobile { display: none; }
@media (min-width: 1024px) { .hidden-mobile { display: block; } }
