/* 
Tree Problems - Page-specific Styles
Author: Tree Problems
Version: 1.0
*/

/* ===== PAGE BANNER ===== */
.page-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/banner-default.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: var(--spacing-xl) 0;
    position: relative;
}

.page-banner.tree-removal-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/tree-removal-banner.jpg');
}

.page-banner.contact-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/contact-banner.jpg');
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.banner-content h1 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.breadcrumbs {
    margin-top: var(--spacing-sm);
    color: var(--medium-gray);
}

.breadcrumbs a {
    color: var(--white);
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

/* ===== SERVICE INTRO ===== */
.service-intro {
    padding: var(--spacing-xl) 0;
}

.service-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.service-intro-text h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.service-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.highlight {
    display: flex;
    align-items: center;
}

.highlight i {
    color: var(--primary-color);
    margin-right: 10px;
}

.service-intro-image {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.service-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== WHEN TO REMOVE SECTION ===== */
.when-to-remove {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.reason-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-medium);
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.reason-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.reason-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

/* ===== PROCESS TIMELINE ===== */
.removal-process {
    padding: var(--spacing-xl) 0;
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 20px;
    width: 2px;
    height: calc(100% + var(--spacing-md));
    background-color: var(--primary-color);
}

.timeline-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-right: var(--spacing-md);
    z-index: 1;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

/* ===== EQUIPMENT SECTION ===== */
.equipment {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.equipment-item {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-medium);
}

.equipment-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.equipment-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.equipment-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

/* ===== BEFORE AND AFTER GALLERY ===== */
.before-after {
    padding: var(--spacing-xl) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

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

.before-after-container {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.before, .after {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.before img, .after img {
    width: 100%;
    height: auto;
    display: block;
}

.label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.gallery-caption {
    font-style: italic;
    color: var(--secondary-color);
}

.gallery-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-question {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.toggle-icon {
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
}

.faq-question.active + .faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-sm);
}

/* ===== RELATED SERVICES ===== */
.related-services {
    padding: var(--spacing-xl) 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--spacing-xl) 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-method {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
}

.contact-details h3 {
    margin-bottom: var(--spacing-xs);
}

.contact-details p {
    margin-bottom: var(--spacing-xs);
}

.contact-details a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-form {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--box-shadow);
}

.form-header {
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-family: var(--body-font);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.form-submit {
    margin-top: var(--spacing-md);
}

.form-submit button {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    font-family: var(--heading-font);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.form-submit button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--medium-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-gray);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .service-intro-content {
        grid-template-columns: 1fr;
    }
    
    .service-intro-image {
        order: -1;
        margin-bottom: var(--spacing-md);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .timeline-item:not(:last-child)::after {
        left: 20px;
    }
}

@media (max-width: 576px) {
    .before-after-container {
        flex-direction: column;
    }
    
    .service-highlights {
        grid-template-columns: 1fr;
    }
}

/* ===== PLACEHOLDER IMAGES ===== */
.img-placeholder {
    background-color: var(--medium-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-gray);
    font-weight: 600;
    min-height: 200px;
}

/* ===== GALLERY PAGE STYLES ===== */

/* Gallery hero */
.gallery-hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.gallery-hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.gallery-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter buttons: pill style */
.gallery-categories {
    padding: var(--spacing-lg) 0;
}

.category-filters {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.filter-btn {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: none;
    padding: 10px 24px;
    margin: 5px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--heading-font);
    font-size: 0.9rem;
    transition: all var(--transition-medium);
}

.filter-btn:hover {
    background-color: var(--medium-gray);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(226, 181, 77, 0.35);
}

/* Gallery grid: CSS grid (not masonry columns, for filter compat) */
.gallery-section {
    padding: 0 0 var(--spacing-xl) 0;
}

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* Gallery items with hover overlay */
.gallery-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.gallery-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-sm) var(--spacing-sm);
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: var(--white);
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 0;
}

/* Gallery item fade for filtering */
.gallery-card.hidden {
    display: none;
}

/* Responsive gallery grid */
@media (max-width: 992px) {
    .gallery-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-page-grid {
        grid-template-columns: 1fr;
    }
    .gallery-hero h1 {
        font-size: 2rem;
    }
}

/* ===== ENHANCED LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease;
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--border-radius-md);
    animation: lightboxImgIn 0.3s ease;
}

@keyframes lightboxImgIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    transition: background var(--transition-fast);
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    transition: background var(--transition-fast);
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-family: var(--heading-font);
}

/* ===== ENHANCED TESTIMONIAL SLIDER ===== */
.testimonials-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.testimonials-wrapper .testimonial {
    padding: var(--spacing-md);
    padding-left: calc(var(--spacing-md) + 10px);
    border-left: 4px solid var(--accent-color);
    position: relative;
}

.testimonials-wrapper .testimonial::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: var(--spacing-sm);
    line-height: 1;
}

.testimonials-wrapper .testimonial-author {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--heading-font);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonials-wrapper .author-info {
    display: flex;
    flex-direction: column;
}

.slider-arrows {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: var(--spacing-sm);
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--medium-gray);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    transition: all var(--transition-fast);
}

.slider-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
