/* ==============================
   Wedding Invitation — Styles
   Simple, responsive, traditional
   ============================== */

:root {
  --cream: #fbf6ec;
  --cream-dark: #f1e6d4;
  --maroon: #6d1d2b;
  --maroon-dark: #4d1420;
  --gold: #bd9657;
  --gold-light: #e1c48b;
  --text: #49372e;
  --muted: #88766a;
  --white: #fffaf2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

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

.top-ornament {
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: var(--gold-light);
  font-size: 2rem;
}

/* Hero background: replace the image URL if desired */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(rgba(45, 17, 20, 0.52), rgba(45, 17, 20, 0.60)),
    url("https://images.unsplash.com/photo-1741201864710-8c031ebd13bc?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D?auto=format&fit=crop&w=2000&q=85")
    center / cover no-repeat;
  padding: 90px 24px 70px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, transparent 30%, rgba(30, 10, 12, 0.22) 100%);
}

.nav {
  position: absolute;
  top: 30px;
  left: 7%;
  right: 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
}

.brand span {
  color: var(--gold-light);
  font-style: italic;
}

.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 250, 242, 0.5);
  padding-bottom: 5px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  margin-bottom: 15px;
}

.hero .eyebrow {
  color: var(--gold-light);
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 1;
  margin: 15px 0 22px;
}

.ampersand {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  line-height: 1.9;
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 35px 0;
  color: var(--gold-light);
}

.hero-date > span {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.5rem;
  line-height: 1;
  border-right: 1px solid var(--gold-light);
  padding-right: 15px;
}

.hero-date div {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.hero-bottom {
  position: absolute;
  bottom: 25px;
  z-index: 1;
  color: var(--gold-light);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}

/* Reusable buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 25px;
  border: 1px solid transparent;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-gold {
  color: var(--maroon-dark);
  background: var(--gold-light);
}

.button-gold:hover {
  background: var(--white);
}

/* Shared section spacing */
.section {
  padding: 90px 24px;
}

.welcome {
  max-width: 780px;
  margin: auto;
  text-align: center;
}

.small-flower {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 15px;
}

.welcome h2,
.details-heading h2,
.contact h2 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  color: var(--maroon);
  line-height: 1.1;
}

.welcome-text {
  max-width: 600px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.divider {
  margin-top: 35px;
  color: var(--gold);
}

.divider::before,
.divider::after {
  content: "";
  display: inline-block;
  width: 70px;
  height: 1px;
  background: var(--gold-light);
  vertical-align: middle;
  margin: 0 12px;
}

/* Couple image and caption */
.couple-section {
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 55px;
}

.photo-frame {
  width: min(390px, 85vw);
  position: relative;
  padding: 12px;
  border: 1px solid var(--gold);
}

.couple-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #d9c7b5;
}

/* If the local photo isn't present, show a graceful placeholder */
.couple-photo:not([src]) {
  background: var(--cream-dark);
}

.frame-decoration {
  position: absolute;
  top: -19px;
  right: -18px;
  color: var(--gold);
  font-size: 2.1rem;
}

.couple-caption {
  max-width: 420px;
  text-align: center;
}

.couple-caption h2 {
  color: var(--maroon);
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 10px 0 20px;
}

.couple-caption h2 span {
  color: var(--gold);
  font-style: italic;
}

.couple-caption > p:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Wedding details */
.details {
  text-align: center;
}

.details-heading {
  margin-bottom: 35px;
}

.date-line {
  margin-top: 16px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.details-card {
  max-width: 850px;
  margin: auto;
  padding: 45px 25px;
  border: 1px solid var(--gold-light);
  background: rgba(255, 250, 242, 0.65);
}

.detail-item {
  margin: 25px 0;
}

.detail-icon {
  color: var(--gold);
  font-size: 1.4rem;
}

.detail-item h3 {
  font-size: 1.65rem;
  color: var(--maroon);
  margin: 5px 0;
}

.detail-item p {
  font-size: 0.9rem;
}

.detail-item .address {
  color: var(--muted);
  font-size: 0.8rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button-maroon {
  background: var(--maroon);
  color: var(--white);
}

.button-maroon:hover {
  background: var(--maroon-dark);
}

.button-outline {
  color: var(--maroon);
  border-color: var(--maroon);
}

.button-outline:hover {
  color: var(--white);
  background: var(--maroon);
}

/* Contact and WhatsApp */
.contact {
  background: var(--maroon);
  color: var(--white);
  text-align: center;
}

.contact .eyebrow {
  color: var(--gold-light);
}

.contact h2 {
  color: var(--white);
}

.contact-content > p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.75);
  margin-top: 15px;
  font-size: 0.9rem;
}

.contact-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 45px;
  margin: 35px 0;
}

.contact-person {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-label {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.contact-person a {
  font-size: 0.95rem;
}

.contact-person a:hover {
  color: var(--gold-light);
}

.whatsapp-button {
  color: var(--maroon-dark);
  background: var(--gold-light);
}

.whatsapp-button:hover {
  background: var(--white);
}

/* Footer */
.footer {
  text-align: center;
  padding: 65px 20px 30px;
  background: var(--cream-dark);
}

.footer-ornament {
  color: var(--gold);
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.footer h2 {
  color: var(--maroon);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.footer p {
  color: var(--muted);
  margin-top: 10px;
}

.footer-blessing {
  color: var(--maroon) !important;
  font-size: 1.1rem;
  margin-top: 25px !important;
}

.back-top {
  display: inline-block;
  margin-top: 30px;
  color: var(--maroon);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Scroll reveal animation; JS adds .visible when an element enters view */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced-motion accessibility settings */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Small screen adjustments */
@media (max-width: 600px) {
  .hero {
    min-height: 90vh;
    padding-top: 100px;
  }

  .nav {
    left: 6%;
    right: 6%;
  }

  .nav-link {
    font-size: 0.65rem;
  }

  .section {
    padding: 65px 20px;
  }

  .couple-section {
    gap: 35px;
  }

  .contact-list {
    gap: 25px;
  }

  .details-card {
    padding: 30px 18px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }
}
