/* Ubuntu font now loaded in HTML head for performance */

:root {
    --brand-red: rgb(209, 81, 76);
    --brand-red-hover: rgb(189, 61, 56);
    --brand-red-dark: #c73a35;
    --white: #ffffff;
    --black: #000000;
    --gray-dark: #333;
    --gray-medium: #666;
    --gray-light: #f8f9fa;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: 'Ubuntu', sans-serif;
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 4px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand-red);
}

/* Consolidated Navigation Styles */
.nav-container nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-container nav ul li a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    transition: color var(--transition-normal);
}

.nav-container nav ul li a:hover {
    color: var(--brand-red);
}

/* Consolidated Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: var(--shadow-medium);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 100;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    display: block;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    color: var(--gray-dark);
    font-weight: normal;
}

.dropdown-menu a:hover {
    background-color: var(--gray-light);
    color: var(--brand-red);
}

/* Consolidated Button Styles */
.btn-get-estimate {
    background-color: var(--brand-red);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background-color var(--transition-normal);
}

.btn-get-estimate:hover {
    background-color: var(--brand-red-dark);
    color: var(--white) !important;
}

.phone-link {
    color: var(--gray-medium) !important;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
}

.phone-link:hover {
    color: var(--brand-red) !important;
    text-decoration: none;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--gray-dark);
    margin: 3px 0;
    transition: var(--transition-normal);
    display: block;
}

#hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

#hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

#hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

#hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Consolidated Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
    }

    header .container {
        position: relative;
    }

    .nav-container {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 999;
    }

    .nav-container.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-container nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 10px 0 10px 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        color: inherit;
        padding: 8px 0;
    }

    .dropdown-menu a:hover {
        background-color: transparent;
    }

    .btn-get-estimate {
        width: 100%;
        text-align: center;
    }
}

/* Online Estimate Section Styles */
.online-estimate-section {
    background-color: var(--gray-light);
    padding: 80px 0;
}

.online-estimate-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.online-estimate-section .section-header h2 {
    color: var(--gray-dark);
    margin-bottom: 15px;
    font-size: 36px;
    font-weight: 700;
}

.online-estimate-section .section-header p {
    color: var(--gray-medium);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.estimate-showcase {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.step {
    text-align: center;
    padding: 25px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-normal);
}

.step:hover {
    transform: translateY(-5px);
}

.step-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon i {
    color: white;
    font-size: 24px;
}

.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #333;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.step h3 {
    color: var(--gray-dark);
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.step p {
    color: var(--gray-medium);
    line-height: 1.6;
}

.estimate-benefits {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.benefits-content h3 {
    color: var(--gray-dark);
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.benefits-list {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--gray-dark);
    font-size: 16px;
}

.benefits-list li i {
    color: var(--brand-red);
    margin-right: 15px;
    font-size: 16px;
}

.satellite-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-medium);
}

.satellite-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.satellite-image img {
    width: 100%;
    height: auto;
    display: block;
}

.trace-outline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roof-outline {
    width: 100%;
    height: 100%;
}

.roof-outline polygon {
    animation: dashMove 3s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -24;
    }
}

.showcase-text h3 {
    color: var(--gray-dark);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.showcase-text p {
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--gray-dark);
    font-size: 16px;
}

.feature-list li i {
    color: var(--brand-red);
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
}

.estimate-cta {
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-light);
}

.estimate-cta-button {
    background-color: var(--brand-red);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
    transition: background-color var(--transition-normal);
    margin-bottom: 15px;
}

.estimate-cta-button:hover {
    background-color: var(--brand-red-hover);
    color: white;
    text-decoration: none;
}

.cta-note {
    color: var(--gray-medium);
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

/* Mobile responsiveness for online estimate section */
@media (max-width: 768px) {
    .online-estimate-section {
        padding: 60px 0;
    }

    .online-estimate-section .section-header h2 {
        font-size: 28px;
    }

    .estimate-showcase {
        gap: 40px;
    }

    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
        margin-bottom: 30px;
    }

    .step {
        padding: 20px 15px;
    }

    .satellite-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
        text-align: center;
    }

    .showcase-text h3 {
        font-size: 22px;
    }

    .estimate-cta {
        padding: 25px 20px;
    }
}

/* Owner Section Styles */
.owner-section {
    background-color: white;
    padding: 80px 0;
}

.owner-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.owner-image {
    text-align: center;
}

