@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Oswald:wght@400;500;600;700;800;900&display=swap');

:root {
    --color-primary: #dc2626;
    --color-hover: #ef4444;
    --color-accent: #fee2e2;
    --color-bg: #fef2f2;
    --font-main: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Oswald', 'Outfit', system-ui, sans-serif;
    --border-radius: 12px;
    --card-radius: 12px;
    --shadow: 0 20px 40px -8px rgba(0,0,0,0.15);
}

body, html {
    font-family: var(--font-main) !important;
    color: #1f2937;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
}

/* Primary color utilities */
.text-primary, [class*="text-[#2d5a27]"], .text-emerald-600, .text-green-600, .text-teal-600 {
    color: var(--color-primary) !important;
}

.bg-primary, [class*="bg-[#2d5a27]"], .bg-emerald-600, .bg-green-600, .bg-teal-600 {
    background-color: var(--color-primary) !important;
}

.border-primary, [class*="border-[#2d5a27]"] {
    border-color: var(--color-primary) !important;
}

[class*="hover:bg-[#"]:hover {
    background-color: var(--color-hover) !important;
}

[class*="hover:text-[#"]:hover {
    color: var(--color-hover) !important;
}

/* Contrast and readability */
.bg-white, .bg-gray-50, .bg-gray-100, .bg-slate-50 {
    color: #1f2937;
}

.bg-white [class*="text-gray-3"], .bg-white [class*="text-gray-4"],
.bg-gray-50 [class*="text-gray-3"], .bg-gray-50 [class*="text-gray-4"],
.bg-slate-50 [class*="text-gray-3"], .bg-slate-50 [class*="text-gray-4"] {
    color: #374151;
}

[class*="bg-gray-9"] [class*="text-gray-8"],
[class*="bg-slate-9"] [class*="text-gray-8"],
[class*="bg-black"] [class*="text-gray-8"] {
    color: #e5e7eb !important;
}

footer:not([class*="bg-"]) {
    background-color: var(--color-bg) !important;
}

footer:not([class*="bg-"]) [class*="text-gray-3"],
footer:not([class*="bg-"]) [class*="text-gray-4"],
footer:not([class*="bg-"]) a {
    color: #374151 !important;
}

footer:not([class*="bg-"]) h1, footer:not([class*="bg-"]) h2,
footer:not([class*="bg-"]) h3, footer:not([class*="bg-"]) h4 {
    color: #111827 !important;
}

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-slate-9"] a {
    color: #d1d5db;
}

a.rounded-full, button.rounded-full, .btn {
    border-radius: var(--border-radius) !important;
}

.rounded-lg, .rounded-xl, .rounded-2xl {
    border-radius: var(--card-radius) !important;
}

header a[href*="index"] {
    min-width: 0;
}

header a[href*="index"] > span {
    max-width: 260px;
    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: 380px;
    }
}
