/* ============================================================
   Sambhara Trading — shared styles
   Palette derived from the gold lotus logo + subtle Bhutan saffron.
   ============================================================ */

:root {
  --ink:        #1d2530;   /* deep slate ink for text */
  --ink-soft:   #4a5562;   /* secondary text */
  --gold:       #c9a92b;   /* logo gold */
  --gold-deep:  #a8881a;   /* darker gold for hover/contrast */
  --saffron:    #e08a2e;   /* subtle Bhutan-flag orange accent */
  --cream:      #faf7ee;   /* soft page background */
  --cream-2:    #f3ecd9;   /* slightly deeper cream for panels */
  --line:       #e3dabf;   /* hairline borders on cream */
  --white:      #ffffff;
  --shadow:     0 1px 2px rgba(29,37,48,.06), 0 8px 24px rgba(29,37,48,.06);
  --shadow-lg:  0 2px 6px rgba(29,37,48,.08), 0 18px 48px rgba(29,37,48,.10);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1140px;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; font-weight: 600; }

.eyebrow {
  font-family: var(--body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--gold);
  display: inline-block;
}

.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #283341; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,238,.88);
  backdrop-filter: saturate(160%) blur(10px);
  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: .7rem; }
.brand img { height: 46px; width: auto; }
.brand .brand-text { font-family: var(--display); font-weight: 600; font-size: 1.18rem; color: var(--ink); letter-spacing: -0.01em; }
.brand .brand-sub { display:block; font-family: var(--body); font-size:.62rem; letter-spacing:.22em; text-transform:uppercase; color: var(--gold-deep); font-weight:600; margin-top:-2px;}

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: .94rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
}
.nav-cta { margin-left: .5rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin: 12px 24px 18px; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c7cfd9; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; }
.site-footer .brand-text { color: var(--cream); }
.site-footer img { height: 52px; filter: none; }
.footer-about { max-width: 34ch; color: #9aa5b1; font-size: .92rem; margin-top: 1rem; }
.footer-col h4 { font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; color: #b6c0cb; font-size: .94rem; margin-bottom: .6rem; transition: color .15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #2c3744; padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: #7f8b97; }
.footer-bottom .reg { color: #9aa5b1; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 32px; }
}

/* ---------- section rhythm ---------- */
.section { padding: 92px 0; }
.section-sm { padding: 64px 0; }
.section-head { max-width: 64ch; margin-bottom: 48px; }
.section-head h2 { margin: .6rem 0 .8rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 88px 0 96px; }
.hero h1 { margin: 1rem 0 1.2rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 36px; margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero-meta .num { font-family: var(--display); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1; }
.hero-meta .lbl { font-size: .82rem; color: var(--ink-soft); margin-top: .35rem; }

/* hero visual: the "trade thread" card */
.hero-visual { position: relative; }
.route-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 30px 30px 26px; position: relative;
}
.route-card h3 { font-family: var(--body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1.4rem; }
.route { list-style: none; position: relative; }
.route::before {
  content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--gold), var(--saffron));
}
.route li { position: relative; padding: 0 0 1.5rem 40px; }
.route li:last-child { padding-bottom: 0; }
.route .dot {
  position: absolute; left: 4px; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream); border: 2.5px solid var(--gold); z-index: 1;
}
.route li.dest .dot { background: var(--saffron); border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(224,138,46,.18); }
.route .country { font-weight: 600; color: var(--ink); }
.route .goods { font-size: .9rem; color: var(--ink-soft); }
.route .tag { font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-deep); background: var(--cream-2); border-radius: 6px; padding: 2px 7px; margin-left: 6px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .hero-visual { order: -1; }
}

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px; display: flex; flex-direction: column; gap: .6rem; position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.cat-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold);
  transform: scaleY(0); transform-origin: top; transition: transform .25s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.cat-card:hover::after { transform: scaleY(1); }
