/* ==========================================================================
   Seven All Renovation Service (SESA) - Luxury Architectural Design System
   Matches Logo: Emerald Forest Green (#0F5132), Warm Timber Gold (#D97706)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-primary: #0F5132;
    --brand-primary-dark: #0A3622;
    --brand-primary-light: #15803D;
    --brand-accent: #D97706;
    --brand-accent-hover: #B45309;
    --brand-emerald: #10B981;
    --brand-dark: #0F172A;
    --brand-slate: #334155;
    --brand-muted: #64748B;
    --brand-light: #F8FAFC;
    --brand-border: #E2E8F0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--brand-dark);
    background-color: #FAFAF9;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent long unbroken text, URLs and email strings from forcing mobile overflow */
p, span, a, h1, h2, h3, h4, h5, h6, strong, em, div {
    overflow-wrap: break-word;
}

/* Media containers must never exceed viewport width */
img, svg, iframe, video {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
}

/* Glassmorphism Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 81, 50, 0.08);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Luxury Gradient Backgrounds */
.bg-gradient-sesa {
    background: linear-gradient(135deg, #0A3622 0%, #0F5132 50%, #166534 100%);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.text-gradient-sesa {
    background: linear-gradient(135deg, #0F5132 0%, #16A34A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating WhatsApp Pulse */
.whatsapp-pulse-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-pulse-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Custom Interactive Cards */
.service-card {
    transition: all 0.35s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -10px rgba(15, 81, 50, 0.12);
    border-color: rgba(15, 81, 50, 0.25);
}

.service-card:hover .service-icon-box {
    background-color: #0F5132;
    color: #ffffff;
    transform: scale(1.08) rotate(3deg);
}

.service-icon-box {
    transition: all 0.3s ease;
}

/* Before & After Interactive Slider */
.ba-container {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    user-select: none;
}

.ba-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.ba-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
    cursor: ew-resize;
    transform: translateX(-50%);
}

.ba-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: #0F5132;
    color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* Badge styling */
.badge-sesa {
    background-color: rgba(15, 81, 50, 0.1);
    color: #0F5132;
    border: 1px solid rgba(15, 81, 50, 0.2);
}

.badge-gold {
    background-color: rgba(217, 119, 6, 0.1);
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.25);
}

/* Luxury button styling */
.btn-primary-sesa {
    background-color: #0F5132;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 81, 50, 0.2);
}

.btn-primary-sesa:hover {
    background-color: #0A3622;
    box-shadow: 0 8px 25px rgba(15, 81, 50, 0.35);
    transform: translateY(-2px);
}

.btn-accent-sesa {
    background-color: #25D366;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-accent-sesa:hover {
    background-color: #20BA56;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0F5132;
}

/* Hero Badge Glow */
.hero-glow-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px -15px rgba(15, 81, 50, 0.15);
}

/* Mobile Quick Navigation Bar & Viewport Protections */
@media (max-width: 768px) {
    /* Prevent AOS horizontal translation from blowing out viewport */
    [data-aos="fade-left"],
    [data-aos="fade-right"],
    [data-aos="zoom-in-left"],
    [data-aos="zoom-in-right"] {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }

    .mobile-quick-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 990;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border-top: 1px solid #E2E8F0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    }
    .whatsapp-pulse-btn {
        bottom: 78px;
        right: 20px;
        width: 54px;
        height: 54px;
        font-size: 26px;
    }
}
