:root {
  --bg: #f9f4ee;
  --bg-alt: #fdfaf7;
  --text: #111111;
  --muted: #6e6257;
  --white: #ffffff;

  /* Boho pastels */
  --rose: #f5b7c6;
  --blush: #f7d8de;
  --gold: #e6c37a;
  --blue: #a8c6e8;
  --orange: #f4b28e;

  /* Leafy greens */
  --leaf: #314b32;
  --leaf-soft: #557c5c;

  --border: #e2d4c5;
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius-lg: 26px;
  --radius-md: 18px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease-out;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

/* Dark leafy edges */
body::before {
  background:
    radial-gradient(circle at 0% 12%, rgba(49, 75, 50, 0.18) 0, transparent 55%),
    radial-gradient(circle at 3% 40%, rgba(85, 124, 92, 0.22) 0, transparent 55%),
    radial-gradient(circle at 97% 20%, rgba(49, 75, 50, 0.18) 0, transparent 55%),
    radial-gradient(circle at 100% 55%, rgba(85, 124, 92, 0.22) 0, transparent 55%);
  mix-blend-mode: multiply;
}

/* Blush / ivory glow like paper + flowers */
body::after {
  background:
    radial-gradient(circle at 15% 5%, rgba(247, 216, 222, 0.75) 0, transparent 55%),
    radial-gradient(circle at 85% 95%, rgba(245, 183, 198, 0.65) 0, transparent 55%);
  opacity: 0.85;
}

/* Layout helpers */
.container {
  width: min(1100px, 100% - 2.5rem);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 2.4vw, 2.5rem);
  margin: 0 0 0.75rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 2.4rem;
  text-align: center;
  color: var(--muted);
}

.section-intro.small {
  font-size: 0.9rem;
}

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 830px) {
  .grid.two-cols,
  .grid.three-cols {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.6rem 1.7rem;
  border: 1px solid rgba(226, 212, 197, 0.9);
  box-shadow: var(--shadow-soft);
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(249, 244, 238, 0.86);
  border-bottom: 1px solid rgba(226, 212, 197, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-small {
  font-size: 0.75rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-main {
  font-family: "Great Vibes", cursive;
  font-size: 1.55rem;
  color: var(--leaf);
  letter-spacing: 0.02em;
}

.nav {
  position: relative;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1.3rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  position: relative;
  padding-bottom: 0.18rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    right: 0;
    top: 2.7rem;
    flex-direction: column;
    padding: 0.9rem 1.3rem;
    background: rgba(253, 250, 247, 0.98);
    border-radius: 999px 0 16px 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 5.3rem 0 4.5rem;
  overflow: hidden;

  background-image:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.35)
    ),
    url("../../images/cha_bella_exterior.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Turn off the old blurry vine layers */
.hero-bg-layer {
  display: none;
}

@keyframes vine-sway {
  from {
    transform: translateY(0) rotate(-1deg);
  }
  to {
    transform: translateY(10px) rotate(1deg);
  }
}

.hero-inner {
  display: flex;
  justify-content: center;
}

.hero-frame {
  position: relative;
  max-width: 780px;
  width: 100%;
  padding: 1.6rem;
}

.hero-frame-border {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  border: 2px solid rgba(49, 75, 50, 0.45);
  pointer-events: none;
}

.hero-frame-border::before,
.hero-frame-border::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  border: 1px solid rgba(245, 183, 198, 0.55);
  inset: 10px;
}

.hero-content {
  position: relative;
  background: rgba(253, 250, 247, 0.90); /* was 0.96 */
  border-radius: 28px;
  padding: 2.8rem 2.4rem 2.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 212, 197, 0.9);
  text-align: center;
}

.hero-overline {
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.hero-names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 4vw, 3.7rem);
  margin: 0 0 0.4rem;
  color: var(--leaf);
}

.hero-date {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 0.2rem;
}

.hero-location {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(
    120deg,
    rgba(245, 183, 198, 0.12),
    rgba(166, 198, 232, 0.12)
  );
  border: 1px solid rgba(245, 183, 198, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.7rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-subnote {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(
    120deg,
    var(--rose),
    var(--gold),
    var(--orange)
  );
  color: #2f1b20;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.btn.outline {
  background: transparent;
  border-color: rgba(226, 212, 197, 0.9);
  color: var(--muted);
}

.btn.outline:hover {
  background: rgba(253, 250, 247, 0.85);
}

.btn.form-submit {
  width: 100%;
  margin-top: 0.8rem;
}

/* Details section */
.details-tagline {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--muted);
}

.details-grid .card {
  text-align: center;
}

.pastel-card {
  position: relative;
  overflow: hidden;
}

.pastel-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  opacity: 0.16;
  background: radial-gradient(circle at top, var(--rose), transparent 60%);
  pointer-events: none;
}

.pastel-card.pastel-blue::before {
  background: radial-gradient(circle at top, var(--blue), transparent 60%);
}

.pastel-card.pastel-gold::before {
  background: radial-gradient(circle at top, var(--gold), transparent 60%);
}

.pastel-card h3 {
  position: relative;
  margin-top: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
}

.card-strong {
  position: relative;
  font-weight: 600;
}

.card-light {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.card-note {
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
}

.details-extra {
  margin-top: 2.4rem;
}

.details-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
  font-size: 0.96rem;
}

.timeline .time {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  min-width: 4.2rem;
}

/* Travel */
.section.travel-section {
  background-image:
    linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.82)),
    url("../../images/savannah_background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0; /* adds breathing room */
}

