/* =================================================================
   WOLCROFT PEST CONTROL - HIGH CONVERSION STYLESHEET V12
   ================================================================= */

/* === CORE BRANDING VARIABLES === */
:root {
    --primary-color: #1a1a1a;    /* Near Black */
    --secondary-color: #ffffff;  /* Pure White */
    --accent-color: #ff3b30;     /* Bright, Urgent Red */
    --cta-color: #007aff;        /* Action Blue */
    --text-color: #333333;       /* Dark Grey for body text */
    --heading-font: 'Inter', sans-serif; /* Use Inter for everything for clarity */
    --body-font: 'Inter', sans-serif;
}

/* === GENERAL BODY & CONTAINER STYLES === */
body {
    font-family: var(--body-font);
    color: var(--text-color);
    margin: 0;
    background-color: var(--secondary-color);
    line-height: 1.7;
    position: relative; 
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER & STICKY PLACEHOLDER STYLES === */
#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 1000;
}

header {
    background-color: var(--secondary-color);
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === LOGO STYLES === */
.logo {
    text-decoration: none;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 1002;
}

.logo-main {
    font-family: var(--body-font);
    font-weight: 800;
    font-size: 1.8em;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo-tagline {
    font-size: 0.6em;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: -2px; 
    padding-left: 3px;
}


/* === DESKTOP NAVIGATION & DROPDOWN === */
.desktop-nav {
    display: none; 
}
@media (min-width: 769px) {
    .desktop-nav {
        display: flex; 
    }
}

/* CORRECTED: Use '>' to only target the main nav bar */
.desktop-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.desktop-nav li {
    margin-left: 25px;
}

.desktop-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.desktop-nav a i {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.desktop-nav .dropdown {
    position: relative;
}

.desktop-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-nav .dropdown:hover a i {
    transform: rotate(180deg);
}

/* CORRECTED: Position the menu correctly */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0; /* Aligns menu to the right */
    left: auto; /* Resets the left property */
    transform: translateY(10px); /* We only need the vertical movement now */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 10px;
    list-style: none;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 12px 15px;
    font-size: 0.95em;
    border-radius: 5px;
}
.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--cta-color);
}


.header-contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-phone {
    text-align: right;
}

.header-phone span {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-color);
    display: block;
    line-height: 1.2;
}

.header-phone a {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--accent-color);
    text-decoration: none;
}

.header-quote-btn {
    background-color: var(--cta-color);
    color: white;
    padding: 12px 20px;
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}
.header-quote-btn:hover {
    background-color: #0056b3;
}

/* === HAMBURGER & MOBILE MENU STYLES === */
.hamburger-btn {
    display: none; 
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1011; 
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.hamburger-btn.is-active .hamburger-bar {
    background-color: white;
}

.hamburger-btn.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 80%;
    max-width: 320px;
    height: 100%;
    background-color: var(--primary-color);
    transition: right 0.4s ease-in-out;
    z-index: 1010; 
    padding: 100px 0 30px 0;
    box-sizing: border-box;
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
}

.mobile-menu.is-active {
    right: 0; 
}

.mobile-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}

