:root {
    --primary-color: #6a8a82;
    --secondary-color: #d4b483;
    --text-color: #333;
    --background-color: #fdfdfd;
    --light-gray: #f4f4f4;
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
    scroll-behavior: smooth;
}

/* Top announcement bar */
.announcement-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(106, 138, 130, 0.92); /* primary */
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.announcement-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.announcement-text {
    font-size: 0.95rem;
    line-height: 1.3;
}

.announcement-link {
    display: inline-block;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.announcement-link:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    text-decoration: none;
}

@media (max-width: 640px) {
    .announcement-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

section {
    padding: 60px 0;
    text-align: center;
}

.alternate-bg {
    background-color: var(--light-gray);
}


/* Hero Section */
.hero {
    color: white;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0;
}

.hero p {
    font-size: 2rem;
}

.hero .date {
    font-size: 3rem;
    font-weight: 300;
}

/* Sposi Section */
.sposi-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 40px;
}

.sposo-card {
    width: 45%;
}

.sposo-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-placeholder iframe {
    margin-top: 20px;
    border-radius: 5px;
    max-width: 100%;
}

/* Location Section */
.location-section h3 {
    color: var(--primary-color);
}

.map-placeholder a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.map-placeholder a:hover {
    background: var(--secondary-color);
}

/* RSVP Section */
.btn-rsvp {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background 0.3s;
}

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

/* Footer */
footer {
    background: var(--text-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}


/* Responsive */
@media(max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav a {
        padding: 5px 0;
    }
    
    .hero {
        background-position: 75% center; /* Adjusts hero image to show both faces on mobile */
    }

    .hero h1 {
        font-size: 3rem;
    }

    .sposi-container {
        flex-direction: column;
        align-items: center;
    }
    
    .sposo-card {
        width: 80%;
        margin-bottom: 20px;
    }
}

/* Animations on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.iban-copy {
    cursor: copy;
    -webkit-user-select: all; /* Chrome, Safari, Opera */
    -moz-user-select: all; /* Firefox */
    -ms-user-select: all; /* Internet Explorer/Edge */
    user-select: all; /* Non-prefixed version, currently supported by Chrome, Opera and Firefox */
}
