/* ============================================
   Revenue Arce — Global Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --color-navy:        #1B2A4A;
  --color-navy-light:  #243556;
  --color-navy-dark:   #111D35;
  --color-cream:       #F8F7F4;
  --color-cream-dark:  #F0EDE8;
  --color-white:       #FFFFFF;

  /* Accent */
  --color-coral:       #E8654A;
  --color-amber:       #F5A623;
  --color-teal:        #2A9D8F;
  --color-teal-light:  #3AB8A8;

  /* Gradients */
  --gradient-primary:  linear-gradient(135deg, #E8654A 0%, #F5A623 100%);
  --gradient-navy:     linear-gradient(135deg, #1B2A4A 0%, #243556 100%);
  --gradient-subtle:   linear-gradient(135deg, #F8F7F4 0%, #F0EDE8 100%);
  --gradient-hero:     linear-gradient(160deg, #1B2A4A 0%, #243556 60%, #1B3550 100%);

  /* Text */
  --text-primary:      #1B2A4A;
  --text-secondary:    #5A6478;
  --text-muted:        #8B93A1;
  --text-on-dark:      #F8F7F4;
  --text-on-dark-muted:#B0B8C8;

  /* Borders & Surfaces */
  --border-light:      #E8E6E1;
  --border-medium:     #D4D0C8;
  --surface-card:      #FFFFFF;
  --surface-elevated:  #FFFFFF;

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(27, 42, 74, 0.04);
  --shadow-sm:   0 2px 8px rgba(27, 42, 74, 0.06);
  --shadow-md:   0 4px 16px rgba(27, 42, 74, 0.08);
  --shadow-lg:   0 8px 32px rgba(27, 42, 74, 0.10);
  --shadow-xl:   0 16px 48px rgba(27, 42, 74, 0.12);
  --shadow-glow: 0 4px 24px rgba(232, 101, 74, 0.20);

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes (fluid) */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  clamp(2.5rem, 5vw, 3.5rem);
  --text-6xl:  clamp(3rem, 6vw, 4.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

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

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --nav-height: 72px;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}


/* --- Typography Utilities --- */
.heading-1 {
  font-size: var(--text-6xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.heading-2 {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.heading-3 {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.heading-4 {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.heading-5 {
  font-size: var(--text-xl);
  font-weight: 600;
}

.body-lg {
  font-size: var(--text-lg);
  line-height: 1.7;
}

.body-sm {
  font-size: var(--text-sm);
}

.text-muted {
  color: var(--text-secondary);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

.section {
  padding: var(--space-20) 0;
}

.section--lg {
  padding: var(--space-32) 0;
}

.section--navy {
  background: var(--color-navy);
  color: var(--text-on-dark);
}

.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy h5 {
  color: var(--text-on-dark);
}

.section--navy .text-muted {
  color: var(--text-on-dark-muted);
}

.section--cream {
  background: var(--color-cream);
}

.section--white {
  background: var(--color-white);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-16);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-coral);
  margin-bottom: var(--space-4);
}

.section--navy .section-label {
  color: var(--color-amber);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-top: var(--space-4);
  line-height: 1.7;
}

.section--navy .section-header p {
  color: var(--text-on-dark-muted);
}


/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

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

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


/* --- Flexbox Utilities --- */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.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(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

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


/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays */
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }
.delay-5 { transition-delay: 500ms; }
.delay-6 { transition-delay: 600ms; }


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

::selection {
  background: rgba(232, 101, 74, 0.15);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
