/* ==========================================================================
   NORDLAGER.CSS - Self-contained styles for nordlager-halle.de
   ========================================================================== */

/* 1. CSS CUSTOM PROPERTIES */
:root {
    /* Colors - Light Mode (Default) */
    --color-bg-page: #f9fafb;
    --color-bg-card: #ffffff;
    --color-bg-card-alt: #f3f4f6;
    --color-bg-header: rgba(255, 255, 255, 0.85);
    --color-text-primary: #111827;
    --color-text-secondary: #374151;
    --color-text-muted: #6b7280;
    --color-text-inverted: #ffffff;
    --color-accent: #ea580c;          /* orange-600 */
    --color-accent-hover: #c2410c;    /* orange-700 */
    --color-accent-text: #ea580c;
    --color-green: #16a34a;
    --color-green-hover: #15803d;
    --color-border: #e5e7eb;
    --color-border-focus: #f97316;
    --color-yellow-highlight: #facc15;
    --color-yellow-text: #111827;

    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --transition-colors: color .15s cubic-bezier(.4, 0, .2, 1),
                         background-color .15s cubic-bezier(.4, 0, .2, 1),
                         border-color .15s cubic-bezier(.4, 0, .2, 1);
    --transition-all: all .15s cubic-bezier(.4, 0, .2, 1);

    /* Footer Colors - Light Mode */
    --color-footer-bg: #f3f4f6; /* Gray-100 */
    --color-footer-text: #111827; /* Gray-900 */
    --color-footer-link: #4b5563; /* Gray-600 */
    --color-footer-link-hover: #ea580c; /* Accent */
}


[data-theme="dark"] {
    --color-bg-page: #111827;
    --color-bg-card: #1f2937;
    --color-bg-card-alt: #1f2937;
    --color-bg-header: rgba(17, 24, 39, 0.90);
    --color-text-primary: #f9fafb;
    --color-text-secondary: #e5e7eb;
    --color-text-muted: #9ca3af;
    --color-text-inverted: #111827;
    --color-accent: #fb923c;
    --color-accent-hover: #f97316;
    --color-accent-text: #fb923c;
    --color-green: #15803d;
    --color-green-hover: #16a34a;
    --color-border: #374151;
    --color-border-focus: #fb923c;
    --color-yellow-highlight: #fde047;
    --color-yellow-text: #111827;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);

    /* Footer Colors - Dark Mode */
    --color-footer-bg: #111827;
    --color-footer-text: #f9fafb;
    --color-footer-link: #ffffff;
    --color-footer-link-hover: #fb923c;
}

/* 2. CSS RESET & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: var(--color-border);
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem; /* scroll-pt-24 */
}

body {
    margin: 0;
    line-height: inherit;
    background-color: var(--color-bg-page);
    color: var(--color-text-secondary);
}

h1, h2, h3, h4, h5, h6, p, blockquote, figure, hr, pre {
    margin: 0;
}

ul, ol, menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

img, video, canvas, svg, iframe {
    display: block;
}

img, video {
    height: auto;
    max-width: 100%;
}

button, [role=button], input[type="submit"], input[type="button"], input[type="reset"] {
    cursor: pointer;
    background-color: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
}

textarea {
    resize: vertical;
}

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

a:visited {
    color: inherit;
}

/* 3. LAYOUT UTILITIES */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.grow-0 { flex-grow: 0; }
.flex-grow { flex-grow: 1; }
.flex-wrap { flex-wrap: wrap; }

.grid { display: grid; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[9999\] { z-index: 9999; }

.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.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;
}
.whitespace-nowrap { white-space: nowrap; }
.not-sr-only {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}
.contents { display: contents; }

.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-16 { width: 4rem; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.min-h-screen { min-height: 100vh; }

.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-screen-2xl { max-width: 1536px; }

.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }

/* 4. TYPOGRAPHY UTILITIES */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

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

.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.underline { text-decoration: underline !important; }
.hover\:underline:hover { text-decoration: underline !important; }

/* 5. SPACING UTILITIES */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }

.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 3.5rem; padding-bottom: 3.5rem; }

@media (min-width: 768px) {
    .py-20 { padding-top: 5rem; padding-bottom: 5rem; }
}

.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }

.pl-2 { padding-left: 0.5rem; }
.pl-4 { padding-left: 1rem; }

