/*
 * Clip N' Dip Lawn Care - Stylesheet
 * Professional, clean, mobile-first design
 */

/* CSS Variables */
:root {
    --color-primary: #2d5a27;
    --color-primary-dark: #1e3d1a;
    --color-secondary: #4a7c43;
    --color-accent: #8bc34a;
    --color-accent-light: #aed581;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-card: #ffffff;
    --color-text: #2c3e2c;
    --color-text-muted: #5a6b5a;
    --color-text-light: #7a8a7a;
    --color-border: #e0e5e0;
    --color-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(45,90,39,0.08);
    --shadow-md: 0 4px 12px rgba(45,90,39,0.12);
    --shadow-lg: 0 8px 24px rgba(45,90,39,0.16);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 0.2s ease;
}

.dark-mode {
    --color-primary: #4a7c43;
    --color-primary-dark: #3d6638;
    --color-secondary: #5a8c53;
    --color-accent: #8bc34a;
    --color-accent-light: #9ccc65;
    --color-bg: #1a1f1a;
    --color-bg-alt: #242a24;
    --color-bg-card: #2a322a;
    --color-text: #e8ede8;
    --color-text-muted: #a8b8a8;
    --color-text-light: #889888;
    --color-border: #3a453a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background var(--transition), color var(--transition);
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========== HEADER ========== */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background var(--transition), border var(--transition);
}

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

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.main-nav a:hover {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

.main-nav a.active {
    color: var(--color-primary);
    background: rgba(45,90,39,0.08);
}

.main-nav .lucide {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

/* Mobile nav adjustments */
@media (max-width: 600px) {
    .main-nav {
        gap: 0.25rem;
    }
    .main-nav a {
        font-size: 0.6rem;
        padding: 0.35rem 0.4rem;
    }
    .main-nav .lucide {
        width: 16px;
        height: 16px;
    }
    .logo img {
        height: 44px;
    }
}

@media (max-width: 400px) {
    .main-nav a {
        padding: 0.3rem;
    }
    .main-nav .nav-text {
        display: none;
    }
    .main-nav .lucide {
        width: 20px;
        height: 20px;
    }
    .logo img {
        height: 38px;
    }
}

/* ========== MAIN ========== */
main {
    flex: 1;
}

/* ========== HERO ========== */
.hero {
    background:
        linear-gradient(135deg, rgba(30,61,26,0.97) 0%, rgba(45,90,39,0.95) 50%, rgba(74,124,67,0.93) 100%),
        url('/static/img/does-your-lawn-need-tending.webp') center/cover;
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

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

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn .lucide {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    color: var(--color-white);
    border-color: rgba(255,255,255,0.6);
}

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

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

/* ========== SECTIONS ========== */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-section {
    background: var(--color-bg-alt);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--color-bg-card);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}

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

.service-card .icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-card .icon .lucide {
    width: 24px;
    height: 24px;
    color: var(--color-white);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Feature/Image Sections */
.feature-section {
    background: var(--color-bg);
}

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

.feature-grid.reverse {
    direction: rtl;
}

.feature-grid.reverse > * {
    direction: ltr;
}

.feature-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature-content p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.feature-list .lucide {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .feature-grid.reverse {
        direction: ltr;
    }
    .feature-image {
        order: -1;
    }
}

/* CTA Section */
.cta-section {
    background:
        linear-gradient(135deg, rgba(30,61,26,0.95) 0%, rgba(45,90,39,0.93) 100%),
        url('/static/img/lawn-care-services-flyer.webp') center/cover;
    color: var(--color-white);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

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

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-section p {
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Testimonial / Trust */
.trust-section {
    background: var(--color-bg-alt);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.trust-badge .lucide {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.trust-badge span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Image Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45,90,39,0.1);
}

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

/* ========== FOOTER ========== */
.site-footer {
    background:
        linear-gradient(180deg, var(--color-primary-dark) 0%, #162412 100%);
    color: rgba(255,255,255,0.9);
    padding: 2rem 0 1rem;
    margin-top: auto;
    font-size: 0.85rem;
}

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

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.footer-contact h4,
.footer-hours h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.footer-contact p,
.footer-hours p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
}

.footer-contact .lucide,
.footer-hours .lucide {
    width: 14px;
    height: 14px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
}

.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
    color: var(--color-accent);
}

/* Theme toggle - subtle */
.theme-toggle {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity var(--transition);
    font-size: 0.9rem;
    line-height: 1;
}

.theme-toggle:hover {
    opacity: 0.6;
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-contact p,
    .footer-hours p {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* ========== ABOUT PAGE ========== */
.about-hero {
    background:
        linear-gradient(135deg, rgba(30,61,26,0.92) 0%, rgba(74,124,67,0.88) 100%),
        url('/static/img/wide-service-flyer.webp') center/cover;
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
}

.about-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
}

/* ========== SERVICES PAGE ========== */
.services-hero {
    background:
        linear-gradient(135deg, rgba(30,61,26,0.92) 0%, rgba(74,124,67,0.88) 100%),
        url('/static/img/tall-services-flyer.webp') center/cover;
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
}

.services-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

@media (max-width: 768px) {
    .service-detail {
        grid-template-columns: 1fr;
    }
    .service-detail.reverse {
        direction: ltr;
    }
}

/* ========== CONTACT PAGE ========== */
.contact-hero {
    background:
        linear-gradient(135deg, rgba(30,61,26,0.92) 0%, rgba(74,124,67,0.88) 100%),
        url('/static/img/mow-time-flyer.webp') center/cover;
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
}

.contact-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
}

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

.contact-info-card {
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.contact-info-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact-info-card .lucide {
    width: 20px;
    height: 20px;
}

.contact-info-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-info-card a {
    color: var(--color-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