.mobile-menu nav li {
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 700;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.mobile-menu nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

.mobile-submenu {
    list-style: none;
    padding-left: 0;
    background-color: rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.mobile-submenu.is-active {
    max-height: 1000px; 
}
.mobile-submenu li a {
    padding-left: 40px;
    font-size: 1em;
    font-weight: 600;
}
.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
}
.mobile-dropdown-toggle.is-active i {
    transform: rotate(180deg);
}

/* === HERO SECTION STYLES === */
.hero {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 25px 0 80px 0; 
    text-align: center;
    background-image: none;
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: 3.5em;
    font-weight: 800;
    letter-spacing: -2px;
    margin-top: 0;
    margin-bottom: 5px;
}

.subheadline {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 40px 0;
}

.hero .cta-button {
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 20px 35px;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero .cta-button:hover {
    transform: translateY(-3px);
}

.hero .cta-button i {
    margin-right: 12px;
}

.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.call-now-btn {
    background-color: var(--accent-color);
    color: white !important; /* THE FIX: Ensure text is always white */
    text-decoration: none;
}
.call-now-btn:hover {
    background-color: #d93228;
}

.secondary-btn {
    background-color: var(--cta-color);
    color: #ffffff !important; /* Forces the button's text to be white */
    text-decoration: none !important; /* This forces the underline to be removed */
}
.secondary-btn:hover {
    background-color: #0056b3;
}

.hero-trust-signals {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-weight: 600;
    opacity: 0.9;
}

.hero-trust-signals span i {
    color: var(--accent-color);
    margin-right: 8px;
}

/* === HERO PEST SHOWCASE (Moved into Hero) === */
.hero-pest-showcase {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 40px;
}

.hero-pest-showcase h2 {
    display: none; 
}

.pest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 940px;
    margin: 0 auto;
}

.pest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    text-decoration: none;
}

