/*
 * Custom stylesheet replicating the look and feel of the original
 * Wix wedding website. Colour palette, typography and spacing have
 * been tuned to evoke the same soft, romantic atmosphere. The
 * layout uses modern CSS grid and flexbox so the page is fully
 * responsive on mobile devices as well as large screens.
 */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces/static/Fraunces_144pt-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces/static/Fraunces_144pt-Regular.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* CSS variables for colours and sizing */
:root {
    --colour-bg-light: #f4ebe8;   /* light beige background */
    --colour-bg-dark: #853117;   /* warm terracotta used for dark bands */
    --colour-primary: #853117;   /* primary text colour */
    --light-red: #a25a44;
    --colour-accent: #d2b4a2;    /* subtle accent for secondary backgrounds */
    --colour-white: #ffffff;
    --font-serif: "Barlow", "Fraunces", 'Playfair Display', 'Cormorant Garamond', serif;
    --font-sans: "Barlow", 'Montserrat', sans-serif;
    --font-weight: 400;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-serif);
    font-weight: var(--font-weight);
    color: var(--colour-primary);
    background: var(--colour-bg-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#landing-header {
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Top bar */
.top-bar {
    background: var(--colour-bg-dark);
    color: var(--colour-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    font-family: var(--font-serif);
}
.top-bar h1, h2 {
    /* font-size: 0.9rem; */
    font-weight: 300;
    font-size: 34px;
}
.top-bar a {
    color: var(--colour-white);
    text-decoration: none;
}
/* Hero section */
.hero {
    position: relative;
    text-align: center;
    padding: 80px 20px 100px;
    background: var(--colour-bg-light);
    overflow: hidden;
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.hero #hero-ring {
    position: absolute;
    top: 8%;
    left: 12%;
    transform: rotate(-16deg);
}
.hero #hero-cake {
    position: absolute;
    top: 12%;
    right: 11%;
    transform: rotate(16deg);
}
.hero #hero-cheers {
    position: absolute;
    bottom: 8%;
    left: 16%;
    transform: rotate(-16deg);
}
.hero #hero-video {
    position: absolute;
    bottom: 12%;
    right: 18%;
    transform: rotate(16deg);
}

.hero .names {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 150px;
    font-weight: 400;
    padding: 120px 0 30px 0;
}
.hero .divider {
    margin: 0 15px;
    color: var(--colour-primary);
}
.hero .date-line {
    margin-top: 40px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero .arrow {
    display: inline-block;
    position: relative;
    width: 120px;
    border-bottom: 2px solid var(--colour-primary);
}
.hero .arrow::before {
    content: "";
    position: absolute;
    left: -12px;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid var(--colour-primary);
}
.hero .hero-date {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 45px;
    margin-top: 25px;
}
.hero .hero-place {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 45px;
    margin-top: 5px;
    color: var(--colour-primary);
}

/* Decorative icons in hero */
.hero .icon {
    position: absolute;
    color: var(--colour-bg-dark);
    font-size: 2.8rem;
    opacity: 0.9;
}
@media (max-width: 768px) {
    audio {
        width: 240px;
    }
    .hero {
        /* height: calc(100vh - 70px); */
    }
    .hero .names {
        font-size: calc(50px + 2vw);
        padding: 20px 0 20px 0;
    }
    .hero .hero-icon {
        width: 60px;
        height: 60px;
    }
    .hero #hero-ring {
        position: absolute;
        top: 14%;
        left: 12%;
        transform: rotate(-16deg);
    }
    .hero #hero-cake {
        position: absolute;
        top: 12%;
        right: 11%;
        transform: rotate(16deg);
    }
    .hero #hero-cheers {
        position: absolute;
        bottom: 11%;
        left: 16%;
        transform: rotate(-16deg);
    }
    .hero #hero-video {
        position: absolute;
        bottom: 12%;
        right: 18%;
        transform: rotate(16deg);
    }
    .hero .hero-date {
        font-size: calc(26px + 2vw);
        margin-top: 20px;
    }
    .hero .hero-place {
        font-size: calc(26px + 2vw);
    }
}

/* Section titles */
.section-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

/* Schedule grid */
.schedule {
    background: var(--colour-white);
    padding: 60px 15px;
}
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    place-items: center;
    gap: 30px 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.sched-item {
    text-align: center;
}

/* Position first and last items differently */
.sched-item:nth-child(1),
.sched-item:nth-child(5)
 {
    /* justify-self: end; */
}

.sched-item:nth-child(7),
.sched-item:nth-child(3) {
    /* justify-self: start; */
}
.sched-item h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    margin: 0 0 5px;
}
.sched-item .time {
    font-family: var(--font-serif);
    font-size: 2.3rem;
    margin: 0;
}
.sched-item .subtitle {
    font-style: italic;
    font-size: 24px;
    margin-top: 4px;
}
.schedule-grid .diamond {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--colour-primary);
}
.schedule-grid .diamond.diamond-xs {
    display: none;
}
.schedule-grid .diamond::before {
    content: '\2734'; /* four pointed star/dot as diamond */
    font-family: 'Times New Roman', serif;
    font-size: 1.1rem;
}
.hidden {
    display: none;
}

