/*
Theme Name: Covington Tree Pros
Theme URI: https://covingtontreepros.com
Author: Covington Tree Pros
Description: Custom theme for Covington Tree Pros - Professional Tree Service in Covington, GA. Optimized for local SEO and lead generation.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: covington-tree-pros
*/

/* ========== VARIABLES ========== */
:root {
    --forest: #1a3a2a;
    --forest-deep: #0f2318;
    --sage: #4a7c59;
    --sage-light: #6b9e7a;
    --bark: #8B6914;
    --bark-light: #c4982d;
    --cream: #f5f0e8;
    --cream-warm: #ece4d4;
    --white: #ffffff;
    --charcoal: #2a2a2a;
    --text: #3a3a3a;
    --text-light: #6a6a6a;
    --shadow: rgba(15, 35, 24, 0.12);
    --radius: 8px;
}

/* ========== RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'DM Serif Display', serif;
    color: var(--forest);
    line-height: 1.15;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--forest-deep);
    color: var(--cream);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar a { color: var(--bark-light); text-decoration: none; }
.top-bar a:hover { color: var(--white); }
.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== NAV ========== */
.navbar {
    background: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--forest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-icon svg { width: 28px; height: 28px; }
.logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--forest);
    line-height: 1.1;
}
.logo-text span {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--sage);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--sage); }
.nav-cta {
    background: var(--bark);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s !important;
    white-space: nowrap;
}
.nav-cta:hover {
    background: var(--bark-light) !important;
    transform: translateY(-1px);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--forest);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 40%, var(--sage) 100%);
    padding: 100px 0 110px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(75, 124, 89, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 105, 20, 0.15) 0%, transparent 50%);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--cream);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--cream);
    margin-bottom: 24px;
    font-weight: 500;
}
.hero-badge::before {
    content: '★';
    color: var(--bark-light);
}
.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}
.hero h1 em {
    font-style: normal;
    color: var(--bark-light);
}
.hero-text {
    font-size: 1.15rem;
    color: rgba(245, 240, 232, 0.85);
    margin-bottom: 36px;
    max-width: 500px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
}
.btn-primary {
    background: var(--bark);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--bark-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 105, 20, 0.35);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
}

/* ========== HERO CARD ========== */
.hero-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 40px;
    position: relative;
}
.hero-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 6px;
}
.hero-card .subtitle {
    color: var(--bark-light);
    font-weight: 500;
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.hero-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hero-stat {
    text-align: center;
    padding: 20px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}
.hero-stat .number {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--bark-light);
    display: block;
}
.hero-stat .label {
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.7);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========== TRUST BAR ========== */
.trust-bar {
    padding: 50px 0;
    background: var(--cream);
}
.trust-items {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    align-items: center;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}
.trust-icon {
    width: 44px;
    height: 44px;
    background: var(--forest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trust-icon svg { width: 22px; height: 22px; }

/* ========== SECTIONS ========== */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sage);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 50px;
    line-height: 1.7;
}

/* ========== SERVICES ========== */
.services {
    padding: 90px 0;
    background: var(--white);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: var(--cream);
    border-radius: 12px;
    padding: 36px 30px;
    transition: all 0.3s;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sage), var(--bark));
    opacity: 0;
    transition: opacity 0.3s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
    border-color: rgba(74, 124, 89, 0.15);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 56px;
    height: 56px;
    background: var(--forest);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== WHY US ========== */
.why-us {
    padding: 90px 0;
    background: var(--cream);
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.why-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 1rem;
}
.why-check {
    width: 28px;
    height: 28px;
    background: var(--sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.why-check svg { width: 14px; height: 14px; }
.why-visual {
    background: var(--forest);
    border-radius: 16px;
    padding: 48px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.why-visual::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(74,124,89,0.4) 0%, transparent 70%);
}
.why-visual-content { position: relative; z-index: 1; }
.why-visual h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 24px;
}
.guarantee-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.guarantee-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}
.guarantee-item .g-icon { font-size: 1.5rem; }
.guarantee-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}
.guarantee-item span {
    font-size: 0.85rem;
    color: rgba(245,240,232,0.7);
}