.pest-item i,
.pest-item svg {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pest-item i {
    font-size: 30px; 
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.pest-item svg path {
    fill: var(--secondary-color);
    transition: fill 0.3s ease;
}

.pest-item:hover {
    color: var(--accent-color);
    cursor: pointer;
}

.pest-item:hover i,
.pest-item:hover svg path {
    color: var(--accent-color);
    fill: var(--accent-color);
}


/* === SERVICES PAGE STYLES === */
/* === SERVICES PAGE STYLES === */
.services-section {
    padding: 40px 0 80px; /* Reduced top padding from 80px to 40px */
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-color);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    background-color: #f0f0f0;
    border-radius: 50%;
}

.service-card-icon i {
    font-size: 28px;
}

.service-card-icon svg {
    width: 32px;
    height: 32px;
}

.service-card-icon svg path {
    fill: var(--accent-color);
}

.service-card h3 {
    font-family: var(--heading-font);
    font-size: 1.6em;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; 
}

.service-card .cta-button {
    font-size: 0.9em;
    padding: 12px 25px;
}


/* === GENERAL CONTENT SECTIONS (OVERVIEW, FEATURES) === */
.overview, .features-section {
    padding: 80px 0;
    text-align: center;
}

.overview h2, .features-section h2 {
    font-family: var(--heading-font);
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.overview > .container > p {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1em;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-icon {
    font-size: 3em;
    color: var(--cta-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--heading-font);
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* === DIRECT LINE / FINAL CTA SECTION === */
.direct-line {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 80px 0;
}

.direct-line h2 {
    font-family: var(--heading-font);
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.direct-line p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1em;
    opacity: 0.8;
}

.phone-number {
    font-size: 3.5em;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent-color);
}

/* === FOOTER === */
footer {
    background-color: #111111;
    color: #a0a0a0;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

/* === MOBILE STICKY CALL BAR === */
.mobile-sticky-call-btn {
    display: none; 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 12px 0;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease;
}
.mobile-sticky-call-btn i {
    margin-right: 10px;
}
.mobile-sticky-call-btn:hover {
    background-color: #d93228;
}

/* === SERVICE DETAIL PAGE STYLES === */
.service-hero {
    padding: 60px 0;
}

.service-detail-section {
    padding: 80px 0;
}

.service-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.service-detail-content h2 {
    font-size: 2.4em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.service-detail-content h3 {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
}

.service-detail-content ul {
    list-style: none;
    padding-left: 0;
}

.service-detail-content ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}

.service-detail-content ul li::before {
    content: '\f00c'; /* Font Awesome checkmark */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 5px;
}

.service-detail-sidebar .feature-box,
.service-detail-sidebar .cta-box {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.service-detail-sidebar h4 {
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.service-detail-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-detail-sidebar ul li {
    margin-bottom: 15px;
    font-weight: 600;
}

.service-detail-sidebar ul li i {
    color: var(--accent-color);
    margin-right: 10px;
}

.cta-box .full-width {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
}


/* === MOBILE RESPONSIVE STYLES === */
@media (max-width: 768px) {
    .mobile-sticky-call-btn {
        display: flex;
    }
    body {
        padding-bottom: 50px; 
    }
    .container { 
        padding: 0 15px; 
    }
    
    .desktop-nav,
    .header-contact-info {
        display: none;
    }
    .hamburger-btn {
        display: block;
    }

    .hero { 
        padding: 25px 0 60px 0; 
    }
    .hero h1 { 
        font-size: 2.2em; 
        letter-spacing: -1px;
    }
    .subheadline {
        font-size: 1.1em;
    }
    /* Universal mobile styles for hero buttons */
    .hero .cta-button {
        width: 90%;
        max-width: 400px;
        padding: 18px 25px;
        font-size: 1em;
    }
    /* Specific to homepage hero buttons container */
    .hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .hero-pest-showcase {
        margin-top: 40px;
        padding-top: 30px;
    }
    .hero-pest-showcase h2 {
        font-size: 1em;
    }
    .hero-trust-signals {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        font-size: 0.85em;
    }
    .overview, .features-section, .services-section { 
        padding: 60px 20px; 
    }
    .overview h2, .features-section h2, .direct-line h2 { 
        font-size: 1.8em; 
    }
    .features, .services-grid { 
        grid-template-columns: 1fr; 
        gap: 25px; 
    }
    .direct-line { 
        padding: 60px 0; 
    }
    .phone-number { 
        font-size: 2.2em; 
    }
    .pest-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 15px;
    }
    .pest-item i, 
    .pest-item svg {
        width: 35px; 
        height: 35px;
    }
    .pest-item i {
        font-size: 28px;
    }
    .pest-item span {
        font-size: 0.8em;
    }

    /* THE FIX for Service Pages on Mobile */
    .service-detail-section {
        padding: 40px 20px;
    }
    .service-detail-container {
        grid-template-columns: 1fr; /* Stack the columns vertically */
        gap: 40px;
    }
    .service-hero {
        padding: 40px 20px;
    }
    .service-hero .subheadline {
        font-size: 1.2em;
        line-height: 1.5;
    }
    .service-hero .cta-button {
        width: 100%;
        box-sizing: border-box; /* Ensure padding doesn't break layout */
    }
    .service-detail-content h2 {
        font-size: 2em;
    }
    .service-detail-content h3 {
        font-size: 1.5em;
    }
}

/* === Pest Image Style (Updated) === */
.pest-image {
    display: block;
    margin: 0 auto 20px auto; /* Center on mobile by default */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 100%; /* Ensure it's responsive */
    height: auto;
}

/* On screens wider than a mobile phone */
@media (min-width: 500px) {
    .pest-image {
        float: right;
        max-width: 300px; /* Limit the size on desktop */
        margin: 10px 0 20px 30px; /* Add space around it */
    }
}

/* === NEW STYLES FOR AVAILABILITY INDICATOR (V2) === */

/* Style for the highlighted text with breathing animation */
.highlight {
    color: #FFD700; /* A vibrant gold color */
    font-weight: 700;
    animation: breathe 2.5s infinite;
}


/* Base style for the flashing green circle */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 10px; /* Space between dot and text */
    animation: flash 1.5s infinite;
    flex-shrink: 0; /* Prevents the dot from shrinking if space is tight */
}

/* The animation that makes the highlight "breathe" */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }
}

/* The animation that makes the circle flash */
@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}

/* === NEW, IMPROVED STYLES FOR SERVICE CARD IMAGES (V2) === */

/* Ensure the service card can contain the overlay properly */
.service-card {
    position: relative;
    overflow: hidden;
}

/* The ::after pseudo-element will now be our image and dark gradient overlay */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Place the overlay below the content */
    transition: transform .3s ease, opacity .4s ease;
    
    /* This sets the background image and a dark overlay in one line */
    background-size: cover;
    background-position: center;
}

/* This keeps the text and buttons on top of the overlay */
.service-card > * {
    z-index: 2; /* Ensures content is above the overlay */
}

