/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --bg-color: #F8F9FA;       /* Warm off-white */
  --text-color: #111111;     /* Deep charcoal/black */
  --accent-color: #A37F61;   /* Warm taupe/champagne */
  --white: #FFFFFF;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.7;
  letter-spacing: 0.5px;
  
  /* Real limewash texture image */
  background-image: url('limewash_bg.jpg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(250, 249, 246, 0.95); /* Cream with transparency */
  backdrop-filter: blur(5px);                  /* Modern glass blur */
  padding: 1rem 2rem;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* --- HERO SECTION (Centered with Polaroid) --- */
.hero {
  min-height: 100vh; /* Changed to min-height for content safety */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centered layout instead of space-between */
  gap: 3rem;               /* Even gap between header and polaroid */
  align-items: center;
  padding: 5rem 2rem 4rem 2rem; /* Adjusted top padding */
  text-align: center;
}

.hero-header .subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 8px;
  color: var(--accent-color);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.hero-header h1 {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1.2;
  font-weight: 300;
}

/* Large Polaroid in Center */
.hero-polaroid {
  background-color: var(--white);
  padding: 20px 20px 60px 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  width: 90%;
  max-width: 600px; /* Increased from 520px */
  margin: 0;        /* Margin handled by container gap */
}

/* Image Container to stack photos */
.polaroid-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #1a1a1a; /* Dark undeveloped backing */
  overflow: hidden;
}

.polaroid-img {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  
  /* Initial state: undeveloped (dark, blurry, hidden) */
  opacity: 0;
  filter: grayscale(100%) contrast(0.6) blur(8px);
  transition: opacity 1.5s ease, filter 2.5s ease-out;
}

/* Active state: fully developed */
.polaroid-img.active {
  opacity: 1;
  filter: grayscale(100%) contrast(1) blur(0);
}

.hero-details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-details .date {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 2px;
}

.hero-details .venue {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
}




/* --- MAIN CONTENT AREA --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 2rem;
}

section {
  margin-bottom: 10rem;
  scroll-margin-top: 120px; /* Prevents sticky navbar from covering headers (increased margin) */
}

/* Elegant transparent box outlining section contents */
.section-box {
  background-color: rgba(255, 255, 255, 0.4);   /* Adjusted to 40% opacity */
  backdrop-filter: blur(2px);                  /* Very soft blur to maintain texture sharpness */
  -webkit-backdrop-filter: blur(2px);          /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.6);   /* Defined light border */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);  /* Soft drop shadow */
  padding: 4rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 4px;
}

section h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 5rem;
  letter-spacing: 2px;
}

/* --- OUR STORY SECTION --- */
.story-grid {
  display: flex;
  align-items: center;
  gap: 6rem;
  flex-wrap: wrap;
}

/* Story Visual Container */
.story-strip-container {
  position: relative;
  width: 220px; /* Width of strip + some rotation margin */
  padding-top: 10px; /* Reduced padding (no clip) */
  display: flex;
  justify-content: center;
  margin: 0 auto; /* Center on mobile when stacked */
}

/* The Long Photo Strip */
.story-strip {
  background-color: var(--white);
  padding: 15px 15px 25px 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 180px; /* Wider, longer strip */
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: rotate(-2deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  position: relative;
}

/* Perforated stamp edge effect */
.story-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  right: -4px;
  background-image: 
    radial-gradient(circle, var(--bg-color) 3px, transparent 3px),
    radial-gradient(circle, var(--bg-color) 3px, transparent 3px);
  background-size: 8px 8px;
  background-repeat: repeat-y;
  background-position: 0 0, 100% 0;
  pointer-events: none;
}

.story-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
  transition: filter 0.5s ease;
}

.story-strip .strip-caption {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #666;
  margin-top: 8px;
  line-height: 1;
}





.story-text-container {
  flex: 1.2;
  min-width: 350px;
}

.story-text-container h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.story-text-container p {
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 1.8rem;
  color: #444;
}

/* --- DETAILS SECTION --- */
.details-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

/* Flat details block with centered text */
.details-block {
  padding: 2rem 1.5rem;
  text-align: center;
}

.details-attire-note {
  text-align: center;
  margin-top: 4rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 400;
}

.details-block h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.details-block p {
  font-weight: 300;
  color: #555;
  margin-bottom: 0.5rem;
}

