/* ==========================================================================
   1. BASE / GLOBAL STYLES
   ========================================================================== */

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.25;
}

p {
    color: #252c6b;
    font-size: 18px;
}


/* ==========================================================================
   2. LAYOUT WRAPPERS
   ========================================================================== */

.pre-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.text-col-wrap {
    max-width: 30em;
}

.quote-wrap {
    max-width: 55ch;
}

.text-align-center {
    text-align: center !important;
}

.vertical-divider {
    border-left: solid 3px #57ac4e;
    height: 100%;
    min-height: 300px;
}


/* ==========================================================================
   3. TYPOGRAPHY — Page Titles
   ========================================================================== */

#CustomTitle {
    color: #252c6b !important;
    font-family: 'Oswald', sans-serif;
    font-size: 1.6em !important;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem !important;
}

body.agents_list #CustomTitle {
    color: #252c6b !important;
    font-family: 'Oswald', sans-serif;
    font-size: 3em !important;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem !important;
}

.contact_us #content h1 {
    color: #252c6b !important;
    font-family: 'Oswald', sans-serif;
    font-size: 3em !important;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem !important;
}

.lc_page {
    color: #252c6b !important;
    font-family: 'Oswald', sans-serif;
    font-size: 3em !important;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem !important;
}


/* ==========================================================================
   4. TYPOGRAPHY — Headings (h2, h3) & Color Spans
   ========================================================================== */

h2 .green {
    color: #57ac4e;
    font-size: 28px;
    font-weight: 500;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0px;
}

h2 .blue {
    color: #252c6b;
    font-size: 2em;
    font-weight: 500;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0px;
}

h3 .blue {
    color: #252c6b;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    line-height: 1.5;
    text-transform: uppercase;
}

h3 .green {
    color: #57ac4e;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}


/* ==========================================================================
   5. TYPOGRAPHY — Content Area Overrides
   ========================================================================== */

#content p {
    font-size: 1.5em;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

#content .three_column_group p,
#content .two_column_group p {
    color: #252c6b !important;
    font-size: 1em !important;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

#content .three_column_group h2,
#content .two_column_group h2 {
    font-size: 26px;
    color: #000;
    font-family: 'Oswald', sans-serif;
}

#content .three_column_group h3,
#content .two_column_group h3 {
    font-size: 20px !important;
    color: #252c6b;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 1.5em !important;
}

#quote-text-green p {
    color: #57ac4e !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 400 !important;
    font-size: 42px !important;
    line-height: 1.3 !important;
}


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn-pill-blue {
    background-color: #252c6b;
    color: #fff !important;
    border-radius: 50px;
    padding: 12px 30px;
    border: none;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
}

.btn-pill-blue:hover {
    color: #252c6b !important;
    background-color: #fff !important;
    border: 2px solid #252c6b;
}

.btn-pill-green {
    background-color: #57ac4e;
    color: #fff !important;
    border-radius: 50px;
    padding: 12px 30px;
    border: none;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
}

.btn-pill-green:hover {
    color: #57ac4e !important;
    background-color: #fff !important;
    border: 2px solid #57ac4e;
}


/* ==========================================================================
   7. HERO VIDEO SECTION
   ========================================================================== */

.hero-video-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 300px;
    overflow: hidden;
    background-color: #000;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#thumbnailVideo {
    pointer-events: none;
}

/* --- Video Controls --- */

.video-controls {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.video-control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.video-control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.08);
}

.video-control-btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    background: rgba(0, 0, 0, 0.8);
}

/* Hide inactive button */
.video-control-btn[hidden] {
    display: none;
}


/* ==========================================================================
   8. FAQ ACCORDION
   ========================================================================== */

.accordion-header {
    margin-bottom: 0;
}

