/* CHPXL standalone site styles - subdirectory-aware, 55+ friendly */

/* Base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #1E1E1E;
    background-color: #FFFFFF;
}

a {
    color: #1B4965;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0B2545;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 2.3rem;
}

h2 {
    font-size: 1.9rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

/* Layout */

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */

.chpxl-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E5E5;
    position: static;
    top: auto;
    z-index: 10;
}

.chpxl-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 1.5rem;
}

.chpxl-logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0B2545;
}

/* Main nav */

.chpxl-main-nav {
    display: flex;
    align-items: center;
}

.chpxl-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
}

.chpxl-menu > li {
    position: relative;
}

.chpxl-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0;
    color: #0B2545;
    font-weight: 500;
}

/* Active page */

.chpxl-menu > li.active > a {
    color: #1B4965;
    text-decoration: underline;
}

.chpxl-menu > li > a:hover {
    color: #1B4965;
}

/* Dropdown arrow */

.chpxl-menu-arrow {
    font-size: 0.75rem;
}

/* Dropdown styling (desktop hover) */

.chpxl-menu li ul.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px;
    background-color: #FFFFFF;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 999;
}

.chpxl-menu li ul.sub-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: #0B2545;
    white-space: nowrap;
}

.chpxl-menu li ul.sub-menu li a:hover {
    background-color: #F5F9FF;
    color: #1B4965;
}

.chpxl-menu > li:hover > ul.sub-menu,
.chpxl-menu > li:focus-within > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header CTA */

.chpxl-header-cta a {
    display: inline-block;
    background-color: #0B2545;
    color: #FFFFFF;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}

.chpxl-header-cta a:hover {
    background-color: #1B4965;
    text-decoration: none;
}

/* Hero */

.chpxl-hero {
    position: relative;
    color: #FFFFFF;
    padding: 5rem 0;
    background-size: cover;
    background-position: center;
}

/* Overlay for hero */

.chpxl-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(11, 37, 69, 0.8),
        rgba(11, 37, 69, 0.5)
    );
}

.chpxl-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.chpxl-hero h1 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.chpxl-hero p.hero-subline {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.chpxl-hero p.hero-small {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 1.75rem;
}

.chpxl-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Buttons */

.chpxl-btn-primary,
.chpxl-btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
}

.chpxl-btn-primary {
    background-color: #FFFFFF;
    color: #0B2545;
}

.chpxl-btn-primary:hover {
    background-color: #E5E5E5;
    text-decoration: none;
}

/* Default secondary – hero style (white outline) */

.chpxl-btn-secondary {
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    background: transparent;
}

.chpxl-btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* Hero trust row */

.chpxl-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
}

.chpxl-hero-trust-item::before {
    content: "✔";
    margin-right: 0.35rem;
}

/* Sections */

.chpxl-section {
    padding: 3.5rem 0;
}

.chpxl-section--light {
    background-color: #F5F9FF;
}

/* Grids / cards */

.chpxl-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.chpxl-card {
    background-color: #FFFFFF;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chpxl-card img {
    width: 100%;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Two-column layout */

.chpxl-two-col,
.chpxl-communities,
.chpxl-pet-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.chpxl-two-col img,
.chpxl-communities img,
.chpxl-pet-teaser img {
    width: 100%;
    border-radius: 1rem;
}

/* Gallery grid */

.chpxl-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.chpxl-gallery-grid img {
    width: 100%;
    border-radius: 0.75rem;
    display: block;
}

/* Click-to-zoom frames */

.chpxl-zoom-frame {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: zoom-in;
    margin-bottom: 0.75rem;
}

.chpxl-zoom-frame img {
    width: 100%;
    display: block;
    transition: transform 0.2s ease;
}

.chpxl-zoom-frame.zoomed {
    cursor: zoom-out;
}

.chpxl-zoom-frame.zoomed img {
    transform: scale(2);
}

/* Inner page hero */

.chpxl-inner-hero {
    background-color: #F5F9FF;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #E5E5E5;
}

.chpxl-inner-hero p {
    max-width: 800px;
}

/* Contact form */

.chpxl-form {
    max-width: 600px;
}

.chpxl-form-row {
    margin-bottom: 1rem;
}

.chpxl-form-row label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.chpxl-form-row input[type="text"],
.chpxl-form-row input[type="email"],
.chpxl-form-row input[type="tel"],
.chpxl-form-row textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid #C8D0E0;
    font-size: 1rem;
}

