/* Zola-style Wedding Website - Aditya & Apurva */
:root {
  --color-cream: #fff7ed;
  --color-ivory: #fffaf5;
  --color-sage: #8b5e34;
  --color-rose: #c62828;
  --color-charcoal: #4e342e;
  --color-soft-brown: #8d6e63;

  --color-gold: #c9a227;
  --color-maroon: #7a1c1c;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-charcoal);
  background: var(--color-ivory);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url("indian-pattern.jpg");
}

/* Navigation - centered two-line layout */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-image: url("indian-pattern.jpg");
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-logo {
  /* font-family: var(--font-display); */
  font-size: 1.4rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  font-family: "Pinyon Script", cursive;
  font-weight: 400; /* Pinyon Script typically has only one weight */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  color: white;
  background-image: url("indian-pattern.jpg");
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-links a.nav-current {
  color: white;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: url("mandala-top.png") repeat-x center;
  background-size: contain;
  opacity: 0.25;
  pointer-events: none;
}

/* Hero Section - Zola style */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  padding-top: 90px;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  text-align: center;
  overflow-x: hidden;
}

/* Image marquee - in flow, no overlap */
.hero-marquee {
  flex-shrink: 0;
  width: 100%;
  height: 500px;
  overflow: hidden;
  z-index: 0;
  margin-bottom: 2rem;
}

.hero-marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 35s linear infinite;
  width: max-content;
  height: 100%;
}

.hero-marquee-track img {
  flex-shrink: 0;
  width: 420px;
  height: 500px;
  object-fit: cover;
  display: block;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .hero-marquee {
    height: 210px;
    margin-bottom: 1.5rem;
  }
  .hero-marquee-track img {
    width: 300px;
    height: 210px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("indian-pattern.jpg");
  pointer-events: none;
  z-index: -1;
}

/* Content area - below marquee, never overlaps */
.hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 250, 245, 0.85), rgba(255, 250, 245, 0.9)),
    url("indian-pattern.jpg");
  background-size: cover;
  background-position: center;
}

.hero-top-right-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 35%; /* Adjust how much right side it takes */
  object-fit: cover; /* Important */
}

.hero-left-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 35%; /* Adjust width */
  object-fit: cover; /* Keeps aspect ratio */
}

.hero-content {
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  padding: 0 0.5rem;
}

/* Decorative floral corners - watercolor style */
.floral-corner {
  position: absolute;
  width: 180px;
  height: 180px;
  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
}

.floral-top-right {
  top: 320px;
  right: 20px;
  background: url("bgimg.jpg") no-repeat;
  background-size: contain;
}

.floral-bottom-left {
  bottom: 100px;
  left: 20px;
  width: 220px;
  height: 220px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140"><circle cx="45" cy="50" r="14" fill="white" opacity="0.9"/><circle cx="65" cy="45" r="12" fill="%23fdf4e3" opacity="0.85"/><circle cx="80" cy="55" r="10" fill="white" opacity="0.9"/><circle cx="55" cy="70" r="13" fill="white" opacity="0.9"/><circle cx="35" cy="65" r="9" fill="%23e8d4b8" opacity="0.75"/><circle cx="25" cy="55" r="8" fill="white" opacity="0.8"/><path d="M20 85 Q35 75 45 88 Q35 95 20 85" fill="%238b9a8b" opacity="0.6"/><path d="M50 95 Q65 85 75 98 Q65 105 50 95" fill="%238b9a8b" opacity="0.55"/><ellipse cx="35" cy="105" rx="10" ry="5" fill="%237a8a7a" opacity="0.45"/><ellipse cx="65" cy="100" rx="8" ry="4" fill="%237a8a7a" opacity="0.45"/></svg>')
    no-repeat;
  background-size: contain;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 56px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .floral-corner {
    width: 100px;
    height: 100px;
    opacity: 0.4;
  }
  .floral-top-right {
    top: 270px;
    right: -10px;
  }
  .floral-bottom-left {
    width: 120px;
    height: 120px;
    bottom: 60px;
    left: -10px;
  }
}

.hero-name-first {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 500;
  color: #6b5344;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.hero-and {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--color-soft-brown);
  margin: 0.75rem 0;
}

.hero-name-second {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 500;
  color: #6b5344;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero-hashtag {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-sage);
  margin-bottom: 1rem;
}

.hero-date {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: #6b5344;
  margin-bottom: 0.25rem;
}

.hero-location {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-soft-brown);
  margin-bottom: 2rem;
}

.hero-rsvp-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  background: var(--color-charcoal);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.hero-rsvp-btn:hover {
  background: var(--color-soft-brown);
  transform: translateY(-1px);
}

.hero-tagline {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-style: italic;
  color: var(--color-soft-brown);
  opacity: 0.85;
  flex-shrink: 0;
}

/* Page content wrapper (for sub-pages) */
.page-content {
  padding-top: 6rem;
  min-height: calc(100vh - 200px);
  width: 100%;
  overflow-x: hidden;
}

/* Sections */
.section {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  box-sizing: border-box;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  text-align: center;
  color: var(--color-charcoal);
  margin-bottom: 2rem;
}

/* Schedule */
.schedule-section {
  background: white;
}

.schedule-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.schedule-item {
  text-align: center;
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
}

.schedule-item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.schedule-time {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-sage);
  margin-bottom: 0.25rem;
}

.schedule-desc {
  font-size: 0.9rem;
  color: var(--color-soft-brown);
}

/* Gallery */
.gallery-section {
  background: var(--color-cream);
}

.gallery-placeholder p {
  text-align: center;
  color: var(--color-soft-brown);
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 1;
  min-width: 0;
  background: rgba(139, 154, 139, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

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

/* Travel & Things To Do */
.travel-section,
.things-section {
  background: white;
}

.travel-content p,
.things-content p {
  text-align: center;
  color: var(--color-soft-brown);
}

/* RSVP Section */
.rsvp-section {
  background: var(--color-cream);
}

.rsvp-subtitle {
  text-align: center;
  color: var(--color-soft-brown);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.rsvp-form {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sage);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.rsvp-button {
  width: 100%;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: white;
  background: var(--color-charcoal);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.rsvp-button:hover {
  background: var(--color-soft-brown);
  transform: translateY(-1px);
}

.rsvp-success {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 400px;
  margin: 0 auto;
}

.rsvp-success.hidden {
  display: none !important;
}

.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: var(--color-sage);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
}

.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.rsvp-success p {
  color: var(--color-soft-brown);
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background-image: url("indian-pattern.jpg");
  border-top: 1px solid rgba(139, 154, 139, 0.15);
  width: 100%;
  box-sizing: border-box;
  color: white;
}

.footer p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
}

.footer-note {
  font-size: 0.9rem !important;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo {
    margin-bottom: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(139, 154, 139, 0.15);

    background-image:
      linear-gradient(rgba(255, 250, 245, 0.336), rgba(255, 250, 245, 0.138)),
      url("indian-pattern.jpg");
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 4.5rem 1rem 3.5rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .page-content {
    padding-top: 5rem;
  }

  .footer {
    padding: 2rem 1rem;
    background-image: url("indian-pattern.jpg");
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .nav {
    padding: 0.75rem 1rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .hero-name-first,
  .hero-name-second {
    font-size: 2rem;
  }

  .schedule-content {
    flex-direction: column;
  }

  .schedule-item {
    flex: 1 1 100%;
  }
}
