/* 
   Shaw Pest Control - Modern Design System & Stylesheet 
   Primary Palette: Emerald (#0f766e), Forest (#064e3b), Amber Accent (#f59e0b)
*/

:root {
    --primary: #0f766e;
    --primary-dark: #064e3b;
    --primary-light: #14b8a6;
    --secondary: #0284c7;
    --secondary-dark: #0369a1;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --dark: #0f172a;
    --dark-muted: #334155;
    --light: #f8fafc;
    --light-card: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --danger: #ef4444;
    --success: #10b981;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 118, 110, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark-muted);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- TOP EMERGENCY BAR --- */
.top-bar {
    background: var(--dark);
    color: #ffffff;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--accent);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-info-item svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
}

.top-info-item a:hover {
    color: var(--accent);
}

.promo-tag {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #000;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* --- NAVIGATION HEADER --- */
.main-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-brand img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--accent-hover);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-muted);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.45);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--dark);
    margin: 4px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.94) 0%, rgba(15, 118, 110, 0.88) 100%), 
                url('../../images/imgi_48_female-gardener-with-sprayer-standing-greenhouse-1_11zon.webp') center/cover no-repeat;
    color: #ffffff;
    padding: 5rem 0 6rem 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero h1 span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-200);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-feature-item svg {
    fill: var(--accent);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Quick Quote Card in Hero */
.hero-quote-card {
    background: #ffffff;
    color: var(--dark);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
}

.hero-quote-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.hero-quote-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-muted);
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* --- QUICK PEST BAR --- */
.pest-bar-section {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.pest-bar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
    gap: 1rem;
}

.pest-bar-card {
    background: #ffffff;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

.pest-bar-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.pest-bar-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.pest-bar-card h4 {
    font-size: 0.95rem;
    color: var(--dark);
}

/* --- SECTION STYLES --- */
.section {
    padding: 5rem 0;
}

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

.section-bg-white {
    background-color: #ffffff;
}

.section-bg-dark {
    background-color: var(--dark);
    color: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-img-wrapper {
    overflow: hidden;
    position: relative;
    height: 200px;
    width: 100%;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

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

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-header-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #ffffff;
    padding: 1.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-header-banner .pest-emoji {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.service-header-banner h3 {
    color: #ffffff;
    font-size: 1.35rem;
}

.service-body {
    padding: 1.75rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-body p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

.service-list {
    margin-bottom: 1.5rem;
}

.service-list li {
    font-size: 0.88rem;
    color: var(--dark-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 900;
}

/* --- SERVICES DETAIL (services.php) --- */
.service-detail-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.service-detail-img {
    flex: 0 0 250px;
    max-width: 250px;
}

/* --- WHY CHOOSE US --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 2rem;
}

.why-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

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

.why-icon {
    width: 50px;
    height: 50px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.why-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.92rem;
    color: var(--gray-600);
}

/* --- EMERGENCY BANNER --- */
.emergency-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    border-top: 4px solid var(--accent);
}

.emergency-banner h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.emergency-banner p {
    font-size: 1.15rem;
    color: var(--gray-200);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.phone-badge-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent);
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 800;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    transition: var(--transition);
}

.phone-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.client-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
}

.client-location {
    font-size: 0.8rem;
    color: var(--gray-600);
}

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

.faq-item {
    background: #ffffff;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    max-height: 300px;
}

/* --- FOOTER --- */
.main-footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 4.5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-col h3, .footer-col h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after, .footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--accent);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-300);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

.footer-contact svg {
    fill: var(--accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

/* --- MODAL DIALOG --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--gray-100);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: #ffffff;
}

/* Response Toast / Alert */
.alert-box {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    /* Page-specific two-column layouts (about.php intro, contact.php form)
       set their own grid-template-columns inline; force them to a single
       column below desktop width regardless of that inline ratio. */
    .layout-split {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        height: calc(100vh - 75px);
        overflow-y: auto;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        display: none;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu .nav-link {
        display: block;
        padding: 0.9rem 0.5rem;
        border-bottom: 1px solid var(--gray-100);
        font-size: 1rem;
    }
    .header-actions {
        gap: 0.5rem;
    }
    .header-actions .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    .brand-subtitle {
        display: none;
    }

    .section {
        padding: 3rem 0;
    }

    .hero {
        padding: 2.5rem 0 3.5rem 0;
    }
    .hero h1 {
        font-size: 2.1rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-cta-group .btn {
        width: 100%;
    }
    .hero-features {
        flex-direction: column;
        gap: 0.85rem;
    }
    .hero-quote-card {
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.65rem;
    }
    .section-header p {
        font-size: 0.95rem;
    }

    .emergency-banner h2 {
        font-size: 1.85rem;
    }
    .phone-badge-group {
        flex-direction: column;
        align-items: stretch;
    }
    .phone-btn {
        justify-content: center;
        font-size: 1.05rem;
        padding: 0.9rem 1.5rem;
    }

    .service-detail-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
    .service-detail-img {
        flex: 1 1 auto !important;
        max-width: 100% !important;
    }
    [id="bed-bugs"], [id="rodents"], [id="cockroaches"], [id="wildlife"], [id="mosquitoes"] {
        padding: 1.5rem !important;
    }

    .why-card {
        padding: 1.5rem;
    }
    .contact-form-card {
        padding: 1.5rem !important;
    }

    /* Prevent iOS Safari from auto-zooming when a form input is focused. */
    .form-control {
        font-size: 16px;
    }

    .modal-box {
        padding: 1.5rem;
        width: 92%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .main-footer {
        padding: 3rem 0 1.5rem 0;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .top-bar .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    .top-info {
        gap: 0.75rem 1.25rem;
        min-width: 0;
        flex-wrap: nowrap;
    }
    /* Keep the mobile top bar to a single compact row: phone + offer badge.
       Location and email are secondary info already available in the footer. */
    .top-info-location,
    .top-info-email {
        display: none;
    }
    .top-info-phone {
        font-size: 0.8rem;
        min-width: 0;
    }
    .top-info-phone a {
        white-space: nowrap;
    }
    /* Hide the main office number on very narrow phones, keep only dispatch. */
    .top-info-phone-primary {
        display: none;
    }
    .promo-tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .hero h1 {
        font-size: 1.75rem;
    }
    .section-header h2 {
        font-size: 1.4rem;
    }
    .pest-bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pest-bar-card {
        padding: 1rem 0.5rem;
    }
    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
    .logo-brand img {
        height: 40px;
    }
    .brand-title {
        font-size: 1.05rem;
    }
}
