/* Universal Box-Sizing */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* Base Body Styles */
body{
    font-family:Inter,sans-serif;
    line-height:1.6;
    color:#333;
    background-color:#faf8f2;
    scroll-behavior:smooth;
    overflow-x: hidden; /* Prevent horizontal scroll when menu opens */
}

/* Container for Centering Content */
.container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

/* Heading Styles */
h1,h2,h3{
    font-family:Tangerine,cursive;
    color:#0a3d62;
    text-align:center;
    margin-bottom:1.5rem;
}

h1{
    font-size:6rem;
    font-weight:600;
}

section div h2{
    font-size:4rem;
    font-weight:600;
}

h3{
    font-size:clamp(1.5rem, 3vw, 2rem);
    font-weight:400;
}

.service-card h3{
    font-size:3.5rem;
}

/* Paragraph Styles */
p{
    margin-bottom:1.25rem;
    line-height:1.7;
    color:#555;
    max-width:65ch;
    margin-left:auto;
    margin-right:auto;
}

/* --- Navbar Styles --- */
#navbar{
    position:fixed;
    top:0;
    left:0;
    right:0;
    background:linear-gradient(135deg,#0a3d62,#2f80ed);
    padding:1rem 0;
    z-index:1000;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
}

/* Navbar Container: Handles layout of elements inside the nav */
#navbar .container {
    display: flex;
    justify-content: center; /* Default: center the nav links on desktop */
    align-items: center;
    position: relative; /* For absolute positioning of mobile menu */
    padding: 0 20px; /* Ensure padding inside the fixed navbar */
    height: 40px; /* Give it a fixed height for consistent spacing */
}

/* Styles for the navigation links (the actual menu) - desktop default */
.nav-links{
    display:flex;
    justify-content:center;
    list-style:none;
    gap:2rem;
    margin: 0;
    padding: 0;
    width: 100%; /* Take full width of container to allow centering */
}

.nav-links li{
    color:#fff;
}

.nav-links a{
    color:#fff;
    text-decoration:none;
    font-weight:500;
    padding:.5rem 1rem;
    border-radius:25px;
    transition:all .3s ease;
}

.nav-links a:hover{
    background-color:rgba(255,255,255,.2);
    transform:translateY(-2px);
}

/* Phone link styling within navbar */
.phone-link{
    color:#fff;
    text-decoration:none;
    font-weight:500;
}

.phone-link:hover{
    text-decoration:underline;
}

/* Contact section phone link (if different styling is needed) */
#contact a.phone-link{
    font-size:2rem;
    color:#555;
}

/* --- Hamburger Menu Specific Styles --- */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 20; /* Ensure it's above other content */
    padding: 5px 0;
    box-sizing: content-box;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #fff; /* White bars for dark navbar */
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}


/* --- Hero Section Styles --- */
#hero{
    background:linear-gradient(rgba(0,0,0,.3),rgba(0,0,0,.3)),url('/images/private-dinner-chef-fort-myers-bg6.jpg') center/cover;
    color:#fff;
    text-align:center;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding-top:80px; /* Adjust if your navbar height changes */
}

.hero-content{
    background-color:rgba(0,0,0,.3);
    padding:2.5rem;
    border-radius:12px;
    max-width:1100px;
}

#hero h1{
    color:#ffd166;
    text-shadow:2px 2px 4px rgba(0,0,0,.5);
    font-size:6rem;
    font-family:Tangerine,cursive;
}

#hero h2{
    color:#fff;
    font-size:clamp(1.25rem, 3vw, 1.8rem);
    padding:0 80px 0;
    font-family:'Crimson Text',serif;
}

#hero h3{
    color:#e0f2f7;
    font-weight:300;
    font-size:4rem;
    font-family:Tangerine,cursive;
}

/* Call to Action Button */
.cta-button{
    display:inline-block;
    padding:1rem 2rem;
    background-color:#2f80ed;
    color:#fff;
    text-decoration:none;
    border-radius:50px;
    font-weight:600;
    margin-top:1.5rem;
    transition:all .3s ease;
    box-shadow:0 4px 15px rgba(0,0,0,.2);
}

.cta-button:hover{
    background-color:#0a3d62;
    transform:translateY(-3px);
    box-shadow:0 6px 20px rgba(0,0,0,.3);
}

/* General Section Styling */
.section{
    padding:5rem 0;
}

.bg-light{
    background-color:#e0f2f7;
}

.service-area-section h2{
    font-size:3.2rem;
}

/* Services Grid */
.services-grid{
    display:grid;
    gap:3rem;
    margin-top:3rem;
    max-width:65ch;
    margin-left:auto;
    margin-right:auto;
}

.service-card{
    background:#fff;
    padding:2rem;
    border-radius:12px;
    box-shadow:0 4px 15px rgba(0,0,0,.1);
    transition:transform .3s ease;
}

.service-card:hover{
    transform:translateY(-5px);
}

.service-content{
    display:flex;
    align-items:center;
    gap:2rem;
    margin-top:1rem;
}

/* This is why we need !important for mobile to override this specific rule */
.service-card:nth-child(2n) .service-content{
    flex-direction:row-reverse;
}

.service-image{
    flex:0 0 200px;
}

.service-image img{
    width:250px;
    height:auto;
    display:block;
    margin:0 auto;
    object-fit:contain;
    border-radius:8px;
}

.service-text{
    flex:1;
}

.service-text p{
    max-width:none;
    margin-bottom:0;
    text-align:left;
}

