/* ==========================================================================
   Termite Management Advice Page Stylesheet
   Call and Relief - The Best for Your Pest
   ========================================================================== */

/* --- Page Base & Theme Variables --- */
:root {
    --tma-navy: #081a2c;
    --tma-navy-light: #0d2844;
    --tma-green: #76b72a;
    --tma-green-hover: #86ce30;
    --tma-green-light: #eaf7ed;
    --tma-mint: #f4fbf5;
    --tma-mint-border: #d4ebd7;
    --tma-text-dark: #0d233a;
    --tma-text-muted: #556877;
    --tma-radius: 18px;
    --tma-shadow-soft: 0 10px 30px rgba(8, 26, 44, 0.06);
    --tma-shadow-hover: 0 16px 36px rgba(8, 26, 44, 0.12);
}

body.tma-page {
    font-family: 'Inter', sans-serif;
    color: var(--tma-text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Ensure fail-safe visibility on all elements */
.tma-page .tma-hero,
.tma-page .tma-section,
.tma-page .tma-mint-card,
.tma-page .tma-option-card,
.tma-page .tma-cta-banner,
.tma-page .footer-section {
    opacity: 1 !important;
    visibility: visible !important;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.tma-hero {
    position: relative;
    background-color: var(--tma-navy);
    min-height: 560px;
    padding: 70px 0 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Split Background: Consultation photo with technician & couple on the right */
.tma-hero-bg-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.tma-hero-bg-img {
    width: 100%;
    height: 100%;
    background-image: url('termite-advice-mockup.jpg');
    background-size: 215% auto;
    background-position: 98% 7%;
    background-repeat: no-repeat;
    transform: scale(1.02);
    transition: transform 7s ease;
}

.tma-hero:hover .tma-hero-bg-img {
    transform: scale(1.05);
}

/* Seamless soft gradient: deep navy on the left edge fading to 100% transparent over photo */
.tma-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #081a2c 0%,
        rgba(8, 26, 44, 0.85) 15%,
        rgba(8, 26, 44, 0.35) 35%,
        rgba(8, 26, 44, 0.05) 55%,
        transparent 100%
    );
    z-index: 2;
}

.tma-hero-container {
    position: relative;
    z-index: 3;
}

.tma-hero-content {
    max-width: 600px;
}

/* Eyebrow tag */
.tma-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.tma-tag-line {
    display: inline-block;
    width: 22px;
    height: 2px;
    background-color: var(--tma-green);
}

.tma-tag-text {
    color: var(--tma-green);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Main title */
.tma-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
}

.tma-hero-title .title-white {
    color: #ffffff;
}

.tma-hero-title .title-green {
    color: var(--tma-green);
}

/* Subtitle description */
.tma-hero-desc {
    color: #c0d3e5;
    font-size: 15.5px;
    line-height: 1.6;
    margin: 0 0 36px;
    max-width: 540px;
}

/* 3 Circular Icon Badges */
.tma-hero-badges {
    display: flex;
    align-items: flex-start;
    gap: 36px;
}

.tma-hero-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.tma-hero-badge-item .badge-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid var(--tma-green);
    background: rgba(8, 26, 44, 0.6);
    color: var(--tma-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: all 0.3s ease;
}

.tma-hero-badge-item:hover .badge-circle {
    background-color: var(--tma-green);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(118, 183, 42, 0.4);
}

.tma-hero-badge-item .badge-label {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.25;
    max-width: 120px;
}

/* Dual-tone wave bottom transition */
.tma-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 4;
    pointer-events: none;
}

.tma-hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 48px;
}

/* --------------------------------------------------------------------------
   COMMON SECTION STYLING
   -------------------------------------------------------------------------- */
