/* ===========================
   MOBILE.CSS (≤768px)
   Lightweight mobile layout
   =========================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5efe4;
  color: #4b473a;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===========================
   NAVIGATION (Mobile Styled)
   =========================== */

header {
  position: sticky;
  top: 0;
  z-index: 100; /* Increased z-index so it sits above everything */
  background: rgba(253, 250, 245, 0.95); /* Slightly more opaque */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(195,165,143,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem; /* A bit more height */
  position: relative;
}

.logo {
  font-family: "Georgia", serif; /* Match desktop elegance */
  font-size: 1.3rem;
  color: #5d6b3b; /* Olive */
  letter-spacing: .05em;
  font-weight: normal;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #5d6b3b; /* Olive color for the burger icon */
  cursor: pointer;
  padding: 0 0.5rem;
  line-height: 1;
}


/* THE MENU CONTAINER */
nav ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fdfbf7;
  
  /* Reduced padding so it doesn't stretch too far down */
  padding: 1.2rem 1rem 1.8rem 1rem; 
  
  flex-direction: column;
  align-items: center;
  
  /* Much tighter gap between items */
  gap: 0.5rem; 
  
  border-bottom: 3px solid #5d6b3b;
  box-shadow: 0 10px 30px rgba(93, 107, 59, 0.1);
  border-radius: 0 0 20px 20px;
}

/* OPEN STATE */
nav ul.open {
  display: flex;
  animation: slideDown 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* MENU LINKS */
nav a {
  font-family: "Georgia", serif;
  
  /* Smaller, more sophisticated font size */
  font-size: 0.95rem; 
  
  color: #4b473a;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  
  /* Reduced click-area padding slightly */
  padding: 0.2rem 0.5rem; 
  transition: color 0.2s;
}

nav a:active,
nav a:hover {
  color: #5d6b3b;
}

/* SEPARATORS (The Dots) */
nav li:not(:last-child)::after {
  content: "•";
  display: block;
  text-align: center;
  color: #dcd0c0;
  
  /* Make the dot tiny and subtle */
  font-size: 0.8rem; 
  
  /* Pull the dot closer to the text */
  margin-top: 0.5rem;
  margin-bottom: -0.1rem; 
}

/* ANIMATION */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-intro {
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
  color: var(--text-main);
}

/* ---------------------------
   Hero Section (stacked)
---------------------------- */

.hero {
  display: block;
  width: 100%;
  background: white;
}

.hero-inner {
  display: flex;
  flex-direction: column;
}

.hero-left {
  background: #faf1e1;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
}

.hero-left img {
  width: 160px;
}

.hero-right {
  text-align: center;
  padding: 2rem 1rem;
}

.hero-right h1 {
  font-family: "Dancing Script", cursive;
  font-size: 2.7rem;
  color: #5d6b3b;
}

.hero-btn {
  margin-top: 1.4rem;
  padding: 0.7rem 1.2rem;
  border: 2px solid #5d6b3b;
  background: transparent;
  border-radius: 10px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
}

/* ---------------------------
   Church Hero Image
---------------------------- */

.hero-church img {
  width: 100%;
  max-height: 55vh;
  object-fit: cover;
  display: block;
  opacity: .85;
}

/* ---------------------------
   Section Titles
---------------------------- */

.section-title {
  text-align: center;
  margin-bottom: 1.6rem;
}

.section-title h2 {
  font-family: "Georgia", serif;
  font-size: 1.6rem;
}

/* ---------------------------
   Details Section
---------------------------- */

.details {
  background: #f9f4ec;
  padding: 3rem 1.2rem;
}

.details-grid {
  display: grid;
  gap: 1.4rem;
}

.detail-card {
  background: #fcf9f4;
  padding: 1.4rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(195,165,143,0.25);
  text-align: center;
}

.detail-card h3 {
  font-size: 1.1rem;
  margin-bottom: .4rem;
}

.map-btn {
  display: inline-block;
  margin-top: .8rem;
  background: #5d6b3b;
  color: white;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* let the JS randomly position them, no explosion transforms */

/* ---------------------------
   Countdown
---------------------------- */

.countdown-section {
  padding: 3rem 1rem;
  background: #f9f4ec;
  position: relative; /* THIS FIXES EVERYTHING */
  overflow: hidden;   /* optional but prevents bleed */
}

.countdown-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.countdown-box {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: .8rem;
  min-width: 70px;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid rgba(195,165,143,0.25);
}

.countdown-bg {
  position: absolute;
  inset: 0;
  background-image: url("../media/nozes.png");
  background-size: cover;
  background-position: center; 
  opacity: .45;
  filter: sepia(18%) saturate(80%) brightness(105%);
  z-index: 1;
}


.cd-number {
  font-size: 1.4rem;
  color: #5d6b3b;
}

/* ---------------------------
   Parking
---------------------------- */

.parking-simple {
  padding: 2.5rem 1.2rem;
}

.parking-inner {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1.5rem;
}

.parking-text h2 {
  font-size: 2.2rem;
  line-height: 1.1;
}

.parking-image img {
  width: 100%;
  border-radius: 1.2rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* ---------------------------
   RSVP
---------------------------- */

.rsvp {
  padding: 3rem 1rem;
  background: #f9f4ec;
}

.google-form-container iframe {
  width: 100%;
  height: 650px !important;
  border-radius: 1rem;
  border: 1px solid rgba(195,165,143,0.3);
}

/* ---------------------------
   Footer
---------------------------- */

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #7b7769;
  font-size: .8rem;
}



/* WEDSHOOTS MOBILE FIX */
.wedshoots-section {
  padding: 3rem 1.2rem;
  background: #f9f4ec;
}

.wedshoots-text {
  text-align: center;
  margin-bottom: 1.8rem;
  padding: 0 0.5rem;
}

.wedshoots-text h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}

.wedshoots-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.wedshoots-qr {
  width: 150px;
  height: 150px;
}

.wedshoots-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wedshoots-buttons img {
  height: 48px;
  margin: 0 auto;
}

/* Wedshoots buttons - mobile fix */
.wedshoots-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;         /* permite quebrar de forma elegante se for muito pequeno */
  margin-top: 1.5rem;
}

