/* --- Variables & Core Styles --- */
:root {
    --primary: #EAA92A; /* Gold/Yellow from logo */
    --dark: #0f1014;
    --light: #f4f4f4;
    --gray: #b0b0b0;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Forces all links to be white and removes default underlines if desired */
a {
    color: #ebebeb !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

/* Ensures the color stays white even after being clicked or hovered */
a:visited, 
a:hover, 
a:active {
    color: #dbdbdb !important;
}

/* Target the About section specifically to tighten the top gap */
#about.section {
    padding-top: 40px; /* Reduced from your standard 80px */
}

/* Reduce the margin below the "About Munoz Contractors" title and divider */
#about .section-header {
    margin-bottom: 0px; /* Removes the bottom gap from the header block */
}

/* Tighten the quote container that follows the header */
#about .quote-container {
    padding-top: 20px;    /* Pulls the quote up closer to the heading */
    padding-bottom: 30px; /* Maintains appropriate space before the body text */
}

/* Ensure the divider itself isn't pushing content too far */
#about .divider {
    margin-bottom: 10px; /* Reduced from standard margin */
}
/* Optional: Slight opacity change on hover so users know it's clickable */
a:hover {
    opacity: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

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

.nav-logo { height: 60px; }

.nav-links { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-links a { color: #fff; text-decoration: none; font-family: var(--font-heading); text-transform: uppercase; font-size: 0.9rem; }
.nav-links a:hover { color: var(--primary); }

.btn-nav { border: 1px solid var(--primary); padding: 5px 15px; border-radius: 4px; }

.hamburger { display: none; color: var(--primary); font-size: 1.5rem; cursor: pointer; }

/* --- Hero Section --- */
/* Ensure the Hero section centers all children */
/* --- Hero Section Fix --- */
/* --- Navigation & Hero Mobile Fixes --- */
.navbar {
    height: 80px; /* Fixed height to reference for padding */
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px; /* Desktop padding */
    min-height: 100vh;
}

@media (max-width: 768px) {
    .hero {
        /* Pushes content further down to clear the fixed navbar on mobile */
        padding-top: 140px; 
    }

    .sub-headline {
        font-size: 0.9rem; /* Slightly smaller for mobile width */
        letter-spacing: 2px;
        margin-bottom: 5px;
    }

    .hero-logo {
        max-width: 220px; /* Shrink logo to prevent vertical overflow */
        margin: 15px auto;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
}

.forest-bg-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Height of the tree line */
    background-image: url("assets/background-trees.jpeg");
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, var(--dark) 0%, rgba(15,16,20,0.5) 50%, transparent 100%);
    z-index: 2;
}

.hero-content { position: relative; z-index: 3; }

.hero-logo {
    max-width: 280px;
    margin: 20px auto;
    display: block;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.5));
}

