@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Moon+Dance&display=swap');

/* ================= VARIABLES ================= */

:root {
    --blue: #A1B6DA;
    --green: #457A6D;
    --pink: #E9929C;
    --orange: #EF8D59;
    --yellow: #F3BC60;
}

/* ================= GLOBAL ================= */

* {
    box-sizing: border-box;
    border-radius: 30px;
}

body {
    margin: 0;
    font-family: "Quicksand", sans-serif;
    font-size: 1.5rem;
    color: white;
    overflow-x: hidden;
    background-image: url("./assets/backgrounds/Pattern-24.jpg");
    background-size: 85%;
}

a {
    color: white;
    font-weight: 600;
    text-decoration: none;
}

/* ================= HEADER ================= */

.header-box {
    background-color: var(--blue);
    border: 12px solid var(--orange);
    width: 80%;
    margin: 30px auto;
    box-shadow: 20px 20px var(--yellow);
    padding: 20px;
    text-align: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-box img {
    width: 6vw;
    height: auto;
}

h1 {
    font-family: "Moon Dance", cursive;
    text-align: center;
    font-weight: bold;
    letter-spacing: 10px;
    margin: 10px 20px;
}

h2 {
    margin: 0;
    text-align: center;
    font-family: "Moon Dance", cursive;
}

/* ================= SECTION HEADERS ================= */

.section-header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5% 0;
}

.section-header-container div {
    height: 10px;
    flex-grow: 1;
    max-width: 400px;
    background-color: var(--blue);
    border-radius: 0;
}

.section-header {
    text-shadow: 1px 1px var(--pink);
    color: var(--blue);
    background-color: var(--yellow);
    border: 10px solid var(--blue);
    width: 50%;
    margin-left: 0;
    margin-right: 0;
}

/* ================= NAV (DESKTOP) ================= */

.nav-bar {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    padding: 14px 0;
    margin: 0;

    z-index: 1000;
}

.nav-button {
    background-color: var(--blue);
    border: 6px solid var(--yellow);
    box-shadow: 10px 10px var(--orange);

    padding: 10px 18px;
    min-width: 140px;
    text-align: center;
}

.nav-button a {
    font-size: 1rem;
    letter-spacing: 1px;
    display: block;
}

.nav-button:hover,
.nav-button:focus-within {
    background-color: var(--yellow);
}

.nav-button:hover a,
.nav-button:focus-within a {
    color: var(--blue);
}

/* Ensure content not hidden behind fixed nav */
main {
    padding-bottom: 120px;
}

/* ================= MOBILE DRAWER (BASE STATE) ================= */

/* Hidden by default — activated in responsive.css */
.drawer {
    display: none;
}

.drawer-toggle {
    display: none;
}

/* ================= CARDS ================= */

.card {
    background-color: var(--blue);
    border: 12px solid var(--orange);
    width: 90%;
    margin: 20px auto 80px;
    display: flex;
    align-items: center;
    overflow: hidden;

    animation-duration: 1s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
}

.card picture {
    width: auto;
}

.card picture img {
    width: auto;
    max-height: 500px;
    height: 65vh;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.card div {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card div p {
    width: 80%;
    text-align: center;
}

.card-left {
    box-shadow: 0 20px var(--pink), 20px 20px var(--pink);
    animation-name: slideInLeft;
    border-radius: 0 30px 30px 0;
}

.card-right {
    box-shadow: 20px 20px var(--pink);
    animation-name: slideInRight;
    border-radius: 30px 0 0 30px;
}

#who {
    animation: none !important;
    transform: translateX(-7%) !important;
    opacity: 1 !important;
}

#where .where-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-110%); }
    to   { opacity: 1; transform: translateX(-7%); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(110%); }
    to   { opacity: 1; transform: translateX(6%); }
}

/* ================= MAP ================= */

.where-content-wrapper {
    display: flex;
    flex-direction: row;
    padding: 0 20px;
}

.map-wrapper {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 3;
    margin: 20px auto;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================= WEDDING PARTY ================= */

.party-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
    margin: 0 auto;
}

.party-member-card {
    background-color: var(--yellow);
    border: 12px solid var(--blue);
    box-shadow: 20px 20px var(--pink);
    text-align: center;
    padding: 10px;
    margin: 20px 0;
}

/* ================= FAQ ================= */

.faq-accordian {
    border: 10px solid var(--yellow);
    width: 65%;
    margin: 0 auto 50px;
    box-shadow: 20px 20px var(--green);
    overflow: hidden;
}

.faq-accordian * {
    border-radius: 0;
    color: white;
    font-size: 1.5rem;
}

.accordion {
    background-color: var(--pink);
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
}

.accordion:hover {
    background-color: var(--blue);
}

.panel {
    padding: 18px;
    background-color: var(--orange);
    display: none;
}