/* Make the text white again, but with a more subtle shadow */
.service-card h3,
.service-card p {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* A nice hover effect */
.service-card:hover::after {
    transform: scale(1.05);
}

/* Apply a dark gradient OVER the background image for each specific card */
.wasp-card::after      { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/wasp-nest.jpg) center/cover; }
.cockroach-card::after { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/cockroach-control.jpg) center/cover; }
.rat-card::after       { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/rodents.jpg) center/cover; }
.bird-card::after      { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/birds-nest.jpg) center/cover; }
.bed-bug-card::after   { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/bedbugs.jpg) center/cover; }
.flea-card::after      { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/fleas.jpg) center/cover; }
.ant-card::after       { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/ant-hill.jpg) center/cover; }
.spider-card::after    { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/spiders.jpg) center/cover; }
.other-pests-card::after { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/other-pests.jpg) center/cover; }

/* === FINAL HERO SUBHEADLINE STYLES === */


/* Main container for the two lines */
.subheadline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* DECREASED the space between the two lines */
    margin-bottom: 25px; /* ADDED space below, before the buttons */
}

/* Hide the old single-line subheadline to prevent conflicts */
.subheadline {
    display: none;
}

/* Style for the top line */
.subheadline-one {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
}

/* Style for the bottom line */
.subheadline-two {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

/* Style for the highlighted, "breathing" text */
.highlight {
    color: #FFD700; /* Vibrant gold color */
    font-weight: 700;
    animation: breathe 2.5s infinite;
}

/* Base style for the flashing green circle */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 10px; /* Space between dot and text */
    animation: flash 1.5s infinite;
}

/* The "breathing" animation */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }
}

/* The flashing dot animation */
@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}
/* === FINAL HEADER TRUST SIGNALS STYLES (PC & Mobile) === */

/* Style the container for the checkmark and stars */
.mobile-trust-signals {
    display: flex; /* Use flexbox to align items */
    flex-direction: row; /* Align side-by-side */
    align-items: center; /* Vertically center them */
    gap: 8px; /* Space between the checkmark and stars */
}

/* Style the green checkmark */
.mobile-trust-signals .fa-circle-check {
    color: #28a745; /* Vibrant green */
    font-size: 1.5em;
}

/* Style the golden stars */
.mobile-trust-signals .stars .fa-star {
    color: #FFD700; /* Gold color */
    font-size: 0.9em;
    letter-spacing: 1px;
}

/* On mobile screens, hide the desktop contact info and nav, then show the hamburger */
@media (max-width: 768px) {
    .header-contact-info, .desktop-nav {
        display: none;
    }
    .hamburger-btn {
        display: block;
    }
}

/* On desktop screens, hide the hamburger button so the trust signals appear */
@media (min-width: 769px) {
    .hamburger-btn {
        display: none;
    }
}

/* === NEW TESTIMONIALS SECTION STYLES === */

.testimonials-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Matches the services section background */
    text-align: center;
}

