/*
Theme Name: Timber Tactics
Theme URI: https://timbertacticsus.com
Author: Timber Tactics
Author URI: https://timbertacticsus.com
Description: A custom WordPress theme for a forestry mulching business with glassmorphism design, forestry imagery, and light/dark modes.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light-dark-mode, custom-background, forestry, business, glassmorphism
Text Domain: timber-tactics
*/

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap');

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
    --orange: #e67e22;
    --orange-hover: #d35400;
    --dark-green: #1a2a1a;
    --white: #ffffff;
    --color-text: #222222;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --color-card-bg: #ffffff;
    --color-glass-bg: rgba(255, 255, 255, 0.85);
    --color-glass-header: rgba(255, 255, 255, 0.95);
    --color-glass-border: rgba(255, 255, 255, 0.3);
    --font-primary: 'Montserrat', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-text: #e0e0e0;
        --color-text-light: #aaaaaa;
        --color-background: #0d1a0d;
        --color-card-bg: #1a2a1a;
        --color-glass-bg: rgba(26, 42, 26, 0.88);
        --color-glass-header: rgba(26, 42, 26, 0.95);
        --color-glass-border: rgba(255, 255, 255, 0.1);
    }
}

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

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('https://upload.wikimedia.org/wikipedia/commons/thumb/e/e8/DENIS_CIMAF_DAH-150Er-TILT_-_Tigercat.jpg/1920px-DENIS_CIMAF_DAH-150Er-TILT_-_Tigercat.jpg') no-repeat center center fixed;
    background-size: cover;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 800;
    color: var(--dark-green);
    line-height: 1.2;
}

@media (prefers-color-scheme: dark) {
    h1, h2, h3, h4, h5, h6 {
        color: var(--orange);
    }
}

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

a:hover {
    color: var(--orange-hover);
}

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

/*--------------------------------------------------------------
# Background Overlay
--------------------------------------------------------------*/
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/0/00/DENIS_CIMAF_DAF-180D_-_ASV_RT-110.jpg/1920px-DENIS_CIMAF_DAF-180D_-_ASV_RT-110.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.25;
    z-index: -1;
    pointer-events: none;
}

/*--------------------------------------------------------------
# Site Wrapper (Glassmorphism Container)
--------------------------------------------------------------*/
.site-wrapper {
    max-width: 1100px;
    margin: 50px auto;
    background: var(--color-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background: var(--color-glass-header);
    border-bottom: 4px solid var(--orange);
}

.site-branding a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo {
    height: 50px;
    width: auto;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
}

@media (prefers-color-scheme: dark) {
    .site-logo {
        filter: brightness(0) invert(1);
    }
}

/* Navigation */
.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-navigation li {
    margin-left: 25px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--orange);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgba(26, 42, 26, 0.85);
    color: var(--white);
    padding: 30px;
    border-left: 10px solid var(--orange);
    max-width: 550px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin: 0;
    line-height: 1.1;
    font-weight: 800;
    color: var(--white);
    text-shadow: none;
}

.hero-content p {
    font-size: 1.1rem;
    margin: 15px 0 0;
    color: rgba(255,255,255,0.9);
}

/*--------------------------------------------------------------
# Icon Bar (Service Icons)
--------------------------------------------------------------*/
.icon-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    padding: 50px 40px;
    background: var(--color-card-bg);
}

.icon-item {
    padding: 10px;
}

.icon-item .icon-emoji {
    font-size: 45px;
    display: block;
}

.icon-item h3 {
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--dark-green);
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (prefers-color-scheme: dark) {
    .icon-item h3 {
        color: var(--orange);
    }
}

/*--------------------------------------------------------------
# CTA Button
--------------------------------------------------------------*/
.cta-button,
.btn-primary {
    display: block;
    width: fit-content;
    margin: 0 auto 50px;
    background: var(--orange);
    color: var(--white);
    padding: 18px 45px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: transform 0.2s, background 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover,
.btn-primary:hover {
    transform: scale(1.05);
    background: var(--orange-hover);
    color: var(--white);
}

/*--------------------------------------------------------------
# Services Grid (Cards)
--------------------------------------------------------------*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 0 40px 60px;
}

.service-card {
    border: 3px solid var(--orange);
    padding: 0;
    background: var(--color-card-bg);
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card .card-content {
    padding: 20px;
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--dark-green);
    margin: 0 0 10px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

@media (prefers-color-scheme: dark) {
    .service-card h3 {
        color: var(--orange);
    }
}

/*--------------------------------------------------------------
# Section Styles
--------------------------------------------------------------*/
.section-padding {
    padding: 60px 40px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 40px;
}

.section-bg-white {
    background: var(--color-card-bg);
}

.section-bg-dark {
    background: var(--dark-green);
    color: var(--white);
}

.section-bg-dark h2,
.section-bg-dark h3 {
    color: var(--orange);
}

.section-bg-dark p {
    color: rgba(255,255,255,0.85);
}

/*--------------------------------------------------------------
# About / Content Sections
--------------------------------------------------------------*/
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border: 3px solid var(--orange);
}

