/* Pihapuiden kaato -sivun erityistyylit */

/* Hero custom styles */
.hero {
    background: linear-gradient(125deg, rgba(12, 12, 12, 0.82) 0%, rgba(17, 17, 17, 0.72) 40%, rgba(28, 28, 28, 0.72) 100%), url('../kuvat/pihapuidenkaato.webp');
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    padding: 80px 0 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(8, 8, 8, 0.42) 0%, rgba(8, 8, 8, 0.2) 55%, rgba(8, 8, 8, 0.08) 100%);
    z-index: 1;
}

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

.hero .hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero .hero-content h1 {
    font-size: clamp(2rem, 4.4vw, 3.15rem);
    line-height: 1.12;
    margin-bottom: 12px;
}

.hero .hero-content p {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.hero .hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 14px;
}

.hero .hero-points {
    list-style: none;
    max-width: 960px;
    margin: 0 auto 18px;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero .hero-points li {
    color: #efefef;
    font-weight: 500;
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 12px 12px 12px 42px;
    line-height: 1.35;
    display: flex;
    align-items: center;
    min-height: 62px;
}

.hero .hero-points li::before {
    content: '✓';
    color: var(--primary-red);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 25, 25, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .hero .hero-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hero .tax-deduction-hero {
    margin-top: 14px;
    text-align: center;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--primary-red);
}

.hero .hero-areas {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero .hero-areas span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f5f5f5;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.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: linear-gradient(180deg, #262626 0%, #1d1d1d 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.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: var(--primary-red);
    margin-bottom: 8px;
    font-size: 24px;
}

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

.service-detail-content h4 {
    color: var(--primary-red);
    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: #161616;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    color: #e0e0e0;
}

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

/* Typical jobs section */
.typical-jobs-section {
    padding: 70px 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #131313 100%);
}

.typical-jobs-card {
    display: grid;
    grid-template-columns: minmax(280px, 460px) 1fr;
    gap: 28px;
    background: linear-gradient(180deg, #252525 0%, #1d1d1d 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.typical-jobs-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.typical-jobs-content {
    padding: 28px 28px 30px 0;
}

.typical-jobs-content h2 {
    color: var(--primary-red);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    margin-bottom: 12px;
}

.typical-jobs-content h3 {
    color: #ffffff;
    margin: 22px 0 10px;
    font-size: 1.15rem;
}

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

.typical-jobs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.typical-jobs-list li {
    color: #e6e6e6;
    line-height: 1.5;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.typical-jobs-list i {
    color: var(--primary-red);
    margin-top: 2px;
}

.typical-jobs-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 3px solid var(--primary-red);
    background: rgba(255, 25, 25, 0.08);
    border-radius: 8px;
    color: #f0f0f0;
}

/* Permit Section */
.permit-section {
    background: linear-gradient(180deg, #151515 0%, #101010 100%);
    padding: 80px 0;
}

.permit-accordion {
    max-width: 900px;
    margin: 0 auto;
    background: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    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 var(--primary-red);
}

.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: linear-gradient(180deg, #1f1f1f 0%, #171717 100%);
    padding: 80px 0;
}

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

.trust-item {
    background: linear-gradient(180deg, #262626 0%, #1f1f1f 100%);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(255, 25, 25, 0.2);
}

.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: #121212;
    padding: 80px 0;
}

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

.equipment-item {
    background: linear-gradient(180deg, #262626 0%, #1f1f1f 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.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: linear-gradient(180deg, #1b1b1b 0%, #141414 100%);
    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: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36);
}

.gallery-item:focus-visible {
    outline: 3px solid var(--primary-red);
    outline-offset: 3px;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36);
}

.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:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

.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, #171717 0%, #242424 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: 54px 0 40px;
    }

    .hero .hero-content h1 {
        font-size: clamp(1.7rem, 8vw, 2.25rem);
    }

    .hero .hero-points {
        max-width: 560px;
        grid-template-columns: 1fr;
    }
    
    .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;
    }

    .typical-jobs-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .typical-jobs-content {
        padding: 22px 20px 24px;
    }

    .typical-jobs-image img {
        min-height: 220px;
    }
    
    .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;
    }
}