.travel-card h3 {
  font-family: "Playfair Display", serif;
  margin-top: 0;
}

.travel-card ul {
  padding-left: 1.1rem;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}

.travel-card li {
  margin-bottom: 0.15rem;
}

.card-note.small {
  font-size: 0.85rem;
}

/* White box overlay for readability */
.travel-wrapper {
  max-width: 900px;
  margin: auto;
}

.card-overlay {
  background: rgba(255, 255, 255, 0.92);
  padding: 2rem 2.2rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 26px rgba(0,0,0,0.1);
}

.card-overlay h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-top: 0;
  color: var(--leaf);
}

.card-overlay ul {
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
  padding-left: 1.2rem;
}

.card-overlay hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 1.5rem 0;
}

/* Registry */
.registry-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

/* RSVP */
.rsvp-form {
  max-width: 760px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.3rem;
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.55rem 0.85rem;
  font: inherit;
}

.form-field textarea {
  border-radius: 18px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(245, 183, 198, 0.7);
  outline-offset: 1px;
}

.hidden {
  display: none;
}

/* Footer */
.site-footer {
  padding: 2.3rem 0 2.6rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-names {
  margin: 0 0 0.25rem;
  font-family: "Playfair Display", serif;
}

.footer-small {
  font-size: 0.8rem;
}

/* Password gate */
.gate-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #f5b7c6, #f9f4ee);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gate-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
  max-width: 360px;
  width: 90%;
  text-align: center;
}

.gate-card h1 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}

.gate-card p {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

#gate-password {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border, #d2c4b7);
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  font: inherit;
}

.gate-error {
  color: #b3261e;
  font-size: 0.85rem;
  min-height: 1.1rem;
}

/* RSVP guest rows: one per row */
#party-guests-container {
  grid-template-columns: 1fr; /* override 2-column form grid */
}

.guest-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-block: 0.25rem;
  border-bottom: 1px dashed rgba(226, 212, 197, 0.7);
}

.guest-row:last-child {
  border-bottom: none;
}

.guest-name-cell {
  font-weight: 600;
}

.guest-name-cell input[type="text"] {
  max-width: 220px;
}

.guest-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.inline-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
}

@media (min-width: 640px) {
  .guest-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.travel-map {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.travel-map img {
  width: min(800px, 90%);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  border: 2px solid rgba(255,255,255,0.85);
}

/* --- PHOTO GALLERY SECTION --- */

.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.photo-gallery img {
  height: 450px;          /* good for vertical images */
  width: auto;            /* prevents distortion */
  object-fit: cover;
  border-radius: 20px;    /* soft rounded edges */
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  transition: transform .3s ease;
}

.photo-gallery img:hover {
  transform: scale(1.04); /* cute interactive zoom */
}

@media (max-width: 700px) {
  .photo-gallery img {
    height: 300px;  /* smaller on mobile */
  }
}