/* ========================================
   SERVICES PAGE STYLES
   Heritage Life Solutions
   ======================================== */

/* ========================================
   HERO SECTION - Background Image
   ======================================== */
.service-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 58, 95, 0.85) 0%, rgba(30, 58, 95, 0.6) 50%, rgba(30, 58, 95, 0.4) 100%);
    z-index: 1;
}

.service-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.service-hero-content {
    max-width: 600px;
    text-align: left;
}

.service-hero-title {
    font-family: var(--font-family);
    font-size: var(--h1-size);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.service-hero-subtitle {
    font-family: var(--font-family);
    font-size: var(--h3-size);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* ========================================
   INTRO SECTION - Centered Text
   ======================================== */
.service-intro-centered {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.service-intro-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-navy);
}

.service-lead-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

/* ========================================
   SERVICE SECTIONS - Alternating Layout
   ======================================== */
.service-section {
    padding: var(--section-padding-desktop) 0;
}

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

.service-section-grey {
    background: var(--color-light-grey);
}

/* ========================================
   TWO COLUMN LAYOUT
   Default: Text LEFT (60%), Image RIGHT (40%)
   ======================================== */
.service-two-col {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 3rem;
    align-items: center;
}

/* Wide variant: Text 75%, Image 25% */
.service-two-col-wide {
    grid-template-columns: 75% 25%;
}

/* Medium-wide variant: Text 70%, Image 30% */
.service-two-col-medium-wide {
    grid-template-columns: 70% 30%;
}

.service-two-col-text {
    order: 1;
}

.service-two-col-image {
    order: 2;
}

/* Flipped layout: Image LEFT (40%), Text RIGHT (60%) */
.service-two-col-flip {
    grid-template-columns: 40% 60%;
}

/* Wide flipped variant: Image 25%, Text 75% */
.service-two-col-flip-wide {
    grid-template-columns: 25% 75%;
}

/* Medium-wide flipped variant: Image 30%, Text 70% */
.service-two-col-flip-medium-wide {
    grid-template-columns: 30% 70%;
}

/* Image crop - removes top 25% */
.service-image-crop-top img {
    object-fit: cover;
    object-position: center 50%;
    max-height: 500px;
}

.service-two-col-flip .service-two-col-text {
    order: 2;
}

.service-two-col-flip .service-two-col-image {
    order: 1;
}

/* ========================================
   IMAGES
   ======================================== */
.service-two-col-image img {
    width: 100%;
    height: auto;
    border-radius: var(--button-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* ========================================
   SECTION TITLES (H2) - WHITE/GREY BACKGROUND
   ======================================== */
.service-section-title {
    font-family: var(--font-family);
    font-size: var(--h2-size);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    display: inline-block;
    border-bottom: 3px solid var(--color-turquoise);
    padding-bottom: 0.5rem;
}

/* ========================================
   SUBHEADINGS (H3)
   ======================================== */
.service-subheading {
    font-family: var(--font-family);
    font-size: var(--h3-size);
    font-weight: 700;
    color: var(--color-navy);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* ========================================
   PARAGRAPH TEXT
   ======================================== */
.service-section p {
    font-family: var(--font-family);
    font-size: var(--p-size);
    color: var(--color-navy);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-tagline {
    font-family: var(--font-family);
    font-size: var(--p-size);
    font-weight: 700;
    color: var(--color-navy);
    font-style: italic;
    margin-top: 1.5rem;
}

/* ========================================
   CHECKLIST - GREEN CIRCLE WITH WHITE CHECKMARK
   ======================================== */
.service-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-checklist li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    color: var(--color-navy);
    font-family: var(--font-family);
    font-size: var(--p-size);
}

.service-checklist li .check-icon {
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 20px;
    height: 20px;
    background: var(--color-green);
    border-radius: 50%;
}

.service-checklist li .check-icon::after {
    content: "\2713";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* ========================================
   CTA SECTION - Turquoise with Image
   ======================================== */
.service-cta-section {
    background: var(--color-turquoise);
    padding: var(--section-padding-desktop) 0;
}

.service-cta-two-col {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 3rem;
    align-items: center;
}

.service-cta-image {
    order: 1;
}

.service-cta-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--button-radius);
}

/* Smaller CTA image variant - reduced by 30% */
.service-cta-image-small img {
    max-width: 280px;
}

/* Wide CTA variant: Image 25%, Text 75% */
.service-cta-two-col-wide {
    grid-template-columns: 25% 75%;
}

.service-cta-content {
    order: 2;
    text-align: left;
}

.service-cta-title {
    font-family: var(--font-family);
    font-size: var(--h2-size);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-cta-text {
    font-family: var(--font-family);
    font-size: var(--p-size);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* CTA Buttons Container */
.service-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* CTA Link Text */
.service-cta-link {
    font-family: var(--font-family);
    font-size: var(--p-size);
    color: var(--color-white);
    margin-top: 0;
}

.service-cta-link a {
    color: var(--color-white);
    font-weight: 600;
    text-decoration: underline;
}

.service-cta-link a:hover {
    text-decoration: none;
}

/* Outline Light Button (for turquoise backgrounds) */
.btn-outline-light {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-turquoise);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .service-two-col,
    .service-two-col-flip,
    .service-cta-two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-two-col-image,
    .service-two-col-flip .service-two-col-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .service-two-col-text,
    .service-two-col-flip .service-two-col-text {
        order: 1;
    }

    .service-cta-image {
        order: -1;
        text-align: center;
    }

    .service-cta-image img {
        max-width: 300px;
    }

    .service-cta-content {
        order: 1;
        text-align: center;
    }

    .service-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .service-hero {
        min-height: 350px;
        padding: 3rem 0;
    }

    .service-hero-title {
        font-size: 36px;
    }

    .service-hero-subtitle {
        font-size: 18px;
    }

    .service-section {
        padding: var(--section-padding-mobile) 0;
    }

    .service-section-title {
        font-size: 28px;
    }

    .service-subheading {
        font-size: 20px;
    }

    .service-cta-section {
        padding: var(--section-padding-mobile) 0;
    }

    .service-cta-title {
        font-size: 28px;
    }
}

/* ========================================
   SERVICES LIST PAGE
   ======================================== */
.services-list-section {
    padding: 80px 0;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-card-image {
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 25px;
}

.service-card-content h2 {
    font-size: 24px;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.service-card-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-card-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
}

.services-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, #2a4a6f 100%);
    text-align: center;
}

.services-cta-section h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 15px;
}

.services-cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

    .services-list-section {
        padding: 50px 0;
    }

    .services-cta-section {
        padding: 50px 0;
    }

    .services-cta-section h2 {
        font-size: 24px;
    }
}
