/* =========================================
   VARIABLES & BASE STYLES
   ========================================= */
:root {
    /* Brand Colors - Cool Green & Orange Palette */
    --color-green-dark: #1A5336;
    /* Deep Forest Green */
    --color-green-main: #2E8B57;
    /* Fresh Tree Green */
    --color-green-light: #E8F5EE;
    /* Very Light Green Tint */

    --color-orange-main: #FF6B35;
    /* Vibrant Action Orange */
    --color-orange-hover: #E85A26;

    /* Neutrals */
    --color-text-main: #2D3748;
    --color-text-muted: #718096;
    --color-bg-light: #F7FAFC;
    --color-white: #FFFFFF;

    /* Typography */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Styling */
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    line-height: 1.7;
    background-color: var(--color-white);
    padding-bottom: 60px;
    /* Space for mobile CTA */
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
}

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-green-dark);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    font-weight: 700;
}

h1 {
    font-weight: 800;
    letter-spacing: -0.035em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h4 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

p {
    letter-spacing: -0.01em;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: var(--color-orange-main);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

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

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

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.main-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-green-dark);
}

.header-logo {
    height: 80px;
    width: auto;
    display: block;
}

.nav-links {
    display: none;
    /* Hidden on mobile */
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-green-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    display: none;
    /* Hidden on mobile */
    flex-direction: column;
    text-align: right;
    text-decoration: none;
    color: var(--color-green-dark);
}

.header-phone span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.header-phone strong {
    font-size: 1.2rem;
    color: var(--color-orange-main);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--color-green-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    background-color: var(--color-green-dark);
    background-image: linear-gradient(135deg, rgba(26, 83, 54, 0.90), rgba(15, 45, 29, 0.85)), url('assets/images/hero-providence-tree-service.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
    color: var(--color-white);
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.trust-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-left h1 {
    color: var(--color-white);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-left .subheadline {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: -0.01em;
    line-height: 1.7;
    margin-bottom: 30px;
    white-space: nowrap;
}

.hero-img-display {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 3px solid rgba(255, 255, 255, 0.15);
    display: block;
}

.hero-trust-signals {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.signal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.signal .check {
    color: var(--color-orange-main);
    font-weight: bold;
}

/* Hero Form */
.hero-form-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    color: var(--color-text-main);
    border-top: 5px solid var(--color-orange-main);
    max-width: 550px;
    margin: 30px auto 0 auto;
    text-align: left;
}

.hero-form-card h3 {
    margin-bottom: 5px;
}

.hero-form-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-green-main);
    box-shadow: 0 0 0 3px var(--color-green-light);
}

.form-privacy {
    text-align: center;
    font-size: 0.8rem !important;
    margin-top: 15px;
    margin-bottom: 0 !important;
}

.form-success-message {
    text-align: center;
    padding: 30px 15px;
    background-color: var(--color-green-light);
    border-radius: var(--radius-md);
    border: 1px solid rgba(46, 139, 87, 0.2);
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.section-header h2 {
    white-space: nowrap;
}

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

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E2E8F0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-green-light);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.ai-definition {
    font-size: 1.05rem;
    color: var(--color-text-main);
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid var(--color-orange-main);
}

.service-card p:not(.ai-definition) {
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

/* =========================================
   ABOUT / TRUST SECTION
   ========================================= */
.trust-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.trust-text h2 {
    white-space: nowrap;
}

.benefit-list {
    list-style: none;
    margin-top: 20px;
}

.benefit-list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-orange-main);
    font-weight: bold;
}

.trust-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background-color: var(--color-white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid var(--color-green-main);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-green-dark);
}

.stat-label {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #E2E8F0;
    padding: 20px 0;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-green-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question .icon {
    color: var(--color-orange-main);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-top: 15px;
    color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

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

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background-color: var(--color-green-dark);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.main-footer .logo-text {
    color: var(--color-white);
}

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

.footer-brand p {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.main-footer h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contact p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-orange-main);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   STICKY MOBILE CTA
   ========================================= */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

/* =========================================
   MEDIA QUERIES (DESKTOP)
   ========================================= */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
        /* Remove mobile CTA spacing */
    }

    .mobile-cta-bar {
        display: none;
        /* Hide sticky CTA on desktop */
    }

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

    .nav-links {
        display: flex;
    }

    .header-phone {
        display: flex;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-left h1 {
        font-size: 3.5rem;
        letter-spacing: -0.045em;
        line-height: 1.05;
    }

    .hero-trust-signals {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

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

    .lg-span {
        grid-column: 1 / -1;
    }

    .trust-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    padding: 5px;
    box-shadow: var(--shadow-sm);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}