/* --- style.css for Country Pest Control --- */

/* Basic Reset & Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    font-size: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 22px;
    line-height: 1.6;
    color: #c9c9c9;
    background-color: #0e0e0e;
}

/* Container Utility */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    width: 90%;
}

/* Logo */
.logo {
    width: auto;
    height: 160px; /* Ensure consistent size */
    max-width: 100%;
    margin-top: 20px;
}

/* Logo Title Container */
.logo-title {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Header & Navigation */
header {
    background-color: #000;
    color: #aa0000;
    padding: 0.5rem 0;
    border-bottom: 3px solid #9AB973;
}

header .container {
    display: flex;
    justify-content: space-between; /* Center logo and navigation */
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px; /* Adjusts space between nav items */
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #9AB973;
    color: #2F4F4F;
}

/* Hyperlink Styles */
a {
    color: #c00d0d;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c50e0e;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(47, 79, 79, 0.7), rgba(47, 79, 79, 0.7)), url('placeholder-rural-bg.png') no-repeat center center/cover;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-decoration: underline;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

#service-area {
    margin-top: 20px;
}

#contact-method {
    margin-bottom: 20px;
}

/* Main Content */
main {
    padding: 30px 0;
    min-height: 70vh;
}

main h2 {
    color: #2F4F4F;
    margin-bottom: 1rem;
    font-size: 2rem;
    border-bottom: 2px solid #9AB973;
    padding-bottom: 0.5rem;
    display: inline-block;
}

main p {
    margin-bottom: 1rem;
}

/* Call-To-Action Button */
.cta-button {
    display: inline-block;
    background-color: #9AB973;
    color: #2F4F4F;
    padding: 12px 25px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 50px;
}

.cta-button:hover {
    background-color: #8aa86b;
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .services {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services {
        grid-template-columns: 1fr;
    }
}

/* Services Grid */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #1a1a1a;
    padding: 25px;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.service-item h3 {
    color: #9AB973;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-item p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
}

/* Contact Form */
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #9AB973;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    color: #000;
}

/* Adjust select input specifically */
select {
    font-size: 1.2rem;
}

/* Textarea */
.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 30px;
    font-size: 0.9rem;
}

footer a {
    color: #9AB973;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* === Media Queries === */
@media (max-width: 1200px) {
    .services {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        margin-top: 10px;
    }

    nav ul li {
        margin: 10px 0;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    main h2 {
        font-size: 1.6rem;
    }

    .hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 180px;
    }

    body {
        font-size: 18px;
    }

    .cta-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    main h2 {
        font-size: 1.4rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul li {
        margin: 8px 0;
    }
}