/* New Generation Tree Care - Custom Styles */
/* Brand Colors: Forest Greens, Earthy Browns, White/Light Grey */

:root {
    --primary-green: #1a5d1a;
    --secondary-green: #2e7d32;
    --light-green: #4caf50;
    --accent-green: #81c784;
    --earthy-brown: #5d4037;
    --light-brown: #8d6e63;
    --dark-brown: #3e2723;
    --off-white: #fafafa;
    --light-grey: #f5f5f5;
    --text-dark: #212121;
    --text-light: #757575;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.text-primary-green {
    color: var(--primary-green);
}

.text-secondary-green {
    color: var(--secondary-green);
}

.text-earthy-brown {
    color: var(--earthy-brown);
}

.border-primary-green {
    border-color: var(--primary-green);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('images/hero-bg.jpg') center/cover no-repeat;
    min-height: 80vh;
}

.hero-video-section {
    min-height: 80vh;
}

.hero-video-section video {
    min-width: 100%;
    min-height: 100%;
}

.hero-section-fallback {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-brown) 100%);
    min-height: 80vh;
}

.btn-primary {
    background-color: var(--primary-green);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--earthy-brown);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid white;
    background: transparent;
    transition: all 0.3s ease;
}

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

.service-card {
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-bottom-color: var(--primary-green);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-green);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-green);
    color: white;
}

@media (max-width: 768px) {
    .hero-section,
    .hero-section-fallback {
        min-height: 60vh;
    }
}

.mobile-menu {
    display: none;
}

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

.trust-badge {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--light-grey) 100%);
}

.cta-section {
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-green) 100%);
}

.testimonial-card {
    border-left: 4px solid var(--primary-green);
}

.slideshow-container {
    position: relative;
}

.slide {
    position: relative;
}

.slide.fade {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dot.active {
    background-color: var(--primary-green) !important;
}

/* Enhanced Design Styles */

/* Fancy gradient text */
.gradient-text {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 50%, #86efac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated underline for headings */
.fancy-heading {
    position: relative;
    display: inline-block;
}

.fancy-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 2px;
}

/* Glass morphism card effect */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced service cards with gradient border */
.service-card-fancy {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.service-card-fancy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a5d1a, #22c55e, #4ade80);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card-fancy:hover::before {
    transform: scaleX(1);
}

.service-card-fancy:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Animated icon container */
.icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a5d1a 0%, #22c55e 100%);
    transition: all 0.3s ease;
}

.icon-container::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 23px;
    background: linear-gradient(135deg, #22c55e, #4ade80, #1a5d1a);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-fancy:hover .icon-container::after {
    opacity: 1;
}

.service-card-fancy:hover .icon-container {
    transform: scale(1.1) rotate(5deg);
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse glow effect */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 40px rgba(34, 197, 94, 0.6); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Credential badge styling */
.credential-badge {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.credential-badge:hover {
    border-color: #22c55e;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.15);
}

/* Stats counter styling */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

/* Enhanced CTA button */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Fancy section divider */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    margin: 0 auto;
    width: 200px;
}

/* Text shadow for hero */
.hero-text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Animated background pattern */
.pattern-bg {
    background-image: 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='%2322c55e' fill-opacity='0.05'%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");
}

/* Call button pulse */
.call-btn-pulse {
    animation: call-pulse 2s infinite;
}

@keyframes call-pulse {
    0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(21, 128, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

/* Phone icon wiggle animation */
@keyframes phone-wiggle {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
}

.phone-wiggle {
    animation: phone-wiggle 2s ease-in-out infinite;
    transform-origin: center center;
}

/* Phone wiggle with ripple effect */
.phone-wiggle-container {
    position: relative;
    display: inline-flex;
}

.phone-wiggle-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: phone-ripple 2s ease-out infinite;
}

@keyframes phone-ripple {
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 200%; height: 200%; opacity: 0; }
}

/* Smooth reveal animation */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: reveal 0.6s ease-out forwards;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Image Service Cards - Like Takoma Tree Experts */
.services-image-section {
    background-color: #e8f5e9;
}

.service-image-card {
    position: relative !important;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-image-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-image-card:hover img {
    transform: scale(1.05);
}

.service-image-label {
    position: absolute !important;
    bottom: 0;
    left: 0;
    z-index: 10;
    background-color: #1a5d1a;
    color: white;
    padding: 12px 30px 12px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
}

.service-image-label.emergency {
    background-color: #dc2626;
}

.service-image-description {
    padding-top: 1rem;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
}