.about-grid .about-text h2 {
    margin-top: 0;
}

.about-grid .about-text p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/*--------------------------------------------------------------
# Gallery Grid
--------------------------------------------------------------*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 2px solid var(--orange);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.testimonial-card {
    background: var(--color-card-bg);
    border: 2px solid var(--orange);
    padding: 30px;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--orange);
    position: absolute;
    top: 10px;
    left: 15px;
    opacity: 0.3;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0 0 15px;
}

.testimonial-card .client-name {
    font-weight: 800;
    color: var(--dark-green);
    font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
    .testimonial-card .client-name {
        color: var(--orange);
    }
}

/*--------------------------------------------------------------
# Stats Bar
--------------------------------------------------------------*/
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    padding: 40px;
    background: var(--dark-green);
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--orange);
    display: block;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*--------------------------------------------------------------
# Pricing
--------------------------------------------------------------*/
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.pricing-card {
    background: var(--color-card-bg);
    border: 3px solid var(--orange);
    text-align: center;
    padding: 40px 25px;
    transition: transform 0.3s;
}

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

.pricing-card.featured {
    background: var(--dark-green);
    color: var(--white);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08);
}

.pricing-card h3 {
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--orange);
    margin: 15px 0;
}

.pricing-card .price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.pricing-card.featured .price span {
    color: rgba(255,255,255,0.6);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.pricing-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.pricing-card.featured ul li {
    color: rgba(255,255,255,0.75);
    border-bottom-color: rgba(255,255,255,0.1);
}

/*--------------------------------------------------------------
# Contact Form
--------------------------------------------------------------*/
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 15px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    background: var(--color-card-bg);
    color: var(--color-text);
    transition: border-color 0.3s;
}

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

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-info-box h3 {
    margin-top: 0;
}

.contact-info-box p {
    color: var(--color-text-light);
    margin: 10px 0;
}

.contact-info-box .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    font-size: 0.95rem;
}

.contact-info-box .info-icon {
    font-size: 1.3rem;
}

/*--------------------------------------------------------------
# FAQ
--------------------------------------------------------------*/
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 2px solid rgba(0,0,0,0.08);
    padding: 20px 0;
}

.faq-item h3 {
    font-size: 1rem;
    margin: 0 0 10px;
    cursor: pointer;
}

.faq-item p {
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.7;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background: var(--dark-green);
    color: var(--white);
    text-align: center;
    padding: 30px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.site-footer a {
    color: var(--orange);
}

/*--------------------------------------------------------------
# Page Content (generic)
--------------------------------------------------------------*/
.site-main.container {
    padding: 40px;
}

.entry-title {
    font-size: 2rem;
    text-transform: uppercase;
    border-bottom: 3px solid var(--orange);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.entry-content {
    color: var(--color-text-light);
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 1.5rem;
    margin-top: 30px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 25px;
}

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

/*--------------------------------------------------------------
# Header CTA Button
--------------------------------------------------------------*/
.header-cta {
    background: var(--orange);
    color: var(--white);
    padding: 10px 22px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--orange-hover);
    transform: scale(1.05);
    color: var(--white);
}

/*--------------------------------------------------------------
# Auth - Get Started Page
--------------------------------------------------------------*/
.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-card {
    background: var(--color-card-bg);
    border: 3px solid var(--orange);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background: var(--dark-green);
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 0;
    cursor: pointer;
    transition: color 0.3s, background 0.3s;
}

.auth-tab:hover {
    color: var(--white);
}

.auth-tab.active {
    color: var(--white);
    background: var(--orange);
}

.auth-form-panel {
    padding: 30px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--color-text);
}

.auth-field input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    background: var(--color-card-bg);
    color: var(--color-text);
    transition: border-color 0.3s;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--orange);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--orange);
}

.auth-message {
    text-align: center;
    padding: 14px 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.auth-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    cursor: pointer;
    font-weight: 700;
}

.auth-remember input[type="checkbox"] {
    accent-color: var(--orange);
}

.auth-submit {
    width: 100%;
    margin: 0;
    text-align: center;
}

.auth-welcome {
    max-width: 500px;
    margin: 0 auto;
    background: var(--color-card-bg);
    border: 3px solid var(--orange);
    padding: 50px 30px;
    text-align: center;
}

.auth-welcome-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.auth-welcome h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.auth-welcome p {
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.auth-welcome-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-text);
    padding: 18px 45px;
    font-weight: 800;
    border: 2px solid var(--orange);
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

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

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 900px) {
    .services-grid,
    .gallery-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .site-wrapper {
        margin: 20px 10px;
        border-radius: 8px;
    }

    .site-header {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation li {
        margin: 8px 0;
        margin-left: 0;
    }

    .hero-section {
        height: 350px;
        padding: 0 25px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 20px;
    }

    .icon-bar {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
    }

    .services-grid,
    .gallery-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-padding {
        padding: 40px 20px;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 300px;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }
}
