/* ============================================================
   NamKural — நம் குரல் | Global Stylesheet
   Aesthetic: Civic editorial — Americana gravitas meets
   Tamil heritage warmth. Think USPS x NYT x heritage press.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Serif+4:opsz,wght@8..60,300;8..60,400;8..60,600&family=DM+Mono:wght@400;500&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0e1f3b;
  --navy2:   #1a3a6e;
  --navy3:   #2d5499;
  --red:     #b8001f;
  --red2:    #d42235;
  --gold:    #c9940a;
  --gold2:   #f0b429;
  --cream:   #f7f3ec;
  --cream2:  #ede8de;
  --cream3:  #e2dbd0;
  --ink:     #1a1208;
  --ink2:    #3d3120;
  --ink3:    #6b5c40;
  --white:   #ffffff;
  --border:  #d6cfc2;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --shadow-sm: 0 1px 4px rgba(10,20,40,.08);
  --shadow-md: 0 4px 16px rgba(10,20,40,.12);
  --shadow-lg: 0 12px 40px rgba(10,20,40,.18);

  --max-w: 1080px;
  --section-pad: 5rem 2rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography ── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
}

/* ── Utility ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.text-gold  { color: var(--gold); }
.text-red   { color: var(--red); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: .85rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .75rem 1.75rem; border-radius: 2px; cursor: pointer;
  text-decoration: none; border: 2px solid transparent;
  transition: all .2s ease;
}
.btn-primary   { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red2); border-color: var(--red2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-gold      { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold2); border-color: var(--gold2); transform: translateY(-1px); }

/* ── Section Labels ── */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--red); border-bottom: 1px solid var(--red);
  padding-bottom: 2px; margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: var(--navy);
  margin-bottom: .75rem;
}
.section-sub {
  font-size: 1rem; color: var(--ink3); max-width: 560px; line-height: 1.7;
}

/* ── Dividers ── */
.rule {
  border: none; border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.rule-thick {
  border: none; border-top: 3px solid var(--navy);
  margin: 0;
}

/* ── Flag Bar ── */
.flag-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--navy2) 0%, var(--navy2) 33.33%, var(--white) 33.33%, var(--white) 66.66%, var(--red) 66.66%);
}

/* ── Tags & Chips ── */
.tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: .65rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .7rem; border-radius: 2px;
  background: var(--navy2); color: var(--white);
}
.tag-red   { background: var(--red); }
.tag-gold  { background: var(--gold); }
.tag-cream { background: var(--cream2); color: var(--ink2); }

/* ── Card ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }

/* ── Nav ── */
.site-nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 999;
  border-bottom: 3px solid var(--red);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; padding: .75rem 0; flex-shrink: 0;
}
.nav-seal {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px; font-weight: 900;
  color: var(--navy); border: 2px solid var(--gold); flex-shrink: 0;
}
.nav-name { color: var(--white); font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.1; }
.nav-name span { display: block; font-size: .65rem; color: rgba(255,255,255,.5); font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
.nav-links { display: flex; gap: 0; flex-wrap: nowrap; overflow-x: auto; }
.nav-links a {
  color: rgba(255,255,255,.75); font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 1.1rem .85rem;
  border-bottom: 3px solid transparent;
  transition: all .15s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); border-bottom-color: var(--gold); }
.nav-cta {
  background: var(--red); color: var(--white);
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none;
  padding: .55rem 1.1rem; border-radius: 2px; white-space: nowrap; flex-shrink: 0;
  transition: background .15s;
}
.nav-cta:hover { background: var(--red2); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: white; margin: 4px 0; transition: .3s; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  border-top: 4px solid var(--red);
  color: rgba(255,255,255,.65);
  padding: 3.5rem 2rem 1.5rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand-name {
  font-family: var(--font-display); color: var(--white);
  font-size: 1.5rem; font-weight: 900; margin-bottom: .25rem;
}
.footer-brand-name span { color: var(--gold); }
.footer-tagline { font-size: .85rem; line-height: 1.6; margin-bottom: 1.25rem; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--white); margin-bottom: .85rem;
  padding-bottom: .4rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col a {
  display: block; font-size: .85rem; color: rgba(255,255,255,.55);
  text-decoration: none; margin-bottom: .4rem; transition: color .15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
}
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.35); }
.founder-credit {
  font-size: .75rem; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: .4rem 1rem; border-radius: 2px;
}
.founder-credit strong { color: rgba(255,255,255,.8); }

/* ── Hero (shared) ── */
.page-hero {
  background: var(--navy);
  padding: 4.5rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-35deg,
    transparent, transparent 20px,
    rgba(255,255,255,.025) 20px, rgba(255,255,255,.025) 40px);
  pointer-events: none;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.page-hero-eyebrow { margin-bottom: 1rem; }
.page-hero h1 {
  color: var(--white); font-size: clamp(2rem,5vw,3.8rem);
  font-weight: 900; line-height: 1.05; margin-bottom: 1rem;
}
.page-hero h1 em { color: var(--gold); font-style: normal; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 580px; line-height: 1.75; }
.hero-flag-bar { height: 5px; background: linear-gradient(90deg, var(--red) 0%, var(--red) 33.33%, var(--white) 33.33%, var(--white) 66.66%, var(--navy2) 66.66%); margin-top: 0; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); z-index: 100; padding: .5rem 0; }
  .nav-links.open a { padding: .75rem 2rem; border-bottom: none; border-left: 3px solid transparent; }
  .nav-links.open a.active { border-left-color: var(--gold); }
  .site-nav { position: relative; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  :root { --section-pad: 3.5rem 1.25rem; }
}