.map-link {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.map-link:hover {
  color: var(--accent-color);
}

.details-block .highlight {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 1.5rem;
  font-weight: 400;
}

/* --- SCHEDULE SECTION --- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 3rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.schedule-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.schedule-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  opacity: 0.8;
}

.schedule-icon svg {
  width: 100%;
  height: 100%;
}

.schedule-time {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.schedule-event {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-color);
  font-weight: 600;
}

.schedule-location {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.2rem;
  opacity: 0.7;
}

/* --- RSVP SECTION --- */
.rsvp-container {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.rsvp-container p {
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: #444;
}

.rsvp-btn {
  display: inline-block;
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 1.1rem 3rem;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--text-color);
}

.rsvp-btn:hover {
  background-color: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
}

/* --- FAQ SECTION --- */

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2rem 0;
}

/* Hide default HTML details arrow */
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

.faq-question {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  outline: none;
}

/* Custom + and - icon container */
.faq-trigger {
  position: relative;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* Drawing the + lines with pseudo-elements */
.faq-trigger::before,
.faq-trigger::after {
  content: '';
  position: absolute;
  background-color: var(--text-color);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Horizontal line */
.faq-trigger::before {
  width: 16px;
  height: 1.5px;
}

/* Vertical line */
.faq-trigger::after {
  width: 1.5px;
  height: 16px;
}

/* When the details tag is open, morph the + into a - */
details[open] .faq-trigger::after {
  transform: rotate(90deg);
  opacity: 0; /* Hide the vertical line, leaving only horizontal */
}

details[open] .faq-trigger {
  transform: rotate(180deg); /* Smooth spin effect */
}

.faq-answer {
  font-size: 0.95rem;
  font-weight: 300;
  color: #555;
  margin-top: 1.5rem;
  padding-right: 2rem;
  animation: slideDown 0.4s ease-out;
}

/* Styles for lists/links inside FAQ answers (e.g. hotel accommodations) */
.faq-answer ul {
  list-style-type: none;
  margin-top: 1rem;
  padding-left: 0.5rem;
}

.faq-answer li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: #555;
}

.faq-answer li a {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.faq-answer li a:hover {
  border-bottom-color: var(--accent-color);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE DESIGN --- */

/* Tablets and Mobile Devices (768px and down) */
@media (max-width: 768px) {
  /* Navbar spacing adjustments */
  .navbar {
    padding: 1rem 1.5rem;
  }
  
  .nav-links {
    gap: 1.5rem; /* Tighten gaps so links fit on one line */
  }
  
  .nav-links a {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }

  /* Page container margins */
  .container {
    padding: 5rem 1.5rem;
  }

  .section-box {
    padding: 2.5rem 1.5rem; /* Reduced padding on mobile */
  }

  /* Hero section adjustments */
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 4rem 1.5rem 3rem 1.5rem; /* Adjusted top padding */
  }
  
  .hero-header h1 {
    font-size: 3.5rem;
  }

  .hero-polaroid {
    max-width: 480px;
    padding: 15px 15px 45px 15px;
  }

  /* Story section adjustments */
  .story-grid {
    gap: 3rem;
  }

  .story-visual {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .story-text-container {
    min-width: 100%;
    text-align: center; /* Center-align narrative text for mobile balance */
  }

  .story-text-container h3 {
    font-size: 1.8rem;
  }

  /* Section headers */
  section h2 {
    font-size: 2.4rem;
    margin-bottom: 3rem;
  }

  /* Details Grid (Ceremony / Reception) */
  .details-container {
    grid-template-columns: 1fr; /* Stack locations */
    gap: 2rem;
  }
  
  .details-attire-note {
    margin-top: 3rem;
    font-size: 1.1rem;
  }

  /* Schedule Grid */
  .schedule-grid {
    grid-template-columns: 1fr; /* Stack schedule vertically */
    gap: 2.5rem;
  }
}

/* Very Small Mobile (480px and down - iPhone 16 Pro/Pro Max, etc.) */
@media (max-width: 480px) {
  /* Navbar link tightening */
  .nav-links {
    gap: 0.8rem;
  }
  
  .nav-links a {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }

  /* Hero adjustments to prevent overflow */
  .hero-header h1 {
    font-size: 3rem;
  }

  .hero-polaroid {
    max-width: 400px;
  }
  
  .hero-details .date {
    font-size: 1.5rem;
  }

  .hero-details .venue {
    font-size: 0.75rem;
  }
}