.sub-headline {
    color: var(--primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.1rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 15px;
}

.highlight { color: var(--primary); }

.hero p {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.hero-btns { display: flex; gap: 15px; justify-content: center; }
/* --- Lightbox Styles --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Above the navbar */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border: 3px solid var(--primary);
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: var(--primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    padding: 20px 0;
    font-size: 1.5rem;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform: scale(0.7); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* --- Text Content Styling --- */
.about-text-content {
    max-width: 900px;
    margin: 0 auto;
    color: #e0e0e0; /* Light gray for readability on dark background */
    line-height: 1.8; /* Increased line height for better flow */
    padding-top: 40px;
}

.about-text-content p {
    margin-bottom: 25px; /* Creates the separation between paragraphs */
    font-size: 1.1rem;
    text-align: left; /* Aligns with standard professional layouts */
}

/* Remove margin from the very last paragraph to keep the section balanced */
.about-text-content p:last-child {
    margin-bottom: 0;
}
/* --- Pull Quote Styling --- */
.quote-container {
    padding: 10px 20px;
    display: flex;
    justify-content: center;
}

.pull-quote {
    position: relative;
    padding: 10px 0 10px 30px; /* Space for the line on the left */
    margin: 0;
    max-width: 900px;
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.5;
    font-style: italic;
    color: #e0e0e0;
    /* The thin line to the left */
    border-left: 3px solid var(--primary); 
}

/* Subtle accent for the first letter or opening quote */
.pull-quote::before {
    content: "";
    display: block;
}

/* Mobile responsive font sizing for the pull quote */
@media (max-width: 768px) {
    .pull-quote {
        /* Increase from 1.2rem to 1.4rem for better impact */
        font-size: 1.4rem !important; 
        line-height: 1.4;
        padding-left: 20px;
        border-left-width: 3px; /* Keeps the gold line visible and strong */
        margin: 10px 0;
    }
}

.btn {
    padding: 12px 25px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-primary { background: var(--primary); color: #000; border: none; }
.btn-primary:hover { background: #fff; }

.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #000; }

/* --- Content Sections --- */
.section { padding: 80px 0; }
.bg-dark { background: #1a1b1f; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-family: var(--font-heading); font-size: 2.5rem; text-transform: uppercase; }
.divider { width: 60px; height: 4px; background: var(--primary); margin: 15px auto; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
/* --- Drop Cap Styling --- */
.drop-cap::first-letter {
    font-family: var(--font-heading); /* Uses the bold Oswald font */
    font-size: 4rem;                 /* Makes the letter much larger */
    font-weight: 700;
    color: var(--primary);           /* Brand accent gold color */
    float: left;                     /* Floats the letter so text wraps around it */
    margin-right: 10px;              /* Space between letter and following text */
    line-height: 1;                  /* Prevents extra vertical spacing */
    text-transform: uppercase;
    /* Optional: Slight text shadow to match the hero style */
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}
/* .service-card {
    background: #222;
    padding: 40px;
    text-align: center;
    border-bottom: 3px solid var(--primary);
}

.service-card i { font-size: 3rem; color: var(--primary); margin-bottom: 15px; }
.service-card h3 { font-family: var(--font-heading); font-size: 1.5rem; text-transform: uppercase; margin-bottom: 10px; } */
/* --- Professional Services Hover Effects --- */
.service-card {
    background: #222; /* Matches current dark theme */
    padding: 40px;
    text-align: center;
    border: 2px solid transparent; /* Prepare border for transition */
    border-bottom: 3px solid var(--primary); /* Keep existing bottom accent */
    transition: all 0.4s ease; /* Smooth movement and color shift */
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-15px); /* Moves the card slightly up */
    border: 2px solid var(--primary); /* Highlights all borders with accent color */
    box-shadow: 0 10px 30px rgba(234, 169, 42, 0.2); /* Adds a subtle gold glow */
}

/* Ensure icons and text inside follow the smooth transition */
.service-card i { font-size: 3rem; color: var(--primary); margin-bottom: 15px; }
.service-card h3 { font-family: var(--font-heading); font-size: 1.5rem; text-transform: uppercase; margin-bottom: 10px; }
.service-card p {
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary); /* Changes text to gold on hover for extra pop */
}
/* --- Dynamic Off-Centered Gallery --- */
.gallery-grid-dynamic {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 column base */
    grid-auto-rows: 200px; /* Base height of a grid "unit" */
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #222;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth zoom out of center */
}

/* --- The Zoom Hover Effect --- */
.gallery-item:hover img {
    transform: scale(1.15); /* Slightly zooms in when hovered */
}

/* --- Spanning Logic for "Uneven" Look --- */

/* Large Featured Item (2x2) */
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Wide Item (2 columns wide) */
.gallery-item.wide {
    grid-column: span 2;
}

/* Tall Item (2 rows high) */
.gallery-item.tall {
    grid-row: span 2;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .gallery-grid-dynamic {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .gallery-grid-dynamic {
        grid-template-columns: 1fr; /* 1 column on mobile */
        grid-auto-rows: 250px;
    }
    
    /* Reset spans for single column mobile view */
    .gallery-item.large,
    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* --- CTA --- */
.cta-section { padding: 100px 0; text-align: center; background: var(--primary); color: #000; }
.cta-section h2 { font-family: var(--font-heading); font-size: 3rem; text-transform: uppercase; }
.cta-section p { font-size: 1.2rem; margin-bottom: 25px; }
.large-btn { background: #000; color: #fff; font-size: 1.2rem; }

footer { text-align: center; padding: 20px 0; font-size: 0.8rem; color: #9d9d9d; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: #000; flex-direction: column; padding: 20px;
    }
    .nav-links.active { display: flex;!important; /* Visible state */ }
    .hero { height: 60vh; }
    .hero h1 { font-size: 2.2rem; }
    .hero-logo { max-width: 200px; }
    .hero-btns { flex-direction: column; }
}