/* ===== BASE ===== */
html { scroll-behavior: smooth; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
body { -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100vw; }

/* Touch targets – minimum 44px (scoped to avoid breaking small UI elements) */
a:not(.gallery-thumb):not(#footer-links a),
button:not(.theme-toggle):not(.gallery-nav):not(.gallery-close):not(.carousel-dot) {
    min-height: 44px;
}
nav a, nav button { display: inline-flex; align-items: center; }

/* ===== SKIP LINK + FOCUS ===== */
.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 10000;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.dark a:focus-visible,
.dark button:focus-visible,
.dark input:focus-visible,
.dark textarea:focus-visible {
    outline-color: #60a5fa;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    z-index: 9999;
    width: 0%;
    transition: width 0.05s linear;
}

/* ===== ANIMATIONS — Base ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children — applied by JS via style attr */
.stagger-children > * {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HERO ===== */
.hero-gradient-overlay {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.75) 0%,
        rgba(30, 41, 59, 0.55) 50%,
        rgba(15, 23, 42, 0.7) 100%
    );
}

/* Gradient text for hero heading */
.hero-text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero window card showcase */
.hero-showcase {
    position: relative;
    width: 100%;
    max-width: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-window-frame {
    width: 100%;
    animation: windowFloat 6s ease-in-out infinite;
}
.hero-window-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}
@keyframes windowFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Catalogs toggle */
.catalogs-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.25s ease;
}
.catalogs-toggle-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.1);
}
.catalogs-chevron {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}
.catalogs-toggle-btn[aria-expanded="true"] .catalogs-chevron {
    transform: rotate(180deg);
}
.catalogs-panel {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}
.catalogs-panel.open {
    max-height: 400px;
    opacity: 1;
}
.catalog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #f8fafc;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    transition: all 0.25s ease;
}
.catalog-card:hover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}
.catalog-icon {
    font-size: 1.75rem;
    color: #dc2626;
}
.catalog-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    line-height: 1.3;
}
.catalog-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ===== PDF VIEWER MODAL ===== */
.pdf-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(6px);
}
.pdf-overlay.active {
    opacity: 1;
    visibility: visible;
}
.pdf-modal {
    width: 94vw;
    height: 92vh;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}
.pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
    flex-shrink: 0;
}
.pdf-title {
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pdf-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.pdf-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    text-decoration: none;
}
.pdf-action-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
.pdf-body {
    flex: 1;
    min-height: 0;
}
.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

/* PDF Mobile Fallback */
.pdf-mobile-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px 24px;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.pdf-mobile-fallback.active {
    display: flex;
}
.pdf-mobile-icon {
    font-size: 4rem;
    color: #dc2626;
    margin-bottom: 20px;
}
.pdf-mobile-title {
    color: #f1f5f9;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.pdf-mobile-hint {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 32px;
    max-width: 280px;
    line-height: 1.5;
}
.pdf-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}
.pdf-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pdf-mobile-btn-primary {
    background: #2563eb;
    color: #ffffff;
}
.pdf-mobile-btn-primary:hover {
    background: #1d4ed8;
}
.pdf-mobile-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid #334155;
}
.pdf-mobile-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Scroll hint animation */
.hero-scroll-hint {
    animation: fadeInDelayed 1s ease forwards;
    animation-delay: 2s;
    opacity: 0;
}
@keyframes fadeInDelayed {
    to { opacity: 1; }
}



/* Ken Burns slow zoom on hero bg */
@keyframes kenBurns {
    0%   { transform: scale(1)    translate(0, 0); }
    50%  { transform: scale(1.08) translate(-1%, -1%); }
    100% { transform: scale(1)    translate(0, 0); }
}
.hero-bg-animate {
    animation: kenBurns 25s ease-in-out infinite;
}

/* Hero staggered entrance */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-stagger > * {
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-stagger > *:nth-child(1) { animation-delay: 0.15s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.35s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.55s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.75s; }
.hero-stagger > *:nth-child(5) { animation-delay: 0.95s; }
.hero-stagger > *:nth-child(6) { animation-delay: 1.1s; }



/* ===== SECTION HEADING ACCENT LINE ===== */
.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    margin: 12px auto 0;
    border-radius: 2px;
    transition: width 0.4s ease;
}
.section-heading[style*="text-align:left"]::after,
.section-heading[style*="text-align: left"]::after {
    margin-left: 0;
    margin-right: auto;
}
.section-heading:hover::after {
    width: 100px;
}

