/* =========================================
   FONTS
========================================= */
@font-face {
    font-family: 'Antically';
    src: url(../fonts/Antically.ttf) format('truetype');
}

@font-face {
    font-family: 'Bulgary';
    src: url(../fonts/bulgary.ttf) format('truetype');
}

/* =========================================
   ROOT VARIABLES
========================================= */
:root {
    --gray: #6b6b6b;
    --gold: #907a4a;
    --regal-gold: #c09c46;
    --gold-brown: #81571e;
    --gold-yellow: #e3c160;
    --dark-gold: #3c2d05;
    --dark-brown: #2b1d07;
    --light-brown: #1b1814;
    --light-beige: #bcaa77;
    --dark-green: #0d2005;
    --green: #143a03;
    --gray-green: #49643d;
    --regal-green: #686e30;
    --brown-green: #5b5c37;
    --sage-green: #98ae87;
    --emerald-green: #10331e;
}

/* =========================================
   ROOT VARIABLES
========================================= */
* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Cormorant Garamond";
    color: var(--dark-green);
    line-height: 1.6;
    padding-bottom: 110px;
    background: url('../bg/bg7.jpg');
    background-size: cover;
    background-attachment: scroll;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

.hero-hero .bg {
    position: absolute;
    inset: 0;

    background-image: url('../pics/01.JPG');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);

    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.divider {
    height: 1px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    width: 80%;
}

.divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.names {
    font-family: "Antically";
    font-size: 1.8rem;
    letter-spacing: 5px;
    font-weight: 1000px;
    color: white;
    position: relative;
    animation: floatIn 1.2s ease-out;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

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

section {
    opacity: 0;
}

section.fade-in-visible {
    animation: fadeInUp 0.7s ease-out forwards;
}

.names .initial {
    font-size: 2em;
    display: inline-block;
    line-height: 1;
    margin-right: 2px;
}

.date {
    margin-top: -2rem;
    font-size: 1.2rem;
    font-weight: 1000px;
    letter-spacing: 0.2cm;
    color: white;
}

.hero-bottom {
    margin-bottom: 10vh;
}

.cta-btn {
    padding: 12px 26px;
    border: 1px solid white;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    background: var(--dark-gold);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn:active {
    transform: translateY(-1px);
}

/* =========================================
   CALENDAR POPUP
========================================= */

.calendar-popup {
    max-width: 480px;
}

.calendar-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.calendar-card {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    max-width: 320px;

    padding: 0.8rem 1.2rem;

    background: rgba(144, 122, 74, 0.08);
    border: 1px solid rgba(144, 122, 74, 0.25);
    border-radius: 50px;

    cursor: pointer;
    transition: all 0.3s ease;

    font-family: 'Cormorant Garamond', serif;
}

.calendar-card:hover {
    background: linear-gradient(135deg,
            var(--gold-yellow) 0%,
            var(--gold-brown) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--dark-green);
}

.calendar-icon {
    font-size: 1.3rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

.calendar-card:hover .calendar-icon {
    color: white;
}

.calendar-card h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--gold-brown);
    font-weight: 600;
}

.countdown-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.countdown-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    color: white;
}

.time-block {
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 5px 10px var(--dark-green);
    min-width: 5px;
    transition: transform 0.3s ease;
}

.time-block:hover {
    transform: translateY(-5px);
}

.time {
    font-family: "Playfair Display";
    font-size: 1.8rem;
    font-weight: 700px;
    line-height: 1;
}

.time-block p {
    margin-top: 8px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: white;
}

.attend-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.attend-number {
    font-family: "Playfair Display";
    font-size: 1.8rem;
    color: white;
}

.attend-label {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: white;
    text-transform: uppercase;
}


/* ----------------------------------------------------------
   SECTIONS
---------------------------------------------------------- */
section {
    padding: 2.5rem 1.5rem;
    border-bottom: 3px solid white;
}

.section-title {
    text-align: center;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 800px;
    color: var(--dark-brown);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.95rem;
    color: var(--gold-brown);
    position: relative;
    display: inline-block;
    margin-top: 0.3rem;
    margin-bottom: 1.2rem;
}

.section-main-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--dark-gold), var(--light-beige));
}

/* ----------------------------------------------------------
   ABOUT
---------------------------------------------------------- */
.about-card {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-card .bio {
    font-size: 1.12rem;
    color: var(--muted);
    line-height: 1.85;
}

.about-card .bio p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    margin-bottom: 1.4rem;
}

/* =========================================
   PORTRAIT SLIDER
========================================= */
.portrait-slider {
    position: relative;
    max-width: 520px;
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--dark-green);
}