.testimonials-section h2 {
    font-family: var(--heading-font);
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.testimonial-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.testimonial-track {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
}

.testimonial-card {
    background-color: var(--secondary-color);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    margin: 0 20px;
    width: 350px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.testimonial-card .stars {
    color: #FFD700; /* Gold color for the stars */
    margin-bottom: 15px;
    font-size: 1.2em;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}

/* The scrolling animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.testimonial-slider:hover .testimonial-track {
    animation-play-state: paused;
}

/* === NEW FINAL CTA SECTION STYLES === */

.final-cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
}

.final-cta-section h2 {
    font-family: var(--heading-font);
    font-size: 2.8em;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.2em;
    opacity: 0.8;
    margin: -10px auto 60px;
    max-width: 600px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.step .step-icon {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.step h3 {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 10px;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* This allows buttons to wrap on very small screens if needed */
}

/* We need to specifically target the buttons inside this section */
.final-cta-buttons .cta-button {
    width: 100%; /* Make buttons full-width on mobile */
    max-width: 320px; /* But cap their width on larger screens */
    font-size: 1.1em;
    padding: 18px 25px;
}

/* Make the CTA responsive on mobile */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* === DEFINITIVE, CORRECTED STYLES FOR ALL SERVICE PAGES === */

/* This re-establishes the two-column grid for PC and is the permanent layout fix. */
.service-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

/* Base style for each new content block */
.content-block {
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden; /* This correctly contains the floated image */
}
.content-block:last-child {
    margin-bottom: 0;
}

/* The high-contrast color alternation for standard blocks */
.content-block:not(.signs-block):nth-of-type(odd) {
    background-color: var(--primary-color);
}
.content-block:not(.signs-block):nth-of-type(even) {
    background-color: var(--secondary-color);
    border: 1px solid #e5e5e5;
}


/* === REFINED "DANGER" THEME FOR THE SIGNS BLOCK === */
.signs-block {
    background-color: var(--primary-color) !important;
    border: 1px solid #444;
    padding: 25px;
}
.signs-block h3 {
    color: var(--accent-color) !important;
    font-size: 1.8em;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.signs-block p {
    color: #c0c0c0 !important;
}






/* The new vertical line style */
.signs-block ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.signs-block ul li {
    position: relative; /* This is crucial for positioning the line */
    margin-bottom: 15px;
    padding: 20px 20px 20px 35px; /* Creates space for the line */
    background-color: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #555;
    color: #ffffff;
    overflow: hidden; /* Ensures the line stays within the rounded corners */
}

.signs-block ul li:last-child {
    margin-bottom: 0;
}

/* The new orange vertical line */
.signs-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 8px; /* The thickness of the line */
    height: 100%;
    background-color: var(--accent-color);
    /* All Font Awesome properties are removed */
}


/* === General Text Color Rules (for standard blocks) === */
.content-block:not(.signs-block):nth-of-type(odd) h2,
.content-block:not(.signs-block):nth-of-type(odd) h3,
.content-block:not(.signs-block):nth-of-type(odd) p,
.content-block:not(.signs-block):nth-of-type(odd) li {
    color: #ffffff;
}
.content-block:not(.signs-block):nth-of-type(even) h2,
.content-block:not(.signs-block):nth-of-type(even) h3,
.content-block:not(.signs-block):nth-of-type(even) p,
.content-block:not(.signs-block):nth-of-type(even) li {
    color: var(--text-color);
}
.content-block h2, .content-block h3 { margin-top: 0; }
.content-block p { margin-bottom: 20px; }
.content-block:not(.signs-block) ul { list-style: none; padding-left: 0; }
.content-block:not(.signs-block) ul li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.content-block:not(.signs-block) ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--accent-color); position: absolute; left: 0; top: 5px; }


/* === Final, High-Impact CTA Box === */
.cta-box-new {
    background-color: var(--accent-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}
.cta-box-new .cta-icon { font-size: 2.5em; color: var(--secondary-color); margin-bottom: 15px; }
.cta-box-new h4 { color: #ffffff !important; font-size: 1.5em; margin-top: 0; margin-bottom: 10px; }
.cta-box-new p { color: #ffe0e0 !important; font-size: 0.9em; line-height: 1.6; margin-bottom: 20px; }
.cta-box-new .cta-phone-number { display: block; font-size: 1.8em; font-weight: 800; color: var(--secondary-color); text-decoration: none; padding: 15px; border: 2px solid var(--secondary-color); border-radius: 8px; transition: background-color 0.3s ease, color 0.3s ease; }
.cta-box-new .cta-phone-number:hover { background-color: var(--secondary-color); color: var(--accent-color); }

/* Final reset for the "Why Choose Us" sidebar box */
.service-detail-sidebar .feature-box {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
}
.service-detail-sidebar .feature-box h4,
.service-detail-sidebar .feature-box p,
.service-detail-sidebar .feature-box li { color: var(--text-color) !important; }
.service-detail-sidebar .feature-box ul li i { color: var(--accent-color) !important; }

/* === CRUCIAL FIX FOR MOBILE LAYOUT === */
@media (max-width: 768px) {
    /* This stacks the two main columns vertically on mobile */
    .service-detail-container {
        grid-template-columns: 1fr;
    }
}

/* === SERVICE PAGE MOBILE HERO MERGE === */
@media (max-width: 768px) {
    /* 1. Hide all original pest images on mobile */
    .service-detail-content .pest-image {
        display: none;
    }

    /* 2. A generic rule for all intro blocks on mobile */
    .service-intro-block {
        border-radius: 8px;
        padding: 30px;
        border: none;
        margin-top: 0;
        background-size: cover;
        background-position: center;
    }
    
    /* 3. Make the text white for readability on all hero images */
    .service-intro-block h2,
    .service-intro-block p {
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }
    
    /* 4. Apply the correct background image to each specific service page */
    .wasp-intro-block      { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/wasp-nest.jpg); }
    .ant-intro-block       { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/ant-hill.jpg); }
    .bed-bug-intro-block   { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/bedbugs.jpg); }
    .bird-intro-block      { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/birds-nest.jpg); }
    .cockroach-intro-block { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/cockroach-control.jpg); }
    .flea-intro-block      { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/fleas.jpg); }
    .rat-intro-block       { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/rodents.jpg); }
    .spider-intro-block    { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/spiders.jpg); }
}