/* ===== SECTION WAVE DIVIDERS ===== */
.wave-divider {
    position: relative;
    overflow: hidden;
}
.wave-divider::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f9fafb' d='M0,30 C360,60 720,0 1080,30 C1260,45 1350,50 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
}
.wave-divider-dark::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%231e293b' d='M0,30 C360,60 720,0 1080,30 C1260,45 1350,50 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E");
}
.wave-divider-white::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f9fafb' d='M0,30 C360,60 720,0 1080,30 C1260,45 1350,50 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E");
}
.dark .wave-divider::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23172033' d='M0,30 C360,60 720,0 1080,30 C1260,45 1350,50 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E");
}
.dark .wave-divider-dark::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%230f172a' d='M0,30 C360,60 720,0 1080,30 C1260,45 1350,50 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E");
}
.dark .wave-divider-white::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23172033' d='M0,30 C360,60 720,0 1080,30 C1260,45 1350,50 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E");
}

/* ===== NAV LINK UNDERLINE ===== */
#desktop-nav a {
    position: relative;
    padding-bottom: 4px;
}
#desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}
#desktop-nav a:hover::after,
#desktop-nav a.nav-active::after {
    width: 100%;
    left: 0;
}
#desktop-nav a.nav-active {
    color: #2563eb;
}
#desktop-nav a.nav-active:hover {
    color: #1d4ed8;
}
.dark #desktop-nav a.nav-active {
    color: #60a5fa;
}
.dark #desktop-nav a.nav-active:hover {
    color: #93c5fd;
}

/* ===== BUTTON SHIMMER ===== */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}
.btn-shimmer:hover::after {
    left: 125%;
}

