/* 
   Residential Pest Help - Bold Typography Theme CSS Stylesheet
   Designed with ultra-bold headings, clean emerald highlights, and high-impact layouts.
*/

:root {
    --color-bg-white: #ffffff;
    --color-bg-light: #f8fafc;        /* slate-50 */
    --color-bg-alt: #f1f5f9;          /* slate-100 */
    --color-text-dark: #0f172a;       /* Deep slate-900 */
    --color-text-muted: #475569;      /* slate-600 */
    --color-primary: #059669;         /* High-impact Emerald-600 */
    --color-primary-hover: #047857;   /* Emerald-700 */
    --color-accent-light: #ecfdf5;    /* Emerald-50 background tint */
    --color-accent-border: #a7f3d0;   /* Emerald-200 border tint */
    --color-danger-bg: #fee2e2;       /* Light red tint */
    --color-danger-text: #991b1b;     /* Muted red */
    --color-danger-border: #fca5a5;   /* Border red tint */
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-emerald: 0 12px 24px -6px rgba(5, 150, 105, 0.2);
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.25s ease-in-out;
    --header-height: 80px;
    --sticky-bar-height: 84px;
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-family: var(--font-system);
}

body {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    line-height: 1.5;
    font-size: 16px;
    overflow-x: hidden;
    padding-bottom: 0; /* Updated in media query for mobile sticky bar */
    font-weight: 500;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography with Bold/Black Theme Accents */
h1, h2, h3, h4 {
    color: var(--color-text-dark);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-size: 3.75rem; /* Massive, ultra-bold heading */
    font-weight: 900;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
        letter-spacing: -0.02em;
    }
}

h2 {
    font-size: 2.5rem; /* Clean bold subheaders */
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.025em;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.75rem;
    }
}

h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}

p {
    color: var(--color-text-muted);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Accent highlight */
.accent-highlight {
    color: var(--color-primary);
}

/* Utility Classes */
.text-center { text-align: center; }
.bold { font-weight: 800; }
.primary-color { color: var(--color-primary); }
.section-padding { padding: 80px 0; }
@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
}
.section-bg-light { background-color: var(--color-bg-light); }
.section-bg-alt { background-color: var(--color-bg-alt); }

/* SVG Icon styles */
.icon-svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    display: inline-block;
}

/* High-Converting Bold CTA Button */
.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900; /* Extra bold */
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-emerald);
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
    min-height: 56px;
    min-width: 250px;
    text-align: center;
    letter-spacing: -0.01em;
}

.btn-call:hover, .btn-call:focus {
    background-color: var(--color-primary-hover);
    transform: scale(1.02);
    box-shadow: 0 16px 30px -4px rgba(5, 150, 105, 0.35);
    outline: none;
}

.btn-call:active {
    transform: scale(0.99);
}

.btn-call .icon-svg {
    margin-right: 12px;
    stroke: #ffffff;
    width: 26px;
    height: 26px;
}

/* Header styling */
.header {
    height: var(--header-height);
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-bg-alt);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.45rem;
    font-weight: 900; /* Extra strong */
    color: var(--color-text-dark);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo .icon-svg {
    margin-right: 10px;
    stroke: var(--color-primary);
    width: 28px;
    height: 28px;
}

.header-cta .btn-call-header {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 8px;
    min-height: 42px;
    min-width: auto;
    box-shadow: var(--shadow-sm);
}

.header-cta .btn-call-header:hover {
    transform: scale(1.02);
}

/* Hero Section */
.hero {
    padding: 70px 0 80px 0;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-bg-alt);
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0 50px 0;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 992px) {
    .hero-content {
        text-align: left;
    }
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 500;
}

@media (min-width: 992px) {
    .hero-subheadline {
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-cta-wrapper {
    margin-bottom: 16px;
}

.hero-supporting-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Process Trust Row (Step Grid in Hero) */
.trust-row {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-bg-alt);
    border-radius: 16px;
    padding: 30px;
}

.trust-row-title {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.trust-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .trust-steps {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .trust-steps {
        grid-template-columns: 1fr;
    }
}

.trust-step {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.trust-step-number {
    color: var(--color-primary);
    font-weight: 900;
    font-size: 1.35rem;
    margin-right: 16px;
    flex-shrink: 0;
    line-height: 1;
}

.trust-step-text {
    font-size: 1rem;
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.3;
}

/* Common Household Pest Issues Section */
.section-title-desc {
    max-width: 650px;
    margin: 0 auto 50px auto;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.pest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.pest-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-bg-alt);
    border-radius: 16px;
    padding: 28px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.pest-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-border);
}

.pest-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.pest-card-icon {
    background-color: var(--color-accent-light);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.pest-card-icon .icon-svg {
    stroke: var(--color-primary);
    width: 22px;
    height: 22px;
}

.pest-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-dark);
}

.pest-card-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* How It Works Section */
.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.step-card {
    text-align: left;
    background-color: var(--color-bg-white);
    padding: 36px 30px;
    border-radius: 16px;
    border: 1px solid var(--color-bg-alt);
    transition: transform var(--transition-fast);
}

.step-card:hover {
    transform: translateY(-2px);
}

.step-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    background-color: var(--color-accent-light);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.step-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Good Fit / Not a Fit Checklist Section with Stark Contrast (Slate-900 Box) */
.fit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

.fit-card {
    border-radius: 18px;
    padding: 36px;
    height: 100%;
}

