:root {
    --primary-color: #ac5030;
    --secondary-color: #ac5030;
    --dark-color: #28221f;
    --light-color: #f8f9fa;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: underline;
}

body {
    font-family: Rubik, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    margin: 0;
    padding: 0;
    background: #fff;
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.hero {
    background: linear-gradient(rgba(0,123,255,0.8), rgba(0,123,255,0.8)), url('assets/2-Real-Estate-Inspectionsjpg_0959_lg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.btn:hover {
    background-color: var(--dark-color);
}

.call-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}

.call-button:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.text-call {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-tel {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.text-es {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

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

.certifications {
    background-color: #ffffff;
}

.services h2,
.certifications h2,
.team h2,
.contact h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.services p,
.certifications p,
.team p,
.contact p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    align-items: center;
    margin-top: 2rem;
}

.cert-card {
    background: var(--white);
    padding: 1.2rem;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    min-height: 200px;
}

@media (max-width: 900px) {
    .certifications-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

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

.cert-card img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    object-fit: contain;
}

.service-card {
    background: var(--white);
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 470px;
}

.service-image {
    min-height: 220px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.service-card h3 {
    color: var(--primary-color);
    margin: 1.5rem 1.5rem 0.75rem;
}

.service-card p {
    margin: 0 1.5rem 1.5rem;
    color: var(--dark-color);
    flex-grow: 1;
}

.service-insurance .service-image {
    background-image: url('assets/1-Insurance-Inspectionsjpg_2145_lg.jpg');
}

.service-real-estate .service-image {
    background-image: url('assets/2-Real-Estate-Inspectionsjpg_0959_lg.jpg');
}

.service-commercial .service-image {
    background-image: url('assets/3-Commercial-and-Residential-Inspec_1e50_lg.jpg');
}

.service-renters .service-image {
    background-image: url('assets/4-Renters-Inspections_369e_lg.jpg');
}

.service-seawalls .service-image {
    background-image: url('assets/EM-SeaWall_a86b_lg.jpg');
}

.service-mold .service-image {
    background-image: url('assets/3-Mold-Assessmentjpg_d8be_lg.jpg');
}

.service-sewer .service-image {
    background-image: url('assets/5-Sewer-Camerajpg_b74e_lg.webp');
}

.service-termite .service-image {
    background-image: url('assets/7-Termite---WDO-Inspectionsjpg_67f7_lg.webp');
}

.team {
    background-color: var(--white);
}

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

.team-member {
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.contact {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    max-width: 280px;
}

.contact-item h3 {
    margin-bottom: 0.75rem;
}

.contact-item p {
    margin: 0.5rem 0;
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.7;
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 2.2rem;
        margin-top: 0;
    }

    .hero p {
        font-size: 1rem;
    }

    .services-grid,
    .team-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
}
