/* ==========================================================================
   Üçel Su Arıtma - Precision Design System & Interactive Overrides
   Matches ucel-pure-water-market.lovable.app 1:1
   ========================================================================== */

:root {
    --navy: #0B192C;
    --navy-foreground: #F4F7FB;
    --navy-muted: #8FA0B5;
    --ocean: #004D74;
    --aqua: #008DDA;
    --aqua-soft: #E8F4FB;
    --whatsapp: #25D366;
    --whatsapp-foreground: #FFFFFF;
    --primary: #008DDA;
    --primary-foreground: #FFFFFF;
    --secondary: #E8F4FB;
    --secondary-foreground: #004D74;
    --card: #FFFFFF;
    --card-foreground: #0B192C;
    --popover: #FFFFFF;
    --popover-foreground: #0B192C;
    --muted: #F1F5F9;
    --muted-foreground: #64748B;
    --border: #E2E8F0;
    --input: #E2E8F0;
    --background: #F8FAFC;
    --foreground: #0B192C;

    /* Gradients */
    --gradient-ocean: linear-gradient(135deg, #0A3660 0%, #004D74 100%);
    --gradient-aqua: linear-gradient(135deg, #008DDA 0%, #41B8EA 100%);
    --gradient-hero-overlay: linear-gradient(90deg, rgba(11,25,44,0.92) 0%, rgba(11,25,44,0.70) 45%, rgba(11,25,44,0.06) 100%);
    --gradient-page-head: linear-gradient(110deg, rgba(11,25,44,0.95), rgba(0,77,116,0.8));
    --gradient-soft: linear-gradient(180deg, #F1F5F9 0%, #F8FAFC 100%);

    /* Shadows */
    --shadow-card: 0 1px 3px rgba(11,25,44,0.06), 0 8px 24px -12px rgba(11,25,44,0.14);
    --shadow-lift: 0 20px 45px -15px rgba(11,25,44,0.25);
    --shadow-glow: 0 8px 24px -4px rgba(0,141,218,0.45);
}

/* Base Body Styles */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    position: relative;
    margin: 0;
    padding: 0;
    font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
    color: var(--foreground);
    background-color: var(--background);
}

/* Sticky Header on Scroll (Desktop & Mobile) */
#mainSiteHeader {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mainSiteHeader.is-scrolled {
    box-shadow: 0 4px 25px -4px rgba(11, 25, 44, 0.15);
}

#mainSiteHeader #topAnnouncementBar {
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
    max-height: 40px;
    opacity: 1;
}

#mainSiteHeader.is-scrolled #topAnnouncementBar {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
}

.font-display {
    font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
}

/* Container */
.container-site {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}
@media (min-width: 640px) {
    .container-site {
        padding-inline: 1.5rem;
    }
}

/* ==========================================================================
   Color Utility Fallbacks (Guaranteed to render identically in all browsers)
   ========================================================================== */
.bg-navy { background-color: var(--navy) !important; }
.text-navy { color: var(--navy) !important; }
.text-navy-foreground { color: var(--navy-foreground) !important; }
.text-navy-muted { color: var(--navy-muted) !important; }

.bg-ocean { background: var(--gradient-ocean) !important; }
.text-ocean { color: var(--ocean) !important; }

.bg-aqua { background-color: var(--aqua) !important; }
.text-aqua { color: var(--aqua) !important; }
.bg-aqua-soft { background-color: var(--aqua-soft) !important; }
.bg-aqua-gradient { background: var(--gradient-aqua) !important; }

.bg-whatsapp { background-color: var(--whatsapp) !important; }
.text-whatsapp { color: var(--whatsapp) !important; }
.text-whatsapp-foreground { color: var(--whatsapp-foreground) !important; }