/* Good Fit gets the high contrast dark mode card */
.fit-card.good-fit {
    background-color: var(--color-text-dark); /* Slate-900 */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.fit-card.not-fit {
    background-color: #fffdfd;
    border: 1px solid var(--color-danger-border);
    border-top: 4px solid var(--color-danger-text);
}

.fit-header-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

.good-fit .fit-header-title {
    color: #ffffff;
}

.not-fit .fit-header-title {
    color: var(--color-danger-text);
}

.fit-list {
    list-style: none;
}

.fit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.5;
}

.fit-item:last-child {
    margin-bottom: 0;
}

.fit-icon {
    margin-right: 14px;
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 1.15rem;
    font-weight: 900;
}

.good-fit .fit-icon {
    color: #34d399; /* Emerald-400 for dark mode */
}

.not-fit .fit-icon {
    color: var(--color-danger-text);
}

.good-fit .fit-item span {
    color: #e2e8f0; /* Soft text for dark mode */
}

/* Trust / Clarity Section */
.trust-bullets-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-bg-alt);
    border-radius: 18px;
    padding: 45px 35px;
    max-width: 850px;
    margin: 0 auto;
}

.trust-bullets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 600px) {
    .trust-bullets-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.trust-bullet-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.03);
}

.trust-bullet-icon {
    margin-right: 14px;
    flex-shrink: 0;
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

.trust-bullet-text {
    font-size: 1rem;
    color: var(--color-text-dark);
    font-weight: 700;
}

/* Strong CTA Section */
.cta-section {
    background-color: var(--color-bg-alt);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
}

.cta-content {
    max-width: 750px;
    margin: 0 auto;
}

.cta-headline {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

@media (max-width: 768px) {
    .cta-headline {
        font-size: 1.85rem;
    }
}

.cta-text {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 35px;
    font-weight: 500;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-bg-alt);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(5, 150, 105, 0.2);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 24px;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 800; /* Extra bold FAQs */
    color: var(--color-text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.faq-question:hover, .faq-question:focus {
    background-color: var(--color-bg-light);
    outline: none;
}

.faq-toggle-icon {
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-left: 14px;
}

.faq-toggle-icon svg {
    stroke: var(--color-text-muted);
    width: 14px;
    height: 10px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease;
}

.faq-answer-inner {
    padding: 0 24px 22px 24px;
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-weight: 500;
}

/* Expanded state for FAQ scripts */
.faq-item.active {
    border-color: var(--color-primary);
}

.faq-item.active .faq-answer {
    max-height: 250px; /* Safe upper bound */
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

/* Static Information Layout for Terms/Privacy */
.info-layout {
    padding: 80px 0;
    background-color: var(--color-bg-white);
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
}

.info-content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 12px;
    text-align: left;
}

.info-meta {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    border-bottom: 2px solid var(--color-bg-alt);
    padding-bottom: 20px;
}

.info-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 18px;
    text-align: left;
}

.info-content p {
    margin-bottom: 22px;
    font-size: 1.05rem;
    line-height: 1.65;
}

.info-content ul {
    margin-bottom: 30px;
    padding-left: 24px;
}

.info-content li {
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.info-notice-box {
    background-color: var(--color-bg-light);
    border-left: 5px solid var(--color-primary);
    padding: 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 40px;
}

.info-notice-box p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--color-text-dark);
    font-weight: 600;
}

/* Footer Section */
.footer {
    background-color: var(--color-text-dark);
    color: #cbd5e1; /* slate-300 */
    padding: 60px 0 40px 0;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 18px;
    letter-spacing: -0.025em;
}

.footer-brand p {
    color: #94a3b8; /* slate-400 */
    font-size: 0.95rem;
    max-width: 480px;
    line-height: 1.6;
}

.footer-links-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.015em;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-links-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    font-weight: 600;
}

.footer-links-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-links-list .footer-phone-link {
    color: #34d399; /* beautiful green */
    font-weight: 800;
}

.footer-links-list .footer-phone-link:hover {
    color: #6ee7b7;
}

.footer-disclaimer-wrapper {
    border-top: 1px solid #334155; /* slate-700 */
    padding-top: 35px;
    margin-bottom: 30px;
}

.footer-disclaimer-text {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #94a3b8; /* slate-400 */
    margin-bottom: 0;
    font-weight: 400;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid #1e293b;
    padding-top: 25px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: 0.9rem;
    color: #64748b; /* slate-500 */
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .footer-copyright {
        margin-bottom: 0;
    }
}

/* Mobile Sticky Bottom Call Bar with Premium Rounded Style */
.sticky-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--sticky-bar-height);
    background-color: #ffffff;
    box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.08);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    display: none; /* Controlled by media queries and JS */
    z-index: 999;
}

.sticky-call-bar-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 16px;
}

.sticky-call-title {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--color-text-dark);
    line-height: 1.2;
}

.sticky-call-sub {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.btn-sticky-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 0 20px;
    border-radius: 10px;
    min-height: 52px;
    flex-grow: 1;
    max-width: 220px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-sticky-call:hover, .btn-sticky-call:focus {
    background-color: var(--color-primary-hover);
    transform: scale(1.02);
}

.btn-sticky-call .icon-svg {
    margin-right: 8px;
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

/* Responsive Sticky Call Bar showing only on Mobile/Tablet */
@media (max-width: 768px) {
    body {
        padding-bottom: var(--sticky-bar-height); /* Make space so bar doesn't block footer content */
    }
    
    .sticky-call-bar {
        display: block; /* Show on mobile/tablet */
    }
}