.tma-section {
    padding: 70px 0;
    position: relative;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.section-tag-line {
    display: inline-block;
    width: 22px;
    height: 2px;
    background-color: var(--tma-green);
}

.section-tag-text {
    color: var(--tma-green);
    font-family: 'Outfit', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-heading-dark {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--tma-navy);
    line-height: 1.2;
    margin: 0 0 14px;
}

.section-intro-p {
    font-size: 15px;
    color: var(--tma-text-muted);
    line-height: 1.65;
    max-width: 780px;
    margin: 0 0 36px;
}

/* --------------------------------------------------------------------------
   SECTION 1: FACTORS WE CONSIDER
   -------------------------------------------------------------------------- */
.factors-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.05fr;
    gap: 30px;
    align-items: stretch;
}

/* Left: 2-column checklist */
.factors-checklist-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.factors-split-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.factors-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--tma-text-dark);
    line-height: 1.4;
}

.factors-check-item i {
    color: var(--tma-green);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Center: House Photo */
.factors-img-box {
    border-radius: var(--tma-radius);
    overflow: hidden;
    box-shadow: var(--tma-shadow-soft);
    position: relative;
    min-height: 300px;
    background-image: url('termite-advice-mockup.jpg');
    background-size: 470% auto;
    background-position: 59% 34%;
    background-repeat: no-repeat;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.factors-img-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--tma-shadow-hover);
}

/* Right: Mint Card "A Tailored Approach to Your Property" */
.tma-mint-card {
    background-color: var(--tma-mint);
    border: 1px solid var(--tma-mint-border);
    border-radius: var(--tma-radius);
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-shadow: var(--tma-shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tma-mint-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tma-shadow-hover);
}

.card-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--tma-green);
    background-color: #ffffff;
    color: var(--tma-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(118, 183, 42, 0.15);
}

.card-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--tma-navy);
    line-height: 1.3;
    margin: 0 0 14px;
}

.card-desc {
    font-size: 14.5px;
    color: var(--tma-text-muted);
    line-height: 1.65;
    margin: 0 0 20px;
}

.card-accent-line {
    width: 60px;
    height: 3px;
    background-color: var(--tma-green);
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   SECTION 2: POSSIBLE TERMITE MANAGEMENT OPTIONS (7 Cards)
   -------------------------------------------------------------------------- */
.section-options {
    background-color: #fcfdfc;
    border-top: 1px solid #edf5ee;
    border-bottom: 1px solid #edf5ee;
}

.options-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    align-items: stretch;
}

.tma-option-card {
    background-color: var(--tma-mint);
    border: 1px solid var(--tma-mint-border);
    border-radius: 14px;
    padding: 24px 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    text-decoration: none;
    color: var(--tma-text-dark);
    box-shadow: 0 4px 14px rgba(8, 26, 44, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}

.tma-option-card:hover {
    background-color: #ffffff;
    border-color: var(--tma-green);
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(118, 183, 42, 0.22);
}

.option-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--tma-green);
    background-color: #ffffff;
    color: var(--tma-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: all 0.3s ease;
}

.tma-option-card:hover .option-icon-wrap {
    background-color: var(--tma-green);
    color: #ffffff;
    transform: scale(1.1);
}

.option-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tma-navy);
    margin: 0;
    transition: color 0.3s ease;
}

.tma-option-card:hover .option-card-title {
    color: var(--tma-green);
}

/* --------------------------------------------------------------------------
   SECTION 3: ADVICE & PRIORITY CARDS (3 Columns)
   -------------------------------------------------------------------------- */
.advice-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

/* Left: Technician kneeling with tablet */
.advice-img-box {
    border-radius: var(--tma-radius);
    overflow: hidden;
    box-shadow: var(--tma-shadow-soft);
    position: relative;
    min-height: 320px;
    background-image: url('termite-advice-mockup.jpg');
    background-size: 350% auto;
    background-position: 7% 70%;
    background-repeat: no-repeat;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.advice-img-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--tma-shadow-hover);
}

/* Right card special handwritten-style italic signature */
.priority-signature {
    color: var(--tma-green);
    font-family: 'Outfit', 'Inter', sans-serif;
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
    margin: 18px 0 16px;
}

