/*
========================================
CSS STYLES - Modern, Simple, Bold
========================================
*/

/* Color Palette & Global Reset */
:root {
    --color-primary: #1e1e1e; /* Charcoal (almost black) */
    --color-secondary: #ffffff; /* White */
    --color-accent: #e73030; /* Vibrant "Nice Red Light" */
    --font-main: 'Poppins', sans-serif;
    --border-radius-large: 15px; /* Rounded Corners */
    --max-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-primary);
    background-color: var(--color-secondary);
    line-height: 1.6;
    scroll-behavior: smooth; 
    padding-top: 60px; /* Padding to account for the fixed header */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-accent);
}

h1, h2, h3 {
    font-family: var(--font-main);
    text-transform: uppercase;
    font-weight: 800; /* Bold titles */
    letter-spacing: 1px;
}

.container {
    width: 90%; 
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 0;
}

.full-section,
.hero,
.booking-section {
    width: 100%;
    padding: 80px 0;
    transition: filter 0.3s; 
}

/*
========================================
HEADER & NAVIGATION
========================================
*/

.header {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 15px 0; 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%; 
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative; 
}

.logo {
    font-size: 2em;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 5px; 
}

.nav-links li a {
    padding: 8px 15px; 
    font-weight: 600;
    border-radius: var(--border-radius-large); 
    transition: background-color 0.3s, color 0.3s;
}

.nav-links li a:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.menu-toggle {
    display: none; 
    cursor: pointer;
    color: var(--color-accent);
    font-size: 0; 
    width: 30px; 
    height: 30px;
    position: relative; 
    z-index: 1001;
}

.menu-toggle::before, 
.menu-toggle::after {
    content: '';
    display: block; 
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
    left: 0;
    transition: transform 0.3s ease-in-out, margin 0.3s ease-in-out; 
}

.menu-toggle::before {
    margin-top: 4px; 
    margin-bottom: 7px;
}

.menu-toggle.active::before {
    transform: rotate(45deg); 
    transform-origin: 58% 50%; 
    margin-bottom: -3px; 
}

.menu-toggle.active::after {
    transform: rotate(-45deg); 
    transform-origin: 58% 50%; 
    margin-top: -3px; 
}


.btn-book {
    background-color: var(--color-accent);
    color: var(--color-secondary);
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius-large); 
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    
    margin-left: 20px; 
    position: relative; 
    z-index: 10; 
    
    transition: background-color 0.3s, transform 0.2s;
}

.btn-book:hover {
    background-color: #c71e1e; 
    transform: translateY(-2px);
}

@keyframes gentle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); } 
    100% { transform: scale(1); }
}


/*
========================================
HERO SECTION 
========================================
*/

.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-secondary);
    
    background: var(--color-primary); 
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s; 
}

#hero-video {
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0; 
    transition: opacity 2s; 
    pointer-events: auto; 
}

#hero-video::-webkit-media-controls {
    display: none !important;
}

.hero.video-active {
    background-image: none !important; 
}

.hero.video-active #hero-video {
    opacity: 1; 
    pointer-events: none; 
}

.hero-content {
    z-index: 10;
    padding: 20px;
    transition: opacity 2s, justify-content 0.8s, padding-bottom 0.8s;
    transform: translateZ(0); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hero-content.content-fade {
    opacity: 0;
    pointer-events: none; 
}

.hero h1 {
    font-size: 5em;
    line-height: 1;
    margin-bottom: 0.1em;
    color: var(--color-accent); 
}

.hero h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--color-secondary);
}

.btn-text-link {
    background: none;
    border: none;
    color: var(--color-accent); 
    font-family: inherit;
    font-size: 1em; 
    font-weight: 400;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
    padding: 0;
}

.btn-text-link:hover {
    color: var(--color-secondary); 
}