.accordion-item {
    border: none;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-button {
    background-color: transparent;
    color: #252c6b;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 500;
    padding: 1.5rem 0;
    box-shadow: none;
    text-transform: none;
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: #57ac4e;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23252c6b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    width: 1.5rem;
    height: 1.5rem;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2357ac4e'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1rem 0 1.5rem 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
}


/* ==========================================================================
   9. NEWSLETTER SECTION
   ========================================================================== */

.newsletter-title {
    color: #fff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    font-weight: 500;
    line-height: 1.2 !important;
    text-transform: none;
}

.newsletter-link {
    text-decoration: none;
    display: block;
}

.newsletter-link:hover {
    text-decoration: none;
}

.newsletter-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-image {
    display: block;
    transition: transform 0.3s ease;
}

.newsletter-card:hover .newsletter-image {
    transform: scale(1.05);
}

.newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(37, 44, 107, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-card:hover .newsletter-overlay {
    opacity: 1;
}

.newsletter-view-text {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ==========================================================================
   10. CONTACT / LOCATIONS SECTION
   ========================================================================== */

.location-card {
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 8px;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.location-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.location-title {
    text-align: center;
    border-bottom: 3px solid #57ac4e;
    padding-bottom: 1rem;
}

.location-title .green {
    font-size: 24px;
}

.location-details {
    text-align: center;
}

.location-details p {
    margin-bottom: 1rem;
}

.location-details strong {
    color: #252c6b;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
}

.location-address,
.location-phone,
.location-email,
.location-hours {
    font-size: 16px;
    line-height: 1.6;
}

.location-email a {
    color: #57ac4e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-phone a:hover,
.location-email a:hover {
    color: #252c6b;
    text-decoration: underline;
}

#locations .location-phone {
    color: #252c6b !important;
}


/* ==========================================================================
   11. AGENT LIST
   ========================================================================== */

body.agents_list #content a {
    color: #57ac4e !important;
}

.agent_list .agent_list_item h2 {
    text-transform: none;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 20px;
    color: #252c6b;
    font-family: 'Oswald', sans-serif;
    margin-top: 0.5em !important;
}

.agent_list .agent_list_item button {
    background-color: #252c6b !important;
}

#services h1 {
    color: #252c6b;
    font-size: 3em;
    font-weight: 500;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0px;
}

#services h2 .blue {
    color: #252c6b;
    font-size: 1.5em;
    font-weight: 500;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0px;
}

#services p span {
    color: #57ac4e;
}

.lead {
    color: #252c6b;
    font-weight: 400;
}

#services img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */

/* Initial hidden state — targets containers inside #services */
#services .container {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Revealed state */
#services .container.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for a cascading effect */
#services .container:nth-child(1) {
    transition-delay: 0s;
}

#services .container:nth-child(2) {
    transition-delay: 0.1s;
}

#services .container:nth-child(3) {
    transition-delay: 0.15s;
}

#services .container:nth-child(4) {
    transition-delay: 0.2s;
}

#services .container:nth-child(5) {
    transition-delay: 0.25s;
}

#services .container:nth-child(6) {
    transition-delay: 0.3s;
}

#services .container:nth-child(7) {
    transition-delay: 0.35s;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    #services .container {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   12. MEDIA QUERIES
   ========================================================================== */

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }

    .hero-video-section {
        background-image: url('/files/45479/yosemite-poster.jpg');
        background-size: cover;
        background-position: center;
    }
}

/* --- Tablet & Below (max-width: 991px) --- */
@media (max-width: 991px) {
    .accordion-button {
        font-size: 18px;
    }

    .newsletter-title {
        font-size: 2em;
    }

    .location-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    .vertical-divider {
        border-left: none;
        border-top: solid 3px #57ac4e;
        height: auto;
        min-height: 0;
        margin: 30px 0;
    }

    h2 .blue {
        font-size: 1.5em;
    }
}

/* --- Small Mobile (max-width: 767px) --- */
@media (max-width: 767px) {
    .newsletter-title {
        font-size: 1.5em;
    }

    .newsletter-view-text {
        font-size: 1.2em;
    }

    .location-card {
        padding: 1.5rem;
    }

    .location-title .green {
        font-size: 20px;
    }

    .location-details strong {
        font-size: 16px;
    }
}