:root {
    --cream: #F7F3EC;
    --cream-dark: #F0EBE1;
    --gold: #B79A63;
    --gold-light: #D4B67A;
    --green: #314133;
    --green-light: #49604C;
    --text: #3A342F;
    --text-light: #6A645E;
    --white: #FFFFFF;

    --max-width: 1200px;
    --transition: .35s ease;
}


/* =========================================================
   ZÁKLAD
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--cream);
    color: var(--text);
    font-family: "Montserrat", sans-serif;
    line-height: 1.8;
}

h1,
h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
}


/* =========================================================
   ÚVODNÍ SLIDE
   ========================================================= */

.hero {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 70px 30px 45px;

    position: relative;
    box-sizing: border-box;
}

.hero h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    font-family: "Great Vibes", cursive;
    font-weight: 400;

    font-size: clamp(50px, 6.2vw, 76px);
    line-height: 1.05;

    color: #000000;

    margin: 0 0 20px;
}

.castle {
    display: block;

    width: min(260px, 48vw);
    max-height: 130px;

    object-fit: contain;

    margin: 5px auto 18px;
}


/* =========================================================
   PRSTÝNKY + ČÁRY
   ========================================================= */

.rings-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;
    margin: 8px 0;
}

.rings-divider .line {
    display: block;

    width: 120px;
    height: 1px;

    background: #C9963A;
}

.rings {
    width: 45px;
    height: 45px;

    object-fit: contain;

    flex: 0 0 auto;
}


/* =========================================================
   DATUM
   ========================================================= */

.date {
    margin-top: 26px;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(23px, 3vw, 30px);

    color: var(--text);
}


/* =========================================================
   ODPOČET
   ========================================================= */

.countdown-title {
    margin-top: 34px;

    color: var(--gold);

    font-size: 12px;
    letter-spacing: 3px;

    text-transform: uppercase;
}

.countdown {
    display: flex;
    justify-content: center;

    gap: clamp(25px, 5vw, 55px);

    margin: 14px 0 25px;
}

.countdown div {
    min-width: 82px;
    text-align: center;
}

.countdown span {
    display: block;

    color: var(--green);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 500;

    line-height: 1.15;

    font-variant-numeric: tabular-nums;
}

.countdown small {
    display: block;

    margin-top: 3px;

    color: var(--gold);

    font-size: 10px;
    letter-spacing: 2px;

    text-transform: uppercase;
}

.meeting-time {
    margin-top: 10px;

    color: var(--gold);

    font-family: "Montserrat", sans-serif;
    font-size: 13px;

    letter-spacing: .5px;
}


/* =========================================================
   ŠIPKA PRO POSUN
   ========================================================= */

.scroll-arrow {
    position: absolute;

    left: 50%;
    bottom: 18px;

    z-index: 50;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    transform: translateX(-50%);

    text-decoration: none;
}

.scroll-arrow span {
    position: relative;

    display: block;

    width: 20px;
    height: 12px;

    animation: arrowFloat 2.2s ease-in-out infinite;
}

.scroll-arrow span::before,
.scroll-arrow span::after {
    content: "";

    position: absolute;
    top: 3px;

    width: 14px;
    height: 1px;

    background: var(--gold);
}

.scroll-arrow span::before {
    left: 0;

    transform: rotate(45deg);
    transform-origin: left center;
}

.scroll-arrow span::after {
    right: 0;

    transform: rotate(-45deg);
    transform-origin: right center;
}

@keyframes arrowFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}


/* =========================================================
   OBECNÉ SLIDY
   ========================================================= */

.content-section {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;

    position: relative;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 65px 30px 85px;

    scroll-margin-top: 0;

    overflow: hidden;
}

.content-section--soft {
    background: var(--cream-dark);
}

.container {
    width: min(92%, var(--max-width));

    margin: 0 auto;
}

.narrow {
    max-width: 760px;

    text-align: center;
}

.eyebrow {
    color: var(--gold);

    font-size: 11px;
    letter-spacing: 3px;

    text-transform: uppercase;

    margin-bottom: 10px;
}

.content-section h2 {
    color: var(--green);

    font-size: clamp(48px, 6vw, 64px);
    line-height: 1;

    margin-bottom: 28px;
}

.lead {
    max-width: 650px;

    margin: 0 auto;

    font-size: 17px;

    color: var(--text-light);
}


/* =========================================================
   OBRAD – ADRESA
   ========================================================= */

.location-info {
    font-size: 18px;
    line-height: 1.8;

    color: var(--text);
}


/* =========================================================
   MAPA
   ========================================================= */

