/* ==========================================================================
   DECKO FLOOR - ULTRA PREMIUM GLOBAL CSS (Livspace Aesthetic)
   ========================================================================== */

/* ── 1. CSS VARIABLES (THEME TOGGLE) ── */
:root {
    /* ☀️ LIGHT MODE (Default - Livspace Inspired) */
    --primary: #eb595f;        /* Livspace signature red/pink */
    --primary-hover: #d14a4f;
    --secondary: #2c252d;      /* Livspace dark text */
    
    --bg-main: #ffffff;
    --bg-alt: rgba(44, 37, 45, 0.03); /* Subtle alternating section bg */
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    --text-main: #2c252d;
    --text-muted: #757575;
    
    --border-color: rgba(44, 37, 45, 0.1);
    --shadow-sm: 0 2px 4px 0 rgba(65, 48, 62, 0.15);
    --shadow-md: 0 8px 24px 0 rgba(65, 48, 62, 0.12);
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;

    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
    /* 🌙 DARK MODE */
    --primary: #eb595f;        /* Keep primary pop color */
    --primary-hover: #ff6b71;
    --secondary: #ffffff;
    
    --bg-main: #0f1115;        /* Deep charcoal */
    --bg-alt: #16181d;         /* Slightly lighter charcoal */
    --bg-card: #1c1f26;
    --bg-glass: rgba(15, 17, 21, 0.85);
    
    --text-main: #f8f8f8;
    --text-muted: #a0a0a0;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px 0 rgba(0, 0, 0, 0.5);
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── 2. RESET & BASE ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    transition: color 0.4s ease;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── 3. BUTTONS & UI COMPONENTS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(235, 89, 95, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 89, 95, 0.4);
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: var(--bg-alt);
    transform: translateY(-2px);
}

/* ── 4. GLASSMORPHIC HEADER ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
    padding: 1.5rem 0;
}

.header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.header:not(.scrolled) .nav-link {
    color: #ffffff; /* Assuming dark hero image */
}

/* Specific override for pages without hero image (if needed later) */
body:not(.has-hero) .header:not(.scrolled) .nav-link {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.header:not(.scrolled) .theme-toggle {
    color: #ffffff;
}
body:not(.has-hero) .header:not(.scrolled) .theme-toggle {
    color: var(--text-main);
}

.theme-toggle:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

/* ── 5. SECTIONS & LAYOUT ── */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.15rem;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
}

/* ── 6. CARDS (LIVSPACE STYLE) ── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* ── 7. ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── 8. RESPONSIVE ── */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        padding: 1rem 0;
        box-shadow: var(--shadow-sm);
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active {
        display: flex;
    }
    .hide-on-mobile {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block;
    }
    .header:not(.scrolled) .mobile-menu-btn {
        color: #ffffff;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* Global Split Screen Utility */
.split-screen { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.split-img { width: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (max-width: 992px) { .split-screen { grid-template-columns: 1fr; } }

/* Consultation Banner */
@keyframes flip-flop {
    0% { transform: rotate(0deg); }
    45% { transform: rotate(180deg); }
    55% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}
.hourglass-icon {
    display: inline-block;
    animation: flip-flop 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.consultation-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.04) 0%, rgba(234, 179, 8, 0.12) 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid rgba(234, 179, 8, 0.2);
}
.consultation-img-wrapper {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.consultation-avatar {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
    animation: floatAvatar 4s ease-in-out infinite;
}
@keyframes floatAvatar {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}
.consultation-content {
    flex: 1.2;
    padding-right: 1.5rem;
}
.consultation-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}
.consultation-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.consultation-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: rgba(234, 179, 8, 0.15);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary);
}
@media (max-width: 991px) {
    .consultation-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .consultation-content {
        padding-right: 0;
    }
    .consultation-title {
        font-size: 1.8rem;
    }
}

/* Testimonial V2 - Moving Row */
.testi-v2-container {
    overflow: hidden;
    width: 100%;
    padding: 2rem 0;
    position: relative;
}
.testi-v2-container::before, .testi-v2-container::after {
    content:''; position:absolute; top:0; bottom:0; width:100px; z-index:2; pointer-events:none;
}
.testi-v2-container::before { left:0; background: linear-gradient(to right, var(--bg-main), transparent); }
.testi-v2-container::after { right:0; background: linear-gradient(to left, var(--bg-main), transparent); }

.testi-v2-track {
    display: flex;
    gap: 2.5rem;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 2rem;
}
.testi-v2-track::-webkit-scrollbar { height: 6px; }
.testi-v2-track::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.testi-v2-card {
    min-width: 450px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.testi-v2-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.testi-v2-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.testi-v2-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.25rem 0;
}
.testi-v2-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}
.testi-v2-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
    min-height: 4.8rem; /* Forces exactly 3 lines of height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.testi-v2-gallery {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
/* Dark gradient at bottom to ensure dots are always visible */
.testi-v2-gallery::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
    pointer-events: none;
}
.testi-v2-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.testi-v2-img.active {
    opacity: 1;
    z-index: 0;
}
.testi-v2-controls {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    z-index: 2;
}
.testi-v2-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.testi-v2-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}
.testi-v2-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .testi-v2-card { min-width: 320px; }
    .testi-v2-avatar { width: 60px; height: 60px; }
    .testi-v2-gallery { height: 220px; }
    .testi-v2-container::before, .testi-v2-container::after { display: none; }
}

/* ── 9. CONTACT FORM & DARK SECTION ── */
.section-dark {
    background: linear-gradient(135deg, #1c181d 0%, #120e12 100%);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-dark .section-title {
    color: #ffffff !important;
}

.section-dark .section-title span {
    color: var(--primary) !important;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.section-dark label {
    color: rgba(255, 255, 255, 0.6) !important;
}

