:root {
    --primary-color: #D64545;
    --secondary-color: #2C3E50;
    --accent-color: #F0C869;
    --background-color: #F8F9FA;
    --light-background: #FFFFFF;
    --text-color: #343A40;
    --light-text-color: #6C757D;
    --border-color: #DEE2E6;
    --heading-font: 'Poppins', 'Noto Sans JP', sans-serif;
    --body-font: 'Noto Sans JP', Arial, sans-serif;
    --base-font-size: 16px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    overflow-x: hidden;
}


main {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

section {
    padding: 4rem 0;
    position: relative;
}

section:nth-of-type(even) {
    background-color: var(--light-background);
}
section:nth-of-type(odd) {
    background-color: var(--background-color);
}

#hero, #kontakt {
    background-color: var(--secondary-color);
    color: #fff;
}
#kontakt {
     background-color: #fff;
     color: var(--text-color);
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.5rem; color: var(--primary-color); }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
    color: var(--light-text-color);
}
p.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}
p.section-intro {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: #B73232;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
    font-family: var(--heading-font);
    font-size: 0.9rem;
}

.cta-button:hover {
    background-color: #B73232;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #fff;
}

.cta-button i {
    margin-right: 8px;
}

.placeholder-box {
    text-align: center;
    padding: 3em 2em;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background-color: rgba(0,0,0,0.02);
    margin-top: 2rem;
}
.placeholder-box p {
    color: var(--light-text-color);
    font-style: italic;
}

.icon {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

#hero {
    position: relative;
    background-image: url('../img/textile-printing-hero.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    padding: 8rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.7);
    z-index: 1;
}

#hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

#hero h1 {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

#hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

#hero .hero-cta {
    padding: 18px 45px;
    font-size: 1rem;
}

#popis .description-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

#popis .image-column img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

#vyhody {
    background-color: var(--light-background);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.benefit {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.benefit:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.benefit h3 {
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    margin-top: 4rem;
}


.step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem auto;
    font-family: var(--heading-font);
    box-shadow: 0 2px 5px rgba(214, 69, 69, 0.4);
}

.step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.technique-item {
    background-color: var(--light-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.technique-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.technique-item strong {
    color: var(--secondary-color);
}

.customization-list {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.customization-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.customization-list .icon {
    margin-right: 15px;
    margin-top: 0.2em;
    font-size: 1.3rem;
}

.customization-list strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

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

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-empty, .gallery-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    color: var(--light-text-color);
}
.gallery-error {
    color: var(--primary-color);
    font-weight: bold;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
    box-shadow: var(--box-shadow);
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.price-table th,
.price-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.price-table th {
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.price-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.price-table tbody tr:hover {
    background-color: #e9ecef;
}

.price-table td:last-child {
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
    font-family: var(--heading-font);
}

.price-note {
    text-align: center;
    font-style: italic;
    color: var(--light-text-color);
    margin-top: 1.5rem;
}

#reference {
     background-color: var(--secondary-color);
     color: #fff;
}

#reference h2 {
    color: #fff;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-color);
}

.testimonial-item blockquote p {
    font-style: italic;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}
.testimonial-item blockquote p::before {
    content: '\201C';
    font-size: 2rem;
    color: var(--accent-color);
    margin-right: 5px;
    line-height: 0;
    position: relative;
    top: 0.3em;
}

.testimonial-item .testimonial-footer {
    margin-top: 1.5rem;
    text-align: right;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-item cite {
    font-weight: bold;
    color: var(--accent-color);
    font-style: normal;
    display: block;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#kontakt {
    background-color: var(--light-background);
    color: var(--text-color);
    padding-bottom: 0;
}

#kontakt h2 {
    color: var(--secondary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h3, .contact-form-container h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.contact-details {
    list-style: none;
    padding-left: 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.contact-details .icon {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 25px;
}

.contact-details a {
    color: var(--text-color);
}
.contact-details a:hover {
    color: var(--primary-color);
}

.social-links {
    margin-top: 2rem;
}
.social-links h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: #fff;
    margin-right: 10px;
    font-size: 1.1rem;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.social-links a:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
    text-decoration: none;
}

.contact-form-container p {
    margin-bottom: 1.5rem;
}

.contact-form-container .large-cta {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--body-font);
    transition: border-color var(--transition-speed) ease;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.2);
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}


@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.4rem; }

    #hero { padding: 6rem 0; min-height: 50vh; }
    #hero h1 { font-size: 3rem; }

    #popis .description-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    #popis .image-column {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .price-table thead {
        display: none;
    }
    .price-table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
     .price-table td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid var(--border-color);
    }
    .price-table td:last-child {
        border-bottom: none;
        font-size: 1.1rem;
    }
    .price-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        text-align: left;
        color: var(--secondary-color);
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; margin-bottom: 2rem; }
    h3 { font-size: 1.3rem; }

    section { padding: 3rem 0; }

    #hero { padding: 5rem 0; min-height: 40vh; background-attachment: scroll; }
    #hero h1 { font-size: 2.5rem; }
    #hero p.subtitle { font-size: 1.1rem; }
    #hero .hero-cta { padding: 15px 30px; font-size: 0.9rem; }

    .benefits-grid, .process-steps, .techniques-grid, .gallery-grid, .testimonials-slider, .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-grid { gap: 2.5rem; }

    p.section-intro { font-size: 1rem; margin-bottom: 2rem; }

    .price-table td { padding-left: 45%; }
    .price-table td::before { width: calc(45% - 25px); left: 10px; }
}

@media (max-width: 576px) {
    .container { padding-left: 15px; padding-right: 15px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    #hero h1 { font-size: 2.2rem; }
    #hero p.subtitle { font-size: 1rem; }

    .benefit { padding: 2rem 1.5rem; }
    .step { padding: 1.5rem; }
    .technique-item { padding: 1.5rem; }
    .testimonial-item { padding: 1.5rem; }

    .cta-button { padding: 12px 25px; font-size: 0.85rem; }
    #hero .hero-cta { padding: 14px 30px; }
    .contact-form-container .large-cta { padding: 15px 30px; font-size: 1rem; }

    .social-links a { width: 35px; height: 35px; line-height: 35px; font-size: 1rem; }
}

footer {
    background-color: var(--secondary-color) !important;
    text-align: center;
    padding: 1rem 0;
    margin-top: 4rem;
}

footer p {
    color: #fff;
    font-size: 1.1rem;
}