/* All slides stack on top of each other */
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

/* First image determines height */
.slide:first-child {
    position: relative;
    opacity: 1;
}

/* Active image fades in */
.slide.active {
    opacity: 1;
}


/* ----------------------------------------------------------
   SCHEDULE 
---------------------------------------------------------- */

.events-slider {
    margin-top: 1rem;
    ;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 5px 10px var(--dark-green);
    background: linear-gradient(135deg, var(--light-beige) 0%, var(--gold) 50%, var(--gold-yellow) 100%);
    /*background: var(--gold-brown);*/
}

.events-tracker {
    display: flex;
    transition: transform 0.8s ease;
}

.event-card {
    flex: 0 0 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.event-content h4 {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    font-family: 'Bulgary', serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: white;
    letter-spacing: 3.5px;
    text-align: center;
}

.event-content .event-time {
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 800px;
    color: white;
    letter-spacing: 3.5px;
    text-align: center;
    display: block;
}

.event-content p {
    margin-bottom: auto;
    font-size: 1rem;
    color: white;
    line-height: 2.1;
    text-align: center;
}

/* ----------------------------------------------------------
   TIMELINE
---------------------------------------------------------- */
.timeline {
    margin: 40px auto 20px;
    width: 90%;
    max-width: 600px;
    height: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, var(--dark-brown), var(--dark-gold), var(--dark-brown));
    border-radius: 2px;
    position: relative;
}

.timeline button {
    position: relative;
    width: 24px;
    height: 24px;
    border: 3px solid var(--dark-brown);
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.timeline button:hover {
    transform: scale(1.2) translateY(-4px);
    box-shadow: 0 6px 16px rgba(139, 115, 85, 0.4);
    border-color: var(--dark-gold);
    animation: timelineBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline button.active {
    background: var(--dark-gold);
    border-color: var(--dark-gold);
    box-shadow: 0 4px 16px rgba(60, 45, 5, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(60, 45, 5, 0.4),
            0 4px 16px rgba(60, 45, 5, 0.3);
    }

    50% {
        box-shadow: 0 0 16px rgba(227, 193, 96, 0.6),
            0 4px 24px rgba(60, 45, 5, 0.5);
    }
}

@keyframes timelineBounce {

    0%,
    100% {
        transform: scale(1.2) translateY(-4px);
    }

    50% {
        transform: scale(1.3) translateY(-8px);
    }
}

@keyframes subtleBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.timeline-labels {
    margin: 16px auto 0;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-brown);
}

.timeline-labels span {
    width: 20%;
    display: inline-block;
    text-align: center;
    transition: color 0.3s ease, transform 0.3s ease;
    animation: subtleBounce 3s ease-in-out infinite;
}

/* ----------------------------------------------------------
   VENUE INFO
---------------------------------------------------------- */
.venue {
  margin: 2.2rem auto 0;
  width: min(92%, 430px);
  padding: 2.1rem 1.2rem 1.2rem;
  text-align: center;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.venue-head {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.venue-title {
  margin: 0 0 1.15rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.68rem;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-gold);
}

.venue-address {
  margin: 0 0 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.085rem;
  line-height: 1.75;
  font-weight: 700;
  color: var(--dark-brown);
}

.event-date {
  margin: 0 0 0.18rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dark-gold);
  text-align: center;
}

.event-time {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark-gold);
  letter-spacing: 0.01em;
  text-align: center;
}

/* ----------------------------------------------------------
   MAP BUTTONS
---------------------------------------------------------- */
.venue-maps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  padding: 0.78rem 1rem;
  border-radius: 2px;
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--light-beige) 45%,
    var(--gray-green) 75%,
    var(--dark-green) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -10px 18px rgba(60, 45, 5, 0.05),
    0 4px 10px rgba(16, 51, 30, 0.05);
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.map-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(192, 156, 70, 0.82) 0%,
    rgba(227, 193, 96, 0.66) 50%,
    rgba(104, 110, 48, 0.34) 100%
  );
  border-color: rgba(129, 87, 30, 0.4);
  color: var(--dark-brown);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 18px rgba(60, 45, 5, 0.06),
    0 6px 14px rgba(16, 51, 30, 0.07);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------
   MOBILE
---------------------------------------------------------- */
@media (max-width: 480px) {
  .venue {
    width: 100%;
    padding: 1.8rem 0.9rem 1rem;
  }

  .venue-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .venue-address {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.3rem;
  }

  .venue-date {
    font-size: 0.94rem;
  }

  .venue-maps {
    margin-top: 1.2rem;
    gap: 0.65rem;
  }

  .map-btn {
    min-width: 118px;
    font-size: 0.86rem;
    padding: 0.74rem 0.9rem;
  }
}

