:root {
    --primary-color: #4183C4;
    /* ACGI Medium Blue */
    --secondary-color: #1B1C1D;
    /* ACGI Dark Grey/Black */
    --accent-color: #f4f1ea;
    /* Off-white/Cream */
    --text-color: #333;
    --text-light: #777;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --bg-dark: #0f0f0f;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-margin-top: 80px;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.serif {
    font-family: 'Times New Roman', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.underline {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

h3 {
    font-size: 1.2rem;
}

span {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #b3935a;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary-color);
}

.btn-promo-glow {
    background: var(--primary-color);
    color: var(--white);
    animation: promo-glow 2s infinite;
    box-shadow: 0 0 10px rgba(65, 131, 196, 0.5);
}

@keyframes promo-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(65, 131, 196, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(65, 131, 196, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(65, 131, 196, 0.4);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-items: center;
    height: auto;
    min-height: 70px;
    max-width: 100%;
    padding: 8px 3%;
    /* Reduced padding to give more horizontal space */
}

/* Old promo links removed */
.promo-link-small {
    display: none !important;
}

/* Hamburger Styles - Base (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hamburger Animation States */
.hamburger.active .line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
    /* Reduced gap between links to give logo more space */
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links .btn {
    color: var(--white);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .btn:hover {
    color: var(--white);
    background: #b3935a;
}

/* Hero */
.hero {
    height: 100vh;
    background: url('images/hero_bg_1766104479884.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 1;
}

.hero-content p {
    font-size: 1.25rem;
    margin: 1.5rem 0 2.5rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Services */
.section-header p {
    text-align: center;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--accent-color);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    border-radius: 4px;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.active {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    background: var(--white);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Projects */
.projects {
    background: var(--secondary-color);
    color: var(--white);
}

.projects .section-header h2 {
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.project-item {
    position: relative;
    overflow: hidden;
    height: 400px;
    border-radius: 4px;
    opacity: 0;
    transform: scale(0.95);
    transition: var(--transition);
}

.project-item.active {
    opacity: 1;
    transform: scale(1);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transition: var(--transition);
}

.project-item:hover img {
    transform: scale(1.1);
}

/* Tooltip CSS for Promo Button */
.has-tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1002;
    top: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: normal;
    text-transform: none;
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--secondary-color) transparent;
}

.has-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.project-item:hover .project-info {
    bottom: 0;
}

/* About Section */
.about {
    scroll-margin-top: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--slate-300);
}

.badge-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge.veteran {
    border-color: var(--primary-color);
    background: rgba(191, 155, 95, 0.1);
}

.badge i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
}

.badge-container a:hover .badge {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.footer-contact a:hover {
    color: var(--primary-color) !important;
}

/* Footer */
.footer {
    scroll-margin-top: 80px;
    background: #0f0f0f;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Old promo badge removed */
.promo-badge {
    display: none !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Icons Fallback */
.fas {
    margin-right: 8px;
}

/* About Image */
.about-image img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* Footer Icons */
.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estimate Section */
.estimate {
    background: var(--secondary-color);
    color: var(--white);
}

.estimate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.estimate-info h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-benefits {
    list-style: none;
    margin-top: 2rem;
}

.form-benefits li {
    margin-bottom: 1rem;
    font-weight: 500;
}

.estimate-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group select option {
    background: var(--secondary-color);
    color: var(--white);
}

.full-width {
    width: 100%;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    text-align: center;
}

.submit-btn:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#form-status {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
}

#form-status.success {
    color: #4CAF50;
}

#form-status.error {
    color: #F44336;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Shared Sidebar Layout (Forms & FAQ) --- */
.sidebar-layout,
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-content,
.faq-container {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.sidebar-box,
.faq-sidebar {
    position: sticky;
    top: 120px;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

.sidebar-title,
.faq-nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-list,
.faq-nav-list {
    list-style: none;
}

.sidebar-list li,
.faq-nav-list li {
    margin-bottom: 1rem;
}

.sidebar-link,
.faq-nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.sidebar-link:hover,
.sidebar-link.active,
.faq-nav-link:hover,
.faq-nav-link.active {
    color: var(--primary-color);
    padding-left: 5px;
}

@media (max-width: 992px) {

    .sidebar-layout,
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-box,
    .faq-sidebar {
        display: none;
    }
}


.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: var(--white);
    border: none;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.faq-question:hover {
    background: var(--accent-color);
}

.faq-question.active {
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
    background: var(--accent-color);
    border-radius: 0 0 8px 8px;
}

.faq-answer.active {
    padding: 1.5rem;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.dropdown-content a {
    color: var(--secondary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-item-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Testimonial Carousel */
.testimonials {
    background-color: var(--light-bg);
}

.testimonial-carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    flex: 0 0 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.testimonial-slide .service-card {
    opacity: 1;
    transform: none;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
}

@media (min-width: 768px) {
    .testimonial-slide {
        min-width: 50%;
        flex: 0 0 50%;
    }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        /* Above mobile menu overlay */
    }

    .nav-links.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    .nav-links.active a {
        font-size: 1.5rem;
    }

    .nav-links.active .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        margin-top: 0.5rem;
        background: rgba(0, 0, 0, 0.05);
    }

    .nav-links.active .dropdown:hover .dropdown-content,
    .nav-links.active .dropdown.active .dropdown-content {
        display: block;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .about-grid,
    .estimate-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .estimate-info h2 {
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    .tooltip-text {
        width: 200px;
        margin-left: -100px;
        font-size: 0.75rem;
    }

}

/* Social Media Brand Colors */
.social-cluster .fa-yelp,
.footer-brand .fa-yelp {
    color: #D32323 !important;
}

.social-cluster .fa-facebook,
.social-cluster .fa-facebook-f,
.footer-brand .fa-facebook {
    color: #1877F2 !important;
}

.social-cluster .fa-houzz,
.footer-brand .fa-houzz {
    color: #7AC142 !important;
}

.social-cluster .fa-nextdoor,
.footer-brand .fa-nextdoor {
    color: #00B246 !important;
}

.social-cluster .fa-certificate {
    color: #005691 !important;
}

/* BBB Blue */
.social-cluster .fa-map-location-dot {
    color: #00B246 !important;
}

/* Nextdoor map icon */