* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
    font-family: 'Arial', sans-serif;}

    body {
        background-color: #f8fafc;
        color: #1e293b;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        line-height: 1.6;
        overflow-x: hidden;
        width: 100%;
}
    html{
        scroll-behavior: smooth;
        overflow-x: hidden;
        width: 100%;
    }

    @media (max-width: 768px) {
        nav,
        .navbar {
            flex-direction: column;
            align-items: flex-start;
        }
        .nav-links {
            flex-direction: column;
            gap: 12px;
            margin-top: 12px;
        }
    }
    .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e2e8f0
}
    .nav-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    }

    .brand-main {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0482c7;
    letter-spacing: -0.3px;
    }

    .brand-sub {
    font-size: 1.75rem;
    font-weight: 800;
    color: #07712e;
    letter-spacing: -0.3px;
    }

    .nav-brand strong {
    color: #0482c7;
    }
    /* Add some spacing between the navigation links, top border links */
    .nav-links {  
    display: flex;
    align-items: center;
    gap: 40px;
    }

    .nav-links a:not(.phone-btn) {
        color:#334155;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        transition: color 0.2s ease;
    }
    /* Add hover effect for navigation links, excluding the phone button */
    .nav-links a:not(.phone-btn):hover {
        color: #0482c7;
    }

    .hero-cta-btn {
        margin: 18px 0 26px 0;
    }


.hero {
    
    position: relative;
    text-align: center;
    padding-top: 220px;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
/* 1. dark overlay (rgba black at 60% opacity  layered over the image*/
    background: 
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), 
    url('https://images.unsplash.com/photo-1598228723793-52759bba239c?auto=format&fit=crop&w=2560&q=100');
/* 2. make the image cover the full width and stay centered */
    background-attachment: scroll;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    
/* 3. turn the text white so it stands out against the dark overlay */
    color: #ffffff;
}
/*make sure the h1 inside the hero is bright white and stands out against the dark overlay */
.hero h1 {
    color: #ffffff;
    font-size: 2.8rem;  /* Larger font size for the hero heading */
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); /* Add a subtle shadow for better readability */
}

.hero p {
    color: #e2e8f0;
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 28px auto ;/*centers text and adds spacing below the paragraph */
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.hero-cta-btn {  /* Call-to-action button styling, request a quote */
    display: inline-block;
    background-color: #0482c7;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}
.phone-btn {
   background-color: #0482c7;
   color: #ffffff;
   text-decoration: none;
   padding: 8px 16px;
   border-radius: 4px;
   font-weight: bold;
}

h1 {
    text-align: center;
    margin-top: 40px;
    font-size: 36px;
    color: #2b6cb0;
}

p {
    text-align: center;
    font-size: 18px;
    color: #333333;
    margin-bottom: 40px;
}

.services {
   text-align: center;
   padding: 64px 20px 50px 20px;
}
    /* Services section heading styling */
.services h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 1px;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
    /*Blue line under the services heading */
.services h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background-color: #0482c7;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.service-card {
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
    background-image: linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.85));
    border-radius: 10px;
    padding: 32px 22px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    border: 1px solid #cbd5e1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 230px;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.service-card p {
    font-size: 0.95rem;
    color: #f1f5f9;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

.card-residential {
   background-image: linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.82)), url('residential.jpg'); 
}
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trust-item {
  font-weight: 600;
  color: #334155;
  background: #e2e8f0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}

footer {
  text-align: center;
  padding: 36px 20px;
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}
footer p {
  margin: 4px 0;
  line-height: 1.4;
  color: #94a3b8;
}
footer a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
 
footer .service-area {
  background:transparent;
  color: #f8fafc;
  font-size: 1rem;
  margin: 0 0 14px 0; 
  padding: 0;
}

footer .service-area strong {
    color: #38bdf8;
}

footer a:hover {
  text-decoration: underline;
}
/* --- Quote Request Section --- */
.quote-section {
    background-color: #f4f6f8;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.quote-container {
    background: #ffffff;
    max-width: 700px;
    width: 100%;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.quote-container h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.quote-container p {
    color: #64748b;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #0f172a;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.quote-submit-btn {
    width: 100%;
    background-color: #0284c7;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
}

.quote-submit-btn:hover {
    background-color: #054769;
}

/* Make inputs stack vertically on narrow screens */
@media screen and (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .quote-container {
        padding: 24px 18px;
    }
}

/*service cards photos*/
.card-residential {
    background-image: linear-gradient(rgba(15, 23, 42, 0.30), rgba(15, 23, 42, 0.50)), url('residential.jpg');
}

.card-commercial {
    background-image: linear-gradient(rgba(15, 23, 42, 0.30), rgba(15, 23, 42, 0.50)), url('commercial.jpg');
}

.card-termites {
    background-image: linear-gradient(rgba(15, 23, 42, 0.30), rgba(15, 23, 42, 0.50)), url('termites.jpg');
}

.card-rodents {
    background-image: linear-gradient(rgba(15, 23, 42, 0.30), rgba(15, 23, 42, 0.50)), url('rodents.jpg');
}

.card-lawn {
    background-image: linear-gradient(rgba(15, 23, 42, 0.30), rgba(15, 23, 42, 0.50)), url('lawn.jpg');
}

.card-grubs {
    background-image: linear-gradient(rgba(15, 23, 42, 0.30), rgba(15, 23, 42, 0.50)), url('grubs.jpg');
}

.card-trees {
    background-image: linear-gradient(rgba(15, 23, 42, 0.30), rgba(15, 23, 42, 0.50)), url('trees.jpg');
}

.card-aeration {background-image: linear-gradient(rgba(15, 23, 42, 0.30), rgba(15, 23, 42, 0.50)), url('aeration.jpg');
}

/*service area at the bottom of site*/
.service-area-section {
    padding: 32px 24px;
    background-color: #f1f5f9;
    border-top: 1px solid #cbd5e1;
}

.area-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.area-container h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    text-align: center;
}

.area-intro {
    font-size: .9rem;
    color: #475569;
    margin: 0 0 20px auto;
    text-align: center;
}


.counties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.county-group h4 {
    font-size: .95rem;
    font-weight: 700;
    color: #0284c7;
    margin: 0 0 4px 0;
    text-align: center;
}

.county-group p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .counties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .counties-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    header,
    nav,
    .navbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 16px 16px 16px;
        gap: 0;
        height: auto;
        min-height: 0;
    }

    .nav-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
        width: 100%;
        margin: 0 0 10px 0;
        padding: 0 0 10px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-brand span,
    .nav-brand h1,
    .nav-brand a,
    .brand-line,
    .brand-sub {
        font-size: 1.15rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        white-space: nowrap;
        text-align: center;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px 16px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-links a:not(.phone-btn) {
        font-size: 0.88rem;
        font-weight: 600;
        padding: 2px 0;
    }

    .phone-btn {
        display: block;
        width: 100%;
        max-width: 260px;
        text-align: center;
        padding: 10px 16px;
        font-size: 0.92rem;
        margin-top: 6px;
        border-radius: 6px;
    }

    .hero {
        padding: 48px 18px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 0.95rem;
    }
}