/*
Theme Name:   Waterbury Tree Care
Theme URI:    https://waterburytreecare.com
Description:  Neve Child Theme for Waterbury Tree Care
Author:       Your Name
Template:     neve
Version:      1.0.0
Text Domain:  waterbury-tree-care
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — edit these to rebrand the site
   ============================================================ */
:root {
    /* Brand Colors */
    --color-forest:       #1B3A2D;   /* Deep forest green — primary */
    --color-canopy:       #2E6B4F;   /* Mid canopy green — secondary */
    --color-moss:         #4E9A72;   /* Soft moss — accents & hover */
    --color-bark:         #6B4C2A;   /* Warm bark brown — earthy contrast */
    --color-cream:        #F5F0E8;   /* Off-white cream — light backgrounds */
    --color-parchment:    #EDE7D9;   /* Parchment — alt light bg */
    --color-white:        #FFFFFF;
    --color-charcoal:     #1C1C1C;   /* Near-black text */
    --color-muted:        #5E6E64;   /* Muted body text */

    /* CTA Accent — THE standout color */
    --color-cta:          #E8540A;   /* Burnt orange — urgent, warm, eye-catching */
    --color-cta-dark:     #BF3F00;   /* Darker for hover */
    --color-cta-glow:     rgba(232, 84, 10, 0.25);

    /* Typography */
    --font-display:  'Playfair Display', Georgia, serif;
    --font-heading:  'DM Serif Display', Georgia, serif;
    --font-body:     'Lato', 'Helvetica Neue', sans-serif;
    --font-accent:   'Playfair Display SC', Georgia, serif;

    /* Spacing Scale */
    --space-xs:   0.5rem;
    --space-sm:   1rem;
    --space-md:   2rem;
    --space-lg:   4rem;
    --space-xl:   6rem;
    --space-2xl:  9rem;

    /* Radii */
    --radius-sm:  4px;
    --radius-md:  10px;
    --radius-lg:  20px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-card:   0 4px 24px rgba(27, 58, 45, 0.10);
    --shadow-lifted: 0 12px 48px rgba(27, 58, 45, 0.18);
    --shadow-cta:    0 8px 40px rgba(232, 84, 10, 0.35);

    /* Transitions */
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   GOOGLE FONTS — loaded via functions.php
   ============================================================ */

/* ============================================================
   BASE RESETS & BODY
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-charcoal);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-forest);
    line-height: 1.2;
    margin-bottom: 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.2em;
    color: var(--color-muted);
}

a {
    color: var(--color-canopy);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--color-moss);
}

/* ============================================================
   NEVE HEADER OVERRIDES
   ============================================================ */
.hfg-header {
    background-color: var(--color-forest) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.hfg-header .nv-nav-wrap .nav-ul li a,
.hfg-header .nv-nav-wrap .nav-ul li a:visited {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-cream) !important;
    transition: color var(--transition);
}

.hfg-header .nv-nav-wrap .nav-ul li a:hover,
.hfg-header .nv-nav-wrap .nav-ul li.current-menu-item > a {
    color: var(--color-moss) !important;
}

/* Site logo / name in header */
.nv-site-name-wrap .site-title a,
.site-logo .nv-site-name {
    font-family: var(--font-display);
    color: var(--color-cream) !important;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
}

/* Mobile menu toggle */
.navbar-toggle .icon-bar {
    background-color: var(--color-cream);
}

/* ============================================================
   NEVE FOOTER OVERRIDES
   ============================================================ */
.footer-top-wrap {
    background-color: var(--color-forest) !important;
    color: var(--color-cream);
}

.footer-bottom-wrap {
    background-color: #111e17 !important;
    color: var(--color-parchment);
    font-size: 0.85rem;
}

.footer-top-wrap p,
.footer-top-wrap li,
.footer-top-wrap span {
    color: var(--color-cream);
}

.footer-top-wrap a {
    color: var(--color-moss);
}
.footer-top-wrap a:hover {
    color: var(--color-cream);
}

.footer-top-wrap h1,
.footer-top-wrap h2,
.footer-top-wrap h3,
.footer-top-wrap h4 {
    color: var(--color-cream);
    font-family: var(--font-heading);
}

/* ============================================================
   BUTTONS — global overrides
   ============================================================ */
.button,
button,
input[type="button"],
input[type="submit"],
.nv-btn,
.wp-block-button__link {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
    padding: 0.75em 2em;
    transition: all var(--transition);
    cursor: pointer;
}

/* Primary button */
.button-primary,
.nv-btn-primary,
.wp-block-button.is-style-fill .wp-block-button__link {
    background-color: var(--color-canopy);
    color: var(--color-white) !important;
    border: 2px solid var(--color-canopy);
}
.button-primary:hover,
.nv-btn-primary:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background-color: var(--color-forest);
    border-color: var(--color-forest);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lifted);
}

/* ============================================================
   SECTIONS — general section padding
   ============================================================ */
.wtc-section {
    padding: var(--space-xl) 0;
}

.wtc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Section label (eyebrow text) */
.wtc-eyebrow {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-moss);
    display: block;
    margin-bottom: 0.75rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.wtc-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-forest);
}

.wtc-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.38;
    transform: scale(1.04);
    animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.10); }
}

/* Diagonal overlay for texture */
.wtc-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(27, 58, 45, 0.85) 0%,
        rgba(27, 58, 45, 0.55) 55%,
        rgba(46, 107, 79, 0.30) 100%
    );
    pointer-events: none;
}

.wtc-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: var(--space-xl) var(--space-md);
}

