/* ===================================
   Bruiloft Lotte & Sven
   Wit / Crème met tekening-stijl
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #FAF8F3;
    --color-bg-alt: #F3F0E8;
    --color-text: #1B3A5C;
    --color-text-light: #5A7A9A;
    --color-accent: #2B5A8A;
    --color-accent-dark: #1B3A5C;
    --color-line: #C8D4DE;
    --color-white: #FFFFFF;
    --color-ink: #1B3A5C;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Josefin Sans', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-accent-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-text);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Container --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--color-bg);
    overflow: hidden;
    text-align: center;
    padding: 2rem;
}

/* Hero does not need corner decorations anymore, Amsterdam scene is below */

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-date-small {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-names {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.hero-names .amp {
    font-style: italic;
    font-weight: 300;
    display: inline-block;
    margin: 0 0.3em;
    opacity: 0.6;
    font-size: 0.7em;
    vertical-align: middle;
}

.hero-line {
    width: 60px;
    height: 1px;
    background-color: var(--color-line);
    margin: 1.5rem auto;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

/* --- Countdown --- */
.countdown {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-top: 0.4rem;
}

/* --- Scroll Hint --- */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    color: var(--color-line);
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ===================================
   Navigation
   =================================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-line);
}

.nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0;
    flex-wrap: wrap;
}

.nav a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
    transition: color 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--color-accent-dark);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--color-text);
}

.nav a:hover::after {
    width: 30px;
}

.nav a.active {
    color: var(--color-text);
}

.nav a.active::after {
    width: 30px;
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
}

/* --- Section Divider (small boat) --- */
.section-illustration {
    /* defined in Amsterdam Illustration section */
}

/* ===================================
   Timeline
   =================================== */
.timeline {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--color-line);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.3rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1.5px solid var(--color-accent);
    background-color: var(--color-bg);
    transform: translateX(-50%);
}

.timeline-time {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-accent-dark);
    min-width: 60px;
    flex-shrink: 0;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ===================================
   Location
   =================================== */
.location-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-info {
    text-align: center;
}

.location-icon {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.location-info h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.location-address {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.location-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.location-map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-line);
}

.location-map iframe {
    display: block;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 1px solid var(--color-accent);
    color: var(--color-accent-dark);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-white);
}

.btn-primary {
    background-color: var(--color-accent-dark);
    color: var(--color-white);
    border: 1px solid var(--color-accent-dark);
    width: 100%;
    padding: 1rem;
    font-size: 0.8rem;
}

.btn-primary:hover {
    background-color: var(--color-text);
    border-color: var(--color-text);
}

/* ===================================
   Info Cards
   =================================== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border: 1px solid var(--color-line);
    background-color: var(--color-white);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(27, 58, 92, 0.08);
}

.info-card-icon {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.info-card a {
    text-decoration: underline;
    text-decoration-color: var(--color-line);
    text-underline-offset: 2px;
}

/* ===================================
   Gifts
   =================================== */
.gift-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.gift-icon {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.gift-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.gift-details {
    display: inline-block;
    text-align: left;
    padding: 1.5rem 2.5rem;
    border: 1px solid var(--color-line);
    background-color: var(--color-white);
}

.gift-details p {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--color-text-light);
}

.gift-details strong {
    color: var(--color-text);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ===================================
   Gallery
   =================================== */
.gallery-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    border: 1px dashed var(--color-line);
    color: var(--color-text-light);
}

.gallery-placeholder svg {
    margin-bottom: 1rem;
    color: var(--color-line);
}

.gallery-placeholder p {
    font-size: 0.85rem;
}

.gallery-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 3/4;
    border: 1px solid var(--color-line);
    max-width: 400px;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===================================
   RSVP Form
   =================================== */
.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%235A7A9A' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* --- Radio Buttons --- */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label.radio-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--color-line);
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--color-accent-dark);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent-dark);
}

/* --- Form Message --- */
.form-message {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.form-message.show {
    opacity: 1;
}

.form-message.success {
    color: #2B5A8A;
}

.form-message.error {
    color: #A05050;
}

/* ===================================
   Footer
   =================================== */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-line);
}

.footer .amsterdam-scene {
    /* Already defined in Amsterdam Illustration section */
}

.footer-names {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 0.3rem;
}

.footer-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.footer-heart {
    color: var(--color-accent);
}

/* ===================================
   Amsterdam Illustration
   =================================== */
.amsterdam-scene {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-ink);
    opacity: 0.55;
}

.amsterdam-scene svg {
    width: 100%;
    height: auto;
}

.amsterdam-scene img {
    width: 100%;
    height: auto;
    display: block;
}

.hero .amsterdam-scene {
    margin-top: 2.5rem;
    opacity: 0.7;
    max-width: 600px;
    overflow: hidden;
}

.hero .amsterdam-scene img {
    /* Crop: show only the bottom illustration part (grachtenpand, boot, brug) */
    /* Hide the top text ("Lotte & Sven", date) and bottom text ("Champagne. Cheers!") */
    margin-top: -42%;
    margin-bottom: -15%;
}

.footer .amsterdam-scene {
    margin-bottom: 1.5rem;
    max-width: 500px;
    opacity: 0.35;
}

/* --- Section Illustration (champagne image divider) --- */
.section-illustration {
    max-width: 160px;
    margin: 0 auto 1rem;
}

.section-illustration .champagne-img {
    width: 100%;
    height: auto;
    opacity: 0.5;
}

/* ===================================
   Animations
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .amsterdam-scene {
        max-width: 90%;
    }

    .hero {
        min-height: 100svh;
        padding: 1.5rem;
    }

    .hero-subtitle {
        margin-bottom: 2rem;
    }

    .location-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .info-card {
        padding: 2rem 1.5rem;
    }

    /* Nav: horizontal scroll on mobile */
    .nav ul {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav ul::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        padding: 0.8rem 1rem;
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .countdown {
        gap: 1.2rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gift-details {
        padding: 1.2rem 1.5rem;
    }

    .gift-text {
        font-size: 0.9rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .timeline-item {
        padding-bottom: 2rem;
    }

    /* Ensure touch targets are large enough */
    .radio-label {
        padding: 0.5rem 0;
        min-height: 44px;
    }

    .btn-primary {
        padding: 1rem;
        font-size: 0.8rem;
        min-height: 48px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.9rem 1rem;
    }

    .footer {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .amsterdam-scene {
        max-width: 100%;
    }

    .hero {
        padding: 1rem;
    }

    .hero-names {
        font-size: 2.5rem;
    }

    .hero-date-small {
        font-size: 0.75rem;
        letter-spacing: 0.3em;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .countdown {
        gap: 0.8rem;
    }

    .countdown-number {
        font-size: 1.6rem;
    }

    .countdown-item {
        min-width: 55px;
    }

    .countdown-label {
        font-size: 0.6rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    .section-illustration {
        max-width: 100px;
    }

    .container {
        padding: 0 1rem;
    }

    .nav a {
        padding: 0.7rem 0.8rem;
        font-size: 0.6rem;
        letter-spacing: 0.15em;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-time {
        font-size: 1.1rem;
        min-width: 50px;
    }

    .timeline-content h3 {
        font-size: 1.05rem;
    }

    .timeline-item {
        gap: 1rem;
        padding-bottom: 1.8rem;
    }

    .location-info h3 {
        font-size: 1.3rem;
    }

    .info-card {
        padding: 1.5rem 1.2rem;
    }

    .gift-details {
        padding: 1rem 1.2rem;
    }

    .scroll-hint {
        bottom: 1rem;
    }

    .footer-names {
        font-size: 1.2rem;
    }
}
