/* Brand palette (from guideline) */
:root {
    --night: #0E131E;
    --stone: #EDE5CF;
    --lavender: #C2B5E9;
    --terracotta: #B55437;
    --ocher: #D08639;
    --grass: #5C5C21;
    --dark-earth: #604331;
    --light-earth: #BB957E;
}

/* Base reset */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--night);
    color: var(--stone);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wrap {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.container {
    width: min(960px, 92vw);
    margin: 0 auto;
    padding: 24px 0 48px;
}

header {
    display: grid;
    justify-items: center;
    text-align: center;
    row-gap: 16px;
    padding: 20px 0 8px;
}

/* Sonido page header background */
.sonido-header {
    /* Fallback JPG for browsers without image-set support */
    background-image: url('sonido/banner.jpg');
    /* Prefer WebP when supported */
    background-image: image-set(url('sonido/banner.webp') type('image/webp') 1x,
            url('sonido/banner.jpg') type('image/jpeg') 1x);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    /* Layout & spacing */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 20px 20px 24px;
    min-height: 260px;
}

/* Add some vertical space so the background is visible */
.sonido-header .event-title,
.sonido-header .event-subtitle,
.sonido-header .event-date {
    /* Add subtle text shadow for legibility over image */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Typography and placement for header text over banner */
.sonido-header .event-title {
    margin: 0 0 6px;
    margin-top: auto; /* push the text block to the bottom */
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: bolder;
    font-size: clamp(40px, 9vw, 72px);
}

.sonido-header .event-subtitle {
    margin: 0 0 6px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    font-size: clamp(14px, 2.2vw, 18px);
}

.sonido-header .event-date {
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    font-size: clamp(13px, 2vw, 16px);
}

@media (min-width: 768px) {
    .sonido-header {
        padding: 24px 24px 28px;
        min-height: 360px;
    }
}

/* Solid nav buttons over banner */
.sonido-header .logo-link,
.sonido-header .icon-link {
    background: var(--night);
    border-color: color-mix(in srgb, var(--stone) 35%, transparent);
}

.sonido-header .logo-link:hover,
.sonido-header .icon-link:hover {
    background: var(--lavender);
    border-color: var(--lavender);
}

.sonido-header .icon-link:hover svg {
    fill: var(--night);
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: min(960px, 92vw);
    margin-bottom: 20px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--stone) 22%, transparent);
    text-decoration: none;
    transition: transform .08s ease, border-color .2s ease, background .2s ease;
}

.logo-link:hover {
    transform: translateY(-1px);
    border-color: var(--lavender);
    background: color-mix(in srgb, var(--lavender) 10%, transparent);
}

.logo-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.brand img {
    width: 100px;
}

.brand .wordmark {
    letter-spacing: 0.04em;
    font-weight: 600;
    font-size: 24px;
}


.tagline {
    display: block;
    font-size: 13px;
    letter-spacing: 0.01em;
    text-transform: none;
    color: color-mix(in srgb, var(--stone) 65%, transparent);
}

/* Event page specific styles */
.event-title {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    color: var(--lavender);
    margin: 20px 0 8px;
    letter-spacing: -0.02em;
}

.event-subtitle {
    font-size: 18px;
    color: color-mix(in srgb, var(--stone) 75%, transparent);
    margin: 0 0 8px;
}

.event-date {
    font-size: 16px;
    color: var(--ocher);
    font-weight: 500;
    margin: 0;
}


.event-details {
    background: color-mix(in srgb, var(--stone) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--stone) 18%, transparent);
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
}

.event-details h3 {
    color: var(--lavender);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
}

.event-details p {
    margin: 0 0 12px;
    color: color-mix(in srgb, var(--stone) 85%, transparent);
}

.event-details p:last-child {
    margin-bottom: 0;
}

.socials {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--stone) 22%, transparent);
    text-decoration: none;
    transition: transform .08s ease, border-color .2s ease, background .2s ease;
}

.icon-link:hover {
    transform: translateY(-1px);
    border-color: var(--lavender);
    background: color-mix(in srgb, var(--lavender) 10%, transparent);
}

.icon-link svg {
    width: 20px;
    height: 20px;
    fill: var(--stone);
}

main {
    padding: 28px 0;
}

.hero {
    display: grid;
    gap: 20px;
    margin-bottom: 80px;
}

.hero p {
    font-size: clamp(18px, 2.4vw, 20px);
    color: color-mix(in srgb, var(--stone) 94%, transparent);
}
.blurb {
    font-size: clamp(18px, 2.4vw, 20px);
    color: color-mix(in srgb, var(--stone) 94%, transparent);
}

.blurb a {
    color: var(--lavender);
}

.blurb a:hover {
    color: color-mix(in srgb, var(--lavender) 80%, transparent);
}

.cta-card {
    margin-top: 14px;
}

form {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.rsvp-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    max-width: 400px;
    margin: 0 auto;
}

.rsvp-form .input {
    flex: 1;
}

.rsvp-form .submit {
    flex-shrink: 0;
    min-width: 100px;
}

@media (max-width: 480px) {
    .rsvp-form {
        flex-direction: column;
        align-items: stretch;
    }

    .rsvp-form .submit {
        min-width: auto;
    }
}
.row {
    display: grid;
    gap: 12px;
}

@media (min-width: 640px) {
    .row {
        grid-template-columns: 1fr 1fr;
    }
}

input,
button {
    font: inherit;
}

.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--stone) 30%, transparent);
    background: color-mix(in srgb, var(--stone) 4%, transparent);
    color: var(--stone);
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.input::placeholder {
    color: color-mix(in srgb, var(--stone) 45%, transparent);
}

.input:focus {
    border-color: var(--lavender);
    background: color-mix(in srgb, var(--stone) 7%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--lavender) 20%, transparent);
}

.submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--stone) 22%, transparent);
    background: var(--ocher);
    color: var(--night);
    font-weight: 650;
    cursor: pointer;
    transition: transform .08s ease, filter .2s ease;
}

.submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.fineprint {
    font-size: 12px;
    color: color-mix(in srgb, var(--stone) 65%, transparent);
}

footer {
    padding: 22px 0 36px;
    text-align: center;
    color: color-mix(in srgb, var(--stone) 55%, transparent);
    font-size: 13px;
}

/* Separator and intro before the stay-in-touch card */
.section-sep {
    margin: 28px 0 14px;
    border: none;
    border-top: 1px solid color-mix(in srgb, var(--stone) 18%, transparent);
}

.card-intro {
    margin: 0 0 10px;
    color: color-mix(in srgb, var(--stone) 85%, transparent);
    font-size: 15px;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--night) 85%, transparent);
    color: var(--stone);
    border: 1px solid color-mix(in srgb, var(--stone) 30%, transparent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    animation: bounce 2s infinite;
}

.fab.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.fab:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.fab:active {
    transform: translateX(-50%) translateY(0);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-3px);
    }
    60% {
        transform: translateX(-50%) translateY(-1px);
    }
}

@media (max-width: 640px) {
    .fab {
        bottom: 20px;
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}

/* Swiper Gallery Styles */
.image-carousel {
    margin: 40px 0;
}


.gallery-swiper {
    max-width: min(960px, 92vw);
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: color-mix(in srgb, var(--stone) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--stone) 18%, transparent);
}

.gallery-swiper .swiper-slide {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom Swiper navigation buttons */
.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--stone) 30%, transparent);
    background: color-mix(in srgb, var(--night) 90%, transparent);
    color: var(--stone);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.gallery-swiper .swiper-button-next:hover,
.gallery-swiper .swiper-button-prev:hover {
    background: color-mix(in srgb, var(--lavender) 20%, transparent);
    border-color: var(--lavender);
    transform: scale(1.05);
}

.gallery-swiper .swiper-button-next:after,
.gallery-swiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.gallery-swiper .swiper-button-prev {
    left: 16px;
}

.gallery-swiper .swiper-button-next {
    right: 16px;
}

/* Custom Swiper pagination */
.gallery-swiper .swiper-pagination {
    bottom: 16px;
}

.gallery-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: color-mix(in srgb, var(--stone) 40%, transparent);
    opacity: 1;
    transition: all 0.2s ease;
}

.gallery-swiper .swiper-pagination-bullet:hover {
    background: color-mix(in srgb, var(--stone) 60%, transparent);
    transform: scale(1.2);
}

.gallery-swiper .swiper-pagination-bullet-active {
    background: var(--lavender);
    transform: scale(1.2);
}

/* Mobile responsiveness for Swiper */
@media (max-width: 640px) {
    .gallery-swiper .swiper-slide {
        height: 350px;
    }

    .gallery-swiper .swiper-button-next,
    .gallery-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .gallery-swiper .swiper-button-next:after,
    .gallery-swiper .swiper-button-prev:after {
        font-size: 14px;
    }

    .gallery-swiper .swiper-button-prev {
        left: 12px;
    }

    .gallery-swiper .swiper-button-next {
        right: 12px;
    }

    .gallery-swiper .swiper-pagination {
        bottom: 12px;
    }

    .gallery-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 19, 30, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--night);
    border: 1px solid color-mix(in srgb, var(--stone) 20%, transparent);
    border-radius: 20px;
    max-width: 480px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--stone) 15%, transparent);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--lavender);
    margin: 0;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: color-mix(in srgb, var(--stone) 60%, transparent);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: color-mix(in srgb, var(--stone) 10%, transparent);
    color: var(--stone);
}

.modal-body {
    padding: 24px;
}

.modal-event-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--stone);
    margin: 0 0 8px;
}

.modal-event-date {
    font-size: 16px;
    color: var(--ocher);
    font-weight: 500;
    margin: 0 0 16px;
}

.modal-event-description {
    font-size: 15px;
    color: color-mix(in srgb, var(--stone) 85%, transparent);
    line-height: 1.5;
    margin: 0 0 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--lavender);
    color: var(--night);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
}

.modal-cta:hover {
    background: color-mix(in srgb, var(--lavender) 90%, transparent);
    transform: translateY(-1px);
}

.modal-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--stone) 30%, transparent);
    background: transparent;
    color: color-mix(in srgb, var(--stone) 70%, transparent);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-dismiss:hover {
    background: color-mix(in srgb, var(--stone) 8%, transparent);
    color: var(--stone);
    border-color: color-mix(in srgb, var(--stone) 50%, transparent);
}

/* Mobile responsiveness for modal */
@media (max-width: 640px) {
    .modal-content {
        width: 95vw;
        margin: 20px;
    }

    .modal-header {
        padding: 20px 20px 12px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .modal-cta,
    .modal-dismiss {
        width: 100%;
    }
}

/* Event Details Layout - Mobile First */
.event-details-content {
    display: flex;
    flex-direction: column;
}

.flyer-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 0 24px 0;
}

.event-flyer {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Desktop Enhancement */
@media (min-width: 768px) {
    .event-details {
        display: grid;
        grid-template-columns: 1fr 300px;
        grid-template-rows: auto 1fr;
        gap: 32px;
        align-items: start;
    }

    .event-details h3 {
        grid-column: 1;
        grid-row: 1;
    }

    .event-details-content {
        grid-column: 1;
        grid-row: 2;
    }

    .flyer-container {
        grid-column: 2;
        grid-row: 1 / -1;
        justify-content: flex-end;
        margin: 0;
    }

    .event-flyer {
        max-height: 350px;
        border-radius: 12px;
    }
}
