/* IMPORT ELEGANT GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Quattrocento:wght@300;400;500;600&family=Pinyon+Script&display=swap');

body {
margin: 0;
font-family: 'Quattrocento', serif;
color: #333;
background-color: #e0e9f3;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,0.28);
}


.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1.8s ease forwards;

  text-align: center;
  color: white;

  padding: 20px;
  text-align: center;
  max-width: 800px;
}

@keyframes fadeUp {

  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

.hero .eyebrow {
font-size: 1.2rem;
letter-spacing: 3px;
text-transform: uppercase;
margin-bottom: 20px;
color: rgba(255,255,255,0.8);
}

.hero h1 {
font-family: 'Pinyon Script', cursive;
font-size: clamp(3.5rem, 8vw, 7rem);
font-weight: 400;
margin: 0;
line-height: 1;
color: white;
}

.hero h2 {
margin-top: 25px;
font-size: clamp(1rem, 2vw, 1.4rem);
letter-spacing: 5px;
font-weight: 300;
color: rgba(255,255,255,0.85);
}


html {
scroll-behavior: smooth;
}

section {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 40px 20px;
text-align: center;
}


.photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* background-attachment: fixed; */

  width: 100%;
  min-height: 100vh;
}

.photo_pond {
  background-size: cover;
  background-position: center bottom 60px;
  background-repeat: no-repeat;

  width: 100%;
  min-height: 100vh;
}


.light {
background-color: #e0e9f3;
}

.dark {
background-color: #e0e9f3;
color: white;
}

h1, h2 {
margin-bottom: 10px;
}

p {
max-width: 600px;
line-height: 1.6;
}

.btn {
padding: 12px 20px;
border: none;
background: #000;
color: white;
border-radius: 6px;
cursor: pointer;
margin-top: 10px;
}

.btn:active {
transform: scale(0.98);
}

input, textarea {
padding: 10px;
width: 100%;
max-width: 400px;
margin: 5px 0;
}

/* RSVP */

.rsvp-content {
text-align: center;
}

.rsvp-date {
font-size: 2rem;
margin: 6px 0;
}

.rsvp-location {
font-size: 1.5rem;
margin: 6px 0;
}

.rsvp-link {
display: inline-block;
margin: 25px 0;
font-size: 1.3rem;
color: #000;
text-decoration: underline;
cursor: pointer;
}

.rsvp-message {
margin-top: 10px;
font-size: 1rem;
}


/* PROGRAM */

.program-section {
align-items: flex-start;
}

.program-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto; /* THIS is the key fix */
  padding: 0 20px;
}

.program-title {
font-family: 'Pinyon Script';
text-align: center;
font-size: 3rem;
margin-bottom: 50px;
}

.program-item {
text-align: left;
}

.program-heading {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
flex-wrap: wrap;
margin-bottom: 20px;
}

.program-name {
font-weight: bold;
font-size: 1.2rem;
}

.program-time {
margin-left: 8px;
color: #555;
}

.program-location {
white-space: nowrap;
color: #444;
}

.program-divider {
border: none;
border-top: 1px solid #d6d6d6;
margin: 40px auto;
width: 92%;
}

/* Q&A */

.qa-section {
align-items: flex-start;
}

.qa-container {
  max-width: 900px;
  margin: 0 auto; /* THIS is the key fix */
  padding: 0 20px;
}

.qa-title {
font-family: 'Pinyon Script';
text-align: center;
font-size: 3rem;
margin-bottom: 50px;
}

.qa-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
width: 100%;
}

.qa-column {
text-align: left;
}

.qa-item {
margin-bottom: 40px;
}

.qa-item h3 {
font-size: 1.1rem;
margin-bottom: 10px;
line-height: 1.4;
}

.qa-item p {
margin: 0;
max-width: 100%;
line-height: 1.7;
color: #555;
}

/* REGISTRY */

.registry-section {
align-items: center;
}

.registry-container {
display: grid;
grid-template-columns: 1fr 1fr;
width: 100%;
max-width: 1200px;
gap: 60px;
align-items: center;
}

.registry-image img {
width: 70%;
height: 70%;
object-fit: cover;
display: block;
}

.registry-title {
font-family: 'Pinyon Script';
text-align: left;
font-size: 3rem;
margin-bottom: 50px;
}

.registry-text {
text-align: left;
}

.registry-text h2 {
font-size: 3rem;
margin-bottom: 30px;
}

.registry-text p {
max-width: 500px;
line-height: 1.8;
margin-bottom: 20px;
}

/* CLOSING SECTION */

.closing-section {
padding: 80px 20px;
}

.closing-content {
width: 100%;
max-width: 900px;
}

.closing-content h1 {
font-size: clamp(2.2rem, 5vw, 4rem);
font-weight: 400;
line-height: 1.3;
margin-bottom: 50px;
color: white;
}

.closing-photo img {
width: 100%;
max-width: 700px;
height: auto;
display: block;
margin: 0 auto;
object-fit: cover;
}

/* GALLERY SECTION */

.gallery-section {
  padding: 80px 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.8fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-image img { 
    width: 100%; 
    height: 75vh; 
    object-fit: cover; 
    display: block; 
}

/* MOBILE */

@media (max-width: 900px) {

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-image img {
    height: auto;
  }

}

/* MOBILE */

@media (max-width: 900px) {

.registry-container {
    grid-template-columns: 1fr;
    gap: 40px;
}

.registry-image img {
    height: 50vh;
}

.registry-text h2 {
    font-size: 2.2rem;
}

}

/* MOBILE */

@media (max-width: 800px) {

.qa-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.qa-title {
    font-size: 2.2rem;
}

}

/* MOBILE */

@media (max-width: 700px) {

.program-title {
    font-size: 2.2rem;
}

.program-heading {
    flex-direction: column;
    gap: 10px;
}

.program-location {
    white-space: normal;
}

}

.scroll-indicator {
  position: absolute;
  bottom: 30px;

  color: white;
  font-size: 0.9rem;
  letter-spacing: 2px;

  opacity: 0.7;

  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 25px;

  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);

  padding: 10px 20px;
  border-radius: 30px;

  z-index: 1000;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;

  opacity: 0.06;
  background-image: url("https://www.transparenttextures.com/patterns/noise.png");
}