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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Header Styles */
header {
    background-color: #000000;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-links a:hover {
    color: #3498db;
}

/* Section Styles */
.section {
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section:nth-child(even) {
    background-color: #f8f9fa;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content p {
    margin-bottom: 1.5rem;
}

/* About Section Styles */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-intro,
.about-service {
    margin-bottom: 3rem;
}

.about-content h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.features-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-item p {
    margin: 0;
    color: #555;
}

/* Moving Pests Bar */
.pests-slider {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-radius: 8px;
    position: relative;
}

.pests-track {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    animation: scroll 30s linear infinite;
    width: max-content;
    will-change: transform;
}

.pest-item {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.pests-slider:hover .pests-track {
    animation-play-state: paused;
}

/* Latest Articles Slider (Homepage) */
.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.latest-articles-grid.is-fading {
    opacity: 0;
    transform: translateY(8px);
}

.latest-articles-grid {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms ease, transform 300ms ease;
}

.latest-articles-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #555;
    font-size: 1rem;
}

.latest-article-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.latest-article-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #555;
}

.latest-article-category {
    font-weight: 700;
    color: #2d5016;
}

.latest-article-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #2d5016;
    line-height: 1.35;
}

.latest-article-card h4 a {
    color: inherit;
    text-decoration: none;
}

.latest-article-card h4 a:hover {
    text-decoration: underline;
}

.latest-article-excerpt {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.latest-article-readmore {
    background-color: #3a6b1f;
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
}

.latest-article-readmore:hover {
    background-color: #2d5016;
}

@media screen and (max-width: 1024px) {
    .latest-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .latest-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Franchise Section Styles */
.franchise-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.franchise-intro,
.franchise-why,
.franchise-looking,
.franchise-steps {
    margin-bottom: 3rem;
}

.franchise-content h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.franchise-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.benefits-list {
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.benefit-item p {
    margin: 0;
    color: #555;
}

.qualities-list,
.steps-list {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.qualities-list li,
.steps-list li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.steps-list {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.steps-list li {
    counter-increment: item;
    padding-left: 3rem;
    position: relative;
}

.steps-list li:before {
    content: counter(item);
    background: #3498db;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.service-card {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card > p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #3498db;
}

.service-details h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.service-details h4:first-child {
    margin-top: 0;
}

.service-details p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.service-image {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #000;
    box-sizing: border-box;
}

.service-image img,
.service-image video {
    width: 100%;
    height: auto;
    display: block;
}

.service-card:hover .service-image img,
.service-card:hover .service-image video {
    transform: scale(1.05);
}

.quote-btn {
    background-color: #3498db;
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.quote-btn:active {
    transform: translateY(0);
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.contact-info > p {
    margin-bottom: 2rem;
    color: #555;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.info-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #2980b9;
}

.business-hours {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.business-hours h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.business-hours p {
    color: #555;
    line-height: 1.8;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-form-wrapper h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer Styles */
footer {
    background-color: #000000;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.social-media,
.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .services-grid {
        gap: 1rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .contact-wrapper {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-links a {
        padding: 0.5rem;
    }

    .section {
        padding: 3rem 0;
        min-height: auto;
    }

    .section h2 {
        font-size: 1.8rem;
    }
    
    .about-content h3,
    .franchise-content h3,
    .contact-info h3,
    .contact-form-wrapper h3 {
        font-size: 1.4rem;
    }
    
    .feature-item,
    .benefit-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .feature-icon,
    .benefit-icon {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-media,
    .social-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .about-content h3,
    .franchise-content h3,
    .contact-info h3,
    .contact-form-wrapper h3 {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .feature-item,
    .benefit-item {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
    }
    
    footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
}
