﻿/* =================================================================
   SHRIKAA — Design System v3
   Warm white · Charcoal · DM Serif Display + Inter
   Mandala motif. No accent color. Typography carries identity.
   ================================================================= */

@font-face {
  font-family: 'Samarkhan';
  src: url('../fonts/Samarkhan.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* -----------------------------------------------------------------
   DESIGN TOKENS
   ----------------------------------------------------------------- */
:root {
  /* Palette — monochrome */
  --warm-white:   #F8F6F2;
  --chalk:        #F0EDE8;
  --border-light: #E4E0DA;
  --border:       #CCC8C2;
  --muted:        #69635F;
  --text-soft:    #3D3A36;
  --text:         #1C1C1E;
  --charcoal:     #1C1C1E;
  --charcoal-mid: #2A2826;
  --charcoal-soft:#363230;
  --white:        #FFFFFF;
  --text-on-dark: rgba(255,255,255,0.65);

  /* Semantic aliases */
  --bg:           var(--warm-white);
  --bg-alt:       var(--chalk);
  --bg-dark:      var(--charcoal);
  --heading:      var(--charcoal);
  --accent:       var(--charcoal);    /* No separate accent — charcoal is the accent */

  /* Typography */
  --font-brand:   'Samarkhan', 'Samarkan', serif;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale */
  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  /* Spacing (4pt grid) */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radii */
  --r-sm:  2px;
  --r-md:  4px;
  --r-lg:  8px;
  --r-xl:  14px;
  --r-full: 9999px;

  /* Shadows — warm-tinted, subtle */
  --shadow-xs:  0 1px 3px rgba(28,28,30,0.06);
  --shadow-sm:  0 2px 8px rgba(28,28,30,0.08);
  --shadow-md:  0 4px 20px rgba(28,28,30,0.10);
  --shadow-lg:  0 8px 40px rgba(28,28,30,0.14);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  200ms;

  /* Layout */
  --max-w: 1160px;
  --nav-h: 84px;

  /*
    Mandala texture — concentric arc pattern, CSS-only
    Used as bg-image on hero, CTA sections, page headers
    Creates a subtle radiating feel without importing an image
  */
  --mandala-texture:
    radial-gradient(circle at 50% 50%, transparent 28px, rgba(28,28,30,0.028) 29px, transparent 30px),
    radial-gradient(circle at 50% 50%, transparent 56px, rgba(28,28,30,0.022) 57px, transparent 58px),
    radial-gradient(circle at 50% 50%, transparent 84px, rgba(28,28,30,0.016) 85px, transparent 86px),
    radial-gradient(circle at 50% 50%, transparent 112px, rgba(28,28,30,0.012) 113px, transparent 114px);
  --mandala-texture-dark:
    radial-gradient(circle at 50% 50%, transparent 28px, rgba(255,255,255,0.04) 29px, transparent 30px),
    radial-gradient(circle at 50% 50%, transparent 56px, rgba(255,255,255,0.03) 57px, transparent 58px),
    radial-gradient(circle at 50% 50%, transparent 84px, rgba(255,255,255,0.022) 85px, transparent 86px),
    radial-gradient(circle at 50% 50%, transparent 112px, rgba(255,255,255,0.015) 113px, transparent 114px);
}

/* -----------------------------------------------------------------
   RESET
   ----------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: clip;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; outline: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--heading);
}

h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--heading);
}

/* -----------------------------------------------------------------
   TYPOGRAPHY CLASSES
   ----------------------------------------------------------------- */
.brand-wordmark {
  font-family: var(--font-brand);
  letter-spacing: 0.04em;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  font-weight: 400;
  line-height: 1.25;
}

.serif-italic {
  font-style: italic;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-soft);
}

.small {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--muted);
}

/* -----------------------------------------------------------------
   LAYOUT UTILITIES
   ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(var(--sp-4), 4vw, var(--sp-10));
}

.section       { padding-block: clamp(var(--sp-12), 6vw, var(--sp-20)); }
.section--sm   { padding-block: clamp(var(--sp-8),  4vw, var(--sp-12)); }
.section--lg   { padding-block: clamp(var(--sp-16), 8vw, 7rem); }
.section--xs   { padding-block: clamp(var(--sp-5),  3vw, var(--sp-8)); }

.bg-dark    { background: var(--charcoal); color: var(--white); }
.bg-mid     { background: var(--charcoal-mid); color: var(--white); }
.bg-chalk   { background: var(--chalk); }
.bg-white   { background: var(--white); }
.bg-warm    { background: var(--warm-white); }
.bg-alt     { background: var(--bg-alt); }

.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-muted  { color: var(--muted); }
.text-soft   { color: var(--text-soft); }
.text-charcoal { color: var(--charcoal); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-6); }

/* -----------------------------------------------------------------
   SECTION HEADER
   ----------------------------------------------------------------- */
.section-header { margin-bottom: var(--sp-10); }
.section-header .eyebrow { margin-bottom: var(--sp-4); display: block; }

.rule-accent {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--charcoal);
  margin-bottom: var(--sp-5);
  border-radius: 0;
  opacity: 0.25;
}
.rule-accent--center { margin-inline: auto; }
.rule-accent--light { background: var(--white); opacity: 0.2; }

/* Divider — full-width thin line */
.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin-block: 0;
}
.divider--dark { border-top-color: rgba(255,255,255,0.1); }

/* -----------------------------------------------------------------
   FOCUS / ACCESSIBILITY
   ----------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* -----------------------------------------------------------------
   SCROLLBAR — hidden
   ----------------------------------------------------------------- */
::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* -----------------------------------------------------------------
   REDUCED MOTION
   ----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* -----------------------------------------------------------------
   RESPONSIVE GRID
   ----------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .grid-2  { grid-template-columns: 1fr; }
  .grid-3  { grid-template-columns: 1fr; }
  .grid-4  { grid-template-columns: 1fr 1fr; }
  .container { padding-inline: var(--sp-5); }
  .fee-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
