/* Globalny arkusz stylów dla ExpertCNC.pl */

/* Resetowanie stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    /* Główne kolory */
    --primary-color: #e30613;      /* Czerwony - kolor wiodący */
    --primary-dark: #b30000;       /* Ciemniejszy czerwony */
    --primary-light: #ff4d4d;      /* Jaśniejszy czerwony */
    --secondary-color: #222222;    /* Ciemny szary */
    --text-color: #333333;         /* Kolor tekstu */
    --light-color: #ffffff;        /* Biały */
    --light-grey: #f8f8f8;         /* Jasny szary */
    --mid-grey: #e0e0e0;           /* Średni szary */
    --dark-grey: #444444;          /* Ciemny szary */

    /* Rozmiary */
    --container-width: 1400px;
    --border-radius: 4px;
    --btn-radius: 30px;

    /* Efekty */
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Kontenery */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
}

/* Przyciski */
.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);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(227, 6, 19, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--light-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(34, 34, 34, 0.3);
}

.btn-secondary:hover {
    background-color: #000000;
    box-shadow: 0 6px 15px rgba(34, 34, 34, 0.4);
}

/* Nagłówek i nawigacja */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: var(--light-color);
    box-shadow: var(--box-shadow);
}

header.scrolled {
    background: var(--light-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-color);
    min-width: 220px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 9999;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--mid-grey);
    text-transform: none;
    letter-spacing: normal;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--light-grey);
}

.dropdown > a::after {
    margin-left: 5px;
    content: '▼';
    font-size: 0.7em;
    vertical-align: middle;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Hero sekcja */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/img/heder.jpg') center/cover no-repeat;
    color: var(--light-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--light-color);
    text-shadow: var(--text-shadow);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Sekcja statystyk */
.stats {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 80px 0;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sekcje - wspólne style */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--dark-grey);
}

/* Usługi */
.services {
    background-color: var(--light-grey);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    height: 230px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-content p {
    margin-bottom: 20px;
    flex: 1;
}

.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);
}

/* O firmie */
.about {
    background-color: var(--light-color);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    top: 20px;
    left: 20px;
    border-radius: var(--border-radius);
    z-index: -1;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-text h4 {
    margin-bottom: 5px;
}

/* Proces */
.process {
    background: linear-gradient(rgba(227, 6, 19, 0.9), rgba(227, 6, 19, 0.9)), url('/api/placeholder/1400/600') center/cover fixed;
    color: var(--light-color);
    text-align: center;
}

.process .section-header h2 {
    color: var(--light-color);
}

.process .section-header h2::after {
    background-color: var(--light-color);
}

.process .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    color: var(--light-color);
    margin-bottom: 10px;
}

.process-step p {
    color: rgba(255, 255, 255, 0.8);
}

/* Referencje */
.testimonials {
    background-color: var(--light-grey);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-item {
    padding: 30px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 20px;
    position: relative;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--dark-grey);
    margin: 0;
}

/* Kontakt */
.contact {
    background-color: var(--light-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: var(--border-radius);
    color: var(--light-color);
}

.contact-info h3 {
    color: var(--light-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--light-color);
    bottom: 0;
    left: 0;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-icon {
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-text h4 {
    color: var(--light-color);
    margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--light-color);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--light-grey);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-form h3 {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--mid-grey);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Mapa */
.map {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 60px;
    box-shadow: var(--box-shadow);
}

.map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stopka */
footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 80px 0 30px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: var(--light-color);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--light-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a span {
    margin-right: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.newsletter-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 0 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Przycisk do góry */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

/* CTA Sekcja */
.cta {
    background: linear-gradient(rgba(34, 34, 34, 0.9), rgba(34, 34, 34, 0.9)), url('/api/placeholder/1400/400') center/cover no-repeat;
    color: var(--light-color);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: var(--light-color);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsywność */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    section {
        padding: 70px 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .service-card {
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .header-container {
        padding: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 500px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    nav a {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid var(--mid-grey);
    }

    nav a::after {
        display: none;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
    }

    .dropdown.active .dropdown-content {
        max-height: 500px;
    }

    .dropdown-content a {
        padding-left: 40px;
    }

    .dropdown > a::after {
        content: '+';
        float: right;
    }

    .dropdown.active > a::after {
        content: '-';
    }

    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        max-width: 500px;
        width: 100%;
        margin: 0 auto 30px;
    }

    .footer-top {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-btn-group {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btn-group .btn {
        width: 100%;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-step {
        margin-bottom: 30px;
    }
}
