/* JG Pest Control - Modern Overrides
   This file layers on top of the existing CSS to modernize the design.
   It can be removed entirely to revert to the original look. */

/* ============================================
   Styles extracted from inline <style> blocks
   ============================================ */

/* Discount badge & callback form */
.discount-badge { display: block !important; }
.callback-form-wrapper { max-width: 305px !important; }
#contact-form #anr_captcha_field_3 iframe {
    border: none !important;
    box-shadow: none !important;
    margin-top: 20px;
    margin-left: 120px;
}
@media only screen and (max-width: 1370px) {
    #contact-form #anr_captcha_field_3 iframe { margin-left: 0; }
}
.four-column ul li { list-style: none; }

/* Call box layout */
.call-box-top { padding-bottom: 10px; }
.call-now-top { line-height: 22px; padding-top: 0; }
.phone-sml,
.phone-sml strong { font-size: 20px; font-weight: 600; }
.call-now-top strong { padding-right: 4px; }
header.smaller .call-box-top { padding-bottom: 26px; }
@media only screen and (min-width: 1000px) {
    #call-box { width: 640px; padding-top: 15px; }
}
.backup-phone { font-size: 13px; line-height: 18px; padding-top: 2px; color: var(--color-text-light, #666); }
.backup-phone a { color: var(--color-red, #d12127); text-decoration: none; }
.backup-phone a:hover { text-decoration: underline; }

/* Top iframe responsive */
.top-iframe { height: 66px; width: 100%; margin: 0 auto; display: block; overflow: hidden; }
@media only screen and (max-width: 1020px) { .top-iframe { height: 64px; } }
@media only screen and (max-width: 820px) { .top-iframe { height: 84px; } }
@media only screen and (max-width: 560px) { .top-iframe { height: 108px; } }
@media only screen and (max-width: 450px) { .top-iframe { height: 122px; } }
@media only screen and (max-width: 979px) { #logo { padding-top: 15px; } }
@media only screen and (max-width: 480px) { #blog-content { padding-top: 140px; } }

/* Cleaning page green override (via post meta clean-page=yes) */
body.clean-page .red-no-lines { background: var(--color-green, #2fa418) !important; }
body.clean-page .red-title { background: var(--color-green, #2fa418) !important; }
body.clean-page .top-title,
body.clean-page .entry-content .internal-phone-no,
body.clean-page .entry-content .red-text { color: var(--color-green, #2fa418) !important; }
body.clean-page .inner-title { background-color: rgba(47, 164, 24, 0.85) !important; }

/* Xmas opening hours button (seasonal, kept for reference) */
.times-but {
    display: block; width: 85px; height: 85px;
    position: absolute; left: 320px; top: 10px;
    transition: var(--transition-base, 0.25s ease);
}
header.smaller .times-but { top: 0; }
@media only screen and (max-width: 1100px) { .times-but { top: -18px; left: 250px; } }
@media only screen and (max-width: 979px) { .times-but { top: auto; bottom: 80px; left: auto; right: 25px; } }
@media only screen and (max-width: 480px) { .times-but { left: auto; right: -12px; } }

/* Logo sizing (extracted from header inline styles) */
header #top-bar #logo img { width: 287px; height: 105px; }
#logo { padding-top: 2px; }
header.smaller #top-bar #logo img { width: 200px; height: 73px; }
header.smaller #logo { padding-top: 2px; }

/* ============================================
   PHASE 3: Header & Navigation Modernization
   ============================================ */

/* Smooth header transition on scroll */
header {
    transition: all var(--transition-base, 0.25s ease);
}

/* Top bar flexbox layout */
#top-bar .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm, 1rem);
}

/* Logo refinement */
#logo img {
    transition: all var(--transition-base, 0.25s ease);
}

/* Call box modernization */
#call-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.call-box-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Phone number styling */
.phone-big {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Modern CTA buttons */
.call-back-but,
#side-quote-but {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md, 8px) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-base, 0.25s ease) !important;
    text-transform: uppercase;
    font-size: 13px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}

.call-back-but:hover,
#side-quote-but:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1)) !important;
}

.call-back-but:active,
#side-quote-but:active {
    transform: translateY(0);
}

/* Top navigation bar */
#top-links {
    border-top: 1px solid var(--color-border, #e0e0e0);
    transition: background var(--transition-base, 0.25s ease);
}

#top-links .wrapper {
    display: flex;
    align-items: stretch;
}

#top-links .menu li a {
    transition: color var(--transition-fast, 0.15s ease), background var(--transition-fast, 0.15s ease);
    position: relative;
}

#top-links .menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--color-red, #d12127);
    transition: transform var(--transition-base, 0.25s ease);
}

#top-links .menu li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Dropdown menus modernization */
.dropdown {
    border-radius: 0 0 var(--radius-md, 8px) var(--radius-md, 8px);
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.12));
    overflow: hidden;
}

/* Fancybox modal forms refinement */
.callback-form {
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
}

.callback-form-wrapper {
    padding: var(--spacing-lg, 2.5rem) !important;
}

.callback-form-wrapper p {
    line-height: var(--line-height-relaxed, 1.75);
    color: var(--color-text, #333);
}

/* Credit cards image */
.credit-cards-head {
    opacity: 0.8;
    transition: opacity var(--transition-fast, 0.15s ease);
}
.credit-cards-head:hover {
    opacity: 1;
}

/* Lines open indicator */
.lines-open {
    font-weight: 500;
}

/* ============================================
   PHASE 4: Hero Section & Feature Boxes
   ============================================ */

/* Hero / Slider modernization */
#home-slider {
    position: relative;
    overflow: hidden;
}

#home-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(9, 20, 47, 0.7) 0%, rgba(9, 20, 47, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

#home-slider .wrapper {
    position: relative;
    z-index: 2;
}

.slider-text-area {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.slider-text {
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.slider-but {
    border-radius: var(--radius-md, 8px) !important;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all var(--transition-base, 0.25s ease) !important;
    box-shadow: 0 4px 15px rgba(209, 33, 39, 0.4);
}

.slider-but:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(209, 33, 39, 0.5) !important;
}

/* Discount badge subtle animation */
.discount-badge {
    transition: transform var(--transition-slow, 0.4s ease);
}
.discount-badge:hover {
    transform: scale(1.05);
}

/* Red title bar */
.red-title {
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Wide icons - CSS Grid */
.wide-icons .wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md, 1.5rem);
    align-items: start;
}

.wide-icon-box {
    text-align: center;
    padding: var(--spacing-md, 1.5rem) var(--spacing-sm, 1rem);
    transition: transform var(--transition-base, 0.25s ease);
    float: none !important;
    width: auto !important;
}

.wide-icon-box:hover {
    transform: translateY(-3px);
}

.wide-icon-box img {
    margin-bottom: var(--spacing-xs, 0.5rem);
    transition: transform var(--transition-base, 0.25s ease);
}

.wide-icon-box:hover img {
    transform: scale(1.08);
}

.wide-icon-box p {
    font-size: var(--font-size-sm, 0.875rem);
    line-height: var(--line-height-normal, 1.5);
    color: var(--color-text-light, #666);
}

/* Clear divs no longer needed in grid layouts */
.wide-icons .clear {
    display: none;
}

/* Feature boxes - CSS Grid */
.feature-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md, 1.5rem);
}

.feature-box {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
    transition: transform var(--transition-base, 0.25s ease), box-shadow var(--transition-base, 0.25s ease);
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.12));
}

