/* 
* Torres Landscaping & Paint Inc Styles
* Clean, professional, Hydroseeding focus 
*/

:root {
    --primary-red: #D32F2F;
    /* Matching the red in the logo */
    --primary-dark: #212121;
    --secondary-green: #388E3C;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --text-color: #f0f0f0;
    --bg-light: #121212;
    --white: #1e1e1e;
    --primary-dark: #f5f5f5;
    /* Invert for dark mode */
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Specific Dark Mode Overrides */
[data-theme="dark"] .hero-content h1,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .service-item h3,
[data-theme="dark"] .contact-card h3,
[data-theme="dark"] .about-text h2 {
    color: var(--primary-red);
    /* Keep heading color or adjust */
}

/* Ensure text readability in dark mode */
[data-theme="dark"] .hero-content p {
    color: #e0e0e0;
}

[data-theme="dark"] .service-item p,
[data-theme="dark"] .about-text p {
    color: #cccccc;
}

[data-theme="dark"] .secondary-btn {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

[data-theme="dark"] .secondary-btn:hover {
    background-color: var(--white);
    color: #121212;
}

[data-theme="dark"] .nav-menu {
    background-color: var(--white);
    /* Uses dark background */
}

[data-theme="dark"] .mobile-menu-btn {
    color: var(--text-color);
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding: 10px 20px;
}

.brand-logo {
    max-height: 85px;
    /* Clean crop, balanced size */
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--primary-red);
}

.nav-menu .cta-btn {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.nav-menu .cta-btn:hover {
    background-color: #b71c1c;
    color: var(--white);
    transform: translateY(-2px);
}

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

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 5px;
    margin-left: 15px;
    transition: color 0.3s;
}

.theme-toggle:hover {
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .theme-toggle {
        margin-left: 0;
        margin-top: 10px;
        color: var(--white);
        /* Ensure visibility in mobile menu */
    }
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1b5e20 0%, #004d40 100%);
    /* Green gradient fallback */
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    font-style: italic;
    /* Match logo style */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.primary-btn,
.secondary-btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
}

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

.primary-btn:hover {
    background-color: #b71c1c;
}

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

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

/* Featured Service: Hydroseeding */
.featured-service {
    padding: 80px 0;
    background-color: var(--white);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background-color: var(--secondary-green);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.featured-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--secondary-green);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    font-weight: 600;
    margin-top: 20px;
}

.text-link:hover {
    gap: 12px;
}

.featured-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.visual-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.visual-card i {
    font-size: 2.5rem;
    color: var(--secondary-green);
    margin-bottom: 15px;
}

.visual-card h3 {
    font-size: 1rem;
    color: var(--primary-dark);
}

/* Services Grid */
.services {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(56, 142, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--secondary-green);
}

.service-item h3 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.service-item p {
    font-size: 0.95rem;
    color: #666;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-dark);
}

.subtitle {
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: block;
}

.values {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.value strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-dark);
    line-height: 1;
}

.value span {
    font-size: 0.9rem;
    color: #666;
}

.contact-card {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-details i {
    color: var(--primary-red);
}

/* CTA / Form Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    border-top: 1px solid #ddd;
}

.cta-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-wrapper h2 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.simple-form {
    margin-top: 30px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}

.simple-form input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #b71c1c;
}

/* Footer */
footer {
    background-color: #111;
    color: #888;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-brand {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

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

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

    .values {
        justify-content: space-around;
    }
}