/* =========================================
   1. GLOBAL VARIABLES & FONTS
   ========================================= */
:root {
    --primary-color: #D34836;
    --primary-red: #D34836; /* Added for consistency */
    --burgundy: #560319;    /* Added for hover effects */
    --text-dark: #333333;
    --bg-cream: #FFF8F0;    /* Added for dropdown hover */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --footer-bg: #F2F5FA;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    padding-top: 60px; /* To prevent content being hidden under fixed navbar */
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* Linkable Images Fix (Removes border/spacing from linked images) */
a img {
    display: block;
    border: none;
    text-decoration: none;
}

/* =========================================
   2. HEADER (NAVBAR)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
}

.nav-logo img { height: 40px; width: auto; }

/* The Menu Links */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto; 
    margin-right: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover { color: var(--primary-color); }

.nav-link.active {
    color: var(--primary-red);
    font-weight: 700;
}

.arrow-icon { font-size: 0.8rem; margin-left: 5px; color: #333; }

/* --- SEARCH CONTAINER --- */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 1rem;
}

.nav-search-icon {
    font-size: 1.2rem;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
    padding: 5px;
}

.nav-search-icon:hover { color: var(--primary-color); }

#search-box {
    display: none;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    width: 200px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

#search-box:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(211, 72, 54, 0.2);
}

/* HAMBURGER ICON */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

/* =========================================
   3. SERVICES DROPDOWN (2 COLUMNS & CENTERED)
   ========================================= */
.dropdown {
    display: flex;
    align-items: center;
    gap: 5px; 
    position: relative;
}

.arrow-trigger {
    cursor: pointer;
    padding: 10px; /* Make the touch target bigger for fingers */
}

/* This is the box that appears */
.services-grid {
    /* Size & Layout */
    min-width: 600px;
    padding: 25px 30px;
    
    /* Appearance */
    background: white;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-top: 4px solid var(--primary-red);
    
    /* GRID Settings (2 Columns) */
    display: none;  /* HIDDEN by default */
    grid-template-columns: 1fr 1fr; 
    gap: 10px 40px; 
    
    /* CENTERING LOGIC */
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%); /* Moves it back to center */
    z-index: 9999; 
    margin-top: 15px; 
}

/* The Invisible Bridge (Keeps menu open) */
.services-grid::before {
    content: "";
    position: absolute;
    top: -20px; left: 0;
    width: 100%; height: 20px;
    background: transparent;
}

/* Show on Hover */
.dropdown:hover .services-grid {
    display: grid; 
}

/* Link Styles */
.services-grid a {
    display: block;
    padding: 12px 15px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.services-grid a:hover {
    background-color: var(--bg-cream);
    color: var(--primary-red);
    padding-left: 20px;
}

/* Vertical Divider Line */
.services-grid::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 25px; bottom: 25px;
    width: 1px;
    background-color: rgba(0,0,0,0.1);
}


/* =========================================
   4. HERO SLIDER (BUTTON CENTERING FIX)
   ========================================= */
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; 
    background-position: center;
    opacity: 0; 
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.1); 
    animation: zoomEffect 20s infinite alternate;

    /* --- THIS CENTERS THE BUTTON --- */
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-content-wrapper {
    position: relative;
    z-index: 5;
    animation: fadeInUp 1.5s ease-out;
}

/* =========================================
   5. FOOTER (PROFESSIONAL GREY - STANDARD LUXURY)
   ========================================= */
footer {
    background-color: #dbd7d7; /* <--- LIGHT GREY (Standard & Clean) */
    color: #333;
    padding-top: 5rem;
    font-family: 'Lato', sans-serif;
    margin-top: 0;
    /* A subtle border to sharpen the edge */
    border-top: 1px solid #E5E5E5; 
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* 4 Columns layout */
    grid-template-columns: 1.5fr 1fr 1.3fr 1fr; 
    gap: 3rem;
    padding: 0 5% 4rem 5%;
    border-bottom: 1px solid #E0E0E0; /* Grey Divider */
}

