/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #f5f0ea;
  --color-bg-alt: #f5f0e0;
  --color-text: #21201c;
  --color-text-light: #5a574e;
  --color-accent: #f09321;
  --color-accent-light: #ffcf3e;
  --color-white: #ffffff;
  --color-error: #8a000f;
  --color-blue: #0c234F;
  --color-sage: #495d32;
  --color-orange: #f09321;
  --color-burgundy: #8a000f;
  --font-display: 'Allura', cursive;
  --font-heading: 'Poppins', -apple-system, sans-serif;
  --font-body: 'Poppins', -apple-system, sans-serif;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent); }

/* ===== Password Gate ===== */
#password-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}

#password-gate.hidden { display: none; }

.gate-content {
  text-align: center;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
}

.gate-content h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: .5rem;
}

.gate-content p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

#password-form { display: flex; flex-direction: column; gap: .75rem; }

#password-input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem 1rem;
  border: 1px solid var(--color-accent-light);
  border-radius: 8px;
  background: var(--color-white);
  text-align: center;
  outline: none;
  transition: border-color .2s;
}

#password-input:focus { border-color: var(--color-accent); }

#password-form button {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: .75rem 1rem;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}

#password-form button:hover { background: var(--color-blue); }

.error { color: var(--color-error); font-size: .9rem; }

/* ===== Navigation ===== */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-blue);
  border-bottom: none;
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-bg);
  letter-spacing: .05em;
}

#nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

#nav-links a {
  font-size: .85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(245, 240, 234, .8);
  transition: color .2s;
}

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

.nav-logo:hover { color: var(--color-accent-light); }

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

#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-bg);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

#nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 3rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, .35) 0%,
    rgba(0, 0, 0, .15) 40%,
    rgba(0, 0, 0, .25) 100%
  );
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-pre {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255, 255, 255, .85);
  margin-bottom: .5rem;
}

.hero-names {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: .5rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5), 0 1px 4px rgba(0, 0, 0, .3);
}

.hero-date {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, .9);
  margin-bottom: .25rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .3);
}

.hero-note {
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255, 255, 255, .9);
  margin-top: .75rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .3);
}

/* ===== Our Story ===== */
.story-photo {
  display: block;
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0 auto 2rem;
}

.story-text-wrapper,
.directions-wrapper {
  position: relative;
}

.story-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.story-text-wrapper.collapsed .story-text,
.directions-wrapper.collapsed .directions-content {
  max-height: 14em;
  overflow: hidden;
}

.story-fade,
.directions-fade {
  display: none;
}

.story-text-wrapper.collapsed .story-fade {
  display: block;
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  height: 8em;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

.directions-wrapper.collapsed .directions-fade {
  display: block;
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  height: 8em;
  background: linear-gradient(to bottom, transparent, var(--color-bg-alt));
  pointer-events: none;
}

.story-toggle {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.story-toggle:hover {
  color: var(--color-blue);
}

/* ===== Photo Grid ===== */
.section-inner-wide {
  max-width: 960px;
  margin: 0 auto;
}

.photo-grid {
  columns: 3;
  column-gap: .75rem;
}

.photo-grid img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: .75rem;
  display: block;
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: .5rem 0;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track img {
  flex: 0 0 auto;
  height: 350px;
  width: auto;
  max-width: 500px;
  object-fit: contain;
  border-radius: 6px;
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: background .2s;
}

.carousel-btn:hover { background: var(--color-white); }

.carousel-prev { left: .5rem; }
.carousel-next { right: .5rem; }

/* ===== Content Sections ===== */
.content-section { padding: 5rem 1.5rem; }
.alt-bg { background: var(--color-bg-alt); }

.section-inner { max-width: 720px; margin: 0 auto; }

.content-section h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.content-section h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-sage);
}

.content-section h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  color: var(--color-text);
}

.placeholder-text {
  color: var(--color-text-light);
  font-style: italic;
}

/* ===== Timeline Image ===== */
.timeline-img {
  max-width: 400px;
  width: 100%;
  border-radius: 8px;
}

/* ===== Venue ===== */
.venue-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.venue-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.venue-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: .5rem;
}

.venue-address {
  color: var(--color-text-light);
  margin-top: .75rem;
}

.directions-list {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

@media (max-width: 767px) {
  .venue-photos { grid-template-columns: 1fr; }
}

/* ===== Callout ===== */
.callout {
  background: #fdf0f0;
  border: 1px solid var(--color-burgundy);
  border-left: 4px solid var(--color-burgundy);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: .95rem;
  line-height: 1.6;
}

/* ===== Link Lists ===== */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding-left: .5rem;
}

.link-list li { position: relative; padding-left: 1.25rem; }
.link-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--color-burgundy);
}

/* ===== Adventure Generator ===== */
.adventure-generator {
  text-align: center;
  margin: 2rem 0;
}

.adventure-btn {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  padding: .85rem 2rem;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.adventure-btn:hover { background: var(--color-blue); }
.adventure-btn:active { transform: scale(.97); }

.adventure-result {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: 8px;
  text-align: center;
  animation: fadeSlideIn .3s ease;
}

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

.adventure-category {
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-sage);
  margin-bottom: .5rem;
}

.adventure-result > a {
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  margin-bottom: .35rem;
}

.adventure-desc {
  font-size: .95rem;
  color: var(--color-text-light);
}

.adventure-all-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

.adventure-show-all {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 400;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem .5rem;
  transition: color .2s;
}

.adventure-show-all:hover { color: var(--color-accent); }

.adventure-all-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  text-align: left;
  margin-top: 1rem;
}

.adventure-all-list.open {
  max-height: 2000px;
}

/* ===== Activity List ===== */
.activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.activity-list li {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.activity-list a,
.activity-list .activity-name {
  font-weight: 500;
  font-size: 1.05rem;
}

.activity-list span:last-child {
  font-size: .9rem;
  color: var(--color-text-light);
}

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }

details {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-sage);
  color: var(--color-white);
}

summary {
  padding: 1rem 1.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
  list-style: none;
  color: var(--color-white);
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: '+';
  display: inline-block;
  width: 1.5rem;
  font-weight: 300;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, .7);
  transition: transform .2s;
}

details[open] summary::before { content: '\2212'; }
details[open] summary { background: rgba(0, 0, 0, .1); }
details[open] { background: var(--color-sage); }

details p { padding: 1rem 1.25rem 1rem 2.75rem; color: var(--color-text); background: #eef2ea; }
details p a { color: var(--color-blue); }

.weather-widget {
  margin: 1rem 1.25rem 1rem 2.75rem;
  border-radius: 8px;
  overflow: hidden;
}

/* ===== RSVP ===== */
.rsvp-coming-soon {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.rsvp-preview-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-left: .5rem;
  margin-top: 1rem;
}

.rsvp-preview-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--color-text-light);
}

.rsvp-preview-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 3rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-sage);
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .hero-names { font-size: 3rem; }

  #nav-toggle { display: flex; }

  #nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-blue);
    border-bottom: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  #nav-links.open { max-height: 360px; }

  #nav-links li { text-align: center; }
  #nav-links a { display: block; padding: .9rem 1.5rem; }

  .content-section { padding: 3rem 1.25rem; }
  .content-section h2 { font-size: 2.2rem; }

  .photo-grid { columns: 2; }

  .carousel-track img { height: 260px; max-width: 380px; }
}
