/* Reset and Base Styles */
:root {
    --primary-color: #2C5530;
    --secondary-color: #4A7856;
    --accent-color: #F4A261;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/oklahoma-city-tree-pros-storm-damage-repair.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .btn {
    background-color: #1a472a;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-shadow: none;
}

.hero .btn:hover {
    background-color: #2C5530;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin: 0.5rem;
    animation: fadeInUp 1s ease 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--light-gray);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Service Card Images */
.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: 1rem;
    transition: var(--transition);
}

/* Specific image focus for stump grinding */
.service-card:nth-child(3) .service-image {
    object-position: bottom;
}

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

/* Why Choose Us Section */
.why-choose-us {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: var(--light-gray);
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.faq-item {
    background: var(--white);
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* CTA Section */
.cta {
    background: var(--primary-color);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.02);
}

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

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 60px;
}

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

.business-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    letter-spacing: 0.5px;
}

.address a,
.phone a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.address a:hover,
.phone a:hover {
    color: white;
    transform: translateX(5px);
}

.phone a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.phone a i {
    color: var(--accent-color);
}

.hours {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-section.quick-links p {
    margin: 8px 0;
}

.footer-section.quick-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 3px 0;
}

.footer-section.quick-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-section.quick-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section.quick-links a:hover::after {
    width: 100%;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-sections {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section.quick-links a:hover {
        transform: translateX(0);
    }

    .address a:hover,
    .phone a:hover {
        transform: translateX(0);
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-contact-info {
        align-items: center;
    }

    .phone a {
        justify-content: center;
    }
}

/* Phone CTA Button */
.phone-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.phone-cta:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

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

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .contact-info {
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .phone-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    width: 90%;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .main-nav {
        display: none;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Form Styles */
form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

form button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

form button:hover {
    background: var(--secondary-color);
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/oklahoma-city-tree-pros-quality-trees.jpeg');
    background-size: cover;
    background-position: center;
    padding: 150px 0;
    text-align: center;
    color: #fff;
}

.about-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: #2C5530;
    margin-bottom: 30px;
}

.about-text h3 {
    color: #2C5530;
    margin: 30px 0 20px;
}

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

.service-list li {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.service-list i {
    color: #2C5530;
    margin-right: 15px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.values {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.values h2 {
    text-align: center;
    color: #2C5530;
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 40px;
    color: #2C5530;
    margin-bottom: 20px;
}

.value-card h3 {
    color: #2C5530;
    margin-bottom: 15px;
}

/* Contact Page Styles */
.contact {
    padding: 120px 0 60px;
    margin-top: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h1 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.form-intro {
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

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

.contact-item p {
    margin: 0;
    line-height: 1.5;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

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

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Styles for Contact Page */
@media (max-width: 768px) {
    .contact {
        padding: 100px 0 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form,
    .contact-info {
        padding: 30px;
    }

    .contact-form h1 {
        font-size: 1.8rem;
    }

    .contact-info h2 {
        font-size: 1.5rem;
    }

    .contact-details {
        gap: 20px;
    }
}

/* Map Section */
.map {
    padding: 60px 0;
    background-color: #f9f9f9;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.map h2 {
    text-align: center;
    color: #2C5530;
    margin-bottom: 30px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px;
    }

    .about-hero,
    .contact-hero {
        padding: 100px 0;
    }

    .map-container iframe {
        height: 300px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    position: relative;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    position: relative;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        padding: 80px 20px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-wrapper.active {
        right: 0;
        display: block;
    }

    .main-nav {
        display: block;
        width: 100%;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .main-nav ul li {
        width: 100%;
        display: block;
        margin: 0;
        opacity: 0;
        transform: translateX(20px);
        animation: slideIn 0.3s forwards;
    }

    .nav-wrapper.active .main-nav ul li {
        opacity: 1;
        transform: translateX(0);
    }

    .main-nav ul li:nth-child(1) { animation-delay: 0.1s; }
    .main-nav ul li:nth-child(2) { animation-delay: 0.2s; }
    .main-nav ul li:nth-child(3) { animation-delay: 0.3s; }

    .main-nav ul li a {
        display: block;
        padding: 15px 0;
        font-size: 1.2rem;
        color: var(--text-color);
        text-decoration: none;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .main-nav ul li a:hover,
    .main-nav ul li a.active {
        color: var(--primary-color);
        padding-left: 10px;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Ensure header stays on top */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Add padding to body when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Add smooth transitions */
.nav-wrapper,
.menu-overlay,
.hamburger {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay when menu is open */
.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
    background: var(--white);
}

.content-section:nth-child(even) {
    background: var(--light-gray);
}

.content-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text {
    line-height: 1.8;
}

.content-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.content-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

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

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.content-image img:hover {
    transform: scale(1.02);
}

.content-image i {
    font-size: 8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    transition: var(--transition);
    display: block;
    text-align: center;
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(44, 85, 48, 0.2));
}

.content-image i:hover {
    transform: scale(1.05);
    color: var(--secondary-color);
    opacity: 1;
    filter: drop-shadow(0 6px 12px rgba(44, 85, 48, 0.3));
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .content-text h3 {
        font-size: 1.3rem;
    }
    
    .content-text p {
        font-size: 1rem;
    }
    
    .content-image i {
        font-size: 6rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .content-image i {
        font-size: 5rem;
        margin-bottom: 1rem;
    }
}