.chpxl-form-row textarea {
    min-height: 130px;
    resize: vertical;
}

/* Contact CTA */

.chpxl-contact-cta {
    background-color: #0B2545;
    color: #FFFFFF;
    text-align: center;
    padding: 3rem 1.5rem;
}

.chpxl-contact-cta h2 {
    color: #FFFFFF;
}

/* Footer */

.chpxl-footer {
    background-color: #0B2545;
    color: #FFFFFF;
    padding: 2.5rem 0 1.5rem;
}

.chpxl-footer a {
    color: #FFFFFF;
}

.chpxl-footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.chpxl-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Why CHPXL buttons – inside content sections */

.chpxl-section .chpxl-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.chpxl-section .chpxl-btn-row a.chpxl-btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    border-radius: 6px;
    border: 1px solid #2e5caa;
    background-color: #ffffff;
    color: #2e5caa !important;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chpxl-section .chpxl-btn-row a.chpxl-btn-secondary:hover {
    background-color: #2e5caa;
    color: #ffffff !important;
    border-color: #2e5caa;
}

/* Video buttons inside cards */

.chpxl-video-btn {
    border: 2px solid #1B4965;
    color: #1B4965;
    background-color: #FFFFFF;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.75rem;
    display: inline-block;
    position: relative;
    z-index: 2;
    align-self: center;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
}

.chpxl-video-btn:hover {
    background-color: #1B4965;
    color: #FFFFFF;
    text-decoration: none;
}

/* Video modal overlay */

.chpxl-video-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
}

.chpxl-video-modal-overlay.is-active {
    display: flex;
}

.chpxl-video-modal {
    position: relative;
    background-color: #000000;
    border-radius: 0.75rem;
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chpxl-video-modal video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
}

/* Close button */

.chpxl-video-modal-close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    color: #FFFFFF;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    z-index: 2;
}

/* ⭐⭐⭐ TESTIMONIAL SECTION (NEW + 55+ friendly) ⭐⭐⭐ */

.chpxl-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-top: 1.75rem;
}

.chpxl-testimonial {
    background-color: #FFFFFF;
    border-radius: 0.9rem;
    padding: 1.75rem 1.8rem;
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
    position: relative;
}

.chpxl-testimonial::before {
    content: "“";
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 3rem;
    color: rgba(27, 73, 101, 0.18);
    pointer-events: none;
}

/* 55+ friendly typography */
.chpxl-testimonial-quote {
    margin: 0 0 1rem;
    font-size: 1.05rem; 
    line-height: 1.9;
    font-style: italic;
    font-family: "Georgia", "Times New Roman", serif;
    color: #243b53; 
}

.chpxl-testimonial-meta {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1B4965;
    letter-spacing: 0.01em;
}

/* Responsive */

@media (max-width: 768px) {
    .chpxl-header-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .chpxl-main-nav {
        width: 100%;
        margin-top: 0.5rem;
    }

    .chpxl-menu {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid #E5E5E5;
        padding-top: 0.5rem;
    }

    .chpxl-menu > li > a {
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    .chpxl-menu li ul.sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        transform: none;
        visibility: visible;
        opacity: 1;
        padding-left: 1rem;
    }

    .chpxl-menu li ul.sub-menu li a {
        padding: 0.4rem 0;
        font-size: 0.95rem;
    }

    .chpxl-grid-3,
    .chpxl-two-col,
    .chpxl-communities,
    .chpxl-pet-teaser,
    .chpxl-gallery-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}