.feature-box img {
    transition: transform var(--transition-slow, 0.4s ease);
    width: 100%;
    height: auto;
}

.feature-box:hover img {
    transform: scale(1.03);
}

.feature-box .description {
    padding: var(--spacing-md, 1.5rem);
}

.feature-title {
    font-weight: 700;
    line-height: var(--line-height-tight, 1.25);
    margin-bottom: var(--spacing-xs, 0.5rem);
}

.feature-but {
    display: inline-block;
    border-radius: var(--radius-full, 9999px) !important;
    font-weight: 600;
    font-size: var(--font-size-sm, 0.875rem);
    letter-spacing: 0.5px;
    transition: all var(--transition-base, 0.25s ease) !important;
    margin-top: var(--spacing-xs, 0.5rem);
}

.feature-but:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}

.feature-boxes .clear {
    display: none;
}

/* Service feature boxes */
.service-feature {
    border-radius: var(--radius-md, 8px);
    padding: var(--spacing-lg, 2.5rem);
    margin-bottom: var(--spacing-md, 1.5rem);
}

.service-feature h2 {
    line-height: var(--line-height-tight, 1.25);
    margin-bottom: var(--spacing-sm, 1rem);
}

.service-feature p {
    line-height: var(--line-height-relaxed, 1.75);
}

