/* Pihapuiden kaato -sivun erityistyylit */

/* Hero custom styles */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../kuvat/pihapuidenkaato.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Safety Notice */
.safety-notice {
    background: #2d2d2d;
    padding: 32px 0;
    border-left: 4px solid #ff1919;
}

.safety-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.safety-icon {
    font-size: 48px;
    color: #ff1919;
}

.safety-text h3 {
    margin: 0 0 8px 0;
    color: #ffffff;
}

.safety-text p {
    margin: 0;
    color: #e0e0e0;
}

/* Service Detail Grid */
.service-detail-grid {
    display: grid;
    gap: 40px;
    margin-top: 40px;
}

.service-detail-card {
    background: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.service-detail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.service-detail-content {
    padding: 32px;
}

.service-detail-content p {
    color: #e0e0e0;
}

.service-detail-content h3 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 24px;
}

.service-price {
    color: #ff1919;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 16px;
}

.service-detail-content h4 {
    color: #ffffff;
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 18px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 8px 0;
    color: #e0e0e0;
}

.service-features i {
    color: #ff1919;
    margin-right: 8px;
}

.service-scope,
.service-benefits,
.service-advantage,
.service-options,
.service-note {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    color: #e0e0e0;
}

.service-note {
    background: #2d1a1a;
    border-left: 3px solid #ff1919;
}

/* Permit Section */
.permit-section {
    background: #0d0d0d;
    padding: 80px 0;
}

.permit-accordion {
    max-width: 900px;
    margin: 0 auto;
    background: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.permit-accordion summary {
    list-style: none;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    padding: 22px 26px;
    background: #1f1f1f;
    border-left: 4px solid #ff1919;
}

.permit-accordion summary::-webkit-details-marker {
    display: none;
}

.permit-accordion summary::after {
    content: '+';
    float: right;
    color: #ff1919;
    font-size: 28px;
    line-height: 1;
}

.permit-accordion[open] summary::after {
    content: '−';
}

.permit-content {
    padding: 24px 26px 26px;
}

.permit-content p {
    color: #e0e0e0;
    line-height: 1.7;
}

.permit-content h3 {
    color: #ffffff;
    margin-top: 24px;
    margin-bottom: 14px;
    font-size: 20px;
}

.permit-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px 16px;
}

.permit-links a {
    color: #ff1919;
    font-weight: 600;
    text-decoration: none;
}

.permit-links a:hover {
    text-decoration: underline;
}

.permit-note {
    margin-top: 20px;
    padding: 14px 16px;
    background: #1a1a1a;
    border-radius: 8px;
    border-left: 3px solid #ff1919;
    color: #cccccc;
}

/* Trust & Credentials Section */
.trust-section {
    background: #191919;
    padding: 80px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.trust-item {
    background: #2d2d2d;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 25, 25, 0.3);
}

.trust-icon {
    font-size: 56px;
    color: #ff1919;
    margin-bottom: 20px;
}

.trust-item h4 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 20px;
}

.trust-item p {
    color: #cccccc;
    line-height: 1.7;
    font-size: 15px;
}

/* Equipment Section */
.equipment-section {
    background: #0d0d0d;
    padding: 80px 0;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.equipment-item {
    background: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.equipment-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.equipment-content {
    padding: 24px;
}

.equipment-content h4 {
    color: #ffffff;
    margin-bottom: 12px;
}

.equipment-content p {
    color: #cccccc;
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: #191919;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.why-item {
    text-align: center;
    padding: 24px;
}

.why-icon {
    font-size: 48px;
    color: #ff1919;
    margin-bottom: 16px;
}

.why-item h4 {
    color: #ffffff;
    margin-bottom: 12px;
}

.why-item p {
    color: #cccccc;
    line-height: 1.6;
}

/* Gallery */
.gallery {
    background: #191919;
    padding: 80px 0;
}

.gallery-intro {
    text-align: center;
    color: #ccc;
    margin-top: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 25, 25, 0.9);
    border: none;
    color: white;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: #ff1919;
    transform: scale(1.1);
}

.lightbox-close i {
    pointer-events: none;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .lightbox-image {
        max-width: 95%;
        max-height: 85vh;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #191919 0%, #2d2d2d 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 16px;
    font-size: 32px;
}

.cta-content p {
    color: #e0e0e0;
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        padding: 60px 0;
    }
    
    .safety-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
    }
    
    .service-detail-image img {
        height: 200px;
    }
    
    .service-detail-content {
        padding: 20px;
    }

    .permit-accordion summary {
        font-size: 20px;
        padding: 18px 20px;
    }

    .permit-content {
        padding: 18px 20px 20px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
}
