/* ==========================================================================
   TERMITE INSPECTIONS PAGE STYLES
   Call and Relief - The Best for Your Pest
   ========================================================================== */

:root {
    --ti-navy: #081a2c;
    --ti-navy-light: #0d2740;
    --ti-green: #76b72a;
    --ti-green-hover: #659f23;
    --ti-green-tint: rgba(118, 183, 42, 0.08);
    --ti-green-border: rgba(118, 183, 42, 0.35);
    --ti-dark-text: #1a2a3a;
    --ti-muted-text: #596b7d;
    --ti-light-bg: #f8fafc;
    --ti-white: #ffffff;
    --ti-card-radius: 18px;
    --ti-shadow-soft: 0 10px 30px rgba(8, 26, 44, 0.07);
    --ti-shadow-hover: 0 20px 45px rgba(8, 26, 44, 0.13);
}

/* Base resets & typography */
.ti-page {
    font-family: 'Inter', sans-serif;
    color: var(--ti-dark-text);
    background-color: var(--ti-white);
    overflow-x: hidden;
}

/* ==========================================================================
   COMMON TAGS & SECTION HEADINGS
   ========================================================================== */

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

.ti-tag-line {
    width: 32px;
    height: 3px;
    background-color: var(--ti-green);
    border-radius: 2px;
    display: inline-block;
}

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

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */

.ti-hero {
    position: relative;
    background-color: var(--ti-navy);
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 90px 0 130px;
}

/* Split Background: Technician 3.jpg right */
.ti-hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ti-hero-bg-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
}

/* Gradient blending image smoothly into deep navy left */
.ti-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #081a2c 42%,
        rgba(8, 26, 44, 0.96) 50%,
        rgba(8, 26, 44, 0.75) 62%,
        rgba(8, 26, 44, 0.25) 80%,
        rgba(8, 26, 44, 0.05) 100%
    );
}

.ti-hero-container {
    position: relative;
    z-index: 2;
}

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

.ti-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 54px;
    font-weight: 800;
    line-height: 1.12;
    margin: 8px 0 18px;
    display: flex;
    flex-direction: column;
}

.title-white {
    color: var(--ti-white);
}

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

.ti-hero-desc {
    font-size: 16.5px;
    line-height: 1.65;
    color: #cbd7e4;
    margin-bottom: 34px;
    max-width: 530px;
}

/* Hero Feature Badges */
.ti-hero-features {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.ti-hero-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ti-feature-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--ti-green);
    background: rgba(118, 183, 42, 0.12);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ti-green);
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.ti-hero-feature-item:hover .ti-feature-circle {
    transform: scale(1.1);
    background-color: rgba(118, 183, 42, 0.25);
}

.ti-feature-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ti-white);
    line-height: 1.3;
}

/* Organic Wave Divider Transition */
.ti-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}

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

/* ==========================================================================
   2. MAIN INSPECTION CONTENT MODULES
   ========================================================================== */

.ti-main-section {
    padding: 85px 0 95px;
    background-color: var(--ti-white);
}

.ti-main-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ti-grid-row {
    display: grid;
    grid-template-columns: 1.28fr 0.92fr;
    gap: 32px;
    align-items: stretch;
}

.ti-grid-row-bottom {
    grid-template-columns: 1fr 0.65fr 1fr;
    gap: 28px;
}

/* Module Cards Base */
.ti-module-card {
    background-color: #fbfcfe;
    border: 1px solid #e7ecf2;
    border-radius: var(--ti-card-radius);
    padding: 38px 32px;
    box-shadow: var(--ti-shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ti-module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ti-shadow-hover);
    border-color: rgba(118, 183, 42, 0.4);
}

/* Card Header with Floating Icon Badge */
.ti-card-header-with-icon {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.ti-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--ti-green);
    color: var(--ti-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(118, 183, 42, 0.3);
    transition: transform 0.3s ease;
}

.ti-module-card:hover .ti-icon-badge {
    transform: scale(1.08) rotate(5deg);
}

.ti-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--ti-navy);
    line-height: 1.25;
    margin: 0 0 6px;
}

.ti-card-subcaption {
    font-size: 13.5px;
    color: var(--ti-muted-text);
    margin: 0;
    line-height: 1.45;
}

/* Card 1: Tools Card (Flex with Photo) */
.ti-tools-card {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: stretch;
    padding: 36px 30px;
}

.ti-module-content-side {
    flex: 1.15;
    display: flex;
    flex-direction: column;
}

.ti-module-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--ti-navy);
    margin: 0 0 10px;
    line-height: 1.22;
}

.ti-module-intro {
    font-size: 14.5px;
    color: var(--ti-muted-text);
    margin-bottom: 20px;
    line-height: 1.5;
}

.ti-module-image-side {
    flex: 0.85;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(8, 26, 44, 0.08);
}

.ti-equipment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ti-tools-card:hover .ti-equipment-img {
    transform: scale(1.06);
}

/* Checklists */
.ti-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ti-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ti-check-icon {
    color: var(--ti-green);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    line-height: 1;
}

.ti-check-text {
    font-size: 14px;
    font-weight: 600;
    color: #273b4e;
    line-height: 1.45;
}

.ti-compact-list {
    gap: 10px;
}