.wedshoots-buttons img {
  height: 45px;
}


/* RSVP CLEAN MOBILE FIX */
.rsvp-clean {
  padding: 3rem 1rem;
  background: #fcf9f4;
}

.rsvp-text {
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.55;
}

/* --- RSVP BUTTON FIX (mobile) --- */

.rsvp-btn {
  display: inline-block;
  background: transparent;
  border: 2px solid #5d6b3b;
  color: #5d6b3b !important;
  padding: 0.9rem 1.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 12px;
  margin-top: 1.4rem;
  text-decoration: none !important;
  text-align: center;
}

.rsvp-btn:hover {
  background: #f7f2ea;
}


.section-title {
  margin-bottom: 1.4rem;
  padding: 0 0.4rem;
}

.section-title h2 {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .scatter-bg {
    display: none !important;
  }
}


/* ===============================
   GRID
   =============================== */
.scatter-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (min-width: 480px) {
  .scatter-area {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===============================
   THUMBNAIL BASE
   =============================== 
.scatter-thumb {
  aspect-ratio: 1/1;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;

  opacity: 0;
  transform: translateY(6px) scale(0.85);
  transform-origin: center;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;

  transition:
    opacity 0.2s ease-out var(--delay, 0ms),
    transform 0.2s ease-out var(--delay, 0ms);
}


.scatter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.scatter-thumb.bloom {
  opacity: 1;
  transform: translateY(0px) scale(1);
}

.scatter-thumb.zooming {
  transform: scale(1.55) rotate(1deg);
  z-index: 99;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}
*/

/* ===============================
   THUMBNAIL BASE
   =============================== */
.scatter-thumb {
  aspect-ratio: 1/1;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;

  /* Start state */
  opacity: 0;
  transform: translateY(15px) scale(0.9);
  transform-origin: center;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  will-change: transform, opacity;

  /* ELEGANT SPRING TRANSITION */
  /* This curve (cubic-bezier) makes it pop fast but land soft */
  transition: 
    opacity 0.5s ease-out,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Apply the loading delay ONLY here */
  transition-delay: var(--delay, 0ms);
}

.scatter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===============================
   BLOOM (Entry)
   =============================== */
.scatter-thumb.bloom {
  opacity: 1;
  transform: translateY(0px) scale(1);
}

/* ===============================
   ZOOM (Click)
   =============================== */
.scatter-thumb.zooming {
  /* IMPORTANT: Override the loading delay so click is instant */
  transition-delay: 0s !important; 
  
  /* Slightly faster duration for the interaction */
  transition-duration: 0.35s; 
  
  /* The Zoom Effect */
  transform: scale(1.4) rotate(0deg); 
  z-index: 99;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border-color: #fff;
}