/* Inner header (service/area pages) */
.inner-header {
    border-radius: 0;
    overflow: hidden;
}

.inner-title {
    border-radius: var(--radius-md, 8px);
    padding: var(--spacing-md, 1.5rem) var(--spacing-lg, 2.5rem);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.inner-title h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: var(--font-size-sm, 0.875rem);
    opacity: 0.9;
}

.breadcrumbs a {
    transition: opacity var(--transition-fast, 0.15s ease);
}

.breadcrumbs a:hover {
    opacity: 0.8;
}

/* Postcode finder modernization */
.postcode-finder {
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
}

.postcode-inner {
    padding: var(--spacing-md, 1.5rem);
}

.postcode-inner input[type="text"] {
    border-radius: var(--radius-sm, 4px);
    border: 2px solid var(--color-border, #e0e0e0);
    padding: 10px 14px;
    font-size: var(--font-size-base, 1rem);
    transition: border-color var(--transition-fast, 0.15s ease);
}

.postcode-inner input[type="text"]:focus {
    border-color: var(--color-blue, #1867d0);
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 103, 208, 0.15);
}

.postcode-inner input[type="submit"] {
    border-radius: var(--radius-sm, 4px);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-base, 0.25s ease);
    cursor: pointer;
}

.postcode-inner input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}

/* Side boxes */
.side-box {
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
    transition: transform var(--transition-base, 0.25s ease), box-shadow var(--transition-base, 0.25s ease);
}

.side-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
}

.side-box .main-but {
    border-radius: var(--radius-full, 9999px) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-base, 0.25s ease) !important;
}

.side-box .main-but:hover {
    transform: translateY(-1px);
}

/* Responsive: feature boxes stack on mobile */
@media only screen and (max-width: 768px) {
    .feature-boxes {
        grid-template-columns: 1fr;
    }
    .wide-icons .wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs, 0.5rem);
    }
}

@media only screen and (max-width: 979px) and (min-width: 769px) {
    .feature-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   PHASE 5: Content Sections & Pest Grid
   ============================================ */

/* Pest boxes grid - modern card layout */
.pest-boxes-wrap,
.pest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-md, 1.5rem);
}

/* Individual pest cards */
.feature-small {
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
    transition: transform var(--transition-base, 0.25s ease), box-shadow var(--transition-base, 0.25s ease);
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.feature-small:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
}

/* Pest card image zoom on hover */
.feature-small .feature-img {
    overflow: hidden;
    border-radius: var(--radius-md, 8px) var(--radius-md, 8px) 0 0;
}

.feature-small .feature-img img {
    transition: transform var(--transition-slow, 0.4s ease);
    width: 100%;
    height: auto;
    display: block;
}

.feature-small:hover .feature-img img {
    transform: scale(1.06);
}