.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* 6. BACKGROUND & COLOR UTILITIES */
.bg-white { background-color: var(--color-bg-card); }
.bg-gray-50 { background-color: var(--color-bg-card-alt); }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-300 { background-color: #d1d5db; }
.bg-gray-800 { background-color: #1f2937; }
.bg-black { background-color: #000000; }
.bg-center { background-position: center; }
.bg-cover { background-size: cover; }

.bg-green-600 { background-color: var(--color-green); }
.bg-yellow-400 { background-color: var(--color-yellow-highlight); }
.bg-orange-100 { background-color: #ffedd5; }
.bg-orange-600 { background-color: #ea580c; }
.bg-blue-50 { background-color: #eff6ff; }

.bg-white\/70 { background-color: var(--color-bg-header); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
[data-theme="dark"] .bg-white\/90 { background-color: rgba(17, 24, 39, 0.9) !important; }

.text-white { color: #ffffff; }
.text-gray-400 { color: var(--color-text-muted); }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: var(--color-text-secondary); }
.text-gray-700 { color: var(--color-text-secondary); }
.text-gray-800 { color: var(--color-text-primary); }
.text-gray-900 { color: var(--color-text-primary); }
.text-orange-600 { color: var(--color-accent-text); }
.text-orange-700 { color: #c2410c; }
.text-orange-800 { color: #9a3412; }
.text-green-600 { color: #16a34a; }
.text-red-600 { color: #dc2626; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }

.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-80 { opacity: 0.8; }

.hover\:bg-green-700:hover { background-color: var(--color-green-hover); }
.hover\:bg-gray-300:hover { background-color: #d1d5db; }
.hover\:bg-blue-800:hover { background-color: #1e40af; }
.hover\:accent-text:hover { color: var(--color-accent-text); }
.hover\:text-orange-400:hover { color: #fb923c; }
.hover\:text-orange-700:hover { color: #c2410c; }
.hover\:text-white:hover { color: #ffffff; text-decoration: none !important; }
.hover\:opacity-70:hover { opacity: 0.7; }

/* --- DARK MODE EXPLICIT OVERRIDES --- */
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-gray-50,
[data-theme="dark"] .bg-gray-100 {
    background-color: var(--color-bg-card) !important;
}

[data-theme="dark"] .bg-gray-200 { background-color: #374151 !important; }
[data-theme="dark"] .bg-gray-300 { background-color: #4b5563 !important; }

[data-theme="dark"] .text-gray-800,
[data-theme="dark"] .text-gray-900 {
    color: var(--color-text-primary) !important;
}

[data-theme="dark"] .text-gray-600,
[data-theme="dark"] .text-gray-700 {
    color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .text-gray-400,
[data-theme="dark"] .text-gray-500 {
    color: var(--color-text-muted) !important;
}

[data-theme="dark"] .border-gray-200,
[data-theme="dark"] .border-gray-300 {
    border-color: var(--color-border) !important;
}

[data-theme="dark"] .bg-yellow-400 {
    background-color: var(--color-yellow-highlight) !important;
    color: var(--color-yellow-text) !important;
}

[data-theme="dark"] .bg-orange-100 {
    background-color: #9a341233 !important; /* Muted orange for dark */
}

[data-theme="dark"] .text-orange-800,
[data-theme="dark"] .text-orange-700 {
    color: var(--color-accent-text) !important;
}

[data-theme="dark"] .bg-blue-50 {
    background-color: #1e3a8a33 !important;
}

/* --- FOOTER THEME OVERRIDES --- */
footer.bg-gray-800, 
[data-theme="dark"] footer.bg-gray-800 {
    background-color: var(--color-footer-bg) !important;
    color: var(--color-footer-text) !important;
}

footer a,
footer a.text-gray-400,
footer .text-gray-400 {
    color: var(--color-footer-link) !important;
}

footer a:hover {
    color: var(--color-footer-link-hover) !important;
}

[data-theme="dark"] .text-blue-800,
[data-theme="dark"] .text-blue-700 {
    color: #60a5fa !important;
}

[data-theme="dark"] .shadow-md,
[data-theme="dark"] .shadow-lg,
[data-theme="dark"] .shadow-xl {
    box-shadow: var(--shadow-md) !important;
}

/* 7. BORDERS & SHADOWS */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-dashed { border-style: dashed; }

.border-gray-200 { border-color: var(--color-border); }
.border-gray-300 { border-color: #d1d5db; }
.border-orange-300 { border-color: #fdba74; }
.border-blue-100 { border-color: #dbeafe; }
.border-blue-200 { border-color: #bfdbfe; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* 8. EFFECTS & TRANSFORMS */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.transform {
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-rotate-2 {
    transform: rotate(-2deg); /* Native replacement for Tailwind utility */
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.transition-all { transition: var(--transition-all); }
.transition-colors { transition: var(--transition-colors); }
.transition-opacity { transition: opacity .15s cubic-bezier(.4, 0, .2, 1); }

.drop-shadow-md {
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
}

.focus\:ring-2:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-border-focus);
}

.focus\:ring-orange-500:focus {
    box-shadow: 0 0 0 2px var(--color-accent);
}

.focus\:border-orange-500:focus {
    border-color: var(--color-accent);
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* 9. COMPONENT STYLES (Merged from style.css) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/static/Inter_18pt-Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/static/Inter_18pt-SemiBold.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/static/Inter_18pt-Bold.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/static/Inter_18pt-ExtraBold.ttf') format('truetype');
  font-display: swap;
}

/* Global Focus Styles for Accessibility */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.hero-bg {
    background-color: var(--color-bg-card-alt);
}

.accent-bg {
    background-color: var(--color-accent);
}

.accent-text {
    color: var(--color-accent-text);
}

.cta-button {
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: scale(1.05);
    background-color: var(--color-bg-card);
}

.nav-link {
    transition: var(--transition-colors);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-all);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-colors);
}

.faq-item.is-active {
    background-color: var(--color-bg-card-alt);
    border-left: 4px solid var(--color-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1rem;
}

.faq-answer.is-open {
    max-height: 1000px; /* Increased for longer content */
    padding-bottom: 1.5rem;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.faq-question .chevron {
    transition: transform 0.3s ease-out;
}

.faq-question.is-open .chevron {
    transform: rotate(180deg);
}

/* --- MOBILE STICKY CTA --- */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    background-color: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-sticky-cta.is-visible {
    transform: translateY(0);
}

/* --- MOBILE MENU --- */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.mobile-nav-link {
    transition: var(--transition-colors);
}

.mobile-nav-link:hover {
    color: var(--color-accent-text);
}

.mobile-sticky-cta a:hover {
    background-color: var(--color-accent-hover);
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
    color: #ffffff !important;
    text-decoration: none !important;
}

@media (min-width: 768px) {
    .mobile-sticky-cta {
        display: none;
    }
}

/* --- THEME TOGGLE STYLES --- */
.theme-toggle-wrapper {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0.5rem;
}

.theme-toggle-btn {
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-colors);
    font-family: inherit;
}

.theme-toggle-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Show the switch-to-dark icon (moon) in light mode, and switch-to-light icon (sun) in dark mode */
.theme-icon-sun, .theme-icon-moon {
    display: none !important;
}

html:not([data-theme="dark"]) .theme-icon-moon {
    display: inline-block !important;
}

[data-theme="dark"] .theme-icon-sun {
    display: inline-block !important;
}

/* 10. RESPONSIVE BREAKPOINTS */
@media (min-width: 640px) {
    .container { max-width: 640px; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:w-auto { width: auto; }
    .sm\:inline { display: inline; }
    .sm\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:gap-3 { gap: 0.75rem; }
    .sm\:h-8 { height: 2rem; }
    .sm\:w-8 { width: 2rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
}

@media (min-width: 768px) {
    .container { max-width: 768px; }
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:p-12 { padding: 3rem; }
    .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
    .md\:text-xl { font-size: 1.25rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:text-6xl { font-size: 3.75rem; }
    .md\:text-7xl { font-size: 4.5rem; }
    .md\:p-12 { padding: 3rem; }
    .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
}

@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
    .container { max-width: 1280px; }
    .xl\:flex-row { flex-direction: row; }
    .xl\:text-left { text-align: left; }
    .xl\:w-auto { width: auto; }
}

@media (min-width: 1536px) {
    .container { max-width: 1536px; }
}

@media (max-width: 767px) {
    footer {
        padding-bottom: 7rem !important; /* Space for sticky CTA and toggle visibility */
    }
}

/* --- FINAL OVERRIDES --- */
a:not(.underline), 
.nav-link, 
.cta-button, 
.accent-text,
.mobile-sticky-cta a {
    text-decoration: none !important;
}

.mobile-sticky-cta a,
.mobile-sticky-cta a:hover,
.mobile-sticky-cta a:visited {
    color: #ffffff !important;
}

#faq h3.text-xl, 
.faq-category-header {
    text-decoration: underline !important;
    text-underline-offset: 6px !important;
    text-decoration-thickness: 2px !important;
}
