/*
Theme Name: 518 Turf Busters
Theme URI: https://518turfbustersllc.com
Author: 518 Turf Busters LLC
Author URI: https://518turfbustersllc.com
Description: Professional lawn care and landscaping theme with integrated CRM and instant quote calculator
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: turfbusters
Tags: lawn-care, landscaping, business, green, responsive, custom-header, custom-menu, featured-images
*/

/* ===================================
   CSS Variables
   =================================== */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --secondary-color: #2E7D32;
    --accent-color: #FFC107;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #F5F5F5;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

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

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

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===================================
   Header
   =================================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 30px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-links a {
    color: var(--white);
    margin-left: 20px;
}

.top-bar-links a:hover {
    text-decoration: underline;
}

.main-header {
    padding: 20px 0;
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.site-logo .logo-text h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.site-logo .logo-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ===================================
   Navigation - WITH DROPDOWN FIX
   =================================== */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

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

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

/* ===================================
   Dropdown Menu Styles - FIXED
   =================================== */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99999;
    background: var(--white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: block !important; /* Override jQuery hide() */
    min-width: 220px;
    border-radius: 8px;
    border-top: 3px solid var(--primary-color);
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    width: 100%;
    position: relative;
}

.main-navigation ul ul a {
    background: var(--white);
    color: var(--text-dark);
    padding: 15px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.2s ease;
    font-weight: 400;
    width: 100%;
    display: block;
}

.main-navigation ul ul a:hover {
    background: var(--primary-color);
    color: var(--white);
    padding-left: 25px;
}

.main-navigation ul ul a::after {
    display: none; /* Remove underline from dropdown items */
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.main-navigation ul ul li:first-child a {
    border-radius: 8px 8px 0 0;
}

/* Sub-submenu positioning */
.main-navigation ul ul ul {
    top: 0;
    left: 100%;
    margin-top: -3px;
    border-top: 3px solid var(--primary-color);
}

/* Prevent issues with JavaScript conflicts */
.main-navigation ul ul {
    height: auto !important;
    width: auto !important;
}

.quote-btn {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 30px !important;
    border-radius: 5px;
    font-weight: 600;
}

.quote-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===================================
   Hero/Banner Section
   =================================== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--white);
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: var(--bg-light);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* ===================================
   Services Section
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
}

/* ===================================
   Instant Quote Calculator
   =================================== */
.quote-calculator {
    background: var(--bg-light);
    padding: 60px 0;
}

.quote-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.quote-result {
    background: var(--primary-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
    display: none;
}

.quote-result.show {
    display: block;
}

.quote-price {
    font-size: 3rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin: 20px 0;
}

/* ===================================
   Recent Projects
   =================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    color: var(--white);
}

.project-overlay h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.project-overlay p {
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================
   Reviews/Testimonials
   =================================== */
.reviews-section {
    background: var(--bg-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.review-stars {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
}

.review-author-info h4 {
    margin: 0;
    font-size: 1rem;
}

.review-author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===================================
   Blog Section
   =================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
}

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

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

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-widget p,
.footer-widget a {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-widget a:hover {
    color: var(--primary-light);
}

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

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-item i {
    color: var(--primary-color);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 20px;
    }
    
    .main-navigation ul.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile dropdown fixes */
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
        min-width: auto;
        background: rgba(0, 0, 0, 0.05);
    }
    
    .main-navigation ul ul a {
        padding: 12px 20px;
        font-size: 14px;
        background: transparent;
        color: var(--text-dark);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation ul ul a:hover {
        background: var(--primary-color);
        color: var(--white);
        padding-left: 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-bar-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
/* Page Template Styles */
.page-content {
    padding: 60px 0;
    min-height: 400px;
}

.entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
}

.entry-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.entry-content h2 {
    color: #4CAF50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.entry-content h3 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 12px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

@media (max-width: 768px) {
    .page-content {
        padding: 40px 0;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .entry-content {
        font-size: 1rem;
    }
}

/* Blog Page Styles */
.blog-page {
    padding: 60px 0;
    background: #f8f9fa;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4CAF50;
}

.page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-thumbnail {
    overflow: hidden;
    height: 250px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-header {
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #4CAF50;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.post-categories a {
    color: #4CAF50;
    text-decoration: none;
}

.post-categories a:hover {
    text-decoration: underline;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.read-more-btn:hover {
    gap: 10px;
}

.read-more-btn .arrow {
    transition: transform 0.3s ease;
}

.read-more-btn:hover .arrow {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination .page-numbers {
    padding: 10px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
}

.no-posts h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-posts p {
    color: #777;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .post-meta {
        font-size: 0.85rem;
        gap: 10px;
    }
}
