@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Raleway:wght@400;500;600;700;800;900&display=swap');

:root {
  --color-primary: #0891b2;
  --color-hover: #06b6d4;
  --color-accent: #cffafe;
  --color-bg: #ecfeff;
  --font-main: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Raleway', 'Poppins', system-ui, sans-serif;
  --border-radius: 9999px;
  --card-radius: 20px;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

html, body {
  font-family: var(--font-main) !important;
  color: #1f2937;
  background-color: #ffffff;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
}

/* Primary color utilities */
.bg-primary { background-color: var(--color-primary) !important; }
.text-primary { color: var(--color-primary) !important; }
.border-primary { border-color: var(--color-primary) !important; }
.hover\:bg-primary-hover:hover { background-color: var(--color-hover) !important; }
.hover\:text-primary-hover:hover { color: var(--color-hover) !important; }

/* Color overrides for branding consistency */
[class*="bg-[#2d5a27]"], [class*="bg-[#"] { background-color: var(--color-primary) !important; }
[class*="text-[#2d5a27]"] { color: var(--color-primary) !important; }
[class*="border-[#2d5a27]"] { border-color: var(--color-primary) !important; }
.text-emerald-600, .text-green-600, .text-teal-600 { color: var(--color-primary) !important; }
.bg-emerald-600, .bg-green-600, .bg-teal-600 { background-color: var(--color-primary) !important; }

/* Card and Container Contrast Standards */
.bg-white, .bg-gray-50, .bg-gray-100, .bg-slate-50 {
  color: #1f2937;
}

.bg-white [class*="text-gray-2"],
.bg-white [class*="text-gray-3"],
.bg-white [class*="text-gray-4"],
.bg-gray-50 [class*="text-gray-2"],
.bg-gray-50 [class*="text-gray-3"],
.bg-gray-100 [class*="text-gray-2"],
.bg-slate-50 [class*="text-gray-3"] {
  color: #374151 !important;
}

/* Dark section typography */
[class*="bg-gray-8"] [class*="text-gray-7"],
[class*="bg-gray-8"] [class*="text-gray-8"],
[class*="bg-gray-9"] [class*="text-gray-7"],
[class*="bg-gray-9"] [class*="text-gray-8"],
[class*="bg-black"] [class*="text-gray-8"] {
  color: #f3f4f6 !important;
}

/* Footer layout and styling */
footer {
  background-color: var(--color-bg);
}

footer a {
  transition: color 0.2s ease;
}

footer[class*="bg-gray-8"] h3, footer[class*="bg-gray-8"] h4,
footer[class*="bg-gray-9"] h3, footer[class*="bg-gray-9"] h4,
footer[class*="bg-slate-9"] h3, footer[class*="bg-slate-9"] h4,
footer[class*="bg-black"] h3, footer[class*="bg-black"] h4 {
  color: #ffffff !important;
}

/* Header brand styling */
header a[href*="index"] {
  min-width: 0;
}

header a[href*="index"] > span {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

@media (min-width: 1024px) {
  header a[href*="index"] > span {
    max-width: 320px;
  }
}

/* Buttons and Border radius styling */
a.rounded-full, button.rounded-full, .btn-pill {
  border-radius: var(--border-radius) !important;
}

.rounded-lg, .rounded-xl, .rounded-2xl {
  border-radius: var(--card-radius) !important;
}

/* Editorial and Disclaimer styling */
.disclaimer-card {
  background-color: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #92400e;
}