/*
========================================
SECTIONS
========================================
*/

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: var(--color-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.about {
    background-color: var(--color-secondary);
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-text h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.services {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.services .section-title {
    color: var(--color-secondary);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-left: 5px solid var(--color-accent); 
    border-radius: var(--border-radius-large); 
    text-align: left;
    transition: background-color 0.3s, transform 0.3s;
}

.service-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.service-item h3 {
    color: var(--color-accent);
    margin-bottom: 10px;
    font-size: 1.4em;
}

.price {
    font-weight: 800;
    color: var(--color-secondary);
    font-size: 1.1em;
    margin-top: 15px;
}

/*
========================================
CONTACT/BOOKING SECTION
========================================
*/

.contact {
    background-color: var(--color-secondary);
    text-align: center;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.detail-item {
    text-align: center;
    padding: 20px;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-large);
    min-width: 250px;
}

.detail-item h4 {
    color: var(--color-accent);
    margin-bottom: 5px;
    font-size: 1.4em;
    font-weight: 600;
}

/*
========================================
FOOTER
========================================
*/

.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8em;
}


/*
=====================================================
💥 NEW ISOLATED MOBILE BUTTON (Desktop Hidden)
===================================================== 
*/

.mobile-fixed-book-btn {
    /* Hidden by default on desktop/large screens */
    display: none; 
    position: fixed; 
    z-index: 2147483647; /* MAX Z-INDEX TO BEAT EVERYTHING */
    
    /* Sizing and Positioning */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 250px;
    
    /* Styling */
    background-color: var(--color-accent);
    color: var(--color-secondary);
    padding: 10px 15px;
    border-radius: var(--border-radius-large); 
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); 
    
    transition: background-color 0.3s;
}

.mobile-fixed-book-btn:hover {
    background-color: #c71e1e;
}


/*
========================================
RESPONSIVENESS (Media Queries)
========================================
*/

body.menu-open .full-section,
body.menu-open .hero,
body.menu-open .booking-section { 
    filter: blur(4px);
    pointer-events: none; 
}

body.menu-open .header {
    filter: none;
    pointer-events: auto;
}

.desktop-space-break {
    display: inline;
}


@media (max-width: 1000px) { /* MOBILE STYLES */

    /* 🔥 BRUTE-FORCE MOBILE BUTTON DISPLAY 🔥 */
    /* The button is always visible on mobile screens of this size until script.js hides it */
    .mobile-fixed-book-btn {
        display: block; 
    }
    
    /* Ensure the button is hidden on scroll when the menu is open (for better focus) */
    body.menu-open .mobile-fixed-book-btn {
        display: none;
    }

    /* --- General Mobile Styles --- */
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        order: -1;
    }
    
    .header {
        padding: 15px 0; 
    }

    .navbar {
        width: 100%; 
        max-width: none;
        padding: 0 5%; 
        margin: 0;
        height: auto; 
        display: flex; 
        align-items: center; 
        justify-content: space-between;
        flex-wrap: wrap;
        position: relative;
    }

    .menu-toggle {
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
    }

    .menu-toggle::before {
        margin-top: 0; 
        margin-bottom: 7px; 
    }
    
    .menu-toggle::after {
        margin-bottom: 0; 
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-primary);
        position: absolute;
        top: 67px; 
        left: 0;
        z-index: 1001; 
        padding: 10px 0;
        border-bottom-left-radius: var(--border-radius-large); 
        border-bottom-right-radius: var(--border-radius-large);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3); 
    }

    .nav-links.active {
        display: flex;
    }
    
    .nav-links::after {
        content: 'Book The Chair';
        display: block;
        background-color: var(--color-accent);
        color: var(--color-secondary);
        padding: 12px 25px;
        margin: 10px auto 20px; 
        border-radius: var(--border-radius-large);
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 1px;
        width: 80%;
        max-width: 300px;
        cursor: pointer;
        transition: background-color 0.3s;
    }
    .nav-links::after:hover {
        background-color: #c71e1e;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0; 
        padding: 5px 0; 
    }
    
    .nav-links li a {
        color: var(--color-secondary);
        width: 100%; 
        padding: 10px 0;
        display: block; 
    }
    
    .nav-links li a:hover {
        background-color: var(--color-accent);
    }

    .desktop-space-break {
        display: block; 
        content: ''; 
        font-size: 0; 
    }

    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 3em;
    }

    .hero h2 {
        font-size: 1.2em;
    }

    .full-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2em;
    }

    .contact-details {
        flex-direction: column;
        gap: 20px;
    }

    .detail-item {
        min-width: 80%;
    }
}

.owner-sign-in {
    display: inline-block; 
    text-decoration: none; 
    padding: 12px 25px;
    background-color: #4285F4;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
}
.owner-sign-in:hover {
    background-color: #3371e1;
    transform: translateY(-1px);
}