.owner-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.owner-text h2 {
    color: var(--brand-red);
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.owner-text h3 {
    color: var(--gray-dark);
    margin-bottom: 25px;
    font-size: 32px;
    font-weight: 700;
}

.owner-text p {
    color: var(--gray-medium);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
}

.owner-credentials {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.credential {
    display: flex;
    align-items: center;
    gap: 12px;
}

.credential i {
    color: var(--brand-red);
    font-size: 18px;
    width: 20px;
}

.credential span {
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 16px;
}

/* Owner section mobile responsiveness */
@media (max-width: 768px) {
    .owner-section {
        padding: 60px 0;
    }

    .owner-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .owner-image img {
        max-width: 280px;
    }

    .owner-text h2 {
        font-size: 20px;
    }

    .owner-text h3 {
        font-size: 28px;
    }

    .owner-credentials {
        justify-content: center;
    }

    .credential {
        justify-content: center;
    }
}

/* Testimonials Section Styles */
.testimonials-section {
    background-color: var(--gray-light);
    padding: 80px 0;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-section .section-header h2 {
    color: var(--gray-dark);
    margin-bottom: 15px;
    font-size: 36px;
    font-weight: 700;
}

.testimonials-section .section-header p {
    color: var(--gray-medium);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    border: 2px solid #e8f0fe;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.google-logo {
    display: flex;
    align-items: center;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #fbbf24;
    font-size: 20px;
    font-weight: bold;
}

.reviewer-name {
    color: var(--gray-dark);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--gray-medium);
    line-height: 1.6;
    font-size: 16px;
}

/* Testimonials mobile responsiveness */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-section .section-header h2 {
        font-size: 28px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .testimonial-card {
        padding: 25px 20px;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .reviewer-name {
        font-size: 18px;
    }

    .testimonial-text {
        font-size: 15px;
    }
}

/* Consolidated Footer Styles */
.footer-locations {
    margin: 0;
}

.footer-locations h4 {
    color: var(--brand-red);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-locations ul {
    list-style: none;
    padding: 0;
}

.footer-locations li {
    margin-bottom: 10px;
}

.footer-locations a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-locations a:hover {
    color: var(--brand-red);
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
    .hero {
        margin-top: 120px; /* Increased from 88px for mobile */
    }
    
    .logo img {
        height: 60px; /* Slightly smaller logo */
    }
}

/* Hero Section - Critical background styles moved to inline CSS for LCP optimization */

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.trust-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}

.badge i {
    font-size: 18px;
    color: rgb(209, 81, 76);
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.service-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.service-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Form Styles */
.form-container {
    flex: 1;
    max-width: 450px;
    background-color: rgba(14, 20, 34, 0.8);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.form-header {
    text-align: center;
    margin-bottom: 15px;
}

.form-header h2 {
    font-size: 24px;
    margin-bottom: 3px;
}

.form-header h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.highlight {
    color: rgb(209, 81, 76);
    font-weight: bold;
}

#estimate-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-margin-top: 120px;
}

#estimate-form input {
    padding: 14px;
    border-radius: 5px;
    border: none;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
}

.submit-button {
    background-color: rgb(209, 81, 76);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 5px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: rgb(189, 61, 56);
}

.form-disclaimer {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    margin-top: 15px;
}

.rating-badges {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.rating-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rating-badge i {
    font-size: 24px;
    margin-bottom: 5px;
}

.stars {
    color: gold;
    margin-bottom: 5px;
}

.rating-badge span {
    font-size: 12px;
    font-weight: 700;
}

/* Add styling for the select dropdown */
#estimate-form select {
    padding: 14px;
    border-radius: 5px;
    border: none;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    background-color: white;
    appearance: none; /* Removes default browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

#estimate-form select:focus,
#estimate-form input:focus {
    outline: 2px solid rgb(209, 81, 76);
}

/* Optional: style for dropdown options if needed */
#estimate-form select option {
    padding: 10px;
}

/* Add styling for the select dropdown placeholder */
#estimate-form select option[disabled] {
    color: #757575; /* Grey color similar to input placeholders */
}

#estimate-form select {
    color: #757575; /* Initial text color (the selected placeholder) */
}

#estimate-form select:valid {
    color: #000; /* Once a real option is selected, change to normal text color */
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .form-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Hero padding moved to inline CSS for LCP */
    
    .hero h1 {
        font-size: 36px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .service-buttons {
        flex-direction: column;
    }
}

/* Warranty Section - replacing social proof */
.warranty-section {
    background-color: rgb(209, 81, 76);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.warranty-logo img {
    height: 80px;
    background: white;
    padding: 10px;
    border-radius: 5px;
}

.warranty-content {
    text-align: center;
}

.warranty-content h2 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
}

.warranty-content h3 {
    font-size: 32px;
    font-weight: 700;
}

.warranty-badge img {
    height: 90px;
}

/* Responsive styles for warranty section */
@media (max-width: 768px) {
    .warranty-section .container {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    
    .warranty-content {
        margin: 10px 0;
    }
}

/* Locations Section */
.locations-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.location-services .section-header h2,
.location-services .section-header p {
    color: inherit;
}

.location-services {
    padding: 80px 0;
    background: var(--white);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--gray-light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 32px;
    color: var(--white);
}

.service-card h3 {
    color: var(--gray-dark);
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-link {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid var(--brand-red);
    border-radius: 5px;
    transition: var(--transition-normal);
}

.service-link:hover {
    background: var(--brand-red);
    color: var(--white);
    text-decoration: none;
}

@media (max-width: 768px) {
    .location-services {
        padding: 60px 0;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.location-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.location-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative; /* This is needed for absolute positioning of the headshot */
}

.location-image.boston {
    background-image: url('images/locations/boston-optimized.webp');
}

.no-webp .location-image.boston {
    background-image: url('images/locations/boston-optimized.jpg');
}

.location-image.houston {
    background-image: url('images/locations/houston-optimized.webp');
}

.no-webp .location-image.houston {
    background-image: url('images/locations/houston-optimized.jpg');
}

.location-image.austin {
    background-image: url('images/locations/austin-optimized.webp');
}

.no-webp .location-image.austin {
    background-image: url('images/locations/austin-optimized.jpg');
}

.location-image.south-florida {
    background-image: url('images/locations/south-florida-optimized.webp');
}

.no-webp .location-image.south-florida {
    background-image: url('images/locations/south-florida-optimized.jpg');
}

.location-image.northjersey {
    background-image: url('images/locations/location-northjersey-optimized.webp');
}

.no-webp .location-image.northjersey {
    background-image: url('images/locations/location-northjersey-optimized.jpg');
}

.location-image.fairfield {
    background-image: url('images/locations/location-fairfield-optimized.webp');
}

.no-webp .location-image.fairfield {
    background-image: url('images/locations/location-fairfield-optimized.jpg');
}

.location-card h3 {
    font-size: 24px;
    padding: 20px 20px 10px;
    color: #333;
    padding-top: 30px;
}

.location-card p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 16px;
}

.location-button {
    display: block;
    margin: 0 20px 20px;
    padding: 12px 0;
    background-color: rgb(209, 81, 76);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.location-button:hover {
    background-color: rgb(189, 61, 56);
}

/* Owner headshot styling */
.owner-headshot {
    position: absolute;
    bottom: -25px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.owner-headshot img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.owner-headshot span {
    margin-top: 5px;
    background-color: rgb(209, 81, 76);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Responsive adjustments for locations section */
@media (max-width: 768px) {
    .locations-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }
}

/* Our System Section */
.system-section {
    padding: 50px 0 60px;
    background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
}

.system-intro {
    margin: 0 auto 30px;
}

.system-intro h3 {
    font-size: 30px;
    margin-bottom: 10px;
}

.system-intro p {
    font-size: 17px;
    line-height: 1.4;
}

.system-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.system-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.system-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background-color: rgb(209, 81, 76);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: white;
}

.system-icon i {
    font-size: 40px;
}

.system-icon span {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #333;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.system-card h3 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 15px;
    color: #333;
}

.system-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.system-features {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}

.system-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-features li i {
    color: rgb(209, 81, 76);
    font-size: 16px;
}

.system-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f0f0f0;
    padding: 10px 15px;
    border-radius: 25px;
    width: fit-content;
    margin: 0 auto;
}

.system-badge img {
    height: 30px;
}

.system-badge i {
    font-size: 24px;
    color: rgb(209, 81, 76);
}

.system-badge span {
    font-weight: 600;
    font-size: 14px;
}

.highlight-badge {
    background-color: rgb(209, 81, 76);
    color: white;
}

.highlight-badge i {
    color: white;
}

.highlight-badge span {
    color: white;
}

.system-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.system-cta p {
    font-size: 18px;
    margin-bottom: 20px;
}

.system-button {
    display: inline-block;
    background-color: rgb(209, 81, 76);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.system-button:hover {
    background-color: rgb(189, 61, 56);
}

/* Responsive adjustments for system section */
@media (max-width: 768px) {
    .system-section {
        padding: 50px 0;
    }
    
    .system-intro h3 {
        font-size: 28px;
    }
    
    .system-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo p {
    margin-top: 10px;
    font-size: 16px;
}

.footer-links h4, .footer-services h4, .footer-locations h4, .footer-contact h4 {
    color: rgb(209, 81, 76);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-links h4 a, .footer-services h4 a, .footer-locations h4 a {
    color: rgb(209, 81, 76);
    text-decoration: none;
}

.footer-links h4 a:hover, .footer-services h4 a:hover, .footer-locations h4 a:hover {
    color: rgb(189, 61, 56);
    text-decoration: underline;
}

.footer-links ul, .footer-services ul, .footer-locations ul {
    list-style: none;
}

.footer-links li, .footer-services li, .footer-locations li {
    margin-bottom: 10px;
}

.footer-links a, .footer-services a, .footer-locations a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-services a:hover, .footer-locations a:hover {
    color: rgb(209, 81, 76);
}

.footer-contact p {
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: rgb(209, 81, 76);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
}

/* Hamburger Menu Styles - display rule handled in media queries above */

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    background-color: rgb(209, 81, 76);
    transition: all 0.3s ease;
}

#hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Remove duplicate and conflicting mobile styles - handled by main 768px media query above */

/* Add styling for the benefit numbers */
.benefit-number {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 60px;
    font-weight: 700;
    color: rgba(209, 81, 76, 0.15);
    z-index: 0;
}

/* Update the benefit card to have position relative to contain absolute positioned elements */
.benefit-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Make sure the content is above the number */
.benefit-card i,
.benefit-card h3,
.benefit-card p {
    position: relative;
    z-index: 1;
}

/* New Apply Section Styles */
.two-step-process {
    max-width: 900px;
    margin: 50px auto 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 40px;
    backdrop-filter: blur(5px);
}

.step-container {
    margin-bottom: 30px;
}

.step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.step-header p {
    font-size: 16px;
    opacity: 0.8;
}

.test-estimate-form {
    max-width: 500px;
    margin: 0 auto;
}

#sandbox-estimate-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#sandbox-address-input {
    padding: 15px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

.step-separator {
    display: flex;
    align-items: center;
    margin: 40px 0;
}

.separator-line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.separator-text {
    padding: 0 20px;
    font-weight: bold;
    font-size: 18px;
}

.application-button-container {
    text-align: center;
}

.application-button-container .apply-button {
    display: inline-block;
    background-color: rgb(209, 81, 76);
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.application-button-container .apply-button:hover {
    background-color: rgb(180, 60, 55);
}

.application-button-container p {
    font-size: 14px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .two-step-process {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .two-step-process {
        padding: 20px 15px;
    }
}

/* Improve contrast in the apply section */
.apply-section .section-header h2,
.apply-section .section-header p {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.apply-section .section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.apply-section .section-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* Add a subtle highlight to make it stand out more */
.apply-section .section-header {
    position: relative;
    padding-bottom: 20px;
}

.apply-section .section-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: rgb(209, 81, 76);
    border-radius: 3px;
}

/* About Us Page Styles */

.company-overview {
    background-color: var(--gray-light);
    padding: 80px 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.overview-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: var(--transition-normal);
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.overview-icon {
    width: 70px;
    height: 70px;
    background-color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.overview-icon i {
    font-size: 30px;
}

.overview-card h3 {
    color: var(--gray-dark);
    margin-bottom: 15px;
    font-size: 20px;
}

.overview-card p {
    color: var(--gray-medium);
    line-height: 1.6;
}

.service-areas {
    background-color: white;
    padding: 80px 0;
}

.service-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.area-card {
    background: var(--gray-light);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.area-card:hover {
    border-color: var(--brand-red);
    transform: translateY(-3px);
}

.area-icon {
    width: 50px;
    height: 50px;
    background-color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
}

.area-icon i {
    font-size: 20px;
}

.area-card h3 {
    color: var(--gray-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

.area-card p {
    color: var(--gray-medium);
    font-size: 14px;
    line-height: 1.5;
}

.service-area-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--gray-light);
    border-radius: 10px;
}

.service-area-note a {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 500;
}

.service-area-note a:hover {
    text-decoration: underline;
}

.why-choose-us {
    background-color: var(--gray-light);
    padding: 80px 0;
}

.contact-section {
    background-color: white;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
}

.contact-details h3 {
    color: var(--gray-dark);
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-details p {
    color: var(--gray-medium);
    line-height: 1.6;
}

.contact-details a {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-cta {
    background: var(--gray-light);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.cta-content {
    color: var(--gray-dark);
}

.cta-content h2,
.cta-content h3 {
    color: inherit;
}

.cta-content h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.cta-content p {
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: var(--brand-red);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-normal);
    margin-bottom: 15px;
}

.cta-button:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
}

.cta-note {
    font-size: 14px;
    color: var(--gray-medium);
}

.cta-note a {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 500;
}

.cta-note a:hover {
    text-decoration: underline;
}

.owner-contact {
    margin-top: 25px;
    padding: 20px;
    background: var(--gray-light);
    border-radius: 10px;
}

.owner-contact p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.owner-contact i {
    color: var(--brand-red);
    width: 16px;
}

/* Responsive styles for About Us page */
@media (max-width: 768px) {
    .overview-grid,
    .service-areas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .company-overview,
    .service-areas,
    .why-choose-us,
    .contact-section {
        padding: 60px 0;
    }

    .contact-cta {
        padding: 30px 20px;
    }
} 