/* ===== WHATSAPP PULSE ===== */
@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70%  { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.wa-pulse {
    animation: wa-pulse 2s ease-in-out infinite;
}

/* ===== DARK THEME ===== */
.dark body,
.dark { color-scheme: dark; }

.dark body {
    background-color: #0f172a;
    color: #e2e8f0;
}
.dark .bg-white { background-color: #1e293b; }
.dark .bg-gray-50 { background-color: #172033; }
.dark .bg-gray-100 { background-color: #334155; }
.dark .text-primary { color: #f1f5f9; }
.dark .text-secondary { color: #94a3b8; }
.dark .text-gray-500 { color: #94a3b8; }
.dark .text-gray-600 { color: #94a3b8; }
.dark .border-gray-100 { border-color: #334155; }
.dark .border-gray-300 { border-color: #475569; }

/* Navbar dark */
.dark .bg-white\/95 { background-color: rgba(15, 23, 42, 0.95); }
.dark #navbar { border-bottom: 1px solid #1e293b; }
.dark #navbar a { color: #e2e8f0; }
.dark #navbar a:hover { color: #60a5fa; }

/* Cards, shadows */
.dark .shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.dark .shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.4); }
.dark .shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,0.4); }
.dark .shadow-xl { box-shadow: 0 20px 25px rgba(0,0,0,0.4); }

/* Product cards */
.dark .product-card { background-color: #1e293b; border: 1px solid #334155; }
.dark .product-card:hover { border-color: #475569; }
.dark .product-card .product-title { color: #f1f5f9; }
.dark .product-card .product-overlay { background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%); }

/* USP cards */
.dark .usp-card .bg-blue-50 { background-color: #1e3a5f; }

/* Table */
.dark table thead { background-color: #0f172a; }
.dark .price-row .bg-blue-50 { background-color: rgba(37, 99, 235, 0.1); }
.dark .hover\:bg-gray-50:hover { background-color: #334155; }

/* Form */
.dark .bg-white.text-primary input,
.dark .bg-white.text-primary textarea {
    background-color: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}

/* Footer */
.dark .bg-slate-900 { background-color: #020617; }
.dark .border-slate-800 { border-color: #1e293b; }

/* Catalogs – dark theme */
.dark .catalogs-toggle-btn {
    border-color: #334155;
    color: #e2e8f0;
}
.dark .catalogs-toggle-btn:hover {
    border-color: #60a5fa;
    color: #60a5fa;
    box-shadow: 0 2px 12px rgba(96, 165, 250, 0.15);
}
.dark .catalog-card {
    background: #1e293b;
    border-color: #334155;
}
.dark .catalog-card:hover {
    background: #1e3a5f;
    border-color: #60a5fa;
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.12);
}
.dark .catalog-title {
    color: #f1f5f9;
}
.dark .catalog-subtitle {
    color: #64748b;
}

/* Primary sections keep their dark bg */
.dark .bg-primary { background-color: #0f172a; }

/* ===== THEME TOGGLE (navbar) ===== */
.theme-toggle {
    width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(148, 163, 184, 0.08);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.3);
}
.dark .theme-toggle {
    border-color: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
}
.dark .theme-toggle:hover {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.3);
}

/* Mobile controls divider */
.mobile-controls-divider {
    width: 1px;
    height: 24px;
    background: rgba(148, 163, 184, 0.25);
    flex-shrink: 0;
}
.dark .mobile-controls-divider {
    background: rgba(148, 163, 184, 0.15);
}

/* ===== PRODUCT GRID ===== */
.products-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}
.products-layout .product-main {
    grid-column: 1 / -1;
}
@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
}

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card:hover img {
    /* no transform — carousel uses opacity transitions */
}
.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(30, 41, 59, 0.95) 0%, rgba(30, 41, 59, 0.4) 50%, transparent 100%);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-overlay {
    transform: translateY(0);
}
.product-overlay .product-desc {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}
.product-card:hover .product-overlay .product-desc {
    opacity: 1;
    transform: translateY(0);
}
.product-main { height: 420px; }
.product-small { height: 280px; }
@media (max-width: 768px) {
    .product-main { height: 320px; }
    .product-small { height: 240px; }
}

/* ===== USP CARDS ===== */
.usp-card {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.usp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}
.usp-card .usp-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.usp-card:hover .usp-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* ===== PROCESS STEPS ===== */
.process-step-circle {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
.process-step-circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.3);
    transition: all 0.4s ease;
    opacity: 0;
}
.process-step:hover .process-step-circle {
    transform: scale(1.1);
}
.process-step:hover .process-step-circle::after {
    opacity: 1;
    inset: -8px;
}

/* ===== TRUST STATS COUNTER ===== */
.trust-stat {
    transition: all 0.3s ease;
}
.trust-stat:hover {
    transform: scale(1.05);
}
.trust-stat .stat-value {
    background: linear-gradient(135deg, #2563eb, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== CERTIFICATE BADGES ===== */
.cert-badge {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.cert-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* ===== FORM INPUTS ===== */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-input:invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-status {
    border-radius: 6px;
    padding: 10px 12px;
    line-height: 1.4;
}
.form-status.is-info {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}
.form-status.is-error {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}
.dark .form-status.is-info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}
.dark .form-status.is-error {
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
}

/* ===== PRICE TABLE ROWS ===== */
.price-row {
    transition: all 0.3s ease;
}
.price-row:hover {
    background-color: rgba(37, 99, 235, 0.04);
}
.dark .price-row:hover {
    background-color: rgba(37, 99, 235, 0.08);
}

/* ===== FOOTER LINKS ===== */
#footer-links a {
    position: relative;
    display: inline-block;
    min-height: auto;
}
#footer-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #94a3b8;
    transition: width 0.3s ease;
}
#footer-links a:hover::after {
    width: 100%;
}

/* ===== MOBILE MENU FULLSCREEN OVERLAY ===== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-overlay.menu-open {
    opacity: 1;
    visibility: visible;
}
.mobile-overlay-content {
    width: 100%;
    max-width: 320px;
    padding: 0 1.5rem;
    text-align: center;
}
.mobile-overlay ul a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s ease;
}
.mobile-overlay ul a:hover {
    color: #2563eb;
}
.mobile-overlay ul li:last-child a {
    border-bottom: none;
}
.dark .mobile-overlay {
    background: rgba(15, 23, 42, 0.98);
}
.dark .mobile-overlay ul a {
    color: #e2e8f0;
    border-color: #1e293b;
}
.dark .mobile-overlay ul a:hover {
    color: #60a5fa;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-bg-animate { animation: none; }
    .scroll-progress { transition: none; }
}

/* ===== PRODUCT CAROUSEL ===== */
.carousel-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    will-change: opacity;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-img.active {
    opacity: 1;
    z-index: 2;
}
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
    padding: 4px 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
}
.product-gallery-hint {
    opacity: 0;
    transition: opacity 0.3s ease 0.15s;
}
.product-card:hover .product-gallery-hint {
    opacity: 1;
}

/* ===== GALLERY OVERLAY ===== */
.gallery-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
}
.gallery-overlay.active {
    opacity: 1;
    visibility: visible;
}
.gallery-modal {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}
.gallery-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.gallery-close:hover {
    background: rgba(255,255,255,0.25);
}
.gallery-title-bar {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-top: 8px;
    text-align: center;
}
.gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc(100vh - 180px);
    position: relative;
    min-height: 0;
}
.gallery-image {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    transition: opacity 0.25s ease;
    user-select: none;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 5;
}
.gallery-nav:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.1);
}
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-counter {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 8px 0;
    text-align: center;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 4px;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}
.gallery-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, outline 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    outline: 2px solid transparent;
}
.gallery-thumb:hover {
    opacity: 0.8;
}
.gallery-thumb.active {
    opacity: 1;
    outline: 2px solid #2563eb;
    transform: scale(1.05);
}