.wtc-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(78, 154, 114, 0.22);
    border: 1px solid rgba(78, 154, 114, 0.45);
    color: var(--color-moss);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4em 1.1em;
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
}

.wtc-hero__tag svg {
    width: 14px;
    height: 14px;
    fill: var(--color-moss);
}

.wtc-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.wtc-hero__title em {
    font-style: italic;
    color: var(--color-moss);
}

.wtc-hero__subtitle {
    font-size: 1.15rem;
    color: rgba(245, 240, 232, 0.85);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.wtc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.wtc-hero__cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--color-cta);
    color: var(--color-white) !important;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1em 2.2em;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-cta);
    transition: all var(--transition);
}

.wtc-hero__cta-primary:hover {
    background: var(--color-cta-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 50px rgba(232, 84, 10, 0.5);
}

.wtc-hero__cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-cream) !important;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    border-bottom: 2px solid rgba(245,240,232,0.35);
    padding-bottom: 2px;
    transition: all var(--transition);
}

.wtc-hero__cta-secondary:hover {
    color: var(--color-moss) !important;
    border-color: var(--color-moss);
}

/* Trust bar inside hero */
.wtc-hero__trust {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: rgba(245, 240, 232, 0.07);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 1.1rem var(--space-md);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.wtc-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-cream);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wtc-hero__trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-moss);
    flex-shrink: 0;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.wtc-services {
    background-color: var(--color-cream);
    padding: var(--space-xl) 0;
}

.wtc-services__header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto var(--space-lg);
}

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

.wtc-service-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2.2rem 2rem;
    box-shadow: var(--shadow-card);
    border-bottom: 4px solid transparent;
    transition: all var(--transition);
}

.wtc-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lifted);
    border-bottom-color: var(--color-canopy);
}

.wtc-service-card__icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

.wtc-service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.wtc-service-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================================
   ★★★ CTA CALLOUT SECTION — THE STANDOUT SECTION ★★★
   ============================================================ */
.wtc-cta {
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) 0;
    background-color: var(--color-forest);
    isolation: isolate;
}

/* Diagonal split background — the dramatic visual */
.wtc-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            112deg,
            var(--color-cta) 0%,
            #C94A08 40%,
            transparent 40.01%
        );
    z-index: 0;
}

/* Texture overlay */
.wtc-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 75% 50%, rgba(78,154,114,0.12) 0%, transparent 60%),
        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");
    z-index: 0;
    pointer-events: none;
}

.wtc-cta__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Left: the bright orange panel content */
.wtc-cta__left {
    padding: var(--space-md) 0;
}

.wtc-cta__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255,255,255,0.18);
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.35em 1em;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.30);
    margin-bottom: 1.25rem;
}

.wtc-cta__headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.20);
}

.wtc-cta__subtext {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    line-height: 1.65;
}

.wtc-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-white) !important;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    transition: all var(--transition);
}

.wtc-cta__phone:hover {
    color: rgba(255,255,255,0.85) !important;
    transform: scale(1.03);
}

.wtc-cta__phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: 2px solid rgba(255,255,255,0.40);
    animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.40); }
    50%       { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

.wtc-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-white);
    color: var(--color-cta) !important;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1em 2.2em;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    box-shadow: 0 6px 30px rgba(0,0,0,0.20);
}

.wtc-cta__btn:hover {
    background: var(--color-cream);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.28);
}

/* Right: the dark panel with trust signals */
.wtc-cta__right {
    padding: 2.5rem 2.5rem 2.5rem 3rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(6px);
}

.wtc-cta__right-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-cream);
    margin-bottom: 1.5rem;
}

.wtc-cta__checklist {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.wtc-cta__checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(245,240,232,0.90);
    line-height: 1.4;
}

.wtc-cta__check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.wtc-cta__check svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wtc-cta__rating {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.wtc-cta__stars {
    color: #F9C623;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.wtc-cta__rating-text {
    font-size: 0.85rem;
    color: rgba(245,240,232,0.70);
    margin: 0;
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.wtc-about {
    padding: var(--space-xl) 0;
    background: var(--color-white);
}

.wtc-about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.wtc-about__img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lifted);
}

.wtc-about__img-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.wtc-about__badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--color-cta);
    color: var(--color-white);
    padding: 0.9rem 1.3rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 4px 20px rgba(232,84,10,0.35);
}

.wtc-about__badge-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.wtc-about__badge-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.wtc-testimonials {
    padding: var(--space-xl) 0;
    background: var(--color-parchment);
}

.wtc-testimonials__header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

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

.wtc-testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.wtc-testimonial-card__quote {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--color-canopy);
    line-height: 0.5;
    margin-bottom: 0.75rem;
    opacity: 0.35;
}

.wtc-testimonial-card p {
    font-size: 0.975rem;
    font-style: italic;
    color: var(--color-charcoal);
    margin-bottom: 1.25rem;
}

.wtc-testimonial-card__author {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-forest);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wtc-testimonial-card__stars {
    color: #F9C623;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .wtc-cta__inner {
        grid-template-columns: 1fr;
    }

    .wtc-cta::before {
        background: linear-gradient(
            180deg,
            var(--color-cta) 0%,
            #C94A08 45%,
            transparent 45.01%
        );
    }

    .wtc-about__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    :root {
        --space-xl: 4rem;
        --space-lg: 2.5rem;
    }

    .wtc-cta__right {
        padding: 2rem 1.5rem;
    }

    .wtc-hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .wtc-hero__trust {
        gap: 1rem;
        justify-content: flex-start;
    }
}