/* === NEW GUARANTEE BOX STYLES === */
.guarantee-box {
    background-color: #f0f8ff; /* A very light, trustworthy blue */
    border: 1px solid #cce5ff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.guarantee-box h4 {
    font-size: 1.6em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary-color);
}

.guarantee-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.guarantee-item:last-child {
    margin-bottom: 0;
}

.guarantee-item i {
    font-size: 1.8em;
    color: var(--cta-color); /* Action Blue for the icons */
    width: 40px; /* Ensures icons are aligned */
    text-align: center;
}

.guarantee-item p {
    margin: 0;
    line-height: 1.5;
    color: var(--text-color);
}

.guarantee-item p strong {
    font-size: 1.1em;
    color: var(--primary-color);
}

/* === NEW COMMITMENT BOX STYLES (ABOUT PAGE) === */
.commitment-box {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
}

.commitment-box h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
}

.commitment-item {
    display: flex;
    align-items: flex-start; /* Aligns items to the top */
    gap: 20px;
    margin-bottom: 25px;
}
.commitment-item:last-child {
    margin-bottom: 0;
}

.commitment-item .icon {
    font-size: 1.8em;
    color: var(--cta-color);
    width: 45px;
    flex-shrink: 0;
    text-align: center;
    margin-top: 5px;
}

.commitment-item-text h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.3em;
}

.commitment-item-text p {
    margin: 0;
    line-height: 1.6;
}

/* === NEW CONTACT PAGE STYLES === */
.contact-form-container {
    padding: 30px;
    border-radius: 8px;
    background-color: var(--primary-color);
}

.contact-form-container h2 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
}

.contact-form-container p {
    color: #c0c0c0;
    margin-bottom: 30px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #ffffff;
    font-family: var(--body-font);
    font-size: 1em;
    box-sizing: border-box; /* Important for padding */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cta-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
}

.contact-form button {
    background-color: var(--accent-color);
    color: white;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #d93228;
}

.contact-info-box {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.contact-info-box h4 {
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1em;
}
.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item i {
    font-size: 1.5em;
    color: var(--cta-color);
    width: 30px;
    text-align: center;
}

.contact-info-item a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}
.contact-info-item a:hover {
    color: var(--cta-color);
}

