/* Theme Name: Bask Bespoke Bathrooms Luxury
Description: A premium, smooth-scrolling theme for luxury bathroom design.
*/

:root {
    --primary: #40010D;    /* Deep Claret */
    --secondary: #730220;  /* Rich Burgundy */
    --accent: #D99771;     /* Warm Copper/Sand */
    --deep-red: #A62C21;   /* Burnished Red */
    --black: #0D0000;      /* Midnight Black */
    --text-light: #f8f9fa;
    --text-muted: rgba(255, 255, 255, 0.6);
}

/* --- 1. BASE SOPHISTICATION --- */
body {
    font-family: 'Montserrat', sans-serif; 
    font-weight: 300;
    line-height: 1.8;
    background-color: var(--black);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

::selection {
    background: var(--primary);
    color: var(--accent);
}

/* --- 2. LOFT LOADER --- */
#loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    background-color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-logo {
    width: 100px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

.loader-finished {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- 3. ARCHITECTURAL NAVIGATION --- */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.5s ease-in-out;
    background: transparent;
}

.navbar.navbar-shrink {
    padding: 0.8rem 0;
    background-color: rgba(13, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(217, 151, 113, 0.1);
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #fff !important;
}

@media (max-width: 991.98px) {
    /* ... (Keep your previous mobile nav rules) ... */

    /* Force the Dropdown Container to center its children */
    .dropdown-menu {
        text-align: center !important;
        background: rgba(255, 255, 255, 0.03) !important; /* Extremely subtle tint to group them */
        padding: 10px 0 !important;
        margin-top: 5px !important;
    }

    /* Target the links inside the mobile dropdown */
    .dropdown-item {
        color: #ffffff !important; /* Pure White */
        font-family: 'Montserrat', sans-serif !important;
        font-size: 1.1rem !important;
        font-weight: 300 !important;
        padding: 12px 0 !important;
        display: block !important;
        width: 100% !important;
        letter-spacing: 1px;
        opacity: 0.9;
        border: none !important; /* Remove any desktop lines */
    }

    .dropdown-item:hover, 
    .dropdown-item:active {
        background: transparent !important;
        color: var(--accent) !important; /* Copper highlight on tap */
        opacity: 1;
    }

    /* Optional: A very thin divider between main nav items for clarity */
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(217, 151, 113, 0.1);
    }
}

/* Hamburger Animation */
.navbar-toggler { border: none !important; outline: none !important; padding: 10px; }
.hamburger-icon { width: 30px; height: 20px; position: relative; }
.hamburger-icon span {
    display: block; position: absolute; height: 2px; width: 100%;
    background: #ffffff; border-radius: 9px; transition: .25s ease-in-out;
}
.hamburger-icon span:nth-child(1) { top: 0px; }
.hamburger-icon span:nth-child(2) { top: 10px; }
.hamburger-icon span:nth-child(3) { top: 20px; }

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(1) { top: 10px; transform: rotate(135deg); }
.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(2) { opacity: 0; left: -60px; }
.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

/* Desktop Mega Menu */
@media (min-width: 992px) {
    .nav-item.dropdown { position: static !important; }
    .dropdown-menu {
        width: 100vw !important; left: 0 !important; right: 0 !important;
        background: rgba(13, 0, 0, 0.98) !important;
        backdrop-filter: blur(15px);
        border: none !important;
        border-bottom: 1px solid rgba(217, 151, 113, 0.2) !important;
        padding: 40px 0 !important;
        display: block !important;
        opacity: 0; visibility: hidden; pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
    .dropdown-menu .container-links { display: flex; justify-content: center; gap: 50px; }
    .dropdown-item { 
        font-family: 'Playfair Display', serif; font-size: 1.4rem !important; 
        color: #fff !important; background: transparent !important; padding: 0 !important;
    }
    .dropdown-item:hover { color: var(--accent) !important; padding-left: 10px; }
}

/* Mobile Nav Tighten */
@media (max-width: 991.98px) {
    .navbar-collapse { background: var(--black); padding: 2rem 0; text-align: center; }
    .nav-item { margin-bottom: 15px; }
    .nav-link { font-size: 1.3rem !important; }
    .dropdown-menu { 
        position: relative !important; width: 100% !important; display: none !important; 
        background: transparent !important; opacity: 1 !important; visibility: visible !important;
    }
    .dropdown-menu.show { display: block !important; }
    .dropdown-item { font-size: 1rem !important; opacity: 0.7; }
}

/* --- 4. PAGE TEMPLATES (Light/Dark Logic) --- */
.content-light { background-color: #fff; color: #1a1a1a !important; }
.content-light p { color: #333; font-weight: 400; }
.content-light h2, .content-light h3 { color: var(--secondary); }

/* Logo & Nav Switch for Light Page */
.page-template-page-light #mainNav:not(.navbar-shrink) .nav-link,
.page-template-page-light #mainNav:not(.navbar-shrink) .navbar-brand { color: var(--black) !important; }

.page-template-page-light .navbar-brand img {
    filter: brightness(0); /* Black Logo */
    transition: filter 0.4s ease;
}
.page-template-page-light #mainNav.navbar-shrink .navbar-brand img { filter: brightness(1); }
.page-template-page-light #mainNav:not(.navbar-shrink) .hamburger-icon span { background: var(--black); }

/* --- 5. CONTENT & GRID STYLING --- */
.masthead {
    height: 100vh; min-height: 700px;
    background: linear-gradient(to bottom, rgba(13,0,0,0.2) 0%, var(--black) 100%), 
                url('https://fire.lundie.media/wp-content/themes/bask/images/RD5.jpg');
    background-size: cover; background-position: center;
    display: flex; align-items: center;
}

.gallery-img {
    height: 350px; width: 100%; object-fit: cover;
    filter: brightness(0.8);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery-img:hover { filter: brightness(1); transform: scale(1.03); }

/* Animated Links */
.content-body a {
    color: var(--accent); text-decoration: none; position: relative;
    display: inline-block; transition: color 0.4s ease; padding: 0 2px;
}
.content-body a::after {
    content: ''; position: absolute; width: 100%; height: 1px;
    bottom: 0; left: 0; background-color: var(--deep-red);
    transform: scaleX(0.3); transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}
.content-body a:hover { color: #fff; }
.content-body a:hover::after { transform: scaleX(1); transform-origin: bottom left; height: 100%; z-index: -1; opacity: 0.8; }

/* --- 6. FOOTER --- */
.footer-main {
    background-color: var(--black);
    padding: 100px 0 60px;
    border-top: 1px solid rgba(115, 2, 32, 0.2);
}
.footer-logo { width: 70px; opacity: 0.9; }
.footer-heading {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; color: var(--accent); margin-bottom: 1.5rem;
}
.footer-nav a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.footer-nav a:hover { color: var(--accent); padding-left: 5px; }

/* Scroll Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: 1.2s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Utilities */
.font-avenir { font-family: 'Montserrat', sans-serif !important; font-weight: 300; letter-spacing: 1px; }
.text-white-85 { color: rgba(255,255,255,0.85); }

/* 1. FRONT PAGE H3 REFINEMENT */
/* This ensures H3s (like 'The Sanctuary') keep their Copper/Sand color */
h3, .alternating-content h3 {
    color: var(--accent) !important;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* 2. FOOTER LINK RECOVERY */
/* Forcing the 'Powered by' link to lose the blue and adopt your palette */
.lm-link {
    color: rgba(255, 255, 255, 0.4) !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease !important;
}

.lm-link:hover {
    color: var(--accent) !important;
}

/* 3. MOBILE DROPDOWN REFINEMENT (Final Polish) */
@media (max-width: 991.98px) {
    /* Ensuring the dropdown items are strictly white and centered as requested */
    .dropdown-menu .dropdown-item {
        color: #ffffff !important;
        text-align: center !important;
        width: 100% !important;
        padding: 15px 0 !important;
        background: transparent !important;
    }
}
/* --- NAV CONTACT ICONS --- */
.contact-icon i {
    color: var(--accent) !important; /* Your Copper color */
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 0 5px;
}

.contact-icon:hover i {
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Fix mobile alignment so icons stay on one line if possible */
@media (max-width: 991.98px) {
    /* Keep contact icons horizontal even on mobile */
    .navbar-nav {
        flex-direction: column;
    }
    
    /* Allow icons to sit side-by-side in a row at the bottom of the mobile list */
    .nav-item:has(.contact-icon) {
        display: inline-block !important;
        margin: 10px 15px !important;
        border: none !important;
    }

    .contact-icon i {
        font-size: 1.3rem; /* Bigger touch area for mobile */
    }
}

.gallery-img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Contact Parallax Styling */
.parallax-consultation {
    position: relative;
    height: 70vh; /* Professional height for impact */
    min-height: 500px;
    background-image: linear-gradient(rgba(13, 0, 0, 0.75), rgba(13, 0, 0, 0.75)), 
                      url('https://fire.lundie.media/wp-content/themes/bask/images/victorian-bathroom-installer-edinburgh.jpg');
    background-attachment: fixed; /* The Parallax Magic */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
}

.parallax-consultation h2 {
    letter-spacing: 2px;
}

.parallax-consultation .contact-box {
    transition: transform 0.4s ease;
}

.parallax-consultation .contact-box:hover {
    transform: translateY(-5px);
}

/* Tracking utility for that high-end look */
.tracking-widest {
    letter-spacing: 0.3em;
}