/* ==========================================================================
   CSS Variables & Typography (Industrial/Contractor Theme)
   ========================================================================== */
   :root {
    /* Color Palette - Contractor Focus */
    --primary: #1e3a5f;     /* Dark Blue */
    --primary-dark: #122238;
    --accent: #f47c36;      /* Orange */
    --accent-hover: #da6523;
    --steel-gray: #7a8b99;
    --charcoal: #2a3439;
    --dark-base: #1c2326;
    --bg-light: #f5f7f9;
    --white: #ffffff;
    
    /* Text Colors */
    --text-main: #333d45;
    --text-muted: #6b7a85;
    --text-light: #e2e8f0;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --nav-height: 85px;
    
    /* Transitions & Shadows */
    --transition: 0.3s ease-in-out;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hard: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.bg-dark {
    background-color: var(--charcoal);
    color: var(--text-light);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography Utilities */
h1, h2, h3, h4, h5 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--white);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
}
.align-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 3rem;
}
.align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.subtitle-accent {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-hard);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Mobile CTA Bar
   ========================================================================== */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background-color: var(--primary-dark);
    padding: 0.5rem;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: block;
    }
    body {
        padding-bottom: 60px; /* Space for sticky bar */
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--white);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-hard);
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.05rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s ease;
    border-radius: 3px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--primary);
    background-image: linear-gradient(rgba(18, 34, 56, 0.85), rgba(42, 52, 57, 0.85)), url('/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.relative { position: relative; }
.z-10 { z-index: 10; }

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-eyebrow {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-trust-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white);
}
.badge svg {
    color: var(--accent);
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.trust-item p {
    color: var(--steel-gray);
    font-size: 0.9rem;
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-top: 4px solid var(--accent);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.placeholder-img {
    background-color: var(--steel-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.service-list {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.placeholder-img.large {
    height: 500px;
    border-radius: 8px;
    box-shadow: var(--shadow-hard);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--accent);
    color: var(--white);
    padding: 2rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    width: 150px;
    box-shadow: var(--shadow-hard);
    text-align: center;
    border: 5px solid var(--white);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ==========================================================================
   Projects / Gallery
   ========================================================================== */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.placeholder-img.square {
    height: 250px;
    background-color: #2c3e50;
    transition: transform var(--transition);
}

.gallery-item:hover .placeholder-img.square {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1.5rem 1rem;
    color: var(--white);
}
.gallery-overlay h4 {
    color: var(--white);
    margin-bottom: 0.2rem;
}
.gallery-overlay p {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.method-item {
    display: flex;
    gap: 1rem;
}

.method-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.method-item h5 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.method-item p, .content-link {
    color: var(--text-muted);
}
.content-link {
    font-weight: 600;
    color: var(--primary);
}
.content-link:hover {
    color: var(--accent);
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.form-box {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border-top: 5px solid var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.required { color: #e53e3e; }

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: inherit;
    transition: all 0.2s;
    background-color: var(--white);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(244, 124, 54, 0.2);
}

.form-group.error input, .form-group.error textarea {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

.error-msg {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}
.form-group.error .error-msg {
    display: block;
}

.recaptcha-notice {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-success-msg {
    padding: 1rem;
    background-color: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
    border-radius: 4px;
    margin-top: 1rem;
}
.hidden { display: none !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 30px; height: 3px;
    background-color: var(--accent);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* Google Review Section Styles */
.review-col {
    display: flex;
    flex-direction: column;
}

.review-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition);
}

.review-box:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.qr-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.qr-container img {
    border-radius: 4px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.review-link {
    display: block;
    background: var(--accent);
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.review-link:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    color: var(--white);
}

.footer-desc.small {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .review-box {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

.pb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--steel-gray);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a:hover {
    color: var(--white);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .about-container, .contact-container, .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-visual {
        order: -1;
    }
    
    .experience-badge {
        bottom: 10px; right: 10px;
    }
}

@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        box-shadow: var(--shadow-hard);
        transition: 0.3s ease-in-out;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

    .hero-cta { flex-direction: column; width: 100%; }
    .btn-lg { width: 100%; }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .footer-container {
        gap: 2rem;
    }
    
    .pb-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   Chatbot Widget
   ========================================================================== */
.chatbot-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-hard);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    background-color: var(--accent-hover);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 40px);
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.chatbot-window.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.chatbot-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    opacity: 0.8;
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--bg-light);
}

.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-message {
    background-color: var(--white);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.user-message {
    background-color: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-input-area {
    display: flex;
    padding: 15px;
    background-color: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05);
}

#chatbot-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
    transition: border-color 0.2s;
}

#chatbot-input:focus {
    border-color: var(--accent);
}

.chatbot-send-btn {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 768px) {
    .chatbot-wrapper {
        bottom: 80px; /* Above mobile CTA bar */
        right: 20px;
    }
}
