:root {
    --color-bg: #fdf7f2;
    --color-light: #f8ece4;
    --color-accent: #c69c6d;
    --color-accent-soft: #e8cfb4;
    --color-dark: #4a3b39;
    --color-muted: #937b6b;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-bg);
    color: var(--color-dark);
}

h1, h2, h3, h4 {
    font-family: "Playfair Display", serif;
    letter-spacing: 0.03em;
}

a {
    color: var(--color-accent);
}
a:hover {
    color: #a6793f;
}

/* NAVBAR */

.navbar-wedding {
    background: rgba(253, 247, 242, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.navbar-wedding .nav-link {
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .14em;
    color: var(--color-muted);
    padding-inline: 0.9rem;
}

.navbar-wedding .nav-link:hover,
.navbar-wedding .nav-link.active {
    color: var(--color-accent);
}

/* HERO */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* fotka */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/images/klarka_vlada.jpg");
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(1);   /* žádné zbytečné zesvětlení */
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center,
            rgba(253,247,242,0.25) 0%,
            rgba(253,247,242,0.20) 35%,
            rgba(253,247,242,0.10) 55%,
            rgba(253,247,242,0.00) 100%);
    z-index: -1;
}

.hero-inner {
    position: relative;
    max-width: 720px;
    margin-inline: auto;
    padding: 6rem 1.5rem 5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(198,156,109,0.3);
    font-size: .75rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.hero-names {
    font-size: clamp(2.7rem, 4vw, 3.4rem);
    text-transform: none;
    color: var(--color-dark);
}

.hero-names span {
    display: inline-block;
}

.hero-divider {
    width: 70px;
    height: 1px;
    background: var(--color-accent-soft);
    margin: 1.5rem auto;
}

.hero-date {
    font-size: 1.05rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.hero-location {
    margin-top: .8rem;
    font-size: .95rem;
    color: var(--color-dark);
}

/* na mobilu se trochu posun kompozice */
@media (max-width: 768px) {
    .hero::after {
        background-position: center top;
    }
    .hero-inner {
        padding-top: 5rem;
        padding-bottom: 4rem;
    }
}

/* COUNTDOWN */

.countdown-section {
    background: var(--color-light);
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-box {
    background: #fff;
    border: 1px solid rgba(198,156,109,0.25);
    border-radius: 1rem;
    padding: 1rem 1.3rem;
    min-width: 90px;
    text-align: center;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.1;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-muted);
    margin-top: .2rem;
}

/* SECTIONS */

section {
    padding: 4rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    font-size: 1.8rem;
}

.section-heading .sub {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--color-muted);
}

/* CARDS */

.info-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(198,156,109,0.2);
    padding: 1.5rem 1.6rem;
    background: #fff;
    height: 100%;
}

.info-card h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 600;
    margin-bottom: .7rem;
}

.info-card p {
    margin-bottom: .2rem;
}

/* PROGRAM TIMELINE */

.timeline {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding-left: 1.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: .5rem;
    top: .3rem;
    bottom: .3rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent-soft), rgba(198,156,109,0.05));
}

.timeline-item {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1.2rem;
}

.timeline-dot {
    position: absolute;
    left: -.15rem;
    top: .15rem;
    width: .8rem;
    height: .8rem;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--color-accent);
}

.timeline-time {
    font-weight: 600;
    font-size: .92rem;
    color: var(--color-accent);
}

.timeline-text {
    font-size: .95rem;
}

/* RSVP FORM */

.rsvp-card {
    border-radius: 1.8rem;
    border: 1px solid rgba(198,156,109,0.25);
    background: #fff;
    padding: 2.2rem 2rem;
    max-width: 720px;
    margin: 0 auto;
}

.form-label {
    font-size: .9rem;
    font-weight: 600;
}

.form-control, .form-select {
    border-radius: .8rem;
    border-color: rgba(198,156,109,0.25);
}

.form-check-input {
    accent-color: var(--color-accent);
}

.form-check-label {
    font-size: .95rem;
}

.guest-field {
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s ease;
}

.guest-field.visible {
    opacity: 1;
    transform: translateY(0);
}


.btn-accent {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    border-radius: 999px;
    padding: .6rem 1.8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
}

.btn-accent:hover {
    background: #a6793f;
    border-color: #a6793f;
    color: #fff;
}

/* FOOTER */

footer {
    font-size: .85rem;
    color: var(--color-muted);
    padding: 2rem 0 2.5rem;
    text-align: center;
}

/* SMALL HELPERS */

.tag-pill {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 999px;
    background: rgba(198,156,109,0.07);
    font-size: .75rem;
    color: var(--color-muted);
}

