/* ----------------------------------------------------------
   GLOBAL FONTS
---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Raleway+Script&family=Cormorant+Garamond:wght@300;400;500;600&family=Lato:wght@300;400;700&display=swap');

/* ----------------------------------------------------------
   ROOT VARIABLES — BOHO PALETTE
---------------------------------------------------------- */
:root {
  --terracotta: #C46A45;
  --sage: #C9D2C1;
  --linen: #F7F4EF;
  --espresso: #2F231C;
  --gold: #D1A77B;
  --white: #ffffff;

  --max-width: 1100px;

  --transition-fast: .25s ease;
  --transition-med: .4s ease;

  --shadow-soft: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-pop: 0 6px 20px rgba(0,0,0,0.12);
}

/* ----------------------------------------------------------
   GLOBAL RESET
---------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Lato, sans-serif;
  background: var(--linen) url("assets/img/textures/linen-noise.png");
  background-size: cover;
  color: var(--espresso);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* smooth fade animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------
   GLOBAL LAYOUT UTILITIES
---------------------------------------------------------- */
.container {
  width: min(var(--max-width), 92%);
  margin: auto;
}

section {
  padding: 3rem 0;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", serif;
  color: var(--espresso);
  margin-bottom: .75rem;
}

h1.script,
h2.script,
.section-title-script {
  font-family: "Raleway Script", cursive;
  font-size: 2.8rem;
  color: var(--terracotta);
  margin-bottom: .5rem;
  font-weight: 400;
}

/* subtler subtitle */
.subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--espresso);
  letter-spacing: .5px;
}

/* ----------------------------------------------------------
   HEADER + NAVIGATION
---------------------------------------------------------- */
header {
  background: var(--linen);
  padding: 1.2rem 0 0.5rem;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 2px solid var(--sage);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.menu {
  display: flex;
  gap: 2.2rem;
  margin-top: 1rem;
}

nav.menu a {
  color: var(--espresso);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}
nav.menu a:hover {
  color: var(--terracotta);
}

/* mobile hamburger */
.menu-toggle-wrap {
  display: none;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}

.menu-toggle-bar {
  width: 28px;
  height: 3px;
  background: var(--espresso);
  display: block;
  margin: 5px 0;
  border-radius: 3px;
}

/* MOBILE NAV (HIDDEN BY DEFAULT) */
@media (max-width: 760px) {
  nav.menu {
    display: none;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1rem 0;
  }

  body.menu-open nav.menu {
    display: flex;
  }

  .menu-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: .5rem;
  }
}

/* ----------------------------------------------------------
   HERO — PARALLAX + BOHO
---------------------------------------------------------- */
.hero {
  background: url("assets/img/hero-pampas.jpg") center/cover no-repeat fixed;
  height: 75vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
/*  background: rgba(247, 244, 239, 0.55);*/
  /* backdrop-filter: blur(1px); */
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 1rem;
 /* backdrop-filter: blur(3px);*/
  background-color: var(--linen)
}

/* ----------------------------------------------------------
   BOHO DIVIDERS (PAMPAS)
---------------------------------------------------------- */
.divider {
  width: 100%;
  height: 80px;
  background: url("assets/img/borders/pampas-divider.png") center/contain no-repeat;
  margin: 2rem 0;
}

/* ----------------------------------------------------------
   BUTTONS
---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 40px;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}
.btn:hover {
  background: #aa5835;
}

/* ----------------------------------------------------------
   POLAROID FRAMES — Wedding Party
---------------------------------------------------------- */
.polaroid {
  background: var(--white);
  padding: 1rem;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e8e0d7;
  transform: rotate(var(--rot, -1deg));
  transition: var(--transition-med);
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: var(--shadow-pop);
}
.polaroid img {
  width: 100%;
  border-radius: 4px;
}

/* ----------------------------------------------------------
   GALLERY — Masonry + Lightbox
---------------------------------------------------------- */
.gallery {
  column-count: 1;
  column-gap: 1rem;
}
.gallery img {
  width: 100%;
  margin: 0 0 1rem;
  border-radius: 8px;
  cursor: zoom-in;
  box-shadow: var(--shadow-soft);
  transition: .3s ease;
}
.gallery img:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-pop);
}

@media (min-width: 600px) {
  .gallery { column-count: 2; }
}
@media (min-width: 1000px) {
  .gallery { column-count: 3; }
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}
.lightbox.visible {
  display: flex;
}

/* ----------------------------------------------------------
   RSVP FORM
---------------------------------------------------------- */
form {
  background: var(--sage);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
form label {
  font-weight: 600;
  color: var(--espresso);
}
form input,
form select,
form textarea {
  width: 100%;
  padding: .7rem .9rem;
  border-radius: 6px;
  border: 1px solid #b9c5b3;
  margin: .6rem 0 1.2rem;
  font-size: 1rem;
}
form button {
  margin-top: .5rem;
}

/* ----------------------------------------------------------
   SCROLL TO TOP BUTTON
---------------------------------------------------------- */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--terracotta);
  color: var(--white);
  padding: .8rem 1rem;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 99999;
  box-shadow: var(--shadow-pop);
  transition: var(--transition-fast);
}
#scrollTopBtn:hover {
  background: #a25431;
}

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */
footer {
  padding: 2.5rem 0;
  text-align: center;
  background: var(--linen);
  border-top: 2px solid var(--sage);
  margin-top: 3rem;
}
footer p {
  opacity: .85;
}
footer a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 600;
}
footer a:hover {
  text-decoration: underline;
}

/* Popup container (hidden by default) */
.preview-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(33, 81, 65, 0.95);
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  transform: translateY(10px);
  z-index: 9999;
}

/* When active (JS adds this class) */
.preview-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