.map {
    width: min(650px, 100%);
    height: 280px;

    margin: 22px auto 14px;

    border: 1px solid rgba(183, 154, 99, .35);

    overflow: hidden;
}

.map iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   TLAČÍTKO – TRASA
   ========================================================= */

.map-button {
    display: inline-block;

    padding: 9px 24px;

    border: 1px solid var(--gold);
    border-radius: 30px;

    color: var(--gold);
    background: transparent;

    font-family: "Montserrat", sans-serif;
    font-size: 13px;

    letter-spacing: .7px;

    text-decoration: none;

    transition:
        background var(--transition),
        color var(--transition);
}

.map-button:hover {
    background: var(--gold);
    color: var(--white);
}


/* =========================================================
   OBRÁZKY / GALERIE
   ========================================================= */

.photo-placeholder,
.gallery-placeholder {
    margin: 45px auto 0;

    border: 1px solid rgba(183, 154, 99, .35);

    background: rgba(255, 255, 255, .25);

    color: var(--gold);

    display: flex;
    align-items: center;
    justify-content: center;

    letter-spacing: 2px;

    text-transform: uppercase;

    font-size: 10px;
}

.photo-placeholder {
    width: min(760px, 100%);

    aspect-ratio: 16 / 9;
}

.gallery-placeholder {
    min-height: 260px;
}


/* =========================================================
   ROHY
   ========================================================= */

.corner {
    position: fixed;

    z-index: 10;

    width: 170px;
    height: 170px;

    background-size: contain;
    background-repeat: no-repeat;

    opacity: .65;

    pointer-events: none;
}

.top-left {
    top: 0;
    left: 0;

    background-image: url(images/botanical.png);
}

.top-right {
    top: 0;
    right: 0;

    background-image: url(images/botanical.png);

    transform: scaleX(-1);
}

.bottom-left {
    bottom: 0;
    left: 0;

    background-image: url(images/botanical.png);

    transform: scaleY(-1);
}

.bottom-right {
    bottom: 0;
    right: 0;

    background-image: url(images/botanical.png);

    transform: scale(-1);
}


/* =========================================================
   PATIČKA
   ========================================================= */

footer {
    padding: 60px 30px 80px;

    text-align: center;

    color: var(--gold);

    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
}


/* =========================================================
   POTVRZENÍ ÚČASTI
   ========================================================= */

.rsvp-form {
    width: min(520px, 90vw);
    max-width: 100%;

    margin: 28px auto 0;

    display: flex;
    flex-direction: column;

    gap: 10px;

    text-align: left;
}

.rsvp-form label {
    font-family: "Montserrat", sans-serif;

    font-size: 13px;
    letter-spacing: 0.12em;

    color: var(--green);

    margin-top: 8px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    padding: 12px 14px;

    font-family: "Montserrat", sans-serif;
    font-size: 15px;

    color: var(--green);

    background: rgba(255, 255, 255, 0.35);

    border: 1px solid rgba(180, 145, 85, 0.65);
    border-radius: 3px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-color: var(--gold);

    background: rgba(255, 255, 255, 0.55);
}

.rsvp-form textarea {
    resize: vertical;
    min-height: 75px;
}

.rsvp-button {
    align-self: center;

    margin-top: 18px;

    padding: 12px 30px;

    font-family: "Montserrat", sans-serif;
    font-size: 14px;

    letter-spacing: 0.08em;

    color: var(--gold);

    background: transparent;

    border: 1px solid var(--gold);
    border-radius: 30px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.rsvp-button:hover {
    background: var(--gold);
    color: #fff;
}

.rsvp-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.rsvp-message {
    min-height: 22px;

    margin: 8px 0 0;

    text-align: center;

    font-family: "Montserrat", sans-serif;
    font-size: 14px;

    color: var(--gold);
}


/* Na začátku formuláře není počet osob potřeba,
   dokud se nezvolí účast. */

#pocet-wrap {
    display: none;
}


/* =========================================================
   TĚŠÍME SE NA VÁS
   Fotka 1023 × 1537
   Zachovaný poměr stran – bez ořezu
   ========================================================= */

.tesime-section {
    text-align: center;
}

.tesime-photo {
    width: min(430px, 70vw, 30vh);
    height: auto;

    margin: 12px auto 14px;

    border: 1px solid rgba(183, 154, 99, .45);

    overflow: visible;
}

.tesime-photo img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;
    max-height: none;

    object-fit: contain;
}

.tesime-section .lead {
    max-width: 560px;
}


/* =========================================================
   MOBIL – DO 768 PX
   ========================================================= */

