﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.nowrap {
    white-space: nowrap;
}

/* Header Styles */
.site-header {
    background-color: #1E3575;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1148px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.hpp-logo {
    display: flex;
    align-items: center;
}

.hpp-wordmark {
    height: 20px;
    width: 217px;
}

.logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-desktop {
    height: 32px;
    width: auto;
    display: block;
}

.logo-mobile {
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.support-link {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s;
}

    .support-link:hover {
        opacity: 0.8;
    }

/* =====================================================
   Hamburger Button — hidden on desktop, shown on mobile
   ===================================================== */
.hamburger-btn {
    display: none; /* hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

    .hamburger-btn .close-icon {
        display: none;
    }

    .hamburger-btn.open .hamburger-icon {
        display: none;
    }

    .hamburger-btn.open .close-icon {
        display: block;
    }

/* =====================================================
   Mobile Navigation Panel
   Only visible on mobile (≤768px) when .open is toggled
   ===================================================== */
.mobile-nav-panel {
    display: none; /* hidden by default always */
    position: fixed;
    top: 64px; /* height of mobile header: 40px logo + 12px*2 padding */
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    z-index: 998;
    overflow-y: auto;
    border-top: 1px solid #D9D9D9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

    .mobile-nav-panel.open {
        display: block;
    }

.mobile-nav-inner {
    padding: 8px 0 40px;
}

.mobile-nav-group {
    border-bottom: 1px solid #D9D9D9;
    padding: 16px 0 8px;
}

    .mobile-nav-group:last-child {
        border-bottom: none;
    }

.mobile-nav-group-title {
    display: block;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0072CE;
    text-decoration: underline;
    padding: 4px 20px 12px;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

    .mobile-nav-group-title:hover {
        color: #1E3575;
    }

.mobile-nav-link {
    display: block;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #0072CE;
    text-decoration: none;
    padding: 9px 20px;
    transition: background-color 0.2s;
}

    .mobile-nav-link:hover {
        background-color: #F6F6F6;
        color: #1E3575;
    }

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 450px;
}

.hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px;
    background: linear-gradient(to right, rgba(30, 58, 113, 0.95) 0%, rgba(30, 58, 113, 0.85) 40%, transparent 70%);
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: 1148px;
    margin: 0 auto;
    padding: 50px 20px 60px 20px;
    color: #ffffff;
    text-align: left;
}

.breadcrumb {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 100%;
    color: #FFFFFF;
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero-title {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 50px;
    font-weight: 400;
    line-height: 62px;
    letter-spacing: 0;
    margin-bottom: 0;
    max-width: 700px;
}

.hero-subtitle {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 16px;
}

.hero-description {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    max-width: 725px;
    opacity: 0.95;
}

/* Intro Section */
.intro-section {
    background-color: #FFFFFF;
    padding: 60px 20px 60px 20px;
}

.container {
    max-width: 1148px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #2B2B2B;
    margin-bottom: 20px;
    line-height: 36px;
    letter-spacing: 0%;
    max-width: 780px;
}

.section-description {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: #505357;
    max-width: 1100px;
}

/* Services Section */
.services-section {
    padding: 0px 20px 60px 20px;
    background-color: #ffffff;
}

.services-hr-top {
    border-top: 1px solid #D9D9D9;
    margin-bottom: 80px;
}

.services-title {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 100%;
    color: #2B2B2B;
    margin-bottom: 40px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    overflow: visible;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

    .service-card:hover .card-link-2 {
        color: #1E3575;
    }

    .service-card .card-title {
        background-color: #0072CE;
        color: #ffffff;
        padding: 16px 20px;
        font-family: 'Open Sans', Arial, sans-serif;
        font-size: 26px;
        font-weight: 600;
        line-height: 100%;
        margin: 0;
        transition: background-color 0.3s, color 0.3s;
        position: relative;
        top: 0;
    }

    .service-card .card-title-content {
        display: inline-flex;
    }

    .service-card:hover .card-title {
        background-color: #1E3575;
    }

    .service-card:hover .card-link-2 {
        text-decoration: none;
    }

.arrow-icon {
    width: 24px;
    height: 14px;
    margin: 5px 20px 0 0;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 560 / 300;
    border-left: 2px solid #1E3575;
    border-right: 2px solid #1E3575;
    border-bottom: 2px solid #1E3575;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 24px;
    background-color: #ffffff;
}

.card-content-1 {
    padding: 24px;
    border-left: 2px solid #1E3575;
    border-right: 2px solid #1E3575;
    background-color: #ffffff;
}

    .card-content-1:hover {
        background-color: #F6F6F6;
    }

.card-content-2 {
    padding: 24px 32px 24px 24px;
    border-left: 2px solid #1E3575;
    border-right: 2px solid #1E3575;
    background-color: #ffffff;
}

    .card-content-2:hover {
        background-color: #F6F6F6;
    }

.card-description {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: #505357;
    margin-bottom: 20px;
    width: 465px;
}

.card-link-1 {
    text-decoration: none;
}

.card-link-2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0072CE;
    text-decoration: underline;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    transition: gap 0.3s;
    margin-bottom: 6px;
}

    .card-link-2:hover {
        text-decoration: underline;
        color: #1E3575;
    }

.services-hr-bottom {
    border-top: 1px solid #D9D9D9;
    margin-top: 80px;
}

/* Why Home Protection Plus Section */
.why-hpp-section {
    background-color: #FFFFFF;
    padding: 0px 20px 60px 20px;
}

.why-hpp-title {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 36px;
    color: #2B2B2B;
    margin-bottom: 40px;
    line-height: 1.3;
}

.why-hpp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 60px;
    max-width: 1100px;
}

.why-hpp-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .why-hpp-item .checkmark {
        color: #1E3575;
        font-size: 24px;
        font-weight: 700;
        flex-shrink: 0;
        line-height: 1;
        margin-top: 8px;
    }

    .why-hpp-item p {
        font-family: 'Open Sans', Arial, sans-serif;
        font-size: 18px;
        font-weight: 400;
        line-height: 28px;
        color: #505357;
        margin: 0;
    }

/* Footer Styles */
.site-footer {
    background-color: #1E3575;
    color: #ffffff;
    padding: 60px 20px 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

    .social-links a {
        display: flex;
        align-items: center;
        transition: opacity 0.3s;
    }

        .social-links a:hover {
            opacity: 0.7;
        }

    .social-links img {
        width: 24px;
        height: 24px;
    }

.footer-links {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.footer-links-desktop {
    display: flex;
}

.footer-links-mobile {
    display: none;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

    .footer-links a:hover {
        opacity: 0.7;
        text-decoration: underline;
    }

.footer-links-secondary {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    display: none;
}

    .footer-links-secondary a {
        color: #ffffff;
        text-decoration: none;
        transition: opacity 0.3s;
    }

        .footer-links-secondary a:hover {
            opacity: 0.7;
            text-decoration: underline;
        }

.divider {
    color: #FFFFFF;
}

.copyright {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    opacity: 0.9;
}

.footer-divider {
    border: none;
    border-top: 1px solid #0C2340;
    margin: 30px 0 30px 0;
    width: 100%;
}

.footer-disclaimer {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    opacity: 0.8;
    max-width: 1148px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1148px;
    }
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1148px;
    }
}

/* =====================================================
   Mobile Responsive Styles  (≤ 768px)
   ===================================================== */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .hpp-logo {
        display: none;
    }

    .logo-link {
        position: static;
        transform: none;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        height: 40px;
        width: auto;
    }

    .support-link {
        display: none;
    }

    /* Show hamburger on mobile */
    .hamburger-btn {
        display: flex;
    }

    /* Hide desktop sub-nav on mobile — replaced by hamburger panel */
    .sub-nav {
        display: none !important;
    }

    /* Mobile nav panel: only renders when .open is toggled */
    .mobile-nav-panel.open {
        display: block;
    }

    .hero-section {
        min-height: 300px;
        height: auto;
    }

    .hero-image {
        min-height: 300px;
        object-fit: cover;
        object-position: 65% center;
    }

    .hero-overlay {
        background: linear-gradient(to right, rgba(30, 58, 113, 0.90) 0%, rgba(30, 58, 113, 0.75) 50%, transparent 100%);
        min-height: 300px;
        width: 100%;
        height: 100%;
    }

    .hero-content {
        padding: 40px 24px 40px 50px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
    }

    .breadcrumb {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 38px;
        line-height: 48px;
        font-weight: 400;
        margin-bottom: 24px;
        max-width: 85%;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 20px;
        line-height: 26px;
    }

    .hero-description {
        font-size: 16px;
        font-weight: 400;
        line-height: 26px;
        max-width: 100%;
    }

    .intro-section {
        padding: 40px 16px 0px 50px;
    }

    .section-title {
        font-size: 22px;
        font-weight: 600;
        line-height: 32px;
        width: 305px;
    }

    .section-description {
        font-size: 18px;
        font-weight: 400;
        line-height: 30px;
        width: 305px;
    }

    .services-hr-top {
        display: none;
    }

    .services-section {
        padding: 24px 16px 40px 50px;
    }

    .services-title {
        font-size: 28px;
        font-weight: 600;
        line-height: 38px;
        margin-bottom: 20px;
        text-align: left;
        width: 322px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        width: 322px;
    }

        .service-card .card-title {
            padding: 14px 16px;
            font-size: 22px;
            font-weight: 600;
            line-height: 100%;
        }

    .card-content {
        padding: 20px;
    }

    .card-description {
        font-size: 18px;
        font-weight: 400;
        line-height: 30px;
        width: 295px;
    }

    .card-image {
        height: 140px;
    }

    .card-link {
        font-size: 16px;
        font-weight: 600;
        line-height: 26px;
    }

    .services-hr-bottom {
        display: none;
    }

    .card-image-wrapper {
        aspect-ratio: initial;
    }

    .why-hpp-section {
        padding: 0px 16px 40px 50px;
    }

    .why-hpp-title {
        font-size: 22px;
        line-height: 32px;
        margin-bottom: 30px;
    }

    .why-hpp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-hpp-item p {
        font-size: 18px;
        width: 322px;
    }

    .site-footer {
        padding: 40px 16px 20px;
    }

    .social-links {
        gap: 16px;
        margin-bottom: 30px;
    }

        .social-links img {
            width: 24px;
            height: 24px;
        }

    .footer-links-desktop {
        display: none;
    }

    .footer-links-mobile {
        display: flex !important;
        font-size: 14px;
        line-height: 16px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
        justify-content: center;
    }

        .footer-links-mobile .divider {
            display: inline;
        }

    .footer-links-secondary {
        font-size: 14px;
        gap: 8px;
        margin-bottom: 20px;
        display: inherit;
    }

        .footer-links-secondary .divider {
            display: inline;
        }

    .copyright {
        font-size: 14px;
        font-weight: 400;
        line-height: 100%;
        margin-bottom: 16px;
    }

    .footer-divider {
        margin: 0 0 16px 0;
    }

    .footer-disclaimer {
        font-size: 12px;
        font-weight: 400;
        line-height: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 38px;
    }

    .services-grid {
        gap: 24px;
    }
}