.bg-hero-overlay { background-image: var(--gradient-hero-overlay) !important; }
.bg-page-head { background-image: var(--gradient-page-head) !important; }
.bg-soft { background-color: #F8FAFC !important; }

.shadow-card { box-shadow: var(--shadow-card) !important; }
.shadow-lift { box-shadow: var(--shadow-lift) !important; }
.shadow-glow { box-shadow: var(--shadow-glow) !important; }

/* Custom Heights & Sizes */
.h-13 { height: 3.25rem !important; }
.h-18 { height: 4.5rem !important; }
.size-13 { width: 3.25rem !important; height: 3.25rem !important; }

/* ==========================================================================
   CRITICAL FIX: Slide-in Drawers (Guaranteed Hidden by Default)
   ========================================================================== */
/* Smart Sticky Header Guarantee (Desktop & Mobile) */
#mainSiteHeader {
    position: sticky !important;
    top: 0 !important;
    z-index: 45 !important;
    transition: box-shadow 0.25s ease, background-color 0.25s ease !important;
}
#mainSiteHeader.shadow-md {
    box-shadow: 0 4px 20px -2px rgba(11, 25, 44, 0.12) !important;
}

#quoteDrawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 92vw !important;
    max-width: 28rem !important; /* 448px */
    z-index: 99999 !important;
    background-color: #ffffff !important;
    transform: translateX(100%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s !important;
    box-shadow: -10px 0 35px rgba(11, 25, 44, 0.25) !important;
    border-left: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
}

#quoteDrawer.translate-x-0 {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#quoteDrawerOverlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99998 !important;
    background-color: rgba(11, 25, 44, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s !important;
}

#quoteDrawerOverlay.opacity-100 {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#mobileMenuDrawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 86vw !important;
    max-width: 22rem !important;
    z-index: 99999 !important;
    background-color: #ffffff !important;
    transform: translateX(-100%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s !important;
    box-shadow: 10px 0 35px rgba(11, 25, 44, 0.25) !important;
    border-right: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
}

#mobileMenuDrawer.translate-x-0 {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#mobileMenuOverlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99998 !important;
    background-color: rgba(11, 25, 44, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s !important;
}

#mobileMenuOverlay.opacity-100 {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Transform Utilities */
.translate-x-full { transform: translateX(100%) !important; }
.-translate-x-full { transform: translateX(-100%) !important; }
.translate-x-0 { transform: translateX(0) !important; }
.translate-y-20 { transform: translateY(5rem) !important; }
.translate-y-0 { transform: translateY(0) !important; }
.translate-y-6 { transform: translateY(1.5rem) !important; }
.translate-y-2 { transform: translateY(0.5rem) !important; }

/* ==========================================================================
   Mega Dropdowns on Desktop (Group Hover)
   ========================================================================== */