/* === NEW CALLBACK MODAL STYLES === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.is-visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.is-visible .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.8em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-content h2 {
    color: #fff;
    margin-top: 0;
    text-align: center;
}

.modal-content p {
    color: #c0c0c0;
    text-align: center;
    margin-bottom: 20px;
}

/* === FINAL, DEFINITIVE FIX FOR SIDEBAR CENTERING ON MOBILE === */
@media (max-width: 768px) {
    .service-detail-container {
        display: flex;          /* Change layout to flexbox */
        flex-direction: column; /* Stack items vertically */
        align-items: center;    /* Center items horizontally */
        gap: 40px;              /* Re-add the gap that grid was providing */
    }

    .service-detail-content,
    .service-detail-sidebar {
        width: 100%; /* Ensure both containers take up full width */
    }
}

/* === NEW "WHY CHOOSE US" SECTION STYLES === */
/* === NEW "WHY CHOOSE US" SECTION STYLES === */
.why-choose-us-section {
    padding: 0 0 80px 0;
    background-color: #f9f9f9;
}

.why-choose-us-section h2 {
    text-align: center;
    font-size: 2.8em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.why-choose-us-section .intro-text {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.why-choose-item {
    text-align: center;
    padding: 20px;
}

.why-choose-item .icon {
    font-size: 2.8em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.why-choose-item h3 {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Responsive adjustments for the new section */
@media (max-width: 768px) {
    .why-choose-us-section h2 {
        font-size: 2.2em;
    }
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

/* === FINAL "WHY CHOOSE US" MOBILE COMPACT VIEW === */
@media (max-width: 768px) {
    .why-choose-us-section {
        padding: 60px 0; /* Slightly reduce overall padding on mobile */
    }

    .why-choose-item {
        padding: 0 10px; /* Remove side padding to give text more room */
    }

    .why-choose-item .icon {
        font-size: 2.2em;      /* Make the icon slightly smaller */
        margin-bottom: 15px; /* Reduce space below the icon */
    }

    .why-choose-item h3 {
        font-size: 1.4em;      /* Make the heading smaller */
    }

    .why-choose-item p {
        font-size: 1em;        /* Keep the paragraph text readable */
        line-height: 1.6;      /* Adjust line height for better flow */
    }
}

/* === FINAL MOBILE HEADER PHONE STYLES === */
.mobile-header-call {
    display: none; /* Hidden on desktop by default */
}

@media (max-width: 768px) {
    /* This rule NO LONGER hides the trust signals */
    .header-contact-info, .desktop-nav {
        display: none; 
    }
    .hamburger-btn {
        display: block;
    }
    .mobile-header-call {
        display: flex; 
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: var(--accent-color);
        font-weight: 700;
        font-size: 1.1em;
    }
    .mobile-header-call i {
        font-size: 1.2em;
    }
    .header-container {
        justify-content: space-between;
    }
}

/* === FINAL HEADER LAYOUT AND SCROLL STYLES === */

/* --- Default States (for PC) --- */
.header-desktop-items { display: flex; align-items: center; gap: 20px; }
.header-mobile-items { display: none; }
.logo .short-logo-text { display: none; }
.header-contact-info span { font-size: 0.85em; font-weight: 600; color: var(--text-color); display: block; line-height: 1.2; text-align:right;}
.header-contact-info a { font-size: 1.5em; font-weight: 800; color: var(--accent-color); text-decoration: none; }

/* --- Mobile View Specifics --- */
@media (max-width: 768px) {
    /* Hide desktop container, show mobile container */
    .header-desktop-items { display: none; }
    .header-mobile-items { display: flex; align-items: center; gap: 15px; }

    /* Trust signals on mobile */
    .header-mobile-items .mobile-trust-signals { display: flex; align-items: center; gap: 8px; }
    .header-mobile-items .stars { display: flex; }

    /* Phone number that shows on scroll */
    .mobile-phone-number {
        display: none; /* Hidden by default */
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: var(--accent-color);
        font-weight: 700;
        font-size: 1.1em;
    }

    /* --- Scrolled State on Mobile --- */
    header.scrolled .logo-tagline { display: none; }
    header.scrolled .logo .full-logo-text { display: none; }
    header.scrolled .logo .short-logo-text { display: inline; }
    
    header.scrolled .mobile-phone-number { display: flex; }
   
}