* {
    box-sizing: border-box;
}

:root {
    --blue: #4d78a8;
    --deep-blue: #2f507b;
    --pink: #e8a7bd;
    --soft-pink: #fff0f5;
    --cream: #fffaf8;
    --ink: #27313d;
    --muted: #707985;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Montserrat, sans-serif;
    font-weight: 400;
}

h1,
h2,
.menu-card strong,
footer div {
    font-family: "Cormorant Garamond", serif;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 92vh;
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #dceaf7 0%,
        #fff5f8 52%,
        #f4cfdd 100%
    );
}

.hero:before,
.hero:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.5;
}

.hero:before {
    width: 420px;
    height: 420px;
    background: #9fc0e5;
    left: -180px;
    top: -100px;
}

.hero:after {
    width: 500px;
    height: 500px;
    background: #efb3ca;
    right: -220px;
    bottom: -180px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        transparent 10%,
        rgba(255, 255, 255, 0.2) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    animation: fadeUp 1s ease;
}

.eyebrow,
.section-kicker {
    letter-spacing: 0.28em;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--deep-blue);
}

h1 {
    font-size: clamp(4.2rem, 13vw, 8.5rem);
    font-weight: 500;
    line-height: 0.82;
    margin: 25px 0;
    color: #29486e;
}

h1 span,
footer span {
    color: var(--pink);
}

.date {
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    color: #4c5967;
}

.welcome {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
    font-style: italic;
    margin: 28px 0 35px;
    color: #596775;
}


/* =========================
   BUTTONS
========================= */

.primary-btn,
.secondary-btn {
    display: inline-block;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    padding: 15px 27px;
    border-radius: 999px;
    font: 500 0.75rem Montserrat, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: 0.25s;
}

.primary-btn {
    background: var(--deep-blue);
    color: #fff;
    box-shadow: 0 10px 30px rgba(47, 80, 123, 0.2);
}

.primary-btn:hover {
    transform: translateY(-3px);
    background: #253f61;
}

.secondary-btn {
    border: 1px solid var(--deep-blue);
    color: var(--deep-blue);
    background: transparent;
}

.secondary-btn:hover {
    background: var(--deep-blue);
    color: #fff;
    transform: translateY(-2px);
}


/* =========================
   MENU
========================= */

.menu-section {
    padding: 90px 22px;
    background: #fff;
}

.menu-section > h2,
.section-inner > h2 {
    text-align: center;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 500;
    color: #314d70;
    margin: 8px 0 10px;
}

.section-intro,
.menu-section > .section-intro {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 45px;
    color: var(--muted);
    line-height: 1.8;
}

.menu-grid {
    max-width: 1050px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.menu-card {
    min-height: 165px;
    padding: 28px 20px;
    border: 1px solid #e7e8eb;
    border-radius: 22px;
    background: linear-gradient(145deg, #fff, #fdf7f9);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 8px 30px rgba(50, 70, 90, 0.04);
}

.menu-card:hover {
    transform: translateY(-6px);
    border-color: #d9b1c0;
    box-shadow: 0 18px 45px rgba(50, 70, 90, 0.1);
}

.menu-card .icon {
    font-size: 2rem;
    color: var(--pink);
    margin-bottom: 12px;
}

.menu-card strong {
    font-size: 1.55rem;
    font-weight: 600;
    color: #3b5574;
}

.menu-card small {
    color: #8a929b;
    margin-top: 6px;
    font-size: 0.72rem;
}

.accent-card {
    background: linear-gradient(145deg, #fdf0f5, #eef5fc);
    border-color: #d9e2ef;
}


/* =========================
   GENERAL SECTIONS
========================= */

.section {
    padding: 105px 22px;
}

.section:nth-of-type(even) {
    background: #fff;
}

.section-inner {
    max-width: 850px;
    margin: auto;
    text-align: center;
}


/* =========================
   STORY
========================= */

.story {
    background: linear-gradient(
        135deg,
        #fff5f8,
        #eef6ff
    );
}

.story .section-inner > p:last-child {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
    line-height: 1.8;
    color: #5e6975;
    max-width: 700px;
    margin: 25px auto;
}


/* =========================
   INFORMATION
========================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.info-box {
    padding: 28px 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e8e9ec;
}

.info-box span {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: #8b929b;
    margin-bottom: 10px;
}

.info-box strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    color: #385474;
}


/* =========================
   VENUE
========================= */

.venue {
    text-align: center;
    background: #f7fbff;
}

.placeholder {
    color: var(--muted);
    margin: 20px 0 30px;
}


/* =========================
   GALLERY
========================= */

.gallery {
    background: #fff;
}

.wide {
    max-width: 1100px;
}


/*
   Gallery layout
   All photos are now equal portrait images.
*/

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 35px;
}


/*
   Every gallery item is portrait.
   3:4 is a good portrait ratio.
*/

.photo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 0;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    background: #f8f8f8;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}


/*
   IMPORTANT:
   contain prevents the photo from being cropped.
*/

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f8f8f8;
    transition: transform 0.35s ease;
}


/*
   Subtle hover effect
*/

.photo-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(50, 70, 90, 0.12);
}