/* Pest card overlay */
.feature-overlay {
    transition: opacity var(--transition-base, 0.25s ease);
    border-radius: var(--radius-md, 8px);
}

/* Pest card text */
.feature-small h3 {
    font-weight: 700;
    line-height: var(--line-height-tight, 1.25);
}

.feature-small h3 a {
    transition: color var(--transition-fast, 0.15s ease);
}

/* Read more toggle styling */
.readmore-text {
    cursor: pointer;
    font-weight: 600;
    transition: color var(--transition-fast, 0.15s ease);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.readmore-text:hover {
    color: var(--color-blue, #1867d0);
}

/* Tick list modernization */
.tick-list li,
ul.checkmarks li {
    position: relative;
    padding-left: 28px;
    line-height: var(--line-height-relaxed, 1.75);
}

.tick-list li::before,
ul.checkmarks li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-green, #2fa418);
    font-weight: 700;
    font-size: 1.1em;
}

/* Team photos */
.team-box img {
    border-radius: 50%;
    transition: transform var(--transition-base, 0.25s ease), box-shadow var(--transition-base, 0.25s ease);
    object-fit: cover;
}

.team-box img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
}

/* Google review box */
.google-box {
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}

/* Trustpilot section */
.trust-pilot-content {
    border-radius: var(--radius-md, 8px);
    padding: var(--spacing-md, 1.5rem);
}

/* Quote overlay text */
.quote-overlay-text {
    font-size: var(--font-size-lg, 1.125rem);
    line-height: var(--line-height-normal, 1.5);
}

/* Blue text accent */
.blue-text {
    font-weight: 600;
}

/* Content area general improvements */
.entry-content p {
    line-height: var(--line-height-relaxed, 1.75);
}

.entry-content h2 {
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: var(--line-height-tight, 1.25);
    margin-top: var(--spacing-lg, 2.5rem);
    margin-bottom: var(--spacing-sm, 1rem);
}

.entry-content h3 {
    font-weight: 600;
    line-height: var(--line-height-tight, 1.25);
}

/* Content images */
.entry-content img {
    border-radius: var(--radius-sm, 4px);
}

/* Blog excerpt cards */
.blog-excerpt-img-bg,
.blog-excerpt-img-container {
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}

/* Next steps section */
.step-box {
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    transition: transform var(--transition-base, 0.25s ease), box-shadow var(--transition-base, 0.25s ease);
}

.step-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
}

/* Contact bar modernization */
#contact-bar {
    position: relative;
    overflow: hidden;
}

#contact-bar .quote-but {
    border-radius: var(--radius-md, 8px) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-base, 0.25s ease) !important;
    box-shadow: 0 4px 15px rgba(209, 33, 39, 0.3);
}

#contact-bar .quote-but:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(209, 33, 39, 0.4) !important;
}

/* Accreditation logos */
.footer-logos {
    padding: var(--spacing-lg, 2.5rem) 0;
}

.footer-logos img {
    opacity: 0.85;
    transition: opacity var(--transition-base, 0.25s ease);
    max-width: 100%;
    height: auto;
}

.footer-logos img:hover {
    opacity: 1;
}

/* ============================================
   PHASE 6: Footer Modernization
   ============================================ */

/* Footer grid layout */
#footer .wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--spacing-lg, 2.5rem);
    padding: var(--spacing-xl, 4rem) 0;
}

#footer .clear {
    display: none;
}

.footer-column {
    float: none !important;
    width: auto !important;
}

.footer-title {
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm, 1rem);
    font-size: var(--font-size-sm, 0.875rem);
    text-transform: uppercase;
}

.footer-box {
    line-height: var(--line-height-relaxed, 1.75);
}

.footer-box a {
    transition: color var(--transition-fast, 0.15s ease);
}

/* Social links modernization */
#social-links {
    display: flex;
    gap: var(--spacing-sm, 1rem);
    list-style: none;
    padding: 0;
    margin: var(--spacing-sm, 1rem) 0 0 0;
}