/* ========== REVIEWS ========== */
.reviews {
    padding: 90px 0;
    background: var(--white);
}
.reviews .section-label,
.reviews .section-title,
.reviews .section-desc { text-align: center; }
.reviews .section-desc { margin-left: auto; margin-right: auto; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.review-card {
    background: var(--cream);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.04);
}
.review-stars {
    color: var(--bark);
    font-size: 1.1rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}
.review-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 18px;
    font-style: italic;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.review-avatar {
    width: 42px;
    height: 42px;
    background: var(--sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}
.review-name {
    font-weight: 600;
    color: var(--forest);
    font-size: 0.95rem;
}
.review-loc {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========== SERVICE AREAS ========== */
.areas {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--forest-deep), var(--forest));
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.areas::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(74,124,89,0.3) 0%, transparent 60%);
}
.areas .container { position: relative; z-index: 1; }
.areas .section-label { color: var(--bark-light); }
.areas .section-title { color: var(--white); }
.areas .section-desc { color: rgba(245,240,232,0.7); }
.areas-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.area-tag {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.2s;
}
.area-tag:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
}
.areas-note {
    text-align: center;
    color: rgba(245,240,232,0.6);
    font-size: 0.9rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 90px 0;
    background: var(--cream);
    text-align: center;
}
.cta-box {
    background: var(--white);
    border-radius: 20px;
    padding: 64px;
    box-shadow: 0 20px 60px var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--sage), var(--bark), var(--sage));
}
.cta-box h2 {
    font-size: 2.3rem;
    margin-bottom: 14px;
}
.cta-box p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.7;
}
.cta-phone {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: var(--forest);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 24px;
    transition: color 0.2s;
}
.cta-phone:hover { color: var(--sage); }
.cta-or {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--forest-deep);
    color: rgba(245, 240, 232, 0.7);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.site-footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.site-footer p { font-size: 0.9rem; line-height: 1.7; }
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: rgba(245, 240, 232, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--bark-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 12px;
}

/* ========== FLOATING PHONE ========== */
.phone-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bark);
    color: var(--white);
    padding: 16px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(139, 105, 20, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}
.phone-float:hover {
    background: var(--bark-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 105, 20, 0.5);
}
.phone-float svg { width: 20px; height: 20px; }

/* ========== BLOG / INNER PAGES ========== */
.page-header {
    background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 60%, var(--sage) 100%);
    padding: 70px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 60px;
    background: var(--cream);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header h1 {
    color: var(--white);
    font-size: 2.8rem;
    position: relative;
    z-index: 1;
}
.page-header p {
    color: rgba(245,240,232,0.8);
    font-size: 1.1rem;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.page-content {
    padding: 60px 0 90px;
    background: var(--cream);
}
.page-content .content-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px 60px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
}
.page-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 16px;
}
.page-content h3 {
    font-size: 1.4rem;
    margin: 32px 0 12px;
}
.page-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text);
}
.page-content ul, .page-content ol {
    margin: 16px 0 24px 24px;
    color: var(--text);
}
.page-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.page-content strong {
    color: var(--forest);
}

/* Blog post list */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}
.blog-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow);
}
.blog-card h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.blog-card h2 a { color: var(--forest); transition: color 0.2s; }
.blog-card h2 a:hover { color: var(--sage); }
.blog-card .excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.blog-card .read-more {
    color: var(--bark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.blog-card .read-more:hover { color: var(--bark-light); }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 2.8rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .areas-list { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .top-bar .container { justify-content: center; text-align: center; }
    .top-bar-right { display: none; }
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 8px 20px var(--shadow);
        gap: 16px;
    }
    .hamburger { display: flex; }
    .hero { padding: 60px 0 80px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-card { padding: 28px; }
    .section-title { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .areas-list { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 40px 24px; }
    .cta-phone { font-size: 1.8rem; }
    .page-content .content-wrap { padding: 30px 24px; }
    .page-header h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; }
    .btn { justify-content: center; width: 100%; }
    .areas-list { grid-template-columns: 1fr; }
}

/* ========== WORDPRESS OVERRIDES ========== */
.wp-block-image { margin: 24px 0; }
.wp-block-image img { border-radius: 8px; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
}
