/* ===== Bohemian Eucalyptus Theme ===== */

:root {
  --cream: #FAF8F5;
  --cream-dark: #F0EBE3;
  --sage: #7D8B6E;
  --sage-light: #A3B18A;
  --sage-dark: #5A6750;
  --gold: #C9A96E;
  --gold-dark: #A8884E;
  --text-primary: #3D3D3D;
  --text-secondary: #6B6B6B;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text-primary);
  background-color: var(--cream);
  background-image: url('bg-eucalyptus.webp');
  /* background-repeat: no-repeat; */
  background-position: center top;
  background-size: contain;
  background-attachment: scroll;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sage);
  text-decoration: none;
}

/* ===== Floating Page Container ===== */

.page {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  border-left: 1px solid rgba(200, 200, 200, 0.4);
  border-right: 1px solid rgba(200, 200, 200, 0.4);
  min-height: 100vh;
  position: relative;
}

/* ===== Navigation ===== */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

nav a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
  transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--sage);
  border-bottom-color: var(--sage);
}

/* ===== Hero Section ===== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem 4rem;
}

.hero-names {
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.2;
}

.hero-ampersand {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--sage-light);
  margin: 0 0.3em;
}

.hero-date {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2rem;
}

.hero-venue {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
}

.hero .countdown {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--sage);
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ===== Guest Login ===== */

.guest-login {
  text-align: center;
  padding: 4rem 2rem;
}

.login-form {
  max-width: 400px;
  margin: 0 auto;
}

.login-form p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.login-form .form-group {
  text-align: left;
}

.login-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ===== Guest Banner ===== */

.guest-banner {
  text-align: center;
  padding: 1.5rem 2rem;
  background: rgba(163, 177, 138, 0.12);
  border-top: 1px solid rgba(163, 177, 138, 0.2);
  border-bottom: 1px solid rgba(163, 177, 138, 0.2);
}

.guest-banner p {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.25rem 0;
}

.guest-banner strong {
  color: var(--text-primary);
}

/* ===== RSVP Page ===== */

.rsvp-details {
  padding: 2rem 3rem 2rem;
}

.invite-summary {
  text-align: center;
  margin-bottom: 2rem;
}

.invite-summary h2 {
  font-size: 2.2rem;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.invite-summary p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.menu-person {
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(200, 200, 200, 0.3);
}

.menu-person h3 {
  font-size: 1.6rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  text-align: center;
}

.menu-course {
  margin-bottom: 2rem;
}

.menu-course h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
  text-align: center;
}

.menu-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(200, 200, 200, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-option:hover {
  border-color: var(--sage-light);
}

.menu-option:has(input:checked) {
  border-color: var(--sage);
  background: rgba(163, 177, 138, 0.1);
}

.menu-option input[type="radio"] {
  margin-top: 0.25rem;
  accent-color: var(--sage);
}

.menu-option span {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.menu-option em {
  color: var(--sage);
  font-size: 0.8rem;
}

/* ===== Hero Photo ===== */

.hero-photo {
  margin: 0 4rem;
}

.hero-photo img {
  width: 100%;
  display: block;
}

/* ===== Sections (General) ===== */

section {
  padding: 5rem 3rem;
}

section + section {
  border-top: 1px solid rgba(200, 200, 200, 0.3);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--text-primary);
  font-style: italic;
}

.section-title .leaf-accent {
  color: var(--sage-light);
  font-size: 1.5rem;
  display: block;
  margin-top: 0.5rem;
  opacity: 0.6;
}

/* ===== Our Story ===== */

.story-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.story-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

/* ===== Schedule Timeline ===== */

.timeline {
  max-width: 650px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.timeline-time {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--sage);
  min-width: 65px;
  text-align: right;
  padding-top: 0.2rem;
}

.timeline-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 6px;
  border-right: none;
  border-left: 1px solid rgba(163, 177, 138, 0.5);
  margin-left: 4px;
  padding-bottom: 5rem;
}

.timeline-item:last-child .timeline-line {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage-light);
  flex-shrink: 0;
  margin-left: -5px;
}

.timeline-content h3 {
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 0.25rem;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ===== Gallery ===== */

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

.gallery-grid img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* ===== Travel / Accommodations ===== */

.travel-content {
  max-width: 100%;
  margin: 0 auto;
}

.travel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.travel-card {
  background: rgba(255, 255, 255, 0.5);
  padding: 2rem;
  border-radius: 2px;
  border: 1px solid rgba(200, 200, 200, 0.3);
}

.travel-card h3 {
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.travel-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.travel-card a {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.travel-card a:hover {
  color: var(--sage);
  border-bottom-color: var(--sage);
}

/* ===== RSVP ===== */

.rsvp-form {
  max-width: 450px;
  margin: 0 auto;
  text-align: center;
}

.rsvp-form p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  border: 1px solid rgba(163, 177, 138, 0.3);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

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

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

.btn {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 3rem;
  background: var(--sage);
  color: var(--white);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn:hover {
  background: var(--sage-dark);
}

/* ===== Registry ===== */

.registry-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.registry-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.bank-details {
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(200, 200, 200, 0.3);
  border-radius: 2px;
  display: inline-block;
}

.bank-details p {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.8;
}

.bank-details strong {
  font-weight: 500;
}

.registry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.registry-link {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  border: 1.5px solid var(--sage-light);
  border-radius: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  transition: all 0.3s ease;
}

.registry-link:hover {
  background: var(--sage);
  color: var(--white);
}

/* ===== FAQ ===== */

.faq-list {
  max-width: 600px;
  margin: 0 auto;
}

.faq-item {
  padding: 1.25rem 0;
}

.faq-item h3 {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== Footer ===== */

footer {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--sage-dark);
  color: rgba(255, 255, 255, 0.7);
}

footer h3 {
  font-size: 2rem;
  color: var(--white);
  font-style: italic;
  margin-bottom: 0.5rem;
}

footer p {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

footer .hashtag {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Scroll Animations ===== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .page {
    margin: 0;
    border-left: none;
    border-right: none;
  }

  nav {
    gap: 1rem;
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  section {
    padding: 3.5rem 1.5rem;
  }

  .hero .countdown {
    gap: 1.2rem;
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .hero-photo {
    margin: 0 1rem;
  }

}
