/* ============================================================
   RUDRA VENTURES — MAIN CSS
   Design System: Tokens, Typography, Layout, Utilities
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors */
  --navy:         #0B1F3A;
  --blue:         #145DA0;
  --blue-mid:     #1a6db5;
  --blue-light:   #3a88cc;
  --gold:         #C9972B;
  --gold-light:   #E5C15A;
  --gold-pale:    #FBF3DC;
  --white:        #FFFFFF;
  --off-white:    #F8F9FB;
  --grey-50:      #F3F4F6;
  --grey-100:     #E5E7EB;
  --grey-200:     #D1D5DB;
  --grey-400:     #9CA3AF;
  --grey-600:     #4B5563;
  --grey-800:     #1F2937;
  --dark-text:    #111827;

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;

  /* Spacing Scale */
  --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;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(11, 31, 58, 0.06);
  --shadow-sm:  0 2px 8px rgba(11, 31, 58, 0.08);
  --shadow-md:  0 4px 16px rgba(11, 31, 58, 0.1);
  --shadow-lg:  0 8px 32px rgba(11, 31, 58, 0.12);
  --shadow-xl:  0 16px 48px rgba(11, 31, 58, 0.15);
  --shadow-gold: 0 4px 20px rgba(201, 151, 43, 0.25);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Container */
  --container-max:  1280px;
  --container-wide: 1440px;
  --container-px:   1.5rem;

  /* Nav height */
  --nav-height: 72px;
}

/* ── Reset & Base ── */
*, *::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-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  color: var(--grey-600);
  line-height: 1.75;
}

.lead {
  font-size: 1.125rem;
  color: var(--grey-600);
  line-height: 1.8;
}

.small {
  font-size: 0.875rem;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.container--wide {
  max-width: var(--container-wide);
}

/* ── Section ── */
section {
  padding: var(--sp-20) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-title {
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  max-width: 640px;
  font-size: 1.0625rem;
  color: var(--grey-600);
  line-height: 1.75;
  margin-bottom: var(--sp-10);
}

.section-header {
  margin-bottom: var(--sp-12);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-label {
  justify-content: center;
}

.section-header--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ── Background Variants ── */
.bg-white    { background: var(--white); }
.bg-off      { background: var(--off-white); }
.bg-grey     { background: var(--grey-50); }
.bg-navy     { background: var(--navy); }
.bg-blue     { background: var(--blue); }
.bg-gold-pale { background: var(--gold-pale); }

.bg-navy *,
.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4,
.bg-navy p {
  color: var(--white);
}

.bg-navy .section-label {
  color: var(--gold-light);
}

.bg-navy .section-label::before {
  background: var(--gold-light);
}

/* ── Divider ── */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: var(--sp-4) 0 var(--sp-6);
}

.section-divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ── Gold Accent Bar ── */
.gold-bar {
  display: inline-block;
  height: 4px;
  width: 40px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  vertical-align: middle;
}

/* ── Grid ── */
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

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

/* ── Flex Utilities ── */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: var(--sp-2); }
.gap-3  { gap: var(--sp-3); }
.gap-4  { gap: var(--sp-4); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }

/* ── Text Utilities ── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-navy    { color: var(--navy) !important; }
.text-blue    { color: var(--blue) !important; }
.text-gold    { color: var(--gold) !important; }
.text-white   { color: var(--white) !important; }
.text-grey    { color: var(--grey-600) !important; }
.font-600     { font-weight: 600; }
.font-700     { font-weight: 700; }

/* ── Margin / Padding Utilities ── */
.mt-2  { margin-top: var(--sp-2); }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mb-2  { margin-bottom: var(--sp-2); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }

/* ── Scroll Animation Base ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Skip Link Accessibility ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ── Scrollbar (WebKit) ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--grey-50); }
::-webkit-scrollbar-thumb {
  background: var(--grey-200);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--grey-400); }

/* ── Selection ── */
::selection {
  background: var(--gold-pale);
  color: var(--navy);
}