/* ===== HERO RESPONSIVE ===== */
@media (max-width: 1023px) {
    .hero-section {
        text-align: center;
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    .hero-section .hero-stagger {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-section .flex.flex-wrap {
        justify-content: center;
    }
    .hero-scroll-hint {
        display: none;
    }
}

/* ===== MOBILE (<640px) ===== */
@media (max-width: 640px) {
    /* Navbar compact */
    #navbar .text-2xl { font-size: 1.15rem; }
    #navbar .flex.items-center svg:first-child { width: 32px; height: 32px; }

    /* Hero */
    .hero-section {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.15;
        margin-bottom: 1rem;
    }
    .hero-section h1 .text-3xl {
        font-size: 1.35rem;
    }
    .hero-section .text-lg,
    .hero-section .text-xl {
        font-size: 0.95rem;
    }
    .hero-section .mb-10 { margin-bottom: 1.5rem; }
    .hero-section .mb-8 { margin-bottom: 1.25rem; }
    .hero-section .gap-6 { gap: 0.75rem; }

    /* Hero buttons */
    .hero-section .btn-shimmer {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Sections: tighter paddings */
    .py-24 { padding-top: 3rem; padding-bottom: 3rem; }
    .mb-16 { margin-bottom: 2rem; }
    .mb-12 { margin-bottom: 2rem; }

    /* Section headings */
    .section-heading {
        font-size: 1.5rem;
    }

    /* Price table — card view for mobile */
    #preise table thead { display: none; }
    #preise #price-table-body tr {
        display: block;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
    }
    #preise #price-table-body td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.35rem 0;
        text-align: right;
        border: none;
        font-size: 0.85rem;
    }
    #preise #price-table-body td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        margin-right: 1rem;
        color: #1e293b;
        font-size: 0.8rem;
    }
    #preise #price-table-body td.bg-blue-50 { background: transparent; }
    .dark #preise #price-table-body tr {
        border-color: #334155;
        background: #1e293b;
    }
    .dark #preise #price-table-body td::before {
        color: #e2e8f0;
    }

    /* Contact section */
    .space-y-6 > * + * { margin-top: 0.75rem; }
    #kontakt .p-8 { padding: 1.25rem; }
    #kontakt .text-3xl { font-size: 1.5rem; }
    #kontakt .gap-12 { gap: 2rem; }

    /* Contact cards — address text wrap */
    #kontakt .bg-slate-800 .text-sm {
        overflow-wrap: anywhere;
    }

    /* Form inputs */
    .form-input {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }

    /* Footer */
    footer .grid { gap: 1.5rem; }
    footer .text-xl { font-size: 1rem; }

    /* Catalogs */
    .catalogs-toggle-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    .catalog-card {
        padding: 16px 12px;
    }

    /* PDF Viewer */
    .pdf-modal {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    .pdf-header {
        padding: 10px 14px;
    }
    .pdf-title {
        font-size: 0.82rem;
    }

    /* Gallery */
    .gallery-nav { width: 36px; height: 36px; min-height: 36px; font-size: 14px; }
    .gallery-prev { left: 4px; }
    .gallery-next { right: 4px; }
    .gallery-image { max-width: 96%; }
    .gallery-thumb { width: 48px; height: 36px; }
    .carousel-dots { bottom: 6px; gap: 4px; }
    .carousel-dot { width: 6px; height: 6px; }

    /* Trust stats */
    #trust-stats { gap: 0.75rem; }
    .trust-stat { padding: 0.75rem; }
    .trust-stat .stat-value { font-size: 1.5rem; }
}

/* ===== SMALL MOBILE (<380px) ===== */
@media (max-width: 380px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    .hero-section h1 .text-3xl {
        font-size: 1.15rem;
    }
    #kontakt .p-8 { padding: 1rem; }
}
