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

:root {
    --color-primary: #0f766e;
    --color-primary-rgb: 15, 118, 110;
    --color-hover: #0d9488;
    --color-accent: #ccfbf1;
    --color-bg: #f8fafc;
    --font-main: 'Urbanist', system-ui, -apple-system, sans-serif;
    --font-heading: 'Nunito Sans', 'Urbanist', system-ui, -apple-system, sans-serif;
    --border-radius: 12px;
    --card-radius: 16px;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Primary color overrides */
[class*="bg-[#2d5a27]"], [class*="bg-[#"], .bg-primary { background-color: var(--color-primary) !important; }
[class*="text-[#2d5a27]"], .text-primary { color: var(--color-primary) !important; }
[class*="border-[#2d5a27]"], .border-primary { 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; }
.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; }

/* Interactive Cards and Hover Effects */
.design-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.design-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(15, 118, 110, 0.15), 0 8px 12px -4px rgba(0, 0, 0, 0.05);
}

/* FAQ Accordion Styling */
.faq-item {
    transition: all 0.2s ease-in-out;
}
.faq-item button {
    outline: none;
}
.faq-item button:focus-visible {
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

/* Contrast Protection */
footer:not([class*="bg-"]) { background-color: var(--color-bg) !important; }

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

[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-gray-9"] [class*="text-gray-9"], [class*="bg-slate-9"] [class*="text-gray-8"],
[class*="bg-slate-9"] [class*="text-gray-9"], [class*="bg-black"] [class*="text-gray-8"],
[class*="bg-black"] [class*="text-gray-9"] { color: #e5e7eb !important; }

footer:not([class*="bg-"]) [class*="text-white"],
footer:not([class*="bg-"]) [class*="text-gray-2"],
footer:not([class*="bg-"]) [class*="text-gray-3"],
footer:not([class*="bg-"]) [class*="text-gray-4"],
footer:not([class*="bg-"]) a { color: #475569 !important; }
footer:not([class*="bg-"]) h1, footer:not([class*="bg-"]) h2,
footer:not([class*="bg-"]) h3, footer:not([class*="bg-"]) h4 { color: #0f172a !important; }

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; }
footer[class*="bg-gray-9"] a, footer[class*="bg-slate-9"] a,
footer[class*="bg-black"] a { color: #cbd5e1; }

.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: 320px; } }

.bg-white, .bg-gray-50, .bg-gray-100 { color: #1e293b; }

/* Notification and alert badges */
.form-feedback {
    display: none;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
.form-feedback.success {
    display: block;
    background-color: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}
.form-feedback.error {
    display: block;
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}