@media (min-width: 768px) {
    .hero-inner {
        padding-top: 6rem;
    }
}


@media (max-width: 768px) {
    .hero::after {
        background-position: center top;
    }
}

/* --- ČITELNĚJŠÍ TEXT V HERO --- */

/* hlavní jméno */
.hero-names {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 14px rgba(0, 0, 0, 0.55);
    -webkit-text-stroke: 0.4px rgba(0, 0, 0, 0.35); /* jemná kontura */
}

/* podnadpisy, datum, místo, text pod tím */
.hero h1,
.hero h2,
.hero h3,
.hero-date,
.hero-location,
.hero p {
    color: #fdf7f2;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

/* „SVATEBNÍ DEN“ – trochu výraznější */

.hero-badge {
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-dark);
    border-color: rgba(0, 0, 0, 0.08);
    font-weight: 600;
}
/* GALERIE */

.gallery-hero {
    padding-top: 7rem;
    padding-bottom: 2rem;
    background: var(--color-light);
}

.gallery-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.gallery-section {
    padding: 3rem 0 4rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;  
    display: block;
    break-inside: avoid;
    margin-bottom: 24px;
    border-radius: 1.2rem;
}

.gallery-item img {
    width: 100%;
    height: auto !important;  /* 🔑 důležité */
    display: block;
    border-radius: 1.2rem;
    object-fit: contain;      /* nebo klidně úplně vynechat */
}

.gallery-thumb-wrapper {
    position: relative;
}

.gallery-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease, filter .4s ease;
}

.gallery-item::after {
    content: "\F2EE"; /* bootstrap icon: bi-zoom-in */
    font-family: "bootstrap-icons";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    opacity: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1), rgba(0,0,0,0.45));
    transition: opacity .3s ease;
    pointer-events: none; 
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(.9);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Odsazení stránky galerie od navbaru */
.gallery-page {
    padding-top: 100px;
    padding-bottom: 40px;
    /*background-color: #f9efe8; */
    background: #f7eee7; 
    border-top: 1px solid rgba(0,0,0,.04);
    border-bottom: 1px solid rgba(0,0,0,.04);    
}

/* Masonry layout přes CSS columns */
.gallery-masonry {
    column-count: 1;
    column-gap: 24px;
}

/* 2 sloupce od tabletů */
@media (min-width: 768px) {
    .gallery-masonry {
        column-count: 2;
    }
}

/* 3 sloupce od větších notebooků */
@media (min-width: 992px) {
    .gallery-masonry {
        column-count: 3;
    }
}

/* 4 sloupce od velkých desktopů / širokých monitorů */
@media (min-width: 1400px) {
    .gallery-masonry {
        column-count: 4;
    }
}


/* MODÁL GALERIE */

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);

    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

/* při otevření */
.gallery-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-modal-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gallery-modal-content {
    max-width: 80vw;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    display: block;
}

.gallery-modal-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

.gallery-modal-close {
    position: absolute;
    top: -32px;
    right: -8px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-modal-nav {
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* na mobilech šipky pod/vedle obrázku */
@media (max-width: 767px) {
    .gallery-modal-inner {
        flex-direction: column;
    }

    .gallery-modal-close {
        top: 8px;
        right: 8px;
        color: #333;
    }
}

.gallery-select {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-select input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #c69c6d; /* svatební barva */
}

.gallery-item:hover .gallery-select {
    opacity: 1;
}

.btn-gallery-download {
    padding: 0.7rem 1.7rem;
    background: #c69c6d;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background .2s;
}

.btn-gallery-download:hover {
    background: #a67e3d;
}

.btn-gallery-toggle {
    padding: 0.7rem 1.7rem;
    background: #e1d4c9;
    color: #4a3b39;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-right: 1rem;
    transition: background .2s;
}

.btn-gallery-toggle:hover {
    background: #d6c7ba;
}

.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.gallery-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 11px 22px;
    border-radius: 999px;
    background: #8b5e4a;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all .2s ease;
}

.gallery-page-btn:hover {
    background: #6f4938;
    color: #fff;
    transform: translateY(-1px);
}

.gallery-page-btn.is-disabled {
    background: #d8ccc6;
    color: #fff;
    cursor: default;
}

.gallery-page-info {
    min-width: 150px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(139,94,74,.08);
    color: #6f4938;
    text-align: center;
}

.gallery-page-info strong {
    display: block;
    font-size: 15px;
}

.gallery-page-info span {
    display: block;
    font-size: 12px;
    opacity: .8;
}