#social-links li {
    display: inline-flex;
}

#social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base, 0.25s ease);
}

#social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#social-links img {
    transition: opacity var(--transition-fast, 0.15s ease);
}

/* Footer bottom */
#footer-btm {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer-btm .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md, 1.5rem);
    padding: var(--spacing-md, 1.5rem) 0;
}

#footer-btm .footer-left {
    float: none !important;
}

#footer-btm .footer-right {
    float: none !important;
}

#footer-btm .clear {
    display: none;
}

/* Fixed bottom CTA button */
#foot-but {
    border-radius: var(--radius-md, 8px) var(--radius-md, 8px) 0 0 !important;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 -4px 20px rgba(209, 33, 39, 0.3);
    transition: all var(--transition-base, 0.25s ease) !important;
}

#foot-but:hover {
    box-shadow: 0 -4px 30px rgba(209, 33, 39, 0.5) !important;
}

/* Footer responsive */
@media only screen and (max-width: 768px) {
    #footer .wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md, 1.5rem);
    }
    #footer-btm .wrapper {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   PHASE 7: Mobile Experience Enhancement
   ============================================ */

/* Global touch-friendly improvements */
@media only screen and (max-width: 979px) {
    /* Ensure minimum tap target sizes */
    a, button, input[type="submit"], .main-but, .feature-but, .slider-but {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Mobile header improvements */
    #top-bar .wrapper {
        flex-wrap: wrap;
        padding: var(--spacing-xs, 0.5rem) 3%;
    }
    
    /* Phone number as tappable link on mobile */
    .phone-big a,
    .phone-big {
        font-size: 22px;
        font-weight: 700;
    }
    
    /* Stack CTA buttons on mobile */
    .call-back-but,
    #side-quote-but {
        width: 100%;
        text-align: center;
        margin: 4px 0;
        padding: 12px 16px !important;
    }

    /* Mobile content spacing */
    .service-feature {
        padding: var(--spacing-md, 1.5rem);
    }
    
    .entry-content p {
        font-size: 15px;
    }
    
    /* Mobile pest grid: 2 columns */
    .pest-boxes-wrap,
    .pest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm, 1rem);
    }
    
    /* Mobile-specific step boxes */
    .step-box {
        margin-bottom: var(--spacing-sm, 1rem);
    }
}

/* Small phones */
@media only screen and (max-width: 480px) {
    /* Single column pest grid on very small screens */
    .pest-boxes-wrap,
    .pest-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile hero simplification */
    .slider-text {
        font-size: 22px !important;
        line-height: 1.3;
    }
    
    .slider-but {
        width: 100%;
        text-align: center;
        padding: 14px 20px !important;
    }
    
    /* Postcode finder mobile */
    .postcode-inner input[type="text"] {
        width: 100% !important;
        margin-bottom: 8px;
    }
    
    .postcode-inner input[type="submit"] {
        width: 100%;
    }
}

/* Sticky mobile bottom CTA bar */
@media only screen and (max-width: 768px) {
    #foot-but {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        text-align: center;
        border-radius: 0 !important;
        padding: 14px 20px !important;
        font-size: 15px;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.2);
    }
    
    /* Add bottom padding to body to prevent content overlap */
    body {
        padding-bottom: 54px;
    }
}

/* Tablet intermediate */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    .feature-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pest-boxes-wrap,
    .pest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   PHASE 10: Final Polish
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-blue, #1867d0);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(24, 103, 208, 0.2);
    color: inherit;
}

/* Subtle page transitions */
.wrapper {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0.95; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Image rendering improvements */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    header, #footer, #footer-btm, #foot-but, .fancybox-hidden,
    .call-back-but, #side-quote-but, .discount-badge {
        display: none !important;
    }
    body { padding-bottom: 0 !important; }
}