.cat-card .ico { width: 44px; height: 44px; color: var(--gold-deep); }
.cat-card h3 { margin-top: .3rem; }
.cat-card p { color: var(--ink-soft); font-size: .96rem; }
.cat-card .origin { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-deep); margin-top: auto; padding-top: .8rem; }
.cat-card .soon { position: absolute; top: 18px; right: 18px; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron); border: 1.5px solid var(--saffron); border-radius: 999px; padding: 3px 9px; }
@media (max-width: 680px){ .cat-grid { grid-template-columns: 1fr; } }

/* ---------- value strip ---------- */
.strip { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.value h3 { font-family: var(--body); font-size: 1.02rem; margin-bottom: .4rem; }
.value p { font-size: .94rem; color: var(--ink-soft); }
.value .vk { font-family: var(--display); font-size: 1.05rem; color: var(--gold-deep); font-weight: 600; }
@media (max-width: 760px){ .value-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- product gallery (products page) ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prod .ph { aspect-ratio: 4/5; background: var(--cream-2); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.prod .ph img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .35s ease; }
.prod:hover .ph img { transform: scale(1.04); }
.prod .body { padding: 18px 20px 22px; }
.prod .body h3 { font-family: var(--body); font-size: 1.02rem; font-weight: 600; }
.prod .body p { font-size: .9rem; color: var(--ink-soft); margin-top: .25rem; }
.prod .origin { display:inline-block; margin-top:.7rem; font-size:.72rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color: var(--gold-deep); background: var(--cream-2); padding:3px 9px; border-radius:6px;}
.prod .ribbon { position: absolute; top: 14px; left: 14px; background: var(--saffron); color: var(--white); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; z-index: 1; }
@media (max-width: 860px){ .prod-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .prod-grid { grid-template-columns: 1fr; } }

.cat-label { display: flex; align-items: baseline; gap: 14px; margin: 0 0 26px; padding-top: 8px; }
.cat-label h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cat-label .flag { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-deep); }
.cat-label .rule { flex: 1; height: 1px; background: var(--line); }
.cat-block { margin-bottom: 64px; }
.cat-block:last-child { margin-bottom: 0; }

/* ---------- about page ---------- */
.about-hero { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-grid .lead { margin-bottom: 1.3rem; }
.about-grid p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.fact-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.fact-card h3 { font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1.2rem; }
.fact { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .94rem; }
.fact:first-of-type { border-top: 0; }
.fact .k { color: var(--ink-soft); }
.fact .v { font-weight: 600; color: var(--ink); text-align: right; }
@media (max-width: 820px){ .about-grid { grid-template-columns: 1fr; gap: 36px; } }

.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.principle { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.principle .n { font-family: var(--display); font-size: 1.1rem; color: var(--gold); font-weight: 600; }
.principle h3 { font-family: var(--body); font-size: 1.05rem; margin: .5rem 0 .4rem; }
.principle p { font-size: .93rem; color: var(--ink-soft); }
@media (max-width: 760px){ .principles { grid-template-columns: 1fr; } }

/* ---------- contact page ---------- */
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-item:first-child { border-top: 0; padding-top: 0; }
.contact-item .ico { flex: 0 0 22px; width: 22px; height: 22px; color: var(--gold-deep); margin-top: 3px; }
.contact-item .lbl { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .2rem; }
.contact-item .val { font-weight: 500; color: var(--ink); }
.contact-item a.val:hover { color: var(--gold-deep); }
.contact-note { font-size: .9rem; color: var(--ink-soft); margin-top: 1.2rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--cream); }
.cta-band .wrap { padding: 72px 24px; text-align: center; }
.cta-band h2 { color: var(--cream); margin-bottom: .8rem; }
.cta-band p { color: #b6c0cb; max-width: 52ch; margin: 0 auto 2rem; }
.cta-band .btn-gold { }

/* ---------- page hero (subpages) ---------- */
.page-hero { padding: 72px 0 56px; }
.page-hero .eyebrow { margin-bottom: .8rem; }
.page-hero p { color: var(--ink-soft); max-width: 60ch; margin-top: 1rem; font-size: 1.08rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
