/* ===========================================
   MAIN.CSS — GOC Design System & Tokens
   PT Green Origin Commodity
   =========================================== */

/* ---- Google Fonts Import ---- */
/* Google Fonts are loaded with <link> tags in the page <head> (faster than @import). */

/* ---- Design Tokens (CSS Custom Properties) ---- */
:root {
  /* Colors */
  --color-primary: #1B593A;
  /* Brighter fun green */
  --color-primary-dark: #124A31;
  /* Deeper but not black */
  --color-primary-mid: #BFB49A;
  /* Very lively mid green */
  --color-primary-light: #5BD29D;
  /* Poppy light green accent */
  --color-secondary: #D99225;
  /* Brighter, punchy amber */
  --color-accent: #F5A623;
  /* Very bright gold */
  --color-accent-soft: #FDF3DA;
  /* Super light gold */
  --color-bg: #FAF8F5;
  /* Warm cream */
  --color-bg-alt: #F2EEE5;
  /* Deeper warm cream */
  --color-bg-dark: #124A31;
  /* Dark bg for hero/footer */
  --color-text: #111211;
  /* Near-black ink */
  --color-text-body: #363C38;
  /* Body text */
  --color-text-muted: #6A7370;
  /* Muted warm gray */
  --color-text-light: #9BA5A0;
  /* Light text */
  --color-border: #E6E0D5;
  /* Warm border */
  --color-border-dark: #BFB49A;
  /* Darker border */
  --color-white: #FFFFFF;
  --color-overlay: rgba(13, 31, 24, 0.76);
  /* Dark green overlay */
  --color-ink: #111211;
  /* Ink black for strong contrast */
  --color-wood: #B78355;
  /* Warm woody accent */
  --gradient-earth: linear-gradient(120deg, #0D1F18 0%, #183B2D 42%, #8F684A 100%);
  --gradient-soft-earth: linear-gradient(120deg, #E6EEE5 0%, #F6F1E7 52%, #D9C1A5 100%);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-hero: clamp(2.5rem, 5vw, 4.5rem);

  /* Font Weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(27, 89, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(27, 89, 58, 0.12);
  --shadow-lg: 0 16px 40px rgba(27, 89, 58, 0.16);
  --shadow-xl: 0 24px 80px rgba(27, 89, 58, 0.2);
  --shadow-gold: 0 8px 32px rgba(217, 146, 37, 0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --transition-cubic: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --nav-height: 72px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: 0;
}

h1 {
  font-size: var(--text-hero);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

h1 em,
h2 em,
h3 em,
h4 em,
h5 em,
h6 em {
  font-style: normal;
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-body);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

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

ul,
ol {
  list-style: none;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ---- Section Layout ---- */
.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

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

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

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

.earth-gradient {
  background: var(--gradient-earth);
}

.earth-gradient-soft {
  background: var(--gradient-soft-earth);
}

/* ---- Section Header (title + subtitle) ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header.left {
  text-align: left;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-dark .section-title,
.section-primary .section-title {
  color: var(--color-bg);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-dark .section-subtitle,
.section-primary .section-subtitle {
  color: rgba(250, 248, 244, 0.75);
}

.section-header.left .section-subtitle {
  margin: 0;
}

/* ---- Nusantara Decorative Elements ---- */
.nusantara-divider {
  width: 100%;
  height: 48px;
  background-image: url('../svg/nusantara-divider.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  margin: var(--space-2) 0;
  opacity: 0.9;
}

.nusantara-bg {
  position: relative;
}

.nusantara-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../svg/nusantara-pattern.svg');
  background-repeat: repeat;
  background-size: 120px 120px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.nusantara-bg>* {
  position: relative;
  z-index: 1;
}

.nusantara-corner {
  position: relative;
  overflow: hidden;
}

.nusantara-corner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background-image: url('../svg/nusantara-corner.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 2;
}

.nusantara-corner::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background-image: url('../svg/nusantara-corner.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 2;
  transform: rotate(180deg);
}

/* ---- Grid Utilities ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

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

  .grid-3 {
    grid-template-columns: 1fr;
  }

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

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

/* ---- Flex Utilities ---- */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* ---- Text Utilities ---- */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-gold {
  color: var(--color-secondary);
}

.text-white {
  color: var(--color-white);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-lg {
  font-size: var(--text-lg);
}

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

.italic {
  font-style: italic;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem var(--space-6);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-cubic);
  white-space: nowrap;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-primary-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-gold);
}

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

.btn-outline::after {
  background: rgba(24, 59, 45, 0.06);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light::after {
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-dark:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-primary-dark {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  border-color: var(--color-primary-dark);
}

.btn-primary-dark:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.875rem var(--space-10);
  font-size: 0.8125rem;
}

.btn-sm {
  padding: 0.5rem var(--space-4);
  font-size: 0.7rem;
}

/* ---- Misc Utilities ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---- Scroll Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---- Responsive Container ---- */
@media (max-width: 768px) {

  .container,
  .container-wide {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-lg {
    padding: var(--space-20) 0;
  }

  .section-header {
    margin-bottom: var(--space-10);
  }
}

/* ---- Utility: text emphasis without italic ---- */
.text-highlight {
  margin-left: 5px;
  color: var(--color-accent);
  font-weight: var(--fw-bold);
}

/* ---- Override: no italic anywhere ---- */
em,
i {
  font-style: normal;
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
}
/* ===========================================
   LANGUAGE VISIBILITY
   Pages are rendered in one language (set on <html lang>);
   hide the other language's inline text variants.
   =========================================== */
html[lang="id"] .text-en,
html[lang="en"] .text-id {
  display: none !important;
}