@media (max-width: 760px) {
    .hidden {
        display: block;
    }
}

@media (max-width: 984px) {
    .schedule {
        padding: 40px 15px;
    }
    .schedule-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .sched-item:nth-child(1),
    .sched-item:nth-child(5)
    {
        justify-self: center;
    }

    .sched-item:nth-child(7),
    .sched-item:nth-child(3) {
        justify-self: center;
    }
    .schedule-grid  .diamond.diamond-xs {
        display: block;
    }
    .sched-item .subtitle {
        margin-bottom: 0;
    }
}


/* Venue section */
.venue {
    background: var(--colour-bg-light);
    padding: 60px 0;
    text-align: center;
    display: flex;
    flex-direction: row;
    max-width: 1100px;
    margin: 0 auto;
}
.venue > div{
    flex-basis: 50%;
}
.venue > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}
.venue h2 {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 42px;
    margin-top: 0;
    margin-bottom: 10px;
}
.venue .address {
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.4;
}
.venue .gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 10px;
    margin: 0 auto;
}
.venue .gallery img {
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}
.venue .pin {
    background-color: var(--light-red);
    border: 2px solid var(--light-red);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 5px;
}
@media (max-width: 864px) {
    .venue {
        flex-direction: column;
        padding: 10px 0;
    }
    .venue > div:first-child {
        margin-bottom: 20px;
    }
    .venue .gallery {
        grid-template-columns: repeat(3, minmax(100px, 1fr));
        margin: 20px;
    }
}
/* Quote section */
.quote {
    background-color: var(--light-red);
    color: var(--colour-white);
    text-align: center;
    padding: 60px 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin: 0 10px;
}
.quote .diamond {
    padding: 0 100px;
    font-style: normal;
}
.quote .diamond::before {
    content: '\2734'; /* four pointed star/dot as diamond */
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
}
/* .quote .diamond:last-of-type {
    margin-top: 50px;
    margin-bottom: -10px;
} */
@media (max-width: 864px) {
    .quote {
        padding: 20px;
    }
    .quote .fa-star-of-life {
        display: none;
    }
    .quote p span {
        display: block;
    }
}
/* About section */
.about {
    background: var(--colour-white);
    padding: 60px 15px;
    margin: 0 auto;
}
.about > div {
    max-width: 1100px;
    margin: 0 auto;
}
.about p {
    font-size: 24px;
    text-align: center;
    margin-bottom: 60px;
    margin-top: 0;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 8px;
}
.photo-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}

@media (max-width: 820px) {
    .about {
        padding: 20px;
        background-color: var(--colour-bg-light);
    }
    .info-card.assistance {
        background-color: var(--colour-white);
        color: var(--colour-primary);
    }
    .info-card.transport {
        background-color: var(--colour-white);
        color: var(--colour-primary);
    }

    .photo-grid {
        grid-template-columns: repeat(4, minmax(100px, 1fr));
    }
}
@media (max-width: 700px) {
    .photo-grid {
        grid-template-columns: repeat(3, minmax(100px, 1fr));
    }
}


/* Info two-column sections (transport/regal, assistance/fotos) */
.info-two {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}
.info-card {
    flex: 1 1 300px;
    padding: 40px 50px;
    /* box-sizing: border-box; */
    text-align: center;
}
.info-card h3 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 600;
    margin-top: 0;
}
.info-card p {
    margin-bottom: 1rem;
    font-size: 24px;
}
.transport {
    background: var(--colour-bg-light);
    color: var(--colour-primary);
    /* border-top: 3px solid white;
    border-right: 3px solid white; */
}
.gift {
    background: var(--colour-bg-light);
    /* border-bottom: 3px solid white;
    border-left: 3px solid white; */
}
.gift h3 {
    color: var(--colour-primary);
}
.info-card .iban {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
}
.info-card > p {
    text-decoration: none;
}
#iban-input {
    display: none;
}
.assistance {
    background: var(--light-red);
    color: var(--colour-white)  ;
    /* border-bottom: 3px solid white;
    border-right: 3px solid white; */
}
.photos {
    background: var(--light-red);
    color: var(--colour-white);
    /* border-top: 3px solid white;
    border-left: 3px solid white; */
}
.info-two .btn {
    display: inline-block;
    margin: 0 auto;
    background: var(--colour-white);
    color: var(--colour-primary);
    border: 2px solid var(--colour-primary);
    padding: 8px 18px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 30px;
    transition: background 0.2s;
    text-decoration: none;
}
.info-two .btn:hover {
    background: var(--colour-primary);
    color: var(--colour-white);
}
.info-card .coming-soon {
    font-style: italic;
    margin-bottom: 10px;
}
@media (max-width: 820px) {
    .photos {
        background: var(--colour-bg-light);
        color: var(--colour-primary);
    }
    .assistance {
        background: var(--light-red);
        color: var(--colour-white);
    }
    .transport {
        background: var(--light-red);
        color: var(--colour-white);
    }
}

