/* ============================================================
   Naše holičství — main stylesheet
   ============================================================ */

/* Font: American Typewriter ITC Pro via Adobe Fonts (typekit) */
/* Zilla Slab jako fallback pro českou diakritiku */
@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:ital,wght@0,400;0,600;1,400&display=swap');

/* Reset & base
   ---------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Zilla Slab", Georgia, serif;
    color: #333;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.7;
}

main {
    flex: 1;
}

a {
    color: #c33b4c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* ============================================================
   Header
   ============================================================ */

.site-header {
    background-color: #1a1a1a;
    background-image: url('/assets/img/crissXcross.png');
    background-repeat: repeat;
    background-size: 350px auto;
    color: #eee;
}

/* Infobar — 4 columns */

.header-topbar {
    display: flex;
    justify-content: flex-end;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 20px 0;
}

.infobar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    gap: 16px;
    align-items: center;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Zilla Slab", serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lang-switch-active {
    color: #fff;
    font-weight: 600;
}

.lang-switch-divider {
    color: rgba(255,255,255,0.3);
}

.lang-switch-inactive {
    color: rgba(255,255,255,0.45);
    cursor: pointer;
}

.lang-switch-inactive:hover {
    color: #fff;
    text-decoration: none;
}

.lang-switch-mobile {
    display: none;
}

.infobar-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.site-logo {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
}

.infobar-col {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.infobar-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    align-self: center;
    color: #c33b4c;
}

.infobar-icon svg {
    width: 100%;
    height: 100%;
}

.infobar-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.infobar-label {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
}

.infobar-value {
    font-size: 1.1rem;
    color: #eee;
    line-height: 1.5;
}

.infobar-value a {
    color: #eee;
}

.infobar-value a:hover {
    color: #c33b4c;
    text-decoration: none;
}

/* Header buttons */

.header-buttons {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.header-stripe {
    height: 0;
    background-color: #1a1a1a;
    background-image: url('/assets/img/crissXcross.png');
    background-repeat: repeat;
    background-size: 350px auto;
    opacity: 0.6;
}

.btn-rezervace,
.btn-voucher {
    display: block;
    width: 100%;
    padding: 16px 20px;
    text-align: center;
    font-family: "Zilla Slab", serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, letter-spacing 0.2s;
    cursor: pointer;
}

.btn-rezervace {
    background: #c33b4c;
    color: #fff;
}

.btn-rezervace:hover {
    background: #a83040;
    text-decoration: none;
}

.btn-voucher {
    background: #555;
    color: #fff;
    display: none; /* hidden on desktop */
}

.btn-voucher:hover {
    background: #444;
    text-decoration: none;
}

/* ============================================================
   Main layout
   ============================================================ */

.main-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
    align-items: flex-start;
}

.content {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

.sidebar {
    flex: 0 0 300px;
    min-width: 0;
    word-break: break-word;
}

/* ============================================================
   Content sections
   ============================================================ */

.page-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
}

.page-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 14px;
}

.page-section h2::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: #c33b4c;
}

.page-section p,
.page-section ul,
.page-section ol {
    margin-bottom: 1em;
}

.page-section ul,
.page-section ol {
    padding-left: 1.5em;
}

.page-section li {
    margin-bottom: 0.4em;
}

/* Services section */

.services-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
}

.services-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 14px;
}

.services-section h2::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: #c33b4c;
}

.services-intro {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px 0;
}


.service-icon {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.service-body {
    flex: 1;
    min-width: 0;
}

.service-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.service-body p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.service-meta {
    font-size: 0.9rem;
    color: #777;
}

.service-meta strong {
    color: #333;
}

.services-note {
    margin-top: 8px;
    padding-left: calc(90px + 24px);
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

/* Team section */

.team-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
}

.team-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 14px;
}

.team-section h2::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: #c33b4c;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(var(--team-cols, 3), 1fr);
    gap: 32px 24px;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 160px;
    height: 160px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.team-member:hover .team-photo img {
    transform: scale(1.05);
}

.team-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}

.team-role {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

/* Gallery section */

.gallery-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
}

.gallery-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 14px;
}

.gallery-section h2::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: #c33b4c;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 2px;
    cursor: zoom-in;
    position: relative;
}

/* Poslední položka přes celou šíři */
.gallery-item:last-child:not(:nth-child(3n)) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 7;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    cursor: default;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s;
    z-index: 1;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-img {
    transition: opacity 0.15s ease;
}

.lightbox-caption {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-size: 0.9rem;
    text-align: center;
}

.gallery-caption {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
    text-align: center;
}

/* ============================================================
   Contact form
   ============================================================ */

.contact-section {
    margin-bottom: 50px;
}

.contact-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 14px;
}

.contact-section h2::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: #c33b4c;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c33b4c;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #c33b4c;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
}

.btn-submit {
    display: inline-block;
    padding: 12px 32px;
    background: #c33b4c;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-family: "Zilla Slab", serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #a83040;
}

.alert {
    padding: 12px 16px;
    border-radius: 2px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================================
   Sidebar
   ============================================================ */

.sidebar-item {
    margin-bottom: 30px;
}

.sidebar-banner {
    position: relative;
}

.sidebar-banner-img {
    overflow: hidden;
    border-radius: 3px;
}

.sidebar-banner-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.sidebar-banner-img:hover img {
    transform: scale(1.03);
}

.sidebar-banner h3,
.sidebar-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    background: #c33b4c;
    padding: 8px 12px;
    border-radius: 3px;
}