/* --------------------------------------------------------------------------
   PRE-FOOTER CTA BANNER ("Talk to Our Termite Experts")
   -------------------------------------------------------------------------- */
.tma-cta-banner-wrap {
    background-color: var(--tma-navy);
    position: relative;
    overflow: hidden;
    padding: 34px 0;
}

/* Organic foliage accent overlay */
.tma-cta-banner-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 50%, rgba(118, 183, 42, 0.15), transparent 45%),
                radial-gradient(circle at 90% 50%, rgba(118, 183, 42, 0.12), transparent 40%);
    pointer-events: none;
}

.tma-cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 2;
}

/* Left text */
.cta-text-area {
    flex: 1.2;
}

.cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.cta-dash {
    display: inline-block;
    width: 16px;
    height: 2px;
    background-color: var(--tma-green);
}

.cta-tag-text {
    color: var(--tma-green);
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cta-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0;
}

.cta-highlight-green {
    color: var(--tma-green);
}

/* Center badges */
.cta-badges-area {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
    justify-content: center;
}

.cta-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.cta-badge-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--tma-green);
    background: rgba(8, 26, 44, 0.7);
    color: var(--tma-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.3s ease;
}

.cta-badge-item:hover .cta-badge-circle {
    background: var(--tma-green);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(118, 183, 42, 0.4);
}

.cta-badge-text {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
}

/* Right phone button */
.cta-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0.9;
    text-align: center;
}

.cta-phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--tma-green);
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    padding: 13px 28px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(118, 183, 42, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.cta-phone-btn:hover {
    background-color: var(--tma-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(118, 183, 42, 0.5);
    color: #ffffff !important;
}

.cta-action-subtext {
    color: #92b1cf;
    font-size: 12px;
    font-weight: 500;
    margin: 8px 0 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .options-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .tma-cta-container {
        flex-wrap: wrap;
        gap: 24px;
    }
    .cta-text-area {
        flex: 100%;
        text-align: center;
    }
    .cta-eyebrow {
        justify-content: center;
    }
    .cta-badges-area {
        flex: 1;
        justify-content: center;
    }
    .cta-action-area {
        flex: 1;
    }
}

@media (max-width: 992px) {
    .tma-hero {
        padding: 60px 0 90px;
        min-height: 500px;
    }
    .tma-hero-bg-wrapper {
        width: 100%;
        opacity: 0.38;
    }
    .tma-hero-bg-img {
        width: 100%;
        background-position: center right;
    }
    .tma-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(8, 26, 44, 0.85) 0%,
            rgba(8, 26, 44, 0.60) 50%,
            rgba(8, 26, 44, 0.90) 100%
        );
    }
    .tma-hero-content {
        max-width: 100%;
        text-align: center;
    }
    .tma-tag {
        justify-content: center;
    }
    .tma-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .tma-hero-badges {
        justify-content: center;
    }

    .factors-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .factors-img-box {
        min-height: 260px;
    }

    .options-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .advice-details-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .advice-img-box {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .tma-hero-title {
        font-size: 36px;
    }
    .section-heading-dark {
        font-size: 28px;
    }
    .tma-hero-badges {
        gap: 20px;
    }
    .tma-hero-badge-item .badge-circle {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }
    .factors-split-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .options-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-badges-area {
        flex-direction: row;
        gap: 14px;
    }
    .cta-badge-circle {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .cta-heading {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .tma-hero-title {
        font-size: 28px;
    }
    .tma-hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .tma-hero-badge-item {
        flex-direction: row;
        gap: 12px;
        text-align: left;
    }
    .options-row {
        grid-template-columns: 1fr;
    }
    .cta-badges-area {
        flex-direction: column;
        gap: 14px;
    }
    .cta-badge-item {
        flex-direction: row;
        gap: 12px;
        text-align: left;
    }
    .tma-mint-card {
        padding: 24px 18px;
    }
    .cta-phone-btn {
        width: 100%;
        font-size: 16px;
        padding: 12px 20px;
    }
}
