/*
Theme Name: ATCO Pest Control
Theme URI: https://atcopestcontrol.com/
Description: Custom standalone WordPress theme for ATCO Pest Control - Bay Area's premier pest management company. Features eco-friendly branding, modern design, and full customization options.
Author: ATCO Pest Control
Author URI: https://atcopestcontrol.com/
Version: 2.0.6
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atco-pest-control
Tags: one-column, two-columns, custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

/* ============================================
   ATCO Pest Control Theme Styles
   Matching: newv2.atcopestcontrol.com
   ============================================ */

:root {
    --atco-primary: #54B435;
    --atco-primary-dark: #3d8a27;
    --atco-primary-light: #EDFBE2;
    --atco-white: #FFFFFF;
    --atco-dark: #1F2124;
    --atco-gray: #666666;
    --atco-light-gray: #f5f5f5;
    --atco-overlay: rgba(0, 0, 0, 0.6);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--atco-dark);
    line-height: 1.7;
    font-size: 16px;
    background: var(--atco-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    color: var(--atco-dark);
    margin: 0 0 1rem;
    line-height: 1.2;
}

h1 { font-size: 48px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    margin: 0 0 1rem;
}

a {
    color: var(--atco-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--atco-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn,
.button,
button,
input[type="button"],
input[type="submit"] {
    display: inline-block;
    background-color: var(--atco-primary);
    border: none;
    color: var(--atco-white);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn:hover,
.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: var(--atco-primary-dark);
    color: var(--atco-white);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--atco-primary);
    color: var(--atco-primary);
}

.btn-outline:hover {
    background: var(--atco-primary);
    color: var(--atco-white);
}

.btn-white {
    background: var(--atco-white);
    color: var(--atco-primary);
}

.btn-white:hover {
    background: var(--atco-primary-light);
}

/* Header */
.site-header {
    position: absolute;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: transparent;
}

.site-header.scrolled {
    position: fixed;
    background: var(--atco-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .main-nav a {
    color: var(--atco-dark);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--atco-white);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--atco-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--atco-white);
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--atco-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--atco-overlay);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    color: var(--atco-white);
    font-size: 48px;
    margin-bottom: 25px;
    line-height: 1.15;
}

