/* =========================================================
   SITE FORGE — base.css  ·  Shijil house style
   Extracted from Konikkara / Kiora Amorez / Harivihar.
   HOW TO USE: copy this file, then fill the :root tokens
   from the chosen palette in reference/palettes.md.
   Everything below the :root block is reusable as-is.
   ========================================================= */

:root {
  /* ---- PALETTE (fill from reference/palettes.md) ---- */
  --paper:      #FBFAF5;   /* clean cream/ivory page ground */
  --paper-2:    #F3F0E6;   /* warm off-white panel */
  --paper-soft: #F8F1E2;   /* softest tint */
  --ink:        #0A0A0A;   /* near-black, dark sections + text */
  --ink-2:      #161616;   /* off-black */
  --accent:     #C89933;   /* the metal — gold / brass */
  --accent-2:   #DCB454;   /* polished highlight */
  --accent-soft:#EAD68A;   /* light tint of the metal */
  --spot:       #C4604A;   /* optional single spot colour (coral/vermilion) */
  --muted:      #4A4538;   /* warm body text on light */
  --muted-2:    #6B6557;
  --line:       rgba(10,10,10,.14);
  --line-2:     rgba(10,10,10,.06);

  /* ---- TYPE (house defaults = Fraunces + Inter Tight; see palettes.md "Font Library") ---- */
  --f-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --f-body:    "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;
  /* swap to Cormorant Garamond / Cinzel for ultra-lux jewellery; Anton/Bebas for fight-gym;
     add --f-arabic / --f-malayalam / --f-hand (Caveat) for culturally-specific brands. */

  /* ---- SCALE + DEPTH ---- */
  --container:        1320px;
  --container-narrow: 1040px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -16px rgba(0,0,0,.12);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.06), 0 24px 48px -20px rgba(0,0,0,.18);
}
/* NB: name your real palette tokens after the brand's WORLD, not generic roles —
   e.g. --ember/--saffron/--olive (charcoal grill), --leather/--umber/--sage (ranch),
   --concrete/--steel/--blood (MMA), --cinnabar/--copper/--gilt (spice almanac).
   Pull the actual hexes from the brand's logo/Instagram. Keep the structural
   aliases above (--paper/--ink/--accent…) so base.css cascades; map brand names to them. */

/* ---- RESET ---- */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
*::selection { background: var(--ink); color: var(--paper); }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; max-width: 100vw; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  width: 100%; max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
section, header, footer { max-width: 100vw; overflow-x: clip; position: relative; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .35s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink); }

/* ---- SIGNATURE: film grain (premium finish) ---- */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.08;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
p  { color: var(--muted); }
em, .italic { font-style: italic; font-family: var(--f-display); }
.serif { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; }

/* signature eyebrow label with metal rule */
.eyebrow {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: .4em;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  display: inline-block;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--accent); margin-right: 14px; vertical-align: middle;
}
.label-mono {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2);
}

/* ---- LAYOUT PRIMITIVES ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 140px) 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark p { color: rgba(251,250,245,.72); }
.section--paper2 { background: var(--paper-2); }
.grid { display: grid; gap: clamp(24px, 4vw, 64px); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: all .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); opacity: 1; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---- ANNOUNCE BAR ---- */
.announce {
  background: var(--ink); text-align: center; padding: 11px 20px;
  font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase;
  color: var(--paper-soft); font-weight: 400;
}
.announce span { color: var(--accent-2); }

/* ---- STICKY NAV (backdrop blur, centered logo) ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.nav.scrolled { padding-top: 12px; padding-bottom: 12px; }
.nav-logo { justify-self: start; font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .02em; }
.nav-logo-img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 32px; justify-self: center; list-style: none;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; }
.nav-links a:hover { color: var(--accent); opacity: 1; }
.nav-cta { justify-self: end; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 24px; height: 1.5px; background: var(--ink); transition: .3s var(--ease); }

/* ---- HERO ---- */
.hero { padding: clamp(60px, 12vh, 160px) 0 clamp(48px, 8vw, 110px); }
.hero-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 28px; }
.hero-meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.hero-title { margin-bottom: 22px; }
.hero-tag { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 52ch; color: var(--muted); }

/* ---- REVEAL (GSAP adds .is-in; base.js guarantees fallback visibility) ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in, .no-js .reveal, .reveal.reveal--shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- IMAGE FALLBACK (base.js swaps broken imgs to caption) ---- */
.img-fallback { display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); border: 1px solid var(--line); min-height: 220px; }
.img-fallback-cap { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); padding: 24px; text-align: center; }

/* ---- FOOTER ---- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 100px) 0 40px; }
.footer a { color: rgba(251,250,245,.72); }
.footer a:hover { color: var(--accent-2); opacity: 1; }
.footer-credit { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(251,250,245,.14);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: rgba(251,250,245,.5); }

/* ---- UTILITIES ---- */
.center { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 64px; }
.maxw-prose { max-width: 60ch; }

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links.open { display: flex; position: fixed; inset: 64px 0 auto 0; flex-direction: column;
    background: var(--paper); padding: 32px var(--gutter); gap: 22px; border-bottom: 1px solid var(--line); }
  .grid { gap: 32px; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
}