@media (min-width: 1024px) {
    .group:hover > div[class*="invisible"],
    .group:focus-within > div[class*="invisible"] {
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

/* ==========================================================================
   Hero Ken Burns & Overlay Animations
   ========================================================================== */
@keyframes kenburns {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.animate-ken {
    animation: kenburns 20s ease-in-out infinite alternate;
}

/* ==========================================================================
   Marquee Animation
   ========================================================================== */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Hide scrollbar for category tabs */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   Header Brand Logo (Ultra-Prominent, Centered & Highly Legible)
   ========================================================================== */
.header-main-bar {
    min-height: 106px !important;
}
@media (min-width: 640px) {
    .header-main-bar {
        min-height: 122px !important;
    }
}
@media (min-width: 1024px) {
    .header-main-bar {
        min-height: 138px !important;
    }
}

.header-brand-img {
    height: 94px !important;
    max-height: 94px !important;
    width: auto !important;
    max-width: 320px !important;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(11, 25, 44, 0.09));
    transition: transform 0.25s ease;
}
@media (min-width: 640px) {
    .header-brand-img {
        height: 110px !important;
        max-height: 110px !important;
        max-width: 380px !important;
    }
}
@media (min-width: 1024px) {
    .header-brand-img {
        height: 126px !important;
        max-height: 126px !important;
        max-width: 440px !important;
    }
}
.header-brand-img:hover {
    transform: scale(1.03);
}

/* ==========================================================================
   Ultra-Premium Floating Contact Dock (Phone & WhatsApp - Perfectly Aligned)
   ========================================================================== */
.floating-contact-dock {
    position: fixed;
    right: 16px;
    bottom: 22px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
}

@media (min-width: 640px) {
    .floating-contact-dock {
        right: 24px;
        bottom: 26px;
        gap: 16px;
    }
}

.floating-contact-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-contact-item:hover {
    transform: translateY(-3px) scale(1.03);
}

.floating-contact-pill {
    background: rgba(11, 25, 44, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: none;
    letter-spacing: 0.01em;
}

@media (min-width: 768px) {
    .floating-contact-pill {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

.floating-contact-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 2.5px solid #ffffff;
}

@media (min-width: 640px) {
    .floating-contact-icon {
        width: 58px;
        height: 58px;
        font-size: 26px;
    }
}

/* Phone Call Floating Button */
.floating-call-btn .floating-contact-icon {
    background: linear-gradient(135deg, #004D74 0%, #008DDA 100%);
    box-shadow: 0 6px 20px -2px rgba(0, 141, 218, 0.5);
}

.floating-call-btn:hover .floating-contact-icon {
    box-shadow: 0 10px 28px rgba(0, 141, 218, 0.7);
    filter: brightness(1.1);
}

.floating-call-btn .floating-contact-icon i {
    animation: phoneRinging 4.5s infinite ease-in-out;
}

@keyframes phoneRinging {
    0%, 75%, 100% { transform: rotate(0); }
    77%, 83%, 89% { transform: rotate(-14deg); }
    80%, 86%, 92% { transform: rotate(14deg); }
}

/* WhatsApp Floating Button */
.floating-wa-btn .floating-contact-icon {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    box-shadow: 0 6px 22px -2px rgba(37, 211, 102, 0.55);
    animation: waPulse 2.8s infinite ease-in-out;
}

.floating-wa-btn:hover .floating-contact-icon {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.75);
    filter: brightness(1.08);
}

@keyframes waPulse {
    0%, 100% {
        box-shadow: 0 6px 22px -2px rgba(37, 211, 102, 0.55);
    }
    50% {
        box-shadow: 0 8px 30px 4px rgba(37, 211, 102, 0.75);
    }
}

/* Live Online Status Dot */
.floating-online-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
}
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Regional SEO & Service Content Styling (.seo-location-content)
   ========================================================================== */
.seo-location-content {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #334155;
}

.seo-location-content .lead-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #0f172a;
    margin-bottom: 24px;
    font-weight: 500;
}

.seo-location-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0B192C;
    margin-top: 36px;
    margin-bottom: 14px;
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-location-content h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #0284c7;
    border-radius: 4px;
}

.seo-location-content p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 18px;
}

.seo-location-content ul {
    list-style: none;
    padding-left: 0;
    margin: 16px 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seo-location-content ul li {
    position: relative;
    padding-left: 24px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #334155;
}

.seo-location-content ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    top: -1px;
    color: #0284c7;
    font-size: 1.3rem;
    line-height: 1;
}

/* Feature Box in Regional & Service Pages */
.seo-feature-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 20px;
    padding: 24px 28px;
    margin: 32px 0;
    box-shadow: 0 4px 20px -2px rgba(2, 132, 199, 0.08);
}

.seo-feature-box h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0369a1;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', sans-serif;
}

.seo-feature-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seo-feature-box ul li {
    position: relative;
    padding-left: 26px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #1e293b;
}

.seo-feature-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    color: #0284c7;
    font-weight: 900;
    font-size: 0.95rem;
}

/* Call To Action Box in Regional & Service Pages */
.seo-cta-box {
    background: linear-gradient(135deg, #0B192C 0%, #004D74 100%);
    border-radius: 24px;
    padding: 30px 32px;
    margin-top: 36px;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(11, 25, 44, 0.25);
}

.seo-cta-box h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Sora', sans-serif;
}

.seo-cta-box p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 22px;
    line-height: 1.6;
}

.seo-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-whatsapp-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #25D366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: all 0.2s;
}

.btn-whatsapp-hero:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #0284c7;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s;
}

.btn-primary-hero:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}