/* ----------------------------------------------------------
    GUESTBOOK
---------------------------------------------------------- */
.guestbook-card {
    margin: 1rem auto;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    justify-content: center;
}

.guestbook-form .form-row {
    margin-bottom: 1rem;
}

.guestbook-form input[type="text"],
.guestbook-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--dark-brown);
    border-radius: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--dark-green);
    background: white;
}

.guestbook-form input[type="text"]::placeholder,
.guestbook-form textarea::placeholder {
    color: var(--gold);
}

.guestbook-form textarea {
    resize: vertical;
    font-family: 'Cormorant Garamond', serif;
}

/* Center the submit button */
.guestbook-form .form-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.guestbook-form .comment-submit-btn {
    background: linear-gradient(135deg, var(--gray-green) 0%, var(--gold) 100%);
    color: white;
    font-size: 0.8rem;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.guestbook-status {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--gold-brown);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.guestbook-status.show {
  opacity: 1;
  transform: translateY(0);
}

.guestbook-status.success {
  color: var(--gold-brown);
}

.guestbook-status.error {
  color: #8a3b2e;
}

.comment-submit-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.guestbook-messages {
    margin-top: 1rem;
    display: grid;
    gap: 12px;
    max-height: 300px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    overflow-y: auto;
    padding-right: 8px;
    width: 100%;
}

.guest-message {
    padding: 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--gold-brown);
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    min-width: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.guest-name {
    color: var(--gold-brown);
    font-weight: 600px;
}

.message-time {
    font-size: 0.8rem;
    color: var(--gray);
}

.message-body {
    color: var(--dark-green);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.guestbook-messages .empty {
    text-align: center;
    color: var(--dark-brown);
    font-style: italic;
}

@media (max-width: 768px) {
    .guestbook-card {
        padding: 1rem;
    }
}

/* ----------------------------------------------------------
   RSVP
---------------------------------------------------------- */
.rsvp-card {
    margin-top: 1rem;
}

.rsvp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.rsvp-grid input,
.rsvp-grid select,
.rsvp-grid textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--dark-green);
    background: white;
    color: var(--dark-brown);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.rsvp-grid textarea {
    min-height: 100px;
    resize: vertical;
}

.rsvp-grid input:focus,
.rsvp-grid select:focus,
.rsvp-grid textarea:focus {
    border-color: var(--dark-brown);
    background: white;
    outline: none;
}

.rsvp-submit-btn {
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gray-green) 100%);
    color: white;
    border: 1px solid var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.rsvp-submit-btn:hover {
    background: var(--dark-gold);
    border-color: var(--light-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.3);
}

/* Placeholder color (cross-browser) for RSVP form */
.rsvp-grid input::placeholder,
.rsvp-grid textarea::placeholder {
    color: var(--dark-green);
    opacity: 1;
}

.rsvp-grid input::-webkit-input-placeholder,
.rsvp-grid textarea::-webkit-input-placeholder {
    color: var(--dark-green);
}

.rsvp-grid input::-moz-placeholder,
.rsvp-grid textarea::-moz-placeholder {
    color: var(--dark-green);
}

.rsvp-grid input:-ms-input-placeholder,
.rsvp-grid textarea:-ms-input-placeholder {
    color: var(--dark-green);
}

.rsvp-grid input::-ms-input-placeholder,
.rsvp-grid textarea::-ms-input-placeholder {
    color: var(--dark-green);
}

.rsvp-success-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gold-brown);
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rsvp-success-message.show {
    opacity: 1;
}

.hidden {
    display: none;
}

.rsvp-instruction {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.rsvp-note {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--dark-brown);
    opacity: 20.8;
    margin-bottom: 2.2rem;
}



/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */

footer {
    text-align: center;
    padding: 0rem 1rem 0.2rem;
    display: none;
}

footer .footer-text {
    font-family: "Bulgary", serif;
    font-size: 2rem;
    color: var(--dark-green);
    margin-bottom: 0.3rem;
}

footer .footer-credit {
    font-size: 0.75rem;
    font-family: "Playfair Display", serif;
    color: var(--dark-gold);
}

.footer-text {
    position: relative;
    display: inline-block;
    color: var(--gold);
    overflow: hidden;
}

/* SHIMMER EFFECT */
.footer-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.7),
            transparent);
    transform: skewX(-25deg);
}

/* When footer becomes visible */
footer.visible .footer-text::after {
    animation: shimmerSweep 1.8s ease forwards;
}

@keyframes shimmerSweep {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}