/* Base Styles and Variables */
:root {
    --primary-color: #2c9b42;
    --primary-dark: #1c7a30;
    --secondary-color: #f39c12;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --text-color: #333;
    --body-font: 'Open Sans', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
    --container-width: 1200px;
    --border-radius: 5px;
    --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fafafa;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--dark-color);
}

p {
    margin-bottom: 15px;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 70px 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--heading-font);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 155, 66, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 155, 66, 0.2);
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

/* Header */
header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 160px;
    height: 120px;
    margin-right: 15px;
}

.company-info h1 {
    font-size: 24px;
    margin-bottom: 0;
    color: var(--primary-color);
}

.tagline {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 0;
}

.cta-phone {
    text-align: right;
}

.cta-phone p {
    margin-bottom: 5px;
    font-size: 14px;
}

.cta-phone span {
    color: var(--accent-color);
    font-weight: 600;
}

.phone-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

/* Hero Section */
.hero {
    background-color: #f9f9f9;
    padding: 70px 0;
    background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    max-height: 400px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero .highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.service-areas {
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-color);
    font-style: italic;
}

/* Benefits Section */
.benefits {
    background-color: white;
    padding: 60px 0;
}

.benefits .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit-item {
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 30px 15px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: rgba(44, 155, 66, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon img {
    max-width: 40px;
}

.benefit-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Services Section */
.services {
    background-color: #f9f9f9;
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    font-size: 20px;
}

.service-card p {
    padding: 0 20px 20px;
    font-size: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Pest Services Section */
.pest-services {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.pest-services h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--gray-color);
    font-size: 18px;
}

.pest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.pest-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.pest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pest-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pest-content {
    padding: 25px;
}

.pest-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.pest-content h3 i {
    margin-right: 10px;
    font-size: 24px;
}

.pest-content p {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    font-size: 14px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.pest-cta {
    background-color: var(--primary-color);
    color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 30px;
}

.pest-cta h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
}

.pest-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 18px;
}

.pest-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.pest-cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.pest-cta .btn-primary:hover {
    background-color: transparent;
    color: white;
}

.pest-cta .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.pest-cta .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .pest-grid {
        grid-template-columns: 1fr;
    }
    
    .pest-cta .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .pest-cta .btn {
        width: 100%;
    }
}

/* Testimonials Section */
.testimonials {
    background-color: var(--primary-color);
    color: white;
}

.testimonials h2 {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.testimonial-slider {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 350px;
    flex: 1;
    min-width: 280px;
}

.stars {
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial p {
    margin-bottom: 20px;
    font-style: italic;
}

.customer {
    font-weight: 600;
    text-align: right;
    font-style: normal;
    margin-bottom: 0;
}

/* Quote Form Section */
.quote-form {
    background-color: white;
    padding: 70px 0;
}

.quote-form .container {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.form-container {
    flex: 1;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.quote-image {
    flex: 1;
    position: relative;
    min-height: 400px;
    display: none;
}

.quote-image img {
    border-radius: var(--border-radius);
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.quote-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.guarantee-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quote-form h2 {
    text-align: center;
    margin-bottom: 10px;
}

.form-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 16px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 155, 66, 0.2);
}

.urgency {
    margin: 25px 0;
}

.limited-offer {
    text-align: center;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    animation: pulse 2s infinite;
    margin-bottom: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.privacy-note {
    text-align: center;
    font-size: 12px;
    color: var(--gray-color);
    margin-top: 15px;
    margin-bottom: 0;
}

/* Service Areas Detail */
.service-areas-detail {
    background-color: #f5f5f5;
}

.service-areas-detail h2 {
    text-align: center;
    margin-bottom: 40px;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.area {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.area h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.area p {
    font-size: 14px;
    margin-bottom: 0;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 50px 0;
}

.cta-banner h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-banner p {
    margin-bottom: 25px;
    font-size: 18px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 0;
}

footer a {
    color: #ecf0f1;
}

footer a:hover {
    color: var(--primary-color);
}

.footer-info {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-logo {
    width: 80px;
    height: 80px;
}

.contact-info {
    flex: 1;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links img {
    width: 20px;
    height: 20px;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 180px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    font-size: 14px;
}

.copyright .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright p {
    margin-bottom: 0;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.4s ease;
}

.floating-cta.visible {
    transform: translateX(0);
    opacity: 1;
}

.floating-phone, .floating-quote {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.floating-phone {
    background-color: var(--primary-color);
    color: white;
}

.floating-quote {
    background-color: var(--secondary-color);
    color: white;
}

.floating-phone:hover, .floating-quote:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    color: white;
}

.floating-phone img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Media Queries */
@media (min-width: 768px) {
    .quote-image {
        display: block;
    }

    .form-container {
        max-width: 60%;
    }
}

@media (max-width: 992px) {
    section {
        padding: 50px 0;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .quote-form .container {
        flex-direction: column;
    }
    
    .form-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .cta-phone {
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .benefit-item {
        flex: 0 0 100%;
    }
    
    .footer-info, .footer-nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-column {
        text-align: center;
        min-width: 100%;
    }
    
    .copyright .container {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .floating-cta {
        bottom: 10px;
        right: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .benefit-item {
        padding: 20px 10px;
    }

    .testimonial-slider {
        flex-direction: column;
        align-items: center;
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-content {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification.success {
    background-color: #dff2bf;
    border-left: 4px solid var(--primary-color);
}

.notification.error {
    background-color: #ffcccc;
    border-left: 4px solid var(--accent-color);
}

.notification p {
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.close-notification {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    padding: 0 0 0 15px;
    line-height: 1;
}

.close-notification:hover {
    color: #000;
}

/* Icon styling */
.fa, .fas, .far, .fab {
    vertical-align: middle;
}

.benefit-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.phone-icon {
    margin-right: 5px;
}

.footer-column i.fa-angle-right {
    font-size: 12px;
    margin-right: 5px;
}

.footer-column h4 i,
.service-areas-detail h2 i,
.quote-form h2 i,
.services h2 i,
.testimonials h2 i,
.cta-banner h2 i {
    margin-right: 10px;
}

.social-links a i {
    font-size: 18px;
}

.guarantee-icon {
    font-size: 40px;
    color: white;
    margin-bottom: 5px;
}

.guarantee-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.guarantee-badge span {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.2;
}

.floating-phone i,
.floating-quote i {
    margin-right: 8px;
    font-size: 16px;
}

label i {
    margin-right: 5px;
    width: 16px;
    text-align: center;
}

.btn i {
    margin-right: 5px;
}

.service-card h3 i {
    margin-right: 5px;
    color: var(--primary-color);
}
