/* Typography (Poppins, site-wide) */

/* Font Family Setup */
:root {
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --font-mono: 'Courier New', monospace;
}

html {
  font-size: 90%;
}

/* Base Typography */
body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  font-size: 16px;
}

/* Override legacy stylesheet defaults */
body,
button,
input,
select,
textarea {
  font-family: var(--font-primary) !important;
}

body {
  font-size: 16px !important;
}

/* Keep headings + UI consistent (Poppins) */
h1, h2, h3, h4, h5, h6,
.section-kicker,
.nav-links a,
.btn,
.lovable-aside-card h3 {
  font-family: var(--font-primary) !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.005em;
}

h4 {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0em;
}

h5 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

h6 {
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Paragraphs and Text */
p {
  font-family: var(--font-secondary);
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.7;
  margin-bottom: 1em;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Links */
a {
  font-family: var(--font-primary);
  font-weight: 500;
  text-decoration: none;
  color: var(--accent-primary);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
}

/* Lists */
ul, ol {
  font-family: var(--font-secondary);
  margin-bottom: 1em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

/* Navigation Typography */
.nav-links a {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.logo-text h1 {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.logo-text p {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Button Typography */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 15px 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Form Typography */
.form-label {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 12px;
  padding: 15px 20px;
  border: 2px solid var(--border-light);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  font-family: var(--font-secondary);
  color: var(--text-tertiary);
  font-weight: 400;
}

/* Card Typography */
.service-card h3,
.value-card h3,
.testimonial-card h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.service-card p,
.value-card p {
  font-family: var(--font-secondary);
  font-weight: 400;
  line-height: 1.7;
}

/* Hero Typography */
.hero-content h1 {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: none;
}

.hero-content p {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  line-height: 1.7;
  opacity: 0.95;
}

.hero-badge {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Section Headers */
.section-header h2 {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.01em;
  /* text-align: center; */
  margin-bottom: 0.5em;
}

.section-header .subtitle {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.7;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer Typography */
.footer h3,
.footer h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.footer p,
.footer-links a {
  font-family: var(--font-secondary);
  font-weight: 400;
  line-height: 1.6;
}

.footer-links a {
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

/* Stats Typography */
.stat-box h3,
.contact-stat-number {
  font-family: var(--font-primary);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stat-box p,
.contact-stat-label {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Icon Typography */
.platform-item i,
.service-icon i,
.contact-icon i {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

/* Testimonial Typography */
.testimonial-content {
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 400;
}

.testimonial-author h4 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.testimonial-author-info p {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive Typography */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
  
  .hero-content h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }
  
  .hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }
  
  .btn {
    font-size: 0.9rem;
    padding: 12px 25px;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 0.95rem;
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  h2 {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }
  
  .hero-content h1 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }
  
  .hero-content p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
  
  .btn {
    font-size: 0.85rem;
    padding: 10px 20px;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
}

/* Text Utilities */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.75; }
.leading-loose { line-height: 2; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

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

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-inverse { color: var(--text-inverse); }
.text-accent { color: var(--accent-primary); }
.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-error { color: #ef4444; }
.text-info { color: #3b82f6; }