@media (max-width: 768px) {

    .content-section {
        height: 100dvh;
        min-height: 100dvh;

        padding: 60px 22px 70px;

        overflow: hidden;
    }

    .hero {
        padding: 55px 20px 35px;
    }

    .castle {
        width: min(280px, 68vw);

        margin-bottom: 22px;
    }

    .rings {
        width: 38px;
        height: 38px;
    }

    .rings-divider {
        gap: 10px;
    }

    .rings-divider .line {
        width: 90px;
    }

    .date {
        margin-top: 20px;
    }

    .countdown-title {
        margin-top: 28px;

        letter-spacing: 2px;
    }

    .countdown {
        gap: 12px;

        margin-bottom: 18px;
    }

    .countdown div {
        min-width: 76px;
    }

    .content-section h2 {
        font-size: 36px;
    }

    .lead {
        font-size: 16px;
    }

    .location-info {
        font-size: 17px;
    }

    .map {
        height: 230px;

        margin-top: 18px;
    }

    .map-button {
        padding: 8px 20px;
    }

    .scroll-arrow {
        bottom: 16px;
    }

    .corner {
        width: 145px;
        height: 145px;

        opacity: .30;
    }


    /* RSVP */

    .rsvp-form {
        width: 100%;
        max-width: 100%;

        margin-top: 20px;

        gap: 7px;
    }

    .rsvp-form label {
        font-size: 11px;

        margin-top: 5px;
    }

    .rsvp-form input,
    .rsvp-form select,
    .rsvp-form textarea {
        width: 100%;
        max-width: 100%;

        padding: 10px 12px;

        font-size: 14px;
    }

    .rsvp-form textarea {
        min-height: 65px;
    }

    .rsvp-button {
        margin-top: 12px;

        padding: 10px 25px;

        font-size: 13px;
    }

    .rsvp-message {
        font-size: 13px;
    }

    .tesime-section .lead {
        font-size: 15px;
    }
}


/* =========================================================
   MALÝ TELEFON – DO 430 PX
   ========================================================= */

@media (max-width: 430px) {

    .hero h1 {
        font-size: 42px;

        white-space: normal;
        flex-wrap: nowrap;
    }

    .rings {
        width: 32px;
        height: 32px;
    }

    .rings-divider {
        gap: 7px;
    }

    .rings-divider .line {
        width: 75px;
    }

    .countdown div {
        min-width: 70px;
    }

    .countdown span {
        font-size: 32px;
    }

    .countdown small {
        font-size: 9px;

        letter-spacing: 1.5px;
    }

    .content-section {
        padding: 50px 18px 60px;
    }

    #obrad h2 {
        font-size: 32px;
    }

    #obrad .location-info {
        font-size: 16px;
    }

    #obrad .map {
        height: 220px;
    }
}


/* =========================================================
   NOTEBOOK – MENŠÍ VÝŠKA OBRAZOVKY
   ========================================================= */

@media (min-width: 769px) and (max-height: 850px) {

    .hero {
        padding: 20px 25px 15px;

        justify-content: center;
    }

    .hero h1 {
        font-size: clamp(42px, 4.8vw, 58px);

        line-height: 1;

        margin-bottom: 5px;
    }

    .rings-divider {
        margin: 2px 0;

        gap: 12px;
    }

    .rings-divider .line {
        width: 85px;
        height: 1px;
    }

    .rings {
        width: 38px;
        height: 38px;
    }

    .castle {
        width: min(210px, 38vw);
        max-height: 100px;

        margin: 0 auto 5px;
    }

    .date {
        margin-top: 2px;

        font-size: 25px;
    }

    .countdown-title {
        margin-top: 8px;
    }

    .countdown {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .content-section {
        padding: 35px 25px 60px;
    }

    .content-section h2 {
        font-size: 42px;
    }

    #obrad h2 {
        font-size: 34px;

        margin-bottom: 8px;
    }

    #obrad .location-info {
        font-size: 18px;
    }

    #obrad .map {
        height: 210px;

        margin: 14px auto 12px;
    }

    .map-button {
        padding: 8px 22px;
    }

    .scroll-arrow {
        bottom: 18px;
    }


    /* RSVP */

    .rsvp-form {
        margin-top: 14px;

        gap: 5px;
    }

    .rsvp-form label {
        margin-top: 3px;

        font-size: 11px;
    }

    .rsvp-form input,
    .rsvp-form select,
    .rsvp-form textarea {
        padding: 8px 11px;

        font-size: 14px;
    }

    .rsvp-form textarea {
        min-height: 55px;
    }

    .rsvp-button {
        margin-top: 10px;

        padding: 9px 24px;
    }
}