/* LOGO FIX */
.footer-logo-white {
    width: 180px; 
    height: auto;
    margin-bottom: 1.5rem;
    filter: none; /* Show original Red logo */
    opacity: 1;
}

.brand-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555; /* Darker grey text for readability */
    max-width: 300px;
}

/* HEADERS - Brand Red */
.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #D34836; 
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* LINKS */
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { 
    margin-bottom: 0.8rem; 
    font-size: 1rem; 
    color: #333; /* Dark Grey Text */
    display: flex; 
    align-items: flex-start;
}

/* Icons are GOLD */
.footer-col ul li i { 
    margin-right: 12px; 
    color: #D4A373; 
    font-size: 1.1rem;
    margin-top: 4px; 
}

/* Links Hover */
.footer-col ul li a { color: #333; text-decoration: none; transition: all 0.3s ease; }
.footer-col ul li a:hover { color: #D34836; font-weight: 700; transform: translateX(5px); }

/* SOCIAL ICONS */
.social-icons-row { display: flex; gap: 15px; }
.sc-icon {
    width: 40px; height: 40px;
    border: 1px solid #D34836; 
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #D34836; text-decoration: none; transition: all 0.3s ease;
}
.sc-icon:hover { background: #D34836; color: white; transform: translateY(-3px); }

/* COPYRIGHT STRIP */
.footer-bottom { 
    padding: 1.5rem 5%; 
    text-align: center; 
    background-color: #EAEAEA; /* Slightly darker grey strip */
}
.copyright-text p { font-size: 0.85rem; color: #666; margin: 5px 0; font-weight: 500; }

/* RESPONSIVE */
@media (max-width: 900px) { .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 600px) { .footer-content { grid-template-columns: 1fr; text-align: center; } .footer-logo-white { margin: 0 auto 1.5rem auto; } .footer-col ul li { justify-content: center; } .social-icons-row { justify-content: center; } }

/* =========================================
   6. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    /* Navbar Adjustments */
    .navbar { padding: 1rem 1.5rem; }

    .hamburger {
        display: block; 
        margin-left: auto;
        margin-right: 1.5rem;
    }

    /* Mobile Menu */
    .nav-menu {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: #fff;
        flex-direction: column; 
        align-items: center;
        gap: 0; margin: 0; padding: 0;
        display: none; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }

    .nav-menu.active { display: flex; }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 1.5rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .search-container { margin-left: 0; margin-top: 0; }
    #search-box { width: 140px; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .logo-col, .social-links { align-items: center; }
    
    /* Services Dropdown Mobile Reset */
    .services-grid {
        position: relative;
        min-width: 100%;
        left: auto;
        transform: none;
        box-shadow: none;
        border-top: none;
        margin-top: 0;
        display: none;
    }
    .services-grid::after { display: none; }
    
    .dropdown:hover .services-grid {
        display: flex;
        flex-direction: column;
    }
}


/* =========================================
   7. STICKY SOCIAL MENU (FIXED BOTTOM-RIGHT)
   ========================================= */
.sticky-social-menu {
    position: fixed !important; 
    bottom: 30px;
    right: 30px;
    z-index: 99999; 
    display: flex;
    flex-direction: column; /* List on Top, Button on Bottom */
    align-items: center;    
    gap: 15px;   
    height: fit-content;  
    pointer-events: none;        
}

/* This makes the actual icons clickable again */
.sticky-social-menu a, 
.sticky-social-menu i,
.sticky-social-menu img { 
    pointer-events: auto; 
}

.social-trigger {
    width: 65px;
    height: 65px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative; 
    z-index: 2; 
}

.sticky-social-menu:hover .social-trigger {
    transform: rotate(360deg);
    background-color: var(--burgundy);
}

.social-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sticky-social-menu:hover .social-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.social-bubble {
    width: 50px;
    height: 50px;
    background-color: white;
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.social-bubble:hover { transform: scale(1.15); color: white; }
.social-bubble.whatsapp:hover { background-color: #25D366; }
.social-bubble.insta:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-bubble.fb:hover { background-color: #1877F2; }
.social-bubble.xhs:hover { background-color: #FF2442; }
.social-bubble.tiktok:hover { background-color: #000; }

.pulse-ring {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    opacity: 0;
    z-index: 1; 
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 768px) {
    .sticky-social-menu { bottom: 20px; right: 20px; }
    .social-trigger { width: 55px; height: 55px; font-size: 1.6rem; }
    .social-bubble { width: 45px; height: 45px; font-size: 1.2rem; }
}

/* =========================================
   MOBILE MENU FIX (FINAL)
   ========================================= */

@media (max-width: 768px) {
    /* 1. DISABLE HOVER OPENING ON MOBILE */
    /* This stops the "First Tap = Hover" problem */
    .dropdown:hover .services-grid {
        display: none; 
    }

    /* 2. ONLY OPEN WHEN CLASS IS ADDED VIA ARROW CLICK */
    .dropdown.show-menu .services-grid {
        display: flex;
        flex-direction: column;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        margin-top: 10px;
        background-color: #f9f9f9;
        box-shadow: none;
    }

    /* 3. ARROW STYLING */
    .dropdown {
        flex-wrap: wrap; /* Allows menu to drop to new line */
        justify-content: center;
    }
    
    .arrow-trigger {
        display: inline-flex;
        padding: 10px 20px; /* Big target for finger */
        border-left: 1px solid #eee; /* Visual separator */
        margin-left: 10px;
    }
}

/* =========================================
   FINAL GLOBAL FIXES (Add to bottom of style.css)
   ========================================= */

/* 1. FIX PURPLE LINKS (Make them dark grey everywhere) */
.nav-menu a,
.nav-link, 
.nav-link:visited, 
.nav-link:active,
.nav-link:focus {
    color: #333 !important; 
    text-decoration: none !important;
    outline: none !important;
}

/* Keep Hover Red */
.nav-menu a:hover,
.nav-link:hover {
    color: #D34836 !important;
}

/* Keep Active Page Red */
.nav-link.active {
    color: #D34836 !important;
    font-weight: 700;
}

/* 2. FIX MOBILE DROPDOWN (Make it open on click) */
@media (max-width: 768px) {
    /* Hide sub-menu by default */
    .dropdown .services-grid,
    .dropdown-content {
        display: none !important; /* Force hide */
        background-color: #f9f9f9;
        padding-left: 20px;
        border-left: 3px solid #D34836;
        position: static; /* Stack naturally */
        box-shadow: none;
        width: 100%;
    }

    /* Show it ONLY when the 'show-menu' class is added by JS */
    .dropdown.show-menu .services-grid,
    .dropdown.show-menu .dropdown-content {
        display: flex !important;
        flex-direction: column;
    }

    /* Rotate arrow when open */
    .dropdown.show-menu .arrow-icon {
        transform: rotate(180deg);
        transition: 0.3s;
    }
}

/* 3. FIX STATS BAR (Stack Vertically on Mobile) */
/* This fixes it on Blog AND Testimonial page */
@media (max-width: 768px) {
    .stats-bar {
        flex-direction: column !important; 
        height: auto !important;
        width: 90% !important;
        padding: 30px 20px !important;
        gap: 20px !important;
    }

    .stat-divider {
        width: 100px !important;
        height: 1px !important;
        background: #eee !important;
        margin: 10px auto !important;
    }
}

/* footer */
@media (max-width: 768px) {
    .brand-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Centers the logo and text */
        text-align: center !important;
        margin-bottom: 30px;
    }

    .brand-desc {
        max-width: 280px; /* Keeps the text in a nice narrow block */
        margin: 0 auto !important; /* Centers the text block itself */
        color: #555555 !important;
        font-size: 0.95rem !important;
    }

    /* FIXING THE LOGO COLOR */
    .footer-logo-white {
        /* This filter turns the white logo into a dark burgundy/black 
           so it's clear on the white background */
        filter: brightness(0) saturate(100%) invert(18%) sepia(50%) saturate(3475%) hue-rotate(331deg) brightness(88%) contrast(100%) !important;
        max-width: 180px !important;
        margin-bottom: 15px !important;
    }
}