/*
===============================================
Scroll Media - Shared Styles
Production-Ready | Mobile-First | v2.0
===============================================
*/

/* ===============================================
   TYPOGRAPHY - Inter Font Family
   =============================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #fafdff; /* Ghost */
  color: #151516; /* Shadow */
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ===============================================
   BRAND COLORS - Scroll Media v2.0
   =============================================== */
:root {
  /* Primary */
  --shadow: #151516;
  --azure: #0c3387;
  
  /* Secondary */
  --lucid-dreams: #cbe9ff;
  --highlighter: #e2ed7a;
  
  /* Neutrals */
  --porcelain: #f2f3f4;
  --ghost: #fafdff;
  --white: #ffffff;
  
  /* Opacity Variants */
  --shadow-70: rgba(21, 21, 22, 0.7);
  --shadow-50: rgba(21, 21, 22, 0.5);
  --azure-hover: #0a2868;
  --lucid-10: rgba(203, 233, 255, 0.1);
  --lucid-12: rgba(203, 233, 255, 0.12);
  --highlighter-12: rgba(226, 237, 122, 0.12);
  --highlighter-25: rgba(226, 237, 122, 0.25);
  
  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  
  /* 8px Spacing Grid */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Transitions */
  --transition: 200ms ease;
}

/* ===============================================
   TYPOGRAPHY SCALE - Mobile First
   =============================================== */

/* H1 - Hero/Display */
h1, .h1 {
  font-size: 2.5rem; /* 40px mobile */
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--shadow);
}

/* H2 - Section Headers */
h2, .h2 {
  font-size: 1.75rem; /* 28px mobile */
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--shadow);
}

/* H3 - Subsection */
h3, .h3 {
  font-size: 1.25rem; /* 20px mobile */
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--shadow);
}

/* H4 - Card Titles */
h4, .h4 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  line-height: 1.4;
  color: var(--shadow);
}

/* Body Text */
body, p, .body {
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.7;
  color: var(--shadow);
}

/* Large Body */
.body-large {
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
}

/* Small Text */
.text-small {
  font-size: 0.875rem; /* 14px */
  line-height: 1.6;
}

/* Labels */
.label {
  font-size: 0.6875rem; /* 11px */
  font-weight: 600;
  letter-spacing: 0.125em; /* 2px at 16px base */
  text-transform: uppercase;
  line-height: 1.5;
}

/* Desktop Typography Scale */
@media (min-width: 768px) {
  h1, .h1 {
    font-size: 3rem; /* 48px */
  }
  
  h2, .h2 {
    font-size: 2rem; /* 32px */
  }
  
  .body-large {
    font-size: 1.125rem; /* 18px maintained */
  }
}

@media (min-width: 1024px) {
  h1, .h1 {
    font-size: 4rem; /* 64px */
  }
  
  h2, .h2 {
    font-size: 2.5rem; /* 40px */
  }
  
  h3, .h3 {
    font-size: 1.5rem; /* 24px */
  }
}

/* ===============================================
   LAYOUT SYSTEM - 8px Grid
   =============================================== */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-2); /* 16px mobile */
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-4); /* 32px tablet+ */
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-6); /* 48px desktop */
  }
}

/* Section Spacing */
.section {
  padding: var(--space-6) 0; /* 48px mobile */
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-8) 0; /* 64px tablet+ */
  }
}

/* ===============================================
   COMPONENTS
   =============================================== */

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-md); /* 12px */
  padding: var(--space-3); /* 24px */
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .card {
    padding: var(--space-4); /* 32px tablet+ */
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm); /* 8px */
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  min-height: 44px; /* Touch target */
  text-align: center;
}

.btn-primary {
  background: var(--azure);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--azure-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(12, 51, 135, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--azure);
  border: 2px solid var(--azure);
}

.btn-secondary:hover {
  background: var(--lucid-10);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-xl); /* 20px */
  font-size: 0.6875rem; /* 11px */
  font-weight: 600;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  line-height: 1.5;
}

.badge-highlighter {
  background: var(--highlighter-12);
  color: #6b7300;
  border: 1px solid var(--highlighter-25);
}

.badge-azure {
  background: var(--lucid-12);
  color: var(--azure);
  border: 1px solid rgba(12, 51, 135, 0.2);
}

/* Links */
.link {
  color: var(--azure);
  text-decoration: none;
  transition: opacity var(--transition);
}

.link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===============================================
   HERO SECTIONS
   =============================================== */
.hero {
  background: var(--shadow);
  color: var(--white);
  padding: var(--space-6) 0; /* 48px mobile */
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: var(--space-8) 0; /* 64px tablet+ */
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
  }
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-2); /* 16px */
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-3); /* 24px */
}

@media (min-width: 768px) {
  .hero p {
    margin: 0 0 var(--space-4); /* 32px */
  }
}

/* Hero Decorative Elements */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid rgba(203, 233, 255, 0.1);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero::before {
    width: 360px;
    height: 360px;
  }
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */

/* Spacing */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Colors */
.text-azure { color: var(--azure); }
.text-shadow { color: var(--shadow); }
.text-muted { color: var(--shadow-70); }
.text-white { color: var(--white); }

.bg-white { background: var(--white); }
.bg-ghost { background: var(--ghost); }
.bg-porcelain { background: var(--porcelain); }
.bg-shadow { background: var(--shadow); }
.bg-azure { background: var(--azure); }

/* Display */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Responsive */
.hide-mobile { display: none; }
.show-mobile { display: block; }

@media (min-width: 768px) {
  .hide-mobile { display: block; }
  .show-mobile { display: none; }
}

/* ===============================================
   ACCESSIBILITY
   =============================================== */

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
}

/* Skip Links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--azure);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
}

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

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

/* ===============================================
   LOADING & PERFORMANCE
   =============================================== */

/* Lazy Loading Images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 300ms ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===============================================
   PROPOSAL-SPECIFIC COMPONENTS
   Added: Feb 16, 2026 - Fix for condensed proposal
   =============================================== */

/* Client Grid - Social Proof Section */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.client-card {
  background: var(--white);
  border: 1px solid rgba(12, 51, 135, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.client-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--shadow);
  margin-bottom: var(--space-1);
}

.niche {
  font-size: 0.875rem;
  color: var(--shadow-70);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--lucid-dreams);
}

.result-item {
  font-size: 0.9375rem;
  line-height: 1.6;
  padding: var(--space-1) 0;
  color: var(--shadow-70);
}

.result-item strong {
  color: var(--azure);
  font-weight: 700;
  font-size: 1.125rem;
  margin-right: 4px;
}

/* IVP Cards */
.ivp-card {
  background: var(--white);
  border-left: 4px solid var(--azure);
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

.ivp-badge {
  display: inline-block;
  background: var(--azure);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

/* Pricing Table */
.pricing-table {
  background: var(--white);
  border: 1px solid rgba(12, 51, 135, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  padding: var(--space-3);
  border-bottom: 1px solid var(--porcelain);
}

.pricing-row.header {
  background: var(--lucid-12);
  font-weight: 600;
  color: var(--azure);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-total {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  padding: var(--space-3);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  font-weight: 700;
}

.pricing-total .amount {
  color: var(--azure);
  font-size: 1.75rem;
}

/* Two Column Grid */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  
  .client-grid {
    grid-template-columns: 1fr;
  }
}

/* Enhanced Visual Emphasis */
.result-item strong {
  display: inline-block;
  background: linear-gradient(135deg, var(--lucid-12), transparent);
  padding: 2px 6px;
  border-radius: 4px;
}
