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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.hero-section {
    background-color: #f7f4f1;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1100px;
    width: 100%;
}

.hero-photo {
    flex: 0 0 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-ring {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.photo-ring .ring {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-ring .band {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    /* create a gold band with a transparent center so the gem shows through */
    background: radial-gradient(circle at center, transparent 56%, #e8c46a 57%, #c99b2b 66%);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18), inset 0 6px 10px rgba(255,255,255,0.25);
    z-index: 3;
}

.photo-ring .gem {
    position: absolute;
    width: 58%;
    height: 58%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border: 6px solid rgba(255,255,255,0.85);
    background: #fff;
}

.photo-ring .gem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* diamond/stone sitting on top of the band */
.photo-ring .ring::after {
    content: '';
    position: absolute;
    top: -6%;
    right: 18%;
    width: 84px;
    height: 84px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #ffffff, #cfe8ff 40%, #a6c8ff 60%);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18), inset 0 -6px 14px rgba(255,255,255,0.6);
    z-index: 4;
    pointer-events: none;
}

/* smaller sparkle on diamond */
.photo-ring .ring::before {
    content: '';
    position: absolute;
    top: -2%;
    right: 30%;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.9);
    transform: rotate(45deg);
    border-radius: 2px;
    z-index: 5;
}

.hero-content {
    flex: 1;
    color: #2b2b2b;
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 4.2rem;
    color: #c98f1a;
    margin-bottom: 8px;
    letter-spacing: 2px;
    font-weight: 700;
}

/* underline exactly under the name: use h1::after so the line matches text width */
.hero-content h1 {
    display: inline-block;
    position: relative;
    margin-bottom: 18px;
}
.hero-content h1::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,#c99b2b,#f7df9a);
    border-radius: 3px;
    bottom: -12px;
}

.hero-content .wedding-date, .hero-content .wedding-location {
    font-size: 1.1rem;
    color: #6b4c2b;
    margin-bottom: 6px;
}

.hero-content .short-text {
    margin-top: 18px;
    font-size: 1.05rem;
    color: #4a3a2a;
}

.hero-content .countdown {
    margin-top: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2b2b2b;
}

.gold-separator {
    display: none; /* replaced by h1::after underline */
}

@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column-reverse;
        gap: 20px;
    }
    .photo-ring {
        width: 260px;
        height: 260px;
    }
    .photo-ring .ring::after {
        width: 60px;
        height: 60px;
        right: 20%;
        top: -8%;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.wedding-date, .wedding-location, .short-text {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.countdown {
    font-size: 1.5em;
    margin-top: 20px;
}

.sticky-nav {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sticky-nav ul {
    list-style: none;
    text-align: center;
}

.sticky-nav ul li {
    display: inline-block;
    margin: 0 15px;
}

.sticky-nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.sticky-nav ul li a:hover {
    color: #a0522d; /* Sienna for a wedding feel */
}

/* Nav toggle (hamburger) */
.nav-toggle{
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
}
.nav-toggle .hamburger{
    display: inline-block;
    width: 28px;
    height: 18px;
    position: relative;
}
.nav-toggle .hamburger span{
    display: block;
    height: 3px;
    background: #a0522d;
    border-radius: 2px;
    position: absolute;
    left: 0;
    right: 0;
    transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle .hamburger span:nth-child(1){ top: 0; }
.nav-toggle .hamburger span:nth-child(2){ top: 7.5px; }
.nav-toggle .hamburger span:nth-child(3){ bottom: 0; }

.sticky-nav.open .hamburger span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.sticky-nav.open .hamburger span:nth-child(2){ opacity: 0; }
.sticky-nav.open .hamburger span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 60px 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- Náš příběh --- */
.story-block {
    margin-bottom: 30px;
    text-align: center;
}
.story-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.story-gallery img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(160,82,45,0.08);
    transition: transform 0.3s;
}
.story-gallery img:hover {
    transform: scale(1.05);
}

/* --- Informace o svatebním dni --- */
.info-list {
    margin-bottom: 20px;
    list-style: none;
    text-align: center;
}
.timeline {
    margin: 0 auto 20px auto;
    max-width: 400px;
    padding-left: 20px;
}
.map-embed {
    margin: 20px auto;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(160,82,45,0.08);
}

/* --- Dress Code --- */
.dresscode-list {
    margin-bottom: 20px;
    list-style: none;
    text-align: center;
}
.dresscode-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.dresscode-gallery img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(160,82,45,0.08);
    transition: transform 0.3s;
}
.dresscode-gallery img:hover {
    transform: scale(1.05);
}

/* --- Dary & Přání --- */
.section-gifts p {
    text-align: center;
    font-size: 1.1em;
    color: #6b4c2b;
}

/* --- RSVP Form --- */
#rsvp-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f9f6f2;
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(160,82,45,0.08);
}
#rsvp-form label {
    font-weight: bold;
    color: #a0522d;
}
#rsvp-form input, #rsvp-form select, #rsvp-form textarea {
    padding: 8px;
    border: 1px solid #d3c6b3;
    border-radius: 4px;
    font-size: 1em;
}
#rsvp-form button {
    background: #a0522d;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}
#rsvp-form button:hover {
    background: #7a3a13;
}
#rsvp-message {
    margin-top: 10px;
    color: #2e7d32;
    font-weight: bold;
    text-align: center;
}

/* --- FAQ --- */
.faq-list {
    max-width: 600px;
    margin: 0 auto;
}
.faq-list dt {
    font-weight: bold;
    margin-top: 20px;
    color: #a0522d;
}
.faq-list dd {
    margin-left: 0;
    margin-bottom: 10px;
    color: #333;
}

/* --- Kontakty --- */
.contact-list {
    list-style: none;
    text-align: center;
    font-size: 1.1em;
    color: #6b4c2b;
}
.contact-list a {
    color: #a0522d;
    text-decoration: underline;
    transition: color 0.2s;
}
.contact-list a:hover {
    color: #7a3a13;
}

/* --- Animace a efekty --- */
section, .hero-content, .story-gallery img, .dresscode-gallery img, .map-embed, #rsvp-form {
    transition: box-shadow 0.3s, transform 0.3s;
}
section:hover, .hero-content:hover, .map-embed:hover, #rsvp-form:hover {
    box-shadow: 0 4px 16px rgba(160,82,45,0.13);
    transform: translateY(-2px) scale(1.01);
}
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #a0522d;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    margin-top: 40px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
        .hero-image-wrap {
            height: 35vh;
            max-height: 220px;
        }
        .hero-image {
            height: 35vh;
            max-height: 220px;
        }
    .sticky-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
    }

    .nav-toggle{
        display: inline-block;
    }

    .sticky-nav ul {
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    .sticky-nav.open ul {
        display: block;
    }

    .sticky-nav ul li {
        display: block;
        margin: 10px 0;
    }

    .sticky-nav ul li a {
        display: block;
        padding: 8px 0;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .wedding-date, .wedding-location, .short-text, .countdown {
        font-size: 1em;
    }

    section {
        padding: 40px 15px;
    }
    .story-gallery, .dresscode-gallery {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .story-gallery img, .dresscode-gallery img {
        width: 90vw;
        max-width: 300px;
        height: auto;
    }
    .map-embed iframe {
        height: 200px;
    }
    #rsvp-form {
        padding: 15px 5px;
    }
    .faq-list {
        padding: 0 5px;
    }
}