/* Contact Form */
.contact-form{
    max-width:600px;
    margin:2rem auto;
    background:#fff;
    padding:2.5rem;
    border-radius:12px;
    box-shadow:0 4px 15px rgba(0,0,0,.1);
}

.form-group{
    margin-bottom:1.5rem;
}

.form-group label{
    display:block;
    margin-bottom:.5rem;
    font-weight:600;
    color:#0a3d62;
}

.form-group input,.form-group textarea{
    width:100%;
    padding:.75rem;
    border:2px solid #ddd;
    border-radius:8px;
    font-size:1rem;
    transition:border-color .3s ease;
}

.form-group input:focus,.form-group textarea:focus{
    outline:0;
    border-color:#2f80ed;
}

.form-group textarea{
    resize:vertical;
    min-height:120px;
}

.honeypot{
    position:absolute;
    left:-9999px;
    opacity:0;
}

.btn{
    width:100%;
    padding:1rem;
    background-color:#2f80ed;
    color:#fff;
    border:none;
    border-radius:8px;
    font-size:1.1rem;
    font-weight:600;
    cursor:pointer;
    transition:background-color .3s ease;
}

.btn:hover{
    background-color:#0a3d62;
}

.form-message{
    text-align:center;
    margin-top:1rem;
    font-weight:600;
}

.form-message.success{
    color:#28a745;
}

.form-message.error{
    color:#dc3545;
}

/* Contact Info Section */
.contact-info{
    max-width:600px;
    margin:0 auto 2rem;
    text-align:left;
}

.contact-info h3{
    text-align:left;
    margin-bottom:1rem;
    font-size:3rem;
}

.contact-info ol,.contact-info ul{
    margin-left:1.5rem;
    margin-bottom:1.5rem;
}

.contact-info li{
    margin-bottom:.5rem;
    color:#555;
}

/* Service Area Section */
.service-area-section{
    text-align:center;
    margin-top:40px;
    margin-bottom:40px;
}

.service-area-section h2{
    font-size:3em;
    margin-bottom:20px;
    color:#333;
}

.service-area-section img{
    max-width:100%;
    height:auto;
    border:1px solid #ddd;
    border-radius:8px;
}

/* About Section Image Float */
.float-content-wrapper{
    max-width:65ch;
    margin-left:auto;
    margin-right:auto;
    margin-top:20px;
    margin-bottom:20px;
}

.float-content-wrapper::after{
    content:"";
    display:table;
    clear:both;
}

.about-image-float-right{
    float:right;
    width:200px;
    height:auto;
    margin:0 0 15px 25px;
    border-radius:8px;
    box-shadow:0 4px 15px rgba(0,0,0,.1);
}

/* Footer Styles */
footer{
    background-color:#0a3d62;
    color:#fff;
    text-align:center;
    padding:2rem 0;
    margin-top:3rem;
}

footer p{
    margin-bottom:.5rem;
    color:#e0f2f7;
    text-align:center;
    max-width:none;
}

footer p:last-child{
    margin-bottom:0;
}


/* --- Media Queries for Responsiveness (Mobile First Approach) --- */

@media (max-width: 768px) {
    /* Navbar for mobile */
    #navbar .container {
        justify-content: space-between; /* Space out hamburger and potential logo */
        height: auto; /* Allow height to adjust */
    }

    .hamburger-menu {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-links { /* Target the nav-links class here */
        display: none; /* Hide nav links by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: #0a3d62; /* Background for dropdown menu */
        position: absolute;
        top: 60px; /* Adjust based on your actual navbar height. If your navbar is 60px high, this is good. */
        left: 0;
        text-align: center;
        padding: 10px 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        z-index: 10;
    }

    .nav-links.active {
        display: flex; /* Show nav links when active */
    }

    .nav-links li {
        margin: 10px 0; /* Vertical spacing for mobile links */
    }

    /* Hamburger Animation (when active) */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Adjust hero section padding for mobile if needed */
    #hero {
        padding-top: 60px; /* Assuming navbar is approx 60px high */
    }

    /* General Mobile Adjustments */
    .section{
        padding:3rem 0; /* Smaller section padding */
    }

    .container{
        padding:0 15px; /* Smaller container padding */
    }

    h1{
        font-size:4rem; /* Adjust heading sizes for mobile */
    }
    section div h2 {
        font-size:3rem;
    }
    .service-card h3 {
        font-size:2.8rem;
    }
    #hero h2 {
        font-size:clamp(1rem, 4vw, 1.5rem);
        padding:0 20px;
    }
    #hero h3 {
        font-size:3rem;
    }

    .services-grid{
        gap:2rem; /* Smaller gap in grid */
    }

    /* Override the nth-child(2n) for mobile service cards */
    .service-content,
    .service-card:nth-child(2n) .service-content {
        flex-direction:column; /* Ensure vertical layout for all service cards */
        text-align:center;
    }
    .service-image{
        flex:none; /* Reset flex for images */
    }
    .service-image img{
        width:180px; /* Adjust image size for mobile */
    }
    .service-text p{
        text-align:center; /* Center text in service cards */
    }

    .contact-form{
        padding:1.5rem; /* Smaller contact form padding */
    }

    .contact-info h3{
        font-size:2.5rem; /* Adjust contact heading size */
    }

    /* About image floating adjustment */
    .about-image-float-right{
        float:none;
        display:block;
        margin:20px auto;
        width:80%;
        max-width:250px;
    }
    .float-content-wrapper p{
        text-align:center;
    }
}