.photo-placeholder:hover img {
    transform: scale(1.03);
}


/*
   Disable the old tall/wide gallery behaviour.
*/

.photo-placeholder.tall,
.photo-placeholder.wide-photo {
    grid-row: auto;
    grid-column: auto;
}


/* Remove old nth-child sizing */

.photo-placeholder:nth-child(2),
.photo-placeholder:nth-child(6) {
    grid-row: auto;
}

.photo-placeholder:nth-child(4) {
    grid-column: auto;
}


/* Gallery note */

.upload-note {
    font-size: 0.72rem;
    color: #9299a1;
    margin-top: 20px;
}

code {
    font-family: monospace;
    color: #647e9e;
}


/* =========================
   ATTENDEES
========================= */

.attendees {
    background: linear-gradient(
        135deg,
        #fff5f8,
        #f3f8fd
    );
}

.attendee-search {
    max-width: 500px;
    margin: 30px auto 20px;
}

.attendee-search input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 999px;
    border: 1px solid #dce0e5;
    outline: 0;
    font: 400 0.85rem Montserrat;
    background: #fff;
}

.attendee-search input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(77, 120, 168, 0.08);
}

.guest-list {
    max-width: 650px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
}

.guest {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #ece8eb;
    border-radius: 14px;
    color: #52606d;
}

.guest span {
    font-size: 0.65rem;
    color: var(--pink);
    font-weight: 600;
    margin-right: 12px;
}


/* =========================
   RSVP
========================= */

.rsvp {
    background: #fff;
    text-align: center;
}

.rsvp p {
    color: var(--muted);
    margin: 20px 0 30px;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 55px 20px;
    text-align: center;
    background: #2f507b;
    color: #fff;
}

footer div {
    font-size: 2.2rem;
}

footer small {
    display: block;
    margin-top: 8px;
    opacity: 0.7;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}


/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 31, 45, 0.92);
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.lightbox.open {
    display: flex;
}

.lightbox-photo {
    width: min(800px, 80vw);
    height: min(75vh, 700px);
    border-radius: 18px;
    background: linear-gradient(
        145deg,
        #d8e7f5,
        #f5d9e3
    );
    display: grid;
    place-items: center;
    font: 2rem "Cormorant Garamond", serif;
    color: #45617e;

    overflow: hidden;
}


/*
   If the lightbox contains an image,
   show the complete image too.
*/

.lightbox-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.close-lightbox,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    color: #fff;
    cursor: pointer;
}

.close-lightbox {
    top: 25px;
    right: 30px;
    font-size: 2.4rem;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    width: 55px;
    height: 75px;
    border-radius: 14px;
}

.prev {
    left: 25px;
}

.next {
    right: 25px;
}


/* =========================
   FLOATING HEARTS
========================= */

.hearts span {
    position: fixed;
    z-index: 0;
    color: #fff;
    opacity: 0.5;
    font-size: 25px;
    animation: float 8s infinite linear;
}

.hearts span:nth-child(1) {
    left: 8%;
    top: 75%;
}

.hearts span:nth-child(2) {
    left: 22%;
    top: 20%;
    animation-delay: 2s;
}

.hearts span:nth-child(3) {
    right: 12%;
    top: 35%;
    animation-delay: 4s;
}

.hearts span:nth-child(4) {
    right: 25%;
    top: 80%;
    animation-delay: 1s;
}

.hearts span:nth-child(5) {
    left: 48%;
    top: 60%;
    animation-delay: 5s;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 760px) {

    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    /*
       Two portrait columns on mobile
    */

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .photo-placeholder {
        aspect-ratio: 3 / 4;
        border-radius: 14px;
    }

    .guest-list {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 88vh;
    }
}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 480px) {

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-card {
        min-height: 135px;
    }

    /*
       Keep two columns even on small phones
       for a modern wedding gallery.
    */

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .photo-placeholder {
        aspect-ratio: 3 / 4;
        border-radius: 12px;
    }

    h1 {
        font-size: 4.3rem;
    }

    .section {
        padding: 80px 18px;
    }

    .lightbox {
        padding: 15px;
    }

    .lightbox-photo {
        width: 90vw;
        height: 75vh;
        border-radius: 14px;
    }

    .lightbox-nav {
        width: 45px;
        height: 60px;
        font-size: 2.2rem;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}
/* =========================
   HERO VIDEO
========================= */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* Background video */

.hero-video {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: 0;
}


/* Dark layer over video */

.hero-overlay {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.45);

  z-index: 1;
}


/* Text and button */

.hero-content {
  position: relative;

  z-index: 2;

  text-align: center;
}


/* Mobile */

@media (max-width: 768px) {

  .hero {
    min-height: 100svh;
  }

  .hero-video {
    object-fit: cover;
  }

  .hero-overlay {
    background: rgba(0, 0, 0, 0.50);
  }

}