.hero-description {
    font-size: 16px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.6;
    max-width: 550px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-label {
    color: var(--atco-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
}

/* Pest Selector */
.pest-selector {
    background: var(--atco-white);
    text-align: center;
}

.pest-selector h2 {
    color: var(--atco-dark);
}

.pest-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.pest-button {
    background: var(--atco-white);
    border: 2px solid #e0e0e0;
    color: var(--atco-dark);
    padding: 10px 22px;
    border-radius: 14px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pest-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pest-button:hover,
.pest-button.active {
    border-color: var(--atco-primary);
    background: var(--atco-primary-light);
    color: var(--atco-primary);
}

/* Leaders Section */
.leaders-section {
    background: var(--atco-primary-light);
}

.leaders-section h2 {
    color: var(--atco-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    background: var(--atco-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
    color: var(--atco-primary);
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--atco-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Services Gallery */
.services-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 30px;
}

.service-image {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* Contact Form */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-form-wrapper {
    background: var(--atco-primary-light);
    padding: 60px 40px;
}

.contact-form-wrapper h2 {
    color: var(--atco-primary);
    margin-bottom: 30px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    background: var(--atco-white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--atco-primary);
}

.family-section-wrapper {
    background: var(--atco-white);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Areas Section */
.areas-section {
    background: var(--atco-primary);
    color: var(--atco-white);
    padding: 40px;
    border-radius: 14px;
    text-align: center;
    margin-top: 40px;
}

.areas-section h3 {
    color: var(--atco-white);
    margin-bottom: 15px;
}

.areas-section p {
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 25px;
}

/* Footer */
.site-footer {
    background: var(--atco-dark);
    color: var(--atco-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--atco-white);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #aaa;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--atco-primary);
}

.footer-col p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 25px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* WordPress Classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: var(--atco-gray);
    margin-top: 0.5rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Service Page Template */
.service-hero {
    padding: 140px 0 80px;
    color: var(--atco-white);
    text-align: center;
}

.service-hero h1 {
    color: var(--atco-white);
    font-size: 42px;
    margin-bottom: 20px;
}

.service-hero .hero-tagline {
    margin-bottom: 15px;
}

.service-hero .hero-description {
    max-width: 600px;
    margin: 0 auto 30px;
}

.service-content {
    background: var(--atco-white);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: start;
}

.service-main h2 {
    color: var(--atco-primary);
    margin-top: 30px;
}

.service-main h2:first-child {
    margin-top: 0;
}

.service-main ul {
    margin-bottom: 20px;
}

.service-main li {
    margin-bottom: 8px;
}

.service-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-box {
    background: var(--atco-light-gray);
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.sidebar-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--atco-dark);
}

.sidebar-box p {
    font-size: 14px;
    color: var(--atco-gray);
    margin-bottom: 20px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.btn-block:last-child {
    margin-bottom: 0;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    border-bottom: 1px solid #e0e0e0;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list a {
    display: block;
    padding: 12px 0;
    color: var(--atco-dark);
    font-size: 14px;
    transition: color 0.3s, padding-left 0.3s;
}

.service-list a:hover {
    color: var(--atco-primary);
    padding-left: 10px;
}

.eco-box {
    background: var(--atco-primary-light);
    text-align: center;
}

.eco-box .eco-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.eco-box h3 {
    color: var(--atco-primary);
}

.why-choose-us .features-grid {
    margin-top: 40px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

/* Responsive - Large Tablets */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .header-right {
        gap: 25px;
    }
    
    .main-nav ul {
        gap: 20px;
    }
    
    .hero-content {
        max-width: 550px;
    }
}

/* Responsive - Tablets */
@media (max-width: 992px) {
    .container {
        padding: 0 25px;
    }
    
    h1 { font-size: 40px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .services-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .service-image img {
        height: 180px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .pest-buttons {
        max-width: 100%;
    }
}

/* Responsive - Small Tablets / Large Phones */
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    
    .site-header {
        padding: 15px 0;
    }
    
    .site-logo img {
        max-height: 55px;
    }
    
    .header-right .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--atco-white);
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }
    
    .header-right .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid #eee;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 0;
        color: var(--atco-dark);
        font-size: 16px;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: none;
        border: none;
    }
    
    .site-header.scrolled .menu-toggle {
        color: var(--atco-dark);
    }
    
    .header-cta {
        display: none;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-sidebar {
        position: static;
    }
    
    .service-hero {
        padding: 120px 0 60px;
    }
    
    .service-hero h1 {
        font-size: 32px;
    }
    
    .hero-content h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-tagline {
        font-size: 12px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .hero-section {
        min-height: 85vh;
        padding-top: 80px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        max-width: 400px;
    }
    
    .feature-card .icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .pest-buttons {
        gap: 10px;
    }
    
    .pest-button {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .services-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-image img {
        height: 200px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col ul {
        padding: 0;
    }
    
    .contact-form-wrapper,
    .family-section-wrapper {
        padding: 40px 20px;
    }
    
    .areas-section {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .btn,
    .button,
    button,
    input[type="submit"] {
        padding: 14px 28px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}

/* Responsive - Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
    
    body {
        font-size: 15px;
    }
    
    .site-logo img {
        max-height: 45px;
    }
    
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .hero-tagline {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .pest-button {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 14px;
    }
    
    .feature-card .icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .feature-card h3 {
        font-size: 16px;
    }
    
    .feature-card p {
        font-size: 13px;
    }
    
    .service-image img {
        height: 180px;
    }
    
    .contact-form-wrapper,
    .family-section-wrapper {
        padding: 30px 15px;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .footer-col h4 {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .footer-col a,
    .footer-col p {
        font-size: 13px;
    }
    
    .footer-bottom {
        font-size: 12px;
        padding-top: 20px;
    }
    
    .areas-section h3 {
        font-size: 18px;
    }
    
    .areas-section p {
        font-size: 14px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .button,
    .pest-button,
    .main-nav a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .pest-button:hover {
        transform: none;
    }
    
    .btn:hover,
    .button:hover {
        transform: none;
    }
}

/* Landscape phone orientation */
@media (max-width: 812px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
}
