html { color-scheme: light; }
html.dark { color-scheme: dark; }

body {
    transition: background-color 0.4s ease, color 0.4s ease;
}
body,
.font-sans {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
}

/* Light theme is default. Beat Tailwind `dark:*` utilities that still follow OS color-scheme. */
html.light body,
html:not(.dark) body {
    color: #0f172a !important;
    background-color: #f8fafc !important;
}
html.dark body {
    color: #f4f4f5 !important;
    background-color: #09090b !important;
}

.font-heading {
    font-family: Manrope, Inter, ui-sans-serif, sans-serif !important;
}
html.light h1, html.light h2, html.light h3, html.light h4, html.light h5, html.light h6,
html:not(.dark) h1, html:not(.dark) h2, html:not(.dark) h3,
html:not(.dark) h4, html:not(.dark) h5, html:not(.dark) h6 {
    color: #0f172a !important;
}
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
    color: #ffffff !important;
}

#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}
.dark .glass-panel {
    background: rgba(18, 18, 22, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
.dark ::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.dark ::-webkit-scrollbar-thumb { background: #27272a; }

.custom-logo-link {
    display: flex;
    align-items: center;
    z-index: 10;
    gap: 0.5rem;
}
.custom-logo-link img,
.custom-logo {
    height: 36px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.polet-nav { gap: 2rem; }
.polet-nav a { white-space: nowrap; }
.polet-nav-mobile a { display: block; padding: 0.35rem 0; }

#contact-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
#contact-modal.is-open #modal-card {
    transform: scale(1);
}

.admin-bar header.fixed { top: 32px; }
@media (max-width: 782px) {
    .admin-bar header.fixed { top: 46px; }
}

.polet-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.35rem;
    max-width: 56rem;
    margin: 0 auto;
}
.polet-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(148, 163, 184, 0.7);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.polet-legal a:hover {
    color: #4f46e5;
    text-decoration-color: #4f46e5;
}
html.dark .polet-legal a {
    text-decoration-color: rgba(113, 113, 122, 0.8);
}
html.dark .polet-legal a:hover {
    color: #a5b4fc;
    text-decoration-color: #a5b4fc;
}

#polet-lightbox.is-open { display: flex; }

.polet-reviews-viewport { overflow: hidden; width: 100%; }
.polet-reviews-track {
    display: flex;
    width: 100%;
    transition: transform 0.45s ease;
}
.polet-review-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
}
.polet-reviews-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}
.polet-reviews-prev,
.polet-reviews-next {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}
html.dark .polet-reviews-prev,
html.dark .polet-reviews-next {
    border-color: rgba(63, 63, 70, 0.9);
    color: #fff;
}
.polet-reviews-dots { display: flex; gap: 8px; }
.polet-reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
}
html.dark .polet-reviews-dot { background: #3f3f46; }
.polet-reviews-dot.is-active { background: #4f46e5; width: 22px; }
