:root {
    --blush-light: #ecd8e0;
    --blush: #ecb1c0;
    --rose: #c75c71;
    --burgundy: #791127;
    --wine: #560f20;
    --white: #ffffff;
    --text-color: #333333;
    --bg-off-white: #fcfcfc;
    --bg-light-gray: #f4f4f4;
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-off-white);
    line-height: 1.6;
    padding-top: var(--nav-height);
}

.navbar {
    background-color: var(--wine);
    height: var(--nav-height);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    width: 100%;
    max-width: 95%;
    padding: 0 20px;
}

.nav-logo {
    color: var(--blush-light);
    font-family: 'Lato', serif;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-logo img {
    height: 30px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
    gap: 2.5rem;
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
    padding: 0 4px; 
}

.nav-link:hover {
    color: var(--blush);
}

.btn-rsvp {
    border: 1px solid var(--blush);
    padding: 8px 16px;
    border-radius: 4px;
}

.btn-rsvp:hover {
    background-color: var(--blush);
    color: var(--wine);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 3px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--wine);
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 50px;
}

section {
    padding: 80px 20px;
    max-width: 80%;
    margin: 0 auto;
}

img {
    max-width: 100%;
    border-radius: 4px;
    display: block;
}

.hero {
    height: 95vh;
    background: url('../images/hero.jpeg') no-repeat center top;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0;
    max-width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    margin-top: -80px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: -20px;
}

.wedding-date-design {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    color: var(--white);
}

.date-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 80px;
}

.day-month {
    font-size: 1.5rem;
    padding: 5px 0;
    letter-spacing: 2px;
}

.line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
}

.date-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.heroYear {
    font-size: 4rem;
    margin-bottom: 10px;
}

.heroTime {
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--white);
    font-family: 'Playfair Display', serif;
}

.countdown {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    min-width: 100px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    font-family: 'Playfair Display', serif;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
    text-align: justify;
}

.about-img {
    flex: 1;
}

.about-img img {
    box-shadow: 15px 15px 0px var(--blush-light);
    max-width: 80%;
}

.signs {
    text-align: center;
    margin-top: 20px;
}

.signs img {
    max-width: 280px;
    margin: 0 auto;
}

.info-section {
    background-color: var(--bg-light-gray);
    max-width: 100%;
    width: 100%;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 80%;
    margin: 0 auto;
}

.info-card {
    background: var(--white);
    text-align: justify;
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--burgundy);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.thanks-img {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.thanks-img img {
    height: 40px;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.accommodation-list {
    list-style: none;
    padding: 0;
}

.accommodation-list li {
    margin-bottom: 0.5rem;
}

.small-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.location-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-direction: row-reverse;
}

.map-container {
    flex: 1;
    height: 300px;
    max-width: 450px;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.location-text {
    flex: 1;
}

.location-details {
    list-style: none;
    margin: 20px 0;
}

.location-details li {
    margin-bottom: 10px;
}

.castle-img {
    max-width: 100%;
    margin-top: 40px;
}

.schedule {
    width: 100%;
    max-width: 100%;
    text-align: center;
    background-color: var(--bg-light-gray);
}

.schedule-image {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.schedule-image img {
    max-width: 700px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.rsvp-section {
    width: 100%;
    max-width: 100%;
    background-color: var(--white);
    text-align: center;
    border-top: 1px solid #eee;
}

.rsvp-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.rsvp-container iframe {
    overflow: hidden;
    width: 100%;
    height: 1100px;
}

footer {
    background-color: var(--wine);
    color: var(--blush-light);
    text-align: center;
    padding: 25px 20px;
    font-size: 0.95rem;
}

.footer-hashtag {
    margin-top: 18px;
    color: var(--rose);
    letter-spacing: 0.08em;
    line-height: 1.5;
}

.footer-hashtag a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.footer-hashtag a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.footer-hashtag a:hover::after {
    width: 100%;
}

.footer-img {
    height: 50px;
    display: block;
    margin: 12px auto;
    margin-bottom: 0;
}

/* --- RESPONZIVITA --- */

@media (max-width: 992px) {
    section {
        max-width: 90%;
    }
    .about-container, 
    .location-inner {
        gap: 2rem;
    }
    .map-container {
        width: 100%;
        height: 300px;
        margin: 0 auto;
    }
    .nav-menu {
        gap: 1.5rem;
    }
    .schedule-image img {
        max-width: 75%;
    }
}

@media (max-width: 870px) {
    .location-inner {
        flex-direction: column-reverse;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    section {
        max-width: 95%;
        padding: 50px 15px;
    }
    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .hero h1 { font-size: 2.5rem; }
    .wedding-date-design { gap: 10px; }
    .date-side { width: 50px; }
    .day-month { font-size: 1rem; }
    .heroYear { font-size: 3rem; }
    .heroTime { font-size: 1.2rem; }
    .countdown {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .countdown-item {
        flex: 1 1 40%;
        min-width: unset;
        padding: 0.8rem;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        flex-direction: column;
        background-color: var(--wine);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.3);
        padding: 20px 0;
        gap: 1.5rem;
        height: calc(100vh - var(--nav-height));
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-text {
        text-align: center;
    }
    .about-img img {
        max-width: 50%;
        margin: 0 auto;
        box-shadow: 10px 10px 0px var(--blush-light);
    }
    .signs img {
        max-width: 200px;
    }
    .location-text {
        text-align: center;
    }
    .schedule-image img {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .heroYear {
        font-size: 2.5rem;
    }
    .about-img img {
        max-width: 80%;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .map-container {
        height: 250px;
    }
}