.sidebar-text .sidebar-text-body p {
    margin-bottom: 0.8em;
    font-size: 0.92rem;
}

.sidebar-text .sidebar-text-body img {
    border-radius: 3px;
}

.sidebar-text .sidebar-text-body a {
    color: #c33b4c;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 24px 20px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.85rem;
}

.footer-nav a {
    color: #aaa;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #eee;
    text-decoration: none;
}

/* ============================================================
   Popup
   ============================================================ */

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-box {
    background: #fff;
    max-width: 600px;
    width: calc(100% - 40px);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    z-index: 1;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #c33b4c;
}

.popup-content {
    padding: 30px 30px 24px;
    overflow: hidden;
    hyphens: none;
    -webkit-hyphens: none;
}

.popup-body {
    overflow-wrap: break-word;
    hyphens: none;
}

.popup-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.popup-body {
    font-size: 0.95rem;
}

.popup-body p {
    margin-bottom: 0.8em;
}

.popup-image img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 24px;
    background: var(--primary, #c33b4c);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading, sans-serif);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: background 0.2s;
}

.popup-btn:hover {
    background: #a8313f;
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   Booking confirmation page
   ============================================================ */

.confirm-page {
    max-width: 680px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.confirm-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    color: #27ae60;
}

.confirm-icon svg {
    width: 100%;
    height: 100%;
}

.confirm-page h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.confirm-page p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 12px;
}

.confirm-back {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: #c33b4c;
    color: #fff;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s;
}

.confirm-back:hover {
    background: #a83040;
    text-decoration: none;
}

/* ============================================================
   GDPR page
   ============================================================ */

.static-page {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px 60px;
}

.static-page h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 3px solid #c33b4c;
}

.static-page h2 {
    font-size: 1.3rem;
    margin: 28px 0 10px;
    color: #1a1a1a;
}

.static-page p,
.static-page ul {
    margin-bottom: 1em;
    font-size: 0.95rem;
}

.static-page ul {
    padding-left: 1.5em;
}

/* ============================================================
   404 page
   ============================================================ */

.not-found-page {
    max-width: 600px;
    margin: 120px auto;
    padding: 0 20px;
    text-align: center;
}

.not-found-page h1 {
    font-size: 6rem;
    font-weight: 700;
    color: #e8e8e8;
    line-height: 1;
    margin-bottom: 10px;
}

.not-found-page p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 24px;
}

.not-found-page a {
    display: inline-block;
    padding: 10px 24px;
    background: #c33b4c;
    color: #fff;
    border-radius: 2px;
    font-weight: 700;
    transition: background 0.2s;
}

.not-found-page a:hover {
    background: #a83040;
    text-decoration: none;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
    .main-container {
        gap: 30px;
    }

    .content {
        flex: 0 0 62%;
    }
}

@media (max-width: 768px) {
    .infobar {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .header-topbar {
        display: none;
    }

    .lang-switch-mobile {
        display: flex;
        justify-content: center;
        padding: 12px 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .btn-voucher {
        display: block;
    }

    .main-container {
        flex-direction: column;
        padding: 24px 16px;
    }

    .content,
    .sidebar {
        flex: none;
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .infobar {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .infobar-logo {
        justify-content: center;
        padding: 24px 0;
    }

    .site-logo {
        max-height: 140px;
        max-width: 80%;
    }

    .infobar-col:not(.infobar-logo) {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-item {
        gap: 12px;
    }

    .service-icon,
    .service-icon-placeholder {
        width: 60px;
        height: 60px;
    }

    .services-note {
        padding-left: calc(60px + 12px);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-voucher {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .header-buttons {
        margin-top: 0;
    }

    .infobar {
        padding-bottom: 32px;
    }

    .site-header {
        display: flex;
        flex-direction: column;
    }

    .header-stripe {
        flex: none;
        height: 40px;
    }

    .page-section h2,
    .gallery-section h2,
    .contact-section h2 {
        font-size: 1.4rem;
    }

    .not-found-page h1 {
        font-size: 4rem;
    }
}

/* Děkujeme stránka
   ============================================================ */

.dekujeme-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.dekujeme-hero {
    text-align: center;
    margin-bottom: 60px;
    scroll-margin-top: 40px;
}

.dekujeme-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid #c33b4c;
    display: inline-block;
}

.dekujeme-hero p {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 10px;
}

.dekujeme-hero a {
    color: #c33b4c;
}

.dekujeme-directions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.directions-map {
    grid-column: 1 / -1;
}

.directions-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: #c33b4c;
    padding: 8px 12px;
    border-radius: 3px;
    margin-bottom: 14px;
}

.directions-col p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0.8em;
}

.directions-map {
    align-self: stretch;
}

@media (max-width: 768px) {
    .dekujeme-directions {
        grid-template-columns: 1fr;
    }

    .directions-map iframe {
        min-height: 280px !important;
    }
}

/* Cookie banner
   ============================================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #eee;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 9999;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 0.88rem;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 3px;
    font-family: "Zilla Slab", serif;
    font-size: 0.88rem;
    cursor: pointer;
    font-weight: 600;
}

.cookie-btn-label {
    /* viditelný na desktopu */
}

.cookie-btn-accept {
    background: #c33b4c;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #a83040;
}

.cookie-btn-decline {
    background: #444;
    color: #eee;
}

.cookie-btn-decline:hover {
    background: #333;
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 10px 20px;
    }

    .cookie-text {
        font-size: 0.7rem;
    }

    .cookie-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        font-size: 1.1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cookie-btn-label {
        display: none;
    }
}
