/* --- Base Variables & Reset --- */
:root {
    --primary-orange: #F38B1C; 
    --primary-orange-hover: #D67A18;
    --dark-charcoal: #2C2C2C; 
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- Typography & Buttons --- */
h1, h2, h3 {
    color: var(--dark-charcoal);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--text-light);
    padding: 14px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-2px);
}

/* --- Header & Navigation Layout --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 1.5rem;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.header-center-title {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--dark-charcoal);
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
}

.orange-text {
    color: var(--primary-orange);
}

.mobile-break {
    display: none; 
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Navigation Links */
.nav-links ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-charcoal);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover, .dropdown:hover .dropbtn {
    color: var(--primary-orange);
}

.nav-links a.btn-primary {
    color: var(--text-light);
    padding: 10px 20px;
}

.nav-links a.btn-primary:hover {
    color: var(--text-light);
    background-color: var(--primary-orange-hover);
}

/* Desktop Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-white);
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    top: 100%;
    left: 0;
    border-top: 3px solid var(--primary-orange);
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-transform: none;
    font-weight: normal;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-orange);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Header Phone Button */
.phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.phone-btn:hover {
    background-color: var(--primary-orange);
    color: var(--text-light);
}

.phone-btn:hover svg {
    stroke: var(--text-light);
}

/* Clean Animated Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px; 
    width: 30px;
    height: 30px; 
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--dark-charcoal);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation States for perfectly centered X */
.hamburger.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg); 
}

.hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    background: url('wall2wallherosection.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8%;
}

.hero-overlay {
    background: rgba(44, 44, 44, 0.7); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    padding: 3.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 650px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    color: var(--text-light);
    font-size: 3.8rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.hero .highlight {
    color: var(--primary-orange);
}

.hero p {
    color: #F0F0F0;
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* --- About Section --- */
.about-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    font-size: 1.1rem;
}

.about-section a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: bold;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--primary-orange);
}

/* Converted to support img tag with object-fit */
.img-16-9 {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: var(--border-color);
    margin-bottom: 1rem;
    border-radius: 4px;
    display: block;
}

/* --- Gallery Carousel --- */
.carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 0 40px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 15px;
}

.carousel-slide {
    min-width: calc(33.333% - 10px); 
    box-sizing: border-box;
}

/* Converted to support img tag with object-fit */
.gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background-color: var(--border-color);
    border-radius: 8px;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 44, 44, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-orange);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* --- FAQ Accordion --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.2rem 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark-charcoal);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-orange);
}

.accordion-header.active::after {
    content: '-';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding-bottom: 1.2rem;
}

/* --- Contact Form --- */
.contact-section {
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 1.5rem; 
}

.netlify-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
}

.checkbox-group {
    margin-top: 2rem;
}

.checkbox-group .label-style {
    font-weight: bold;
    margin-bottom: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-orange);
}

.submit-wrapper {
    text-align: center;
    margin-top: 1.5rem;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-orange);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    color: var(--text-light);
    padding: 1.5rem 0 1rem 0; 
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
    position: relative; 
    z-index: 1;
}

.footer-logo {
    height: 80px;
    margin-bottom: 0.5rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.footer-info a {
    color: var(--dark-charcoal);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: var(--text-light);
}

.footer-social a {
    background-color: var(--dark-charcoal);
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.footer-social a:hover {
    background-color: #000;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* --- Return to Top Button --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-orange);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s, transform 0.3s;
    z-index: 999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-3px);
}

/* --- Accessibility Additions --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-overlay {
        animation: none;
    }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .header-center-title {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .carousel-slide {
        min-width: calc(50% - 7.5px); 
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }
    
    .logo img {
        height: 45px;
    }
    
    .header-center-title {
        font-size: 0.9rem;
        text-align: left;
    }
    
    .mobile-break {
        display: block;
    }

    .phone-text {
        display: none;
    }
    
    .phone-btn {
        padding: 8px;
        border-radius: 50%;
    }
    
    .header-actions {
        gap: 0.8rem;
    }

    .hamburger {
        display: flex; 
    }
    
    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding-bottom: 1rem; 
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-links ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-links ul li a {
        display: block;
        padding: 15px;
    }
    
    .nav-links a.btn-primary {
        display: inline-block;
        margin: 15px auto 0 auto;
        width: max-content;
    }

    .dropdown:hover .dropdown-content {
        display: none; 
    }
    
    .dropdown.mobile-active .dropdown-content {
        display: block;
        position: static;
        box-shadow: none;
        background-color: var(--bg-light);
        border-top: none;
    }

    .hero { 
        justify-content: center; 
        padding: 0 20px; 
    }
    
    .hero-overlay { 
        padding: 2.5rem 1.5rem; 
        text-align: center; 
    }
    
    .hero h1 { 
        font-size: 2.5rem; 
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .carousel-slide {
        min-width: 100%; 
    }
}