/**
 * Westdeutscher Facility Service - Main Styles
 *
 * Additional custom styles that complement Tailwind CSS.
 * Most styling is handled through Tailwind utility classes.
 */

/* ============================================
   Typography
   ============================================ */

body {
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Navigation
   ============================================ */

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Hero Section
   ============================================ */

.split-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
    z-index: 10;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

/* ============================================
   Animations
   ============================================ */

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate-left {
    transform: translateX(-30px);
}

.scroll-animate.animate-right {
    transform: translateX(30px);
}

.scroll-animate.animate-scale {
    transform: scale(0.9);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger Delays */
.scroll-animate.delay-1 { transition-delay: 0.1s; }
.scroll-animate.delay-2 { transition-delay: 0.2s; }
.scroll-animate.delay-3 { transition-delay: 0.3s; }
.scroll-animate.delay-4 { transition-delay: 0.4s; }
.scroll-animate.delay-5 { transition-delay: 0.5s; }

/* Page Loader */
.loader-ring {
    width: 80px;
    height: 80px;
    border: 3px solid #e2e8f0;
    border-top-color: #19545c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.page-loaded #pageLoader {
    opacity: 0;
    pointer-events: none;
}

/* Floating Buttons */
.floating-btn {
    animation: float 3s ease-in-out infinite;
}

.floating-btn:hover {
    animation-play-state: paused;
    transform: scale(1.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Language Switcher */
#langToggleBtn {
    animation: langPulse 3s ease-in-out infinite;
}

#langToggleBtn:hover {
    animation: none;
    transform: scale(1.1);
}

@keyframes langPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 4px 25px rgba(25, 84, 92, 0.3); }
}

/* ============================================
   Service Cards
   ============================================ */

.service-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card.hidden-service {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
}

/* ============================================
   NRW Map
   ============================================ */

.region-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-dot:hover {
    transform-origin: center;
    filter: brightness(1.2);
}

.region-dot.active {
    r: 18;
    filter: brightness(1.3);
}

.region-pulse {
    animation: pulse-ring 2s ease-out infinite;
}

.hq-pulse {
    animation: pulse-ring-hq 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { r: 12; opacity: 0.4; }
    100% { r: 30; opacity: 0; }
}

@keyframes pulse-ring-hq {
    0% { r: 16; opacity: 0.5; }
    100% { r: 40; opacity: 0; }
}

.city-item {
    transition: all 0.2s ease;
}

.city-item:hover {
    transform: translateX(5px);
}

.city-item.active {
    background-color: rgba(25, 84, 92, 0.15) !important;
    border-left: 3px solid #19545c;
}

/* ============================================
   FAQ Accordion
   ============================================ */

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* ============================================
   Forms
   ============================================ */

input:focus,
select:focus,
textarea:focus {
    outline: none;
    ring-color: #19545c;
    border-color: #19545c;
}

/* Touch Targets */
@media (max-width: 1024px) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================
   Smooth Scroll
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   WordPress Core Styles Override
   ============================================ */

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Alignments */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-links a {
    background: #f1f5f9;
    color: #475569;
}

.nav-links a:hover {
    background: #19545c;
    color: white;
}

.nav-links .current {
    background: #19545c;
    color: white;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    header,
    footer,
    .floating-btn,
    #langSwitcher,
    #cookieBanner,
    #pageLoader {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: underline;
    }
}