/* Playlist section */
.playlist-section {
    background: var(--colour-white);
}
.playlist-section > div {
    margin: 0 auto;
    /* max-width: 1100px; */
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: 20px;
    text-align: center;
}
.playlist-section > div > div {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.playlist-section > div > div:first-child {
    /* padding: 20px; */
    box-sizing: content-box;
}
.playlist-section h3 {
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 0;
}
.playlist-section p {
    margin-bottom: 20px;
    font-size: 24px;
    padding: 0 10px;
}
.playlist-section iframe {
    border-radius: 12px;
    overflow: hidden;
    /* width: 500px; */
}
@media (max-width: 768px) {
    .playlist-section > div {
        flex-direction: column;
    }
    .playlist-section > div > div {
        /* padding: 20px 0; */
    }
    .playlist-section iframe {
        width: 100%;
    }
}

/* Gratitude section */
.gratitude {
    background: white;
    color: var(--colour-primary);
    text-align: center;
    padding: 20px;
    font-family: var(--font-serif);
    font-size: 26px;
}

@media (max-width: 768px) {
    .gratitude {
        background-color: var(--light-red);
        color: var(--colour-white);
    }
}

/* Countdown section */
.countdown-section {
    background: var(--colour-white);
    padding: 60px 15px 40px;
    text-align: center;
    background: var(--colour-bg-light);
}
.countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.count-item {
    background: var(--light-red);
    color: var(--colour-white);
    padding: 15px 20px;
    border-radius: 6px;
    min-width: 80px;
}
.count-item span {
    display: block;
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 600;
}
.count-item small {
    font-size: 30px;
}
.countdown-section .contacts {
    font-size: 30px;
    font-family: var(--font-serif);
    color: var(--colour-primary);
}
.countdown-section .contacts a {
    text-decoration: none;
    color: var(--colour-primary);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .playlist-section {
        padding: 50px 15px;
    }
    .gratitude {
        font-size: 30px;
    }
}
@media (max-width: 768px) {
    .info-two {
        flex-direction: column;
    }
    .info-card {
        padding: 30px 20px;
    }
    /* .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    } */
     .top-bar {
        padding: 20px;
     }
     .top-bar h1, h2 {
        margin: 0;
        font-size: 20px;
     }

    .hero .icon {
        font-size: 2.2rem;
    }
}

#custom-audio {
    width: 300px;
    display: flex;
    align-items: center;
}

#custom-audio #audio-button {
    color: var(--colour-primary);
    background-color: transparent;
    border: none;
    border-radius: 50%;
    transition: background-color 0.2s;
    font-size: 18px;
    padding: 10px;
    width: 45px;
    height: 45px;
    margin: 2px;
}
#custom-audio #audio-button:hover {
    background-color: var(--colour-accent);

    cursor: pointer;
}
#track-timeline {
    background-color: var(--colour-bg-light);
}

input[type=range] {
  height: 19px;
  -webkit-appearance: none;
  margin: 10px 0;
  width: 100%;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 0px 0px 0px #000000;
  background: #D2B4A2;
  border-radius: 5px;
  border: 0px solid #000000;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 1px 1px 1px #D2B4A2;
  border: 1px solid #853117;
  height: 11px;
  width: 11px;
  border-radius: 5px;
  background: #853117;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -1px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: #D2B4A2;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 0px 0px 0px #000000;
  background: #D2B4A2;
  border-radius: 5px;
  border: 0px solid #000000;
}
input[type=range]::-moz-range-thumb {
  box-shadow: 1px 1px 1px #D2B4A2;
  border: 1px solid #853117;
  height: 11px;
  width: 11px;
  border-radius: 5px;
  background: #853117;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  animate: 0.2s;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: #D2B4A2;
  border: 0px solid #000000;
  border-radius: 10px;
  box-shadow: 0px 0px 0px #000000;
}
input[type=range]::-ms-fill-upper {
  background: #D2B4A2;
  border: 0px solid #000000;
  border-radius: 10px;
  box-shadow: 0px 0px 0px #000000;
}
input[type=range]::-ms-thumb {
  margin-top: 1px;
  box-shadow: 1px 1px 1px #D2B4A2;
  border: 1px solid #853117;
  height: 11px;
  width: 11px;
  border-radius: 5px;
  background: #853117;
  cursor: pointer;
}
input[type=range]:focus::-ms-fill-lower {
  background: #D2B4A2;
}
input[type=range]:focus::-ms-fill-upper {
  background: #D2B4A2;
}
.bold {
    font-weight: 600;
}