/* styles/base.css — Atlas India Brand System */
/* CSS custom properties, reset, typography, shared utilities */

/* ── Google Fonts preload is handled in HTML <head> ── */

:root {
  /* Core palette */
  --pink:       #E6007E;
  --gold:       #F9B233;
  --dark:       #111111;
  --dark2:      #1E1E1E;
  --mid:        #3A3A3A;
  --muted:      #777777;
  --border:     #E2E2E0;
  --bg:         #F7F6F2;
  --card:       #FFFFFF;

  /* Yes/No colours */
  --yes-bg:     #E8F5E9;
  --yes-bd:     #388E3C;
  --yes-tx:     #1B5E20;
  --no-bg:      #FCE4EC;
  --no-bd:      #D81B60;
  --no-tx:      #880E4F;

  /* Geometry */
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 2px 16px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 32px rgba(0,0,0,0.12);

  /* Gradients */
  --gradient:   linear-gradient(135deg, #F9B233 0%, #E6007E 100%);
  --gradient-h: linear-gradient(135deg, #1a0a0a 0%, #1a1a1a 50%, #0a1a1a 100%);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ── Film grain overlay ── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── Site header (shared across pages) ── */
.site-header {
  position: relative;
  overflow: hidden;
  background: var(--gradient-h);
  color: #fff;
}
.header-bg {
  position: absolute; inset: 0;
  background: var(--gradient-h);
}
.header-bg::after {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,178,51,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.header-inner {
  position: relative; z-index: 1;
  max-width: 860px; margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  color: var(--gold);
  font-size: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(249,178,51,0.6));
  line-height: 1;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  display: block; font-size: 15px; font-weight: 600;
  color: #fff; letter-spacing: 0.04em; line-height: 1.2;
}
.logo-tag {
  display: block; font-size: 11px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.06em;
}
.nav-link {
  font-size: 13px; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s;
}
.nav-link:hover { color: var(--gold); }

.header-hero {
  position: relative; z-index: 1;
  max-width: 860px; margin: 0 auto;
  padding: 2rem 2rem 3.5rem;
}
.header-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 600; line-height: 1.0;
  letter-spacing: -0.02em; color: #fff;
}
.header-hero h1 em {
  font-style: italic; color: var(--gold);
}
.hero-sub {
  margin-top: 1rem; font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ── Shared card ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  background: var(--gradient); color: #fff; border: none;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: opacity 0.2s, transform 0.1s;
  text-decoration: none; min-height: 44px;
}
.btn-primary:hover  { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  background: transparent; color: var(--mid);
  border: 1.5px solid var(--border);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
  min-height: 44px;
}
.btn-secondary:hover    { background: #f5f5f3; border-color: #ccc; }
.btn-secondary:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Category chip ── */
.cat-chip {
  display: inline-block;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--chip-color) 12%, white);
  color: var(--chip-color);
  border: 1px solid color-mix(in srgb, var(--chip-color) 28%, white);
}

/* ── Loading overlay ── */
#loadingOverlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(17,17,17,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.overlay-inner { text-align: center; color: #fff; }
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.overlay-text { font-size: 14px; color: rgba(255,255,255,0.7); }

/* ── Skeleton shimmer ── */
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, #eeece8 25%, #e4e2de 50%, #eeece8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Responsive utilities ── */
@media (max-width: 639px) {
  .header-inner { padding: 1.25rem 1rem; }
  .header-hero  { padding: 1.5rem 1rem 2.5rem; }
}
