/* Indywidualny plik CSS dla podstrony Obróbka CNC */

/* Nagłówek podstrony - nowy design */
.page-header-hero {
    padding: 120px 0 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    margin-top: 70px;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 100px;
}

.header-content {
    max-width: 550px;
}

.header-title {
    font-size: 48px;
    color: white;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.breadcrumbs-light {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs-light a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs-light a:hover {
    color: white;
}

.breadcrumbs-light span {
    color: white;
    margin: 0 8px;
}

/* Style przycisków dostosowane do głównego stylu */
.page-header-hero .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-decoration: none;
    padding: 12px 30px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.3);
    background-color: white;
    color: var(--primary-color);
}

.page-header-hero .btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.page-header-hero .btn-outline {
    background-color: transparent;
    border: 2px solid var(--light-color);
    box-shadow: none;
    color: white;
}

.page-header-hero .btn-outline:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.header-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-badge-hero {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s, background-color 0.3s;
}

.feature-badge-hero:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.feature-icon-circle {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 30px;
}

.feature-text h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 18px;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
}

.header-cta {
    margin-top: 20px;
    text-align: center;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
}

/* Dostosowanie stylów przycisków w kartach usług */
.service-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--light-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: var(--btn-radius);
    box-shadow: 0 4px 8px rgba(227, 6, 19, 0.2);
}

.service-link span {
    margin-left: 8px;
    transition: var(--transition);
}

.service-link:hover {
    background-color: var(--primary-dark);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(227, 6, 19, 0.3);
}

.service-link:hover span {
    transform: translateX(5px);
}

/* Main Image */
.main-image {
    margin-bottom: 50px;
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-bg {
    background-color: #f8f8f8;
}

/* Info Blocks */
.info-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.info-block {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.info-icon i {
    font-size: 24px;
    color: #e30613;
}

.info-block h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.info-block p {
    color: #666;
    line-height: 1.7;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.service-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.7;
    flex: 1;
}

/* Materials Grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.material-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.material-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #e30613;
}

.material-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.material-card p {
    color: #666;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    font-size: 30px;
    margin-bottom: 20px;
    color: #e30613;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.advantage-card p {
    color: #666;
    line-height: 1.7;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #f8f8f8;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: #333;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #e30613;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: #666;
    line-height: 1.7;
}

/* Animacje */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Media Queries */
@media (max-width: 992px) {
    .info-blocks {
        flex-direction: column;
    }

    .info-block {
        min-width: auto;
    }

    .header-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .header-content {
        margin: 0 auto;
    }

    .breadcrumbs-light {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-header-hero {
        padding: 100px 0 0;
    }

    .header-title {
        font-size: 36px;
    }

    .header-description {
        font-size: 18px;
    }

    .feature-badge-hero {
        padding: 15px;
    }

    .feature-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .header-grid {
        padding-bottom: 80px;
    }

    .service-card, .material-card, .advantage-card {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .services-grid, .materials-grid, .advantages-grid {
        grid-template-columns: 1fr;
    }
}
