/* ==========================================================================
   IGS Theme — base.css
   Design tokens, reset, and typography for IndiaGoldSilver.com
   Drupal 11 custom theme · "Premium Institutional" system
   ========================================================================== */

/* ---- Fonts (loaded via libraries.yml in Drupal; previews load via <link>) ---- */

:root {
  /* ---- Brand palette (sampled from the IGS logo) ---- */
  --igs-maroon:        #5d3650;   /* primary plum-maroon (logo wordmark) */
  --igs-maroon-700:    #4a2b41;   /* hover / pressed */
  --igs-maroon-900:    #371f30;   /* deepest, for footers & overlays */
  --igs-maroon-tint:   #f3ebef;   /* faint plum wash for section bands */

  /* ---- Gold accent (used sparingly = premium) ---- */
  --igs-gold:          #b8893b;   /* metallic gold */
  --igs-gold-600:      #9c6f2c;   /* deeper gold for text on light */
  --igs-gold-300:      #d8b878;   /* leaf highlight */
  --igs-gold-tint:     #faf3e4;   /* gold wash */

  /* ---- Ashoka-chakra navy (the "India" mark, very sparing) ---- */
  --igs-navy:          #1b2a6b;
  --igs-navy-tint:     #eef0f7;

  /* ---- Warm neutrals ---- */
  --igs-paper:         #faf7f3;   /* page background, subtly warm */
  --igs-paper-2:       #f4ede4;   /* alt band */
  --igs-card:          #ffffff;
  --igs-ink:           #2a2228;   /* near-black, warm */
  --igs-ink-2:         #5b5158;   /* secondary text */
  --igs-muted:         #8a7d84;   /* tertiary / captions */
  --igs-line:          #e9e0d6;   /* hairline borders */
  --igs-line-2:        #f0e9e0;

  /* ---- Market signal colors (desaturated to sit beside maroon) ---- */
  --igs-up:            #2f8158;   /* price up */
  --igs-up-tint:       #e7f2ec;
  --igs-down:          #b1473a;   /* price down */
  --igs-down-tint:     #f7ebe9;

  /* ---- Type ---- */
  --igs-serif: "Spectral", Georgia, "Times New Roman", serif;
  --igs-sans:  "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Spacing scale ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* ---- Radius (restrained) ---- */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;

  /* ---- Shadows (warm-tinted, soft) ---- */
  --sh-1: 0 1px 2px rgba(55,31,48,.06), 0 1px 1px rgba(55,31,48,.04);
  --sh-2: 0 4px 14px rgba(55,31,48,.08), 0 2px 4px rgba(55,31,48,.05);
  --sh-3: 0 18px 48px rgba(55,31,48,.16), 0 6px 16px rgba(55,31,48,.08);

  /* ---- Layout ---- */
  --maxw: 1240px;
  --maxw-narrow: 760px;
  --header-h: 76px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--igs-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--igs-ink);
  background: var(--igs-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--igs-maroon); text-decoration: none; }
a:hover { color: var(--igs-maroon-700); }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--igs-line); margin: var(--sp-6) 0; }

/* ---- Typography scale ---- */
h1, h2, h3, h4 {
  font-family: var(--igs-serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--igs-ink);
  margin: 0 0 .4em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.18rem; }
p  { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: 1.22rem; line-height: 1.55; color: var(--igs-ink-2); }

.eyebrow {
  font-family: var(--igs-sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--igs-gold-600);
  margin: 0 0 var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--igs-gold);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

/* numeric / tabular helper for prices */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* visually hidden (a11y) */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

::selection { background: var(--igs-gold-300); color: var(--igs-maroon-900); }
