/* ===================================================
   WEDDING WEBSITE — STYLE
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --clr-bg:       #faf8f5;
    --clr-surface:  #ffffff;
    --clr-text:     #2c2c2c;
    --clr-text-light: #6b6b6b;
    --clr-accent:   #b08d6e;
    --clr-accent-dark: #8c6d50;
    --clr-gold:     #c9a96e;
    --clr-dark:     #1a1a1a;
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body:    'Montserrat', 'Helvetica Neue', sans-serif;
    --gap:          clamp(1rem, 3vw, 3rem);
    --radius:       12px;
    --transition:   0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background: var(--clr-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

.container {
    width: min(90%, 1100px);
    margin: 0 auto;
}

/* ---------- Section titles ---------- */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 0.25em;
    letter-spacing: 0.02em;
    color: var(--clr-text);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    text-align: center;
    color: var(--clr-text-light);
    margin-bottom: 3rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ---------- Scroll-reveal animation ---------- */
[data-aos] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================
   NAVIGATION
   =================================================== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    padding: 0.6rem 0;
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.nav-inner {
    width: min(92%, 1200px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.08em;
    transition: color var(--transition);
}
#navbar.scrolled .nav-logo { color: var(--clr-text); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    position: relative;
    transition: color var(--transition);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--clr-accent);
    transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
#navbar.scrolled .nav-links a { color: var(--clr-text); }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: background var(--transition), transform 0.3s;
}
#navbar.scrolled .nav-toggle span { background: var(--clr-text); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 70vw; height: 100vh;
        flex-direction: column;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease;
        box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    }
    .nav-links.open { right: 0; }
    .nav-links a { color: var(--clr-text) !important; font-size: 1rem; }
}

/* ===================================================
   HERO
   =================================================== */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}
.hero-slideshow img.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.5) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
}

.hero-pretext {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s 0.3s forwards;
}

.hero-names {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s 0.6s forwards;
}
.hero-names span {
    display: inline-block;
    font-style: italic;
    font-weight: 300;
    color: var(--clr-gold);
    margin: 0 0.2em;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s 0.9s forwards;
}

.hero-date-line {
    display: block;
    width: 60px; height: 1px;
    background: rgba(255,255,255,0.5);
}

.hero-date-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-scroll-btn {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    animation: bounce 2s infinite 2s;
    z-index: 2;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}

/* ===================================================
   COUNTDOWN
   =================================================== */
#countdown {
    padding: 4rem 0;
    background: var(--clr-surface);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    flex-wrap: wrap;
}

.countdown-item { text-align: center; }

.countdown-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    color: var(--clr-accent);
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-text-light);
    margin-top: 0.5rem;
    display: block;
}

/* ===================================================
   STORY
   =================================================== */
#story {
    padding: 6rem 0;
    background: var(--clr-bg);
}

.story-timeline {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.story-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.story-card:nth-child(even) { direction: rtl; }
.story-card:nth-child(even) > * { direction: ltr; }

.story-card-img {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.story-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.story-card:hover .story-card-img img { transform: scale(1.03); }

.story-card-body { padding: 1rem 0; }

.story-date {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.story-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.story-card-body p {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .story-card { grid-template-columns: 1fr; gap: 1.5rem; }
    .story-card:nth-child(even) { direction: ltr; }
}

/* ===================================================
   PARALLAX DIVIDER
   =================================================== */
.parallax-divider {
    position: relative;
    height: 50vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .parallax-divider { background-attachment: scroll; }
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.parallax-quote {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 2rem;
    text-align: center;
}

.parallax-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 300;
    font-style: italic;
    color: #fff;
    line-height: 1.6;
}

/* ===================================================
   DETAILS
   =================================================== */
#details {
    padding: 6rem 0;
    background: var(--clr-surface);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.detail-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
}
.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.detail-icon {
    width: 48px; height: 48px;
    margin: 0 auto 1.5rem;
    color: var(--clr-accent);
}
.detail-icon svg { width: 100%; height: 100%; }

.detail-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.detail-time {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--clr-accent);
    margin-bottom: 0.3rem;
}

.detail-venue {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
}

.detail-address {
    font-size: 0.85rem;
    color: var(--clr-text-light);
    margin-bottom: 1rem;
}

.detail-map-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-accent);
    transition: color var(--transition);
}
.detail-map-link:hover { color: var(--clr-accent-dark); }

/* ===================================================
   SCHEDULE
   =================================================== */
#schedule {
    padding: 6rem 0;
    background: var(--clr-bg);
}

.schedule-list {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.schedule-list::before {
    content: '';
    position: absolute;
    left: calc(100px + 1rem);
    top: 0; bottom: 0;
    width: 1px;
    background: rgba(0,0,0,0.1);
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem 0;
    position: relative;
}

.schedule-time {
    flex-shrink: 0;
    width: 100px;
    text-align: right;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--clr-accent);
    padding-top: 0.15rem;
}

.schedule-dot {
    flex-shrink: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid var(--clr-accent);
    background: var(--clr-bg);
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.schedule-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.schedule-info p {
    font-size: 0.9rem;
    color: var(--clr-text-light);
}

@media (max-width: 600px) {
    .schedule-list { padding-left: 0; }
    .schedule-list::before { left: calc(60px + 1rem); }
    .schedule-time { width: 60px; font-size: 1.1rem; }
    .schedule-item { gap: 1rem; }
}

/* ===================================================
   RSVP
   =================================================== */
#rsvp {
    padding: 6rem 0;
    background: var(--clr-surface);
}

.rsvp-content {
    text-align: center;
}

.rsvp-text {
    font-size: 1.05rem;
    color: var(--clr-text-light);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.rsvp-btn {
    display: inline-block;
    padding: 1.4rem 4rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-surface);
    background: var(--clr-accent);
    border: 2px solid var(--clr-accent);
    border-radius: 50px;
    transition: background var(--transition), color var(--transition);
}
.rsvp-btn:hover {
    background: transparent;
    color: var(--clr-accent);
}

.rsvp-note {
    font-size: 0.85rem;
    color: var(--clr-text-light);
    margin-top: 1.5rem;
}

/* ===================================================
   EXTRAS
   =================================================== */
#extras {
    padding: 6rem 0;
    background: var(--clr-bg);
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.extra-card {
    padding: 2rem;
    background: var(--clr-surface);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}
.extra-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.extra-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--clr-accent);
}

.extra-card p {
    font-size: 0.9rem;
    color: var(--clr-text-light);
    line-height: 1.7;
}

/* ===================================================
   COMING SOON
   =================================================== */
.coming-soon {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--clr-accent);
    margin-bottom: 0.75rem;
}

.coming-soon-joke {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--clr-text-light);
    line-height: 1.7;
    opacity: 0.7;
}

.coming-soon-section {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================================
   FOOTER
   =================================================== */
#footer {
    padding: 5rem 0;
    background: var(--clr-dark);
}

.footer-content {
    text-align: center;
    color: #fff;
}

.footer-names {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.footer-date {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1rem;
}

.footer-love {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--clr-gold);
}
