:root {
    --primary-color: #0F172A;
    /* Deep Navy */
    --secondary-color: #CA8A04;
    /* Muted Gold/Bronze */
    --text-color: #334155;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --font-main: 'Inter', sans-serif;
    --section-padding: 80px 0;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: var(--section-padding);
}

.section-alt {
    background-color: var(--light-bg);
}

.section-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Typography Utilities */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748B;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    /* Slight roundness, not pill */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #A16207;
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-large {
    font-size: 1.1rem;
    padding: 14px 32px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
#site-header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* More premium shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    /* Slightly tighter padding to accommodate taller logo */
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
    padding: 0.25rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#site-header.scrolled .logo-img {
    height: 50px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

.logo-link {
    display: block;
    line-height: 0;
    flex-shrink: 0;
}

.logo-img {
    height: clamp(50px, 8vh, 80px);
    /* Explicit clamp for stability */
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.desktop-nav a {
    margin: 0 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
}

.desktop-nav a:hover {
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    /* Prevent shrinking */
    white-space: nowrap;
    /* Prevent wrapping */
}

.header-phone {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.mobile-nav-menu {
    display: none;
    background-color: var(--white);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    flex-direction: column;
    text-align: center;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem;
    font-weight: 600;
}

/* Hero */
.hero {
    position: relative;
    background-image: url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    /* Min height */
    display: flex;
    align-items: center;
    min-height: 600px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-sub {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #E2E8F0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-form-wrapper {
    flex: 0 0 350px;
}

/* Modern Quick Estimate Form (Overrides) */
.qe-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    color: var(--text-color);
    max-width: 440px;
    /* Optional: constrain width for cleaner look */
    margin: 0 auto;
}

.qe-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.5rem;
}

.qe-form {
    display: grid;
    gap: 16px;
    /* High visibility spacing */
}

/* Field Group Stacking */
.qe-field {
    display: grid;
    gap: 8px;
    /* Space between label and input */
    width: 100%;
}

.qe-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    display: block;
}

.qe-field label.optional-label {
    font-weight: normal;
    color: #94A3B8;
}

/* Inputs & Textarea */
.quick-estimate-form input,
.quick-estimate-form select,
.quick-estimate-form textarea {
    padding: 12px 36px 12px 12px;
    /* Right padding for arrow */
    margin-bottom: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s,
        box-shadow 0.2s;
    background-color: var(--white);

    /* Remove native arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom SVG Arrow (Inline URL encoded) */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.quick-estimate-form input:focus,
.quick-estimate-form select:focus,
.quick-estimate-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.1);
}

/* ... existing code ... */


.quick-estimate-form textarea {
    resize: vertical;
    min-height: 80px;
    /* Comfortable height */
    margin-bottom: 1rem;
}

.quick-estimate-form .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trust Bar */
.trust-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item {
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.trust-item .icon {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-content p {
    color: #64748B;
    font-size: 0.95rem;
}

/* Process */
.process-timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.process-step {
    flex: 1 1 250px;
    /* grow, shrink, basis */
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    border: 1px solid var(--border-color);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.process-step h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.9rem;
    color: #475569;
}

/* Addons */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.addon-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
}

.addon-item h4 {
    margin-bottom: 0.5rem;
}

.trade-note {
    text-align: center;
    font-size: 0.9rem;
    color: #64748B;
    max-width: 800px;
    margin: 0 auto;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gallery-item img:hover {
    opacity: 0.9;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: var(--white);
    border: none;
    padding: 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #F8FAFC;
}

.faq-answer p {
    padding-bottom: 1.25rem;
    padding-top: 1rem;
}

/* Contact */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2,
.contact-info p,
.contact-info strong {
    color: var(--white);
}

.contact-info p {
    color: #CBD5E1;
}

.contact-detail {
    margin-bottom: 1.5rem;
}

.contact-detail strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    color: var(--text-color);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-family: inherit;
}

.form-message {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.success {
    background-color: #D1FAE5;
    color: #065F46;
}

.hidden {
    display: none;
}

/* Footer */
footer {
    background-color: #020617;
    /* Even darker for footer */
    color: #94A3B8;
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-social h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: #CBD5E1;
    transition: fill 0.3s ease;
}

.social-icon:hover {
    fill: #EAB308;
}

.footer-legal p {
    margin-bottom: 0.5rem;
}

.footer-trade {
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-disclosure {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: #64748B;
    border-top: 1px solid #1E293B;
    padding-top: 2rem;
    width: 100%;
}

.footer-disclosure a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-disclosure a:hover {
    color: #EAB308;
}

.footer-parent-brand {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}


/* ... existing code ... */

.footer-parent-logo {
    height: 30px;
    /* Reduced from 50px to 30px as requested */
    width: auto;
    border-radius: 4px;
}

.brand-text-link {
    color: #CBD5E1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.brand-text-link:hover {
    color: #EAB308;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .logo-img {
        height: 56px;
        /* Mobile height constraint */
    }

    .header-actions {
        gap: 0.75rem;
        /* Reduce gap on mobile */
    }

    .header-actions .btn {
        padding: 10px 16px;
        /* Compact button on mobile */
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .desktop-nav,
    .header-phone {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .mobile-nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form-wrapper {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.75rem;
    }
}