/* JJ Tree Services - Custom Styles */
/* Brand Colors: Teal/Green primary, Yellow/Gold accent */

:root {
    --primary: #0d7377;
    --primary-dark: #095456;
    --accent: #f5c518;
    --accent-dark: #d4a90f;
    --text-dark: #212529;
    --text-muted: #6c757d;
}

/* Bootstrap overrides */
.bg-primary {
    background-color: var(--primary) !important;
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--text-dark);
    font-weight: 600;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--text-dark);
}

.bg-accent {
    background-color: var(--accent) !important;
    color: var(--text-dark) !important;
}

.text-accent {
    color: var(--accent) !important;
}

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
}

/* Navbar */
.navbar {
    padding: 0;
    height: 75px;
    transition: all 0.3s ease;
    overflow: visible;
    background-color: #0a5c5f !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar > .container {
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.navbar-logo {
    width: 130px;
    height: auto;
    margin-top: 40px;
    filter: drop-shadow(0 6px 15px rgba(0,0,0,0.5)) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.55)) drop-shadow(0 3px 6px rgba(0,0,0,0.35));
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.75) 0%, rgba(9, 84, 86, 0.7) 100%);
    z-index: 1;
}

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

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-badges .badge {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    font-weight: 500;
}

/* Section Titles */
.section-title {
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
}

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

/* Service Cards */
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-icon i {
    font-size: 1.75rem;
    color: #fff;
}

.service-card h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Why Choose Us Cards */
.why-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.why-icon i {
    font-size: 2rem;
    color: var(--primary-dark);
}

.why-card h5 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.why-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Review Cards */
.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-stars i {
    font-size: 1rem;
    color: #ffc107;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.review-author {
    margin-bottom: 0;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Testimonial Box */
.testimonial-box {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent);
}

.testimonial-box .stars i {
    font-size: 1.25rem;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item {
    cursor: pointer;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 2rem 1rem 1rem;
    font-weight: 600;
}

/* Contact Cards */
.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    border-color: var(--primary);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.contact-icon i {
    font-size: 1.75rem;
    color: #fff;
}

.contact-card h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-link:hover {
    color: var(--accent-dark);
}

.contact-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.contact-card-link:hover .contact-card {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.contact-card-link:hover .contact-icon {
    background: var(--accent);
}

.contact-card-link:hover .contact-icon i {
    color: var(--primary-dark);
}

/* Bark Badge */
.bark-badge {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.bark-badge:hover {
    border-color: #37B34A;
    box-shadow: 0 4px 12px rgba(55,179,74,0.2);
    transform: translateY(-2px);
}

.bark-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #37B34A;
    letter-spacing: -0.5px;
}

/* Footer */
footer {
    background-color: #1a1a1a !important;
}

.footer-logo {
    width: 120px;
    height: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar {
        height: auto;
        padding: 0.5rem 0;
    }

    .navbar-logo {
        width: 100px;
        margin-top: 0;
    }

    .navbar-brand {
        z-index: auto;
    }

    .navbar-toggler {
        border-color: rgba(255,255,255,0.5);
        padding: 0.25rem 0.5rem;
    }

    .navbar-collapse {
        background: var(--primary-dark);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        position: relative;
        z-index: 1000;
    }

    .navbar-collapse.show::before,
    .navbar-collapse.collapsing::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: -1;
    }

    .navbar-toggler {
        position: relative;
        z-index: 1002;
    }

    .navbar-toggler.collapsed .toggler-icon-close,
    .navbar-toggler:not(.collapsed) .toggler-icon-open {
        display: none;
    }

    .navbar-toggler:not(.collapsed) .toggler-icon-close,
    .navbar-toggler.collapsed .toggler-icon-open {
        display: block;
    }

    .navbar-collapse .btn-accent {
        width: 100%;
        margin-top: 0.5rem;
    }

    .hero-section {
        min-height: auto;
        padding: 140px 0 60px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-badges .badge {
        display: block;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .gallery-item img {
        height: 220px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .why-card, .contact-card, .gallery-item, .review-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}
