/* =========================================================
   PT. TARARA GLOBAL SINERGI — Global Trader & Exporter
   Shared stylesheet
   ========================================================= */

:root {
  --brown: #3B1F0A;
  --brown-2: #5a3418;
  --cream: #F5F0E8;
  --cream-2: #efe7d9;
  --gold: #C9A84C;
  --gold-dark: #a98c37;
  --ink: #1f1208;
  --muted: #6b5a48;
  --line: rgba(59, 31, 10, 0.08);
  --shadow-sm: 0 4px 14px rgba(59,31,10,0.06);
  --shadow-md: 0 14px 36px rgba(59,31,10,0.12);
  --shadow-lg: 0 20px 50px rgba(59,31,10,0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--brown);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
p  { color: var(--muted); margin-bottom: 1rem; }
a  { color: var(--brown); text-decoration: none; }
ul, ol { padding-left: 1.2rem; color: var(--muted); }
ul li, ol li { margin-bottom: 0.4rem; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============ HEADER ============ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img.logo-img { display: block; height: 40px; width: auto; }
.brand-text .sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.2;
}
nav ul { list-style: none; display: flex; gap: 1.75rem; padding: 0; }
nav ul li { margin: 0; }
nav ul a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brown);
  padding: 0.5rem 0;
  position: relative;
  transition: color .2s;
}
nav ul a:hover,
nav ul a.active { color: var(--gold-dark); }
nav ul a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
nav ul a:hover::after,
nav ul a.active::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--brown);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============ HERO (home) ============ */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
  background:
    linear-gradient(135deg, rgba(59,31,10,0.92) 0%, rgba(59,31,10,0.78) 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1.2" fill="%23C9A84C" opacity="0.25"/></svg>');
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.hero h1 { color: var(--cream); max-width: 920px; margin: 0 auto 1rem; }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 100px;
}
.hero p.tagline {
  color: rgba(245, 240, 232, 0.85);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 680px;
  margin: 1rem auto 2.5rem;
}
.hero .cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============ PAGE BANNER (inner pages) ============ */
.page-banner {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background:
    linear-gradient(135deg, rgba(59,31,10,0.94) 0%, rgba(90,52,24,0.88) 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1.2" fill="%23C9A84C" opacity="0.22"/></svg>');
  color: var(--cream);
  text-align: center;
}
.page-banner .crumbs {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.9;
}
.page-banner h1 { color: var(--cream); }
.page-banner p {
  color: rgba(245, 240, 232, 0.85);
  max-width: 640px;
  margin: 1rem auto 0;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--brown);
  padding: 0.95rem 2.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
  font-family: inherit;
}
.btn:hover {
  background: #d9b961;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--brown);
  border-color: var(--gold);
}
.btn-dark {
  background: var(--brown);
  color: var(--cream);
}
.btn-dark:hover { background: var(--brown-2); color: var(--cream); }