.ti-compact-list .ti-check-text {
    font-size: 13.5px;
}

/* Callout Box under Tools */
.ti-callout-text {
    background-color: #f3f8ec;
    border-left: 3px solid var(--ti-green);
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #2b3e50;
    margin-top: auto;
}

/* Card 3: External Inspection (2-Column Checklists) */
.ti-external-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 20px;
}

.ti-external-footer-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ti-muted-text);
    margin: auto 0 0;
    border-top: 1px solid #edf2f7;
    padding-top: 16px;
}

/* Middle Image Card (Flashlight Timber) */
.ti-image-card {
    border-radius: var(--ti-card-radius);
    overflow: hidden;
    box-shadow: var(--ti-shadow-soft);
    position: relative;
    border: 1px solid #e7ecf2;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ti-image-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ti-shadow-hover);
}

.ti-timber-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ti-image-card:hover .ti-timber-img {
    transform: scale(1.06);
}

/* Card 4: Reports Card */
.ti-reports-p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ti-muted-text);
    margin: 0 0 10px;
}

.ti-reports-subhead {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ti-navy);
    margin: 12px 0 14px;
}

.ti-reports-closing {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ti-muted-text);
    margin: auto 0 0;
    border-top: 1px solid #edf2f7;
    padding-top: 16px;
    font-style: italic;
}

/* ==========================================================================
   3. CALL TO ACTION BANNER (EXACT DESIGN)
   ========================================================================== */

.ti-cta-banner {
    position: relative;
    background: linear-gradient(135deg, #071727 0%, #0c243a 100%);
    padding: 60px 0;
    color: var(--ti-white);
    overflow: hidden;
}

/* Corner decorative leaves */
.ti-leaf-decor {
    position: absolute;
    pointer-events: none;
    color: rgba(118, 183, 42, 0.22);
    font-size: 70px;
    z-index: 1;
}

.ti-leaf-decor.left {
    top: -10px;
    left: 20px;
    transform: rotate(25deg);
}

.ti-leaf-decor.right {
    bottom: -15px;
    right: 25px;
    transform: rotate(-35deg);
}

.ti-leaf-decor .leaf-sub {
    font-size: 45px;
    position: absolute;
    top: 30px;
    left: 35px;
    opacity: 0.7;
}

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

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

.ti-cta-tag-line {
    width: 24px;
    height: 3px;
    background-color: var(--ti-green);
    border-radius: 2px;
}

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

.ti-cta-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.22;
    color: var(--ti-white);
    margin: 0;
}

.ti-cta-heading .text-green {
    color: var(--ti-green);
}

/* Middle Trust Icons */
.ti-cta-middle {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ti-cta-pill {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ti-cta-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--ti-green);
    background: rgba(118, 183, 42, 0.12);
    color: var(--ti-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.ti-cta-pill:hover .ti-cta-icon-circle {
    transform: scale(1.1);
    background-color: rgba(118, 183, 42, 0.25);
}

.ti-cta-pill-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ti-white);
    line-height: 1.3;
}

/* Right Phone CTA Button */
.ti-cta-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ti-cta-phone-btn {
    background-color: var(--ti-green);
    color: var(--ti-white);
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(118, 183, 42, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ti-cta-phone-btn:hover {
    background-color: var(--ti-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(118, 183, 42, 0.45);
    color: var(--ti-white);
}

.ti-cta-subtext {
    font-size: 12px;
    color: #9ab3cb;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Active dropdown highlight */
.dropdown-menu li a.active-dropdown {
    background-color: #f1f8e9;
    color: var(--ti-green);
    font-weight: 600;
}

/* ==========================================================================
   4. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1200px) {
    .ti-hero-title {
        font-size: 46px;
    }

    .ti-hero-bg-img {
        width: 50%;
    }

    .ti-grid-row-bottom {
        grid-template-columns: 1fr 1fr;
    }

    .ti-image-card {
        display: none; /* In tablet, hide middle image to give clean 2-column balance */
    }

    .ti-cta-container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .ti-cta-left {
        width: 100%;
        text-align: center;
    }

    .ti-cta-tag {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .ti-hero {
        padding: 70px 0 100px;
        min-height: auto;
    }

    .ti-hero-bg-img {
        width: 100%;
        opacity: 0.35;
    }

    .ti-hero-overlay {
        background: linear-gradient(180deg, rgba(8, 26, 44, 0.94) 0%, rgba(8, 26, 44, 0.98) 100%);
    }

    .ti-grid-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ti-grid-row-bottom {
        grid-template-columns: 1fr;
    }

    .ti-tools-card {
        flex-direction: column;
    }

    .ti-module-image-side {
        height: 220px;
    }

    .ti-cta-middle {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .ti-hero-title {
        font-size: 38px;
    }

    .ti-module-title {
        font-size: 24px;
    }

    .ti-hero-features {
        gap: 18px;
    }

    .ti-external-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ti-cta-heading {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .ti-hero-title {
        font-size: 32px;
    }

    .ti-hero-desc {
        font-size: 15px;
    }

    .ti-feature-circle {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .ti-module-card {
        padding: 26px 20px;
    }

    .ti-cta-phone-btn {
        font-size: 18px;
        padding: 12px 22px;
    }
}
