:root {
  --accent: #D4AF37;
  --text: #555;
  --bg: #fffdf7;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.heading {
  font-family: 'Great Vibes', cursive;
  color: var(--accent);
}

.brand {
  font-family: 'Great Vibes', cursive;
  font-size: 1.5rem;
}

.navbar .nav-link {
  color: var(--text);
}

/* Navbar beautification */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(1.15) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.navbar .navbar-brand.brand {
  color: #111;
  text-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.navbar .nav-link {
  position: relative;
  padding: .75rem .75rem;
  transition: color 200ms ease, opacity 200ms ease;
}
.navbar .nav-link:hover { color: #222; }
.navbar .nav-link.active { color: var(--accent); }
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); opacity: 1; }
.navbar .navbar-toggler {
  border: none;
  padding: .35rem .6rem;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
}
.navbar .navbar-toggler:focus { box-shadow: 0 0 0 .15rem rgba(212,175,55,.25); }

/* Offcanvas (mobile side drawer) styling */
.offcanvas {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}
.offcanvas.offcanvas-end,
.offcanvas.offcanvas-start {
  width: var(--bs-offcanvas-width, 280px);
}
.offcanvas-header {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.offcanvas .nav-link {
  padding: 0.75rem 1rem;
  border-radius: 8px;
}
.offcanvas .nav-link:hover {
  background: rgba(0,0,0,0.04);
}

.hero {
  min-height: 100vh;
  position: relative;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .overlay,
.parallax-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none; /* avoid blocking clicks below the header */
}

.hero .content,
.parallax-hero .content {
  position: relative;
  z-index: 1;
  color: #fff;
}

/* Wedding page header padding for better text breathing room */
.parallax-hero .content { padding: 0; }

/* Enhanced hero aesthetics */
.hero.hero-beauty { background-position: center 30%; }
.hero .overlay-gradient { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.2) 100%); }
.hero .hero-badge {
  display: inline-block;
  padding: .35rem .75rem;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20,20,20,.35);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero .hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin-top: .5rem;
  margin-bottom: .5rem;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.hero .hero-subtitle {
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  opacity: .92;
}
.hero .btn-glass {
  border-radius: 999px;
  padding: .6rem 1.1rem;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero .btn-glass:hover { background: rgba(255,255,255,.28); color: #fff; }

.hero .shape-divider { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 0; }
.hero .shape-divider svg { width: 100%; height: 100%; display: block; }
.hero .shape-divider path { fill: var(--bg); }

/* Reveal on load for hero content */
.hero .content { animation: heroFadeUp 900ms ease both; animation-delay: 120ms; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: translateY(0);} }

.gallery-card .card-body h5 {
  color: var(--accent);
}

.footer-text {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

/* Gallery preview (lightbox) */
.polaroid-grid img,
.cinematic-grid .panel img {
  cursor: zoom-in;
}

#imagePreviewModal .modal-content {
  background-color: rgba(0, 0, 0, 0.92);
}

#imagePreviewModal .modal-body img {
  max-height: 85vh;
  width: auto;
  object-fit: contain;
}

#imagePreviewModal .prev-btn,
#imagePreviewModal .next-btn {
  color: #fff;
  opacity: 0.85;
}

#imagePreviewModal .prev-btn:hover,
#imagePreviewModal .next-btn:hover { opacity: 1; }

#imagePreviewModal .caption {
  text-align: center;
}

/* Album chooser styling */
.album-card .ratio { background: #f2efe6; overflow: hidden; border-top-left-radius: .5rem; border-top-right-radius: .5rem; }
.album-cover-collage { position: absolute; inset: 0; width: 100%; height: 100%; }
.album-cover-collage .tile { position: absolute; background: #fff; padding: 6px; border-radius: 6px; box-shadow: 0 10px 22px rgba(0,0,0,0.15); overflow: hidden; }
.album-cover-collage .tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; }
/* 3-tile collage layout */
.album-cover-collage .t1 { top: 6%; left: 8%; width: 46%; height: 60%; transform: rotate(-4deg); }
.album-cover-collage .t2 { top: 18%; right: 8%; width: 46%; height: 58%; transform: rotate(5deg); }
.album-cover-collage .t3 { bottom: 6%; left: 28%; width: 44%; height: 54%; transform: rotate(1deg); }

/* Album view subnav */
.album-subnav { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.album-subnav .btn { border-color: rgba(0,0,0,0.1); }
.album-subnav .btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Gallery selection UI */
.polaroid-grid.selection-mode .polaroid { cursor: pointer; position: relative; }
.polaroid-grid.selection-mode .polaroid img { user-select: none; }
.polaroid-grid .polaroid .select-box {
  display: none;
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  color: #0d6efd;
  align-items: center;
  justify-content: center;
}
.polaroid-grid.selection-mode .polaroid .select-box { display: flex; }
.polaroid-grid .polaroid.selected { outline: 2px dashed #0d6efd; outline-offset: -6px; }

/* Mobile-only hero image override (keep desktop unchanged) */
@media (max-width: 991.98px) {
  .hero.hero-beauty {
    background-image: url('../images/hero/IMG_6687.JPG') !important;
    background-position: center 35%;
  }
}

/* Random flower shower: container and petals (global) */
.flower-shower { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.flower-shower .petal {
  position: absolute;
  top: -12vh;
  width: var(--size, 24px);
  height: var(--size, 24px);
  /* image applied by color-specific classes */
  background-size: contain; background-repeat: no-repeat;
  opacity: .9;
  transform: translate3d(var(--startX, 0px), -12vh, 0) rotate(var(--rotateStart, 0deg));
  animation: flowerFall var(--duration, 18s) linear var(--delay, 0s) infinite;
  will-change: transform;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
}

.flower-shower .petal.pink {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23ff9ecf'%3E%3Ccircle cx='12' cy='6' r='4'/%3E%3Ccircle cx='18' cy='12' r='4'/%3E%3Ccircle cx='6' cy='12' r='4'/%3E%3Ccircle cx='12' cy='18' r='4'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.flower-shower .petal.peach {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23ffc3a0'%3E%3Ccircle cx='12' cy='6' r='4'/%3E%3Ccircle cx='18' cy='12' r='4'/%3E%3Ccircle cx='6' cy='12' r='4'/%3E%3Ccircle cx='12' cy='18' r='4'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

@keyframes flowerFall {
  0%   { transform: translate3d(var(--startX, 0px), -12vh, 0) rotate(var(--rotateStart, 0deg)); }
  100% { transform: translate3d(calc(var(--startX, 0px) + var(--drift, 40px)), 110vh, 0) rotate(calc(var(--rotateStart, 0deg) + 180deg)); }
}

@media (prefers-reduced-motion: reduce) { .flower-shower { display: none; } }