/* ============ SECTIONS ============ */
section { padding: clamp(4rem, 8vw, 6rem) 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head .kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.section-head p {
  max-width: 640px;
  margin: 0.75rem auto 0;
}
.section-alt { background: var(--cream-2); }
.section-dark {
  background: var(--brown);
  color: var(--cream);
}
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .kicker { color: var(--gold); }
.section-dark p { color: rgba(245, 240, 232, 0.8); }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-grid p { font-size: 1.02rem; }
.about-grid strong { color: var(--brown); }
.about-visual {
  aspect-ratio: 4/5;
  background:
    linear-gradient(180deg, rgba(59,31,10,0.15), rgba(59,31,10,0.55)),
    radial-gradient(circle at 30% 30%, #7a4a28, #3B1F0A 70%);
  border-radius: 8px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-visual::after {
  content: '';
  position: absolute; inset: 14px;
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: 4px;
  pointer-events: none;
}
.about-visual span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  text-align: center;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold-dark);
  font-weight: 700;
}
.stat .lbl {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ CARDS / GRIDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--cream);
  padding: 2rem 1.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.card .icon {
  width: 48px; height: 48px;
  background: var(--brown);
  color: var(--gold);
  display: grid; place-items: center;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.card p { font-size: 0.95rem; margin-bottom: 0; }
.card ul { font-size: 0.9rem; margin-top: 0.75rem; }

.section-alt .card { background: var(--cream); }

/* Product tiles (larger, with image-ish top band) */
.product-tile {
  background: var(--cream);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.product-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.product-tile .tile-visual {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-2) 100%);
  display: grid;
  place-items: center;
}
.product-tile .tile-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="0.9" fill="%23C9A84C" opacity="0.3"/></svg>');
  opacity: 0.7;
}
.product-tile .tile-visual .tile-label {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  padding: 0 1rem;
  text-align: center;
}
.product-tile .tile-body { padding: 1.5rem 1.5rem 1.75rem; }
.product-tile .tile-body h3 { margin-bottom: 0.35rem; }
.product-tile .tile-body .tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.product-tile .tile-body p { font-size: 0.93rem; margin-bottom: 0; }
.product-tile .tile-body ul { margin-top: 0.75rem; font-size: 0.88rem; }

/* Feature list (values, why-us) */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.feature-list .feat {
  padding: 0;
}
.feature-list .feat .num {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--gold-dark);
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}
.feature-list .feat h3 {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-bottom: 0.5rem;
}
.feature-list .feat p { font-size: 0.93rem; }

.section-dark .feature-list .feat h3 { border-top-color: rgba(201,168,76,0.25); }

/* Markets block */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.market {
  border: 1px solid rgba(245,240,232,0.18);
  padding: 1.25rem 1rem;
  border-radius: 6px;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.market:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.market .region {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.market .countries {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.7);
}

/* CTA banner */
.cta-banner {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background:
    linear-gradient(135deg, rgba(59,31,10,0.95), rgba(90,52,24,0.95)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1.2" fill="%23C9A84C" opacity="0.22"/></svg>');
  color: var(--cream);
  text-align: center;
}
.cta-banner h2 { color: var(--cream); }
.cta-banner p { color: rgba(245,240,232,0.85); max-width: 620px; margin: 0.75rem auto 2rem; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info .info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .info-item .icon {
  width: 40px; height: 40px;
  background: var(--brown);
  color: var(--gold);
  display: grid; place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-info .info-item strong {
  display: block;
  color: var(--brown);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.contact-info .info-item span,
.contact-info .info-item a {
  color: var(--ink);
  font-size: 0.95rem;
}
.contact-info .info-item a:hover { color: var(--gold-dark); }

form.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(59,31,10,0.15);
  border-radius: 4px;
  background: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-msg {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(201,168,76,0.15);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  color: var(--brown);
  font-size: 0.88rem;
  display: none;
}
.form-msg.show { display: block; }

/* ============ FOOTER ============ */
footer.site-footer {
  background: var(--brown);
  color: rgba(245,240,232,0.72);
  padding: 3.5rem 0 1.75rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.footer-col p { color: rgba(245,240,232,0.72); font-size: 0.88rem; margin-bottom: 0.5rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  color: rgba(245,240,232,0.72);
  font-size: 0.88rem;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--gold); }
.footer-brand .legal-name {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: block;
}
.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(245,240,232,0.12);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(245,240,232,0.55);
}
.footer-bottom p { color: inherit; margin: 0.2rem 0; }

/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 820px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { aspect-ratio: 16/10; max-height: 320px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 1.1rem; }
}
@media (max-width: 640px) {
  nav ul {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
  }
  nav ul.open { display: flex; }
  nav ul li { border-bottom: 1px solid rgba(59,31,10,0.06); width: 100%; }
  nav ul li:last-child { border-bottom: 0; }
  nav ul a { display: block; padding: 0.9rem 0; }
  .menu-toggle { display: block; }
  .brand img.logo-img { height: 32px; }
  .brand-text .sub { display: none; }
  form.contact-form { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
