/* ================================================
   PAGE STYLES: index.html
   Loaded after theme.css (palette, base, nav, hero,
   footer, utilities), so anything here overrides it.
================================================ */

/* ================================
   PAGE UTILITIES
================================ */
.section-title { margin-bottom: 40px; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Shared glass panel look */
.cd-item,
.registry-link-card,
.contact-card,
.faq-item,
.place-card {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  transition: border-color 0.3s;
}
.registry-link-card:hover,
.contact-card:hover { border-color: rgba(232,132,156,0.4); }

/* Shared muted body copy */
.registry-intro,
.rsvp-intro {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(74,59,54,0.75);
  margin-bottom: 36px;
}

/* ================================
   NAVIGATION (page overrides)
================================ */
nav { position: fixed; left: 0; right: 0; }
.nav-logo { color: var(--blush); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================
   HERO
================================ */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.hero-date {
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.countdown {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 22px;
  min-width: 82px;
}

.cd-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--blush);
  line-height: 1;
}

.cd-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(74,59,54,0.55);
  margin-top: 7px;
}

.hero-rsvp {
  max-width: 1100px;
  margin: 0 auto 48px;
  text-align: left;
  scroll-margin-top: 80px;
}
.hero-rsvp-title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}
.hero-rsvp .rsvp-intro { text-align: center; margin-bottom: 24px; }

.scroll-cta {
  color: rgba(74,59,54,0.5);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ================================
   PHOTOS
================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--glass-b);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Folded state: only the first 6 photos show until "Show all" is pressed */
.gallery.collapsed .gallery-item:nth-child(n+7) { display: none; }
.gallery-toggle-wrap { text-align: center; margin-top: 24px; }

.gallery-item.expanded {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  cursor: zoom-out;
  background: rgba(0, 0, 0, 0.35);
}
.gallery-item.expanded img {
  height: auto;
  max-height: 82vh;
  object-fit: contain;
}

/* ================================
   TRAVEL / THINGS TO DO
================================ */
.hero-venue {
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(74,59,54,0.8);
  text-decoration: none;
  border: 1px solid rgba(124,148,115,0.3);
  background: rgba(255,255,255,0.4);
  border-radius: 50px;
  padding: 12px 26px;
  margin-bottom: 48px;
  transition: border-color 0.2s;
}
.hero-venue:hover { border-color: var(--blush); }

.place-card a,
.tip a,
.block a { color: var(--blush); text-decoration: none; }
.place-card a:hover,
.block a:hover { text-decoration: underline; }

.stay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.place-card { padding: 22px 24px; }
.place-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.place-card a { font-size: 0.88rem; }
.place-card.recommended {
  border: 2px solid var(--blush);
  background: rgba(255,255,255,0.7);
}
.place-card a.place-book-btn {
  display: flex;
  width: fit-content;
  margin-top: 14px;
  color: white;
  text-decoration: none;
}
.place-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: white;
  background: var(--blush);
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.tip {
  background: rgba(232,132,156,0.08);
  border: 1px solid rgba(232,132,156,0.22);
  border-left: 3px solid rgba(232,132,156,0.5);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(74,59,54,0.85);
}

.block { margin-bottom: 22px; }
.glass-card.block { margin-bottom: 18px; }
.glass-card > .block + .block { margin-top: 26px; }
.block h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.block h4 {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 18px 0 8px;
}
.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.info-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.6;
  color: rgba(74,59,54,0.85);
}
.info-list li::before {
  content: "❀";
  position: absolute;
  left: 0;
  color: var(--blush);
  font-size: 0.82rem;
}
.info-list li strong { font-weight: 600; }

/* ================================
   REGISTRY
================================ */
.registry-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.registry-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 26px 18px;
  text-decoration: none;
  color: var(--ink);
}
.registry-link-icon { font-size: 1.8rem; }
.registry-link-card h3 { font-size: 1rem; font-weight: 700; }

.registry-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}
.registry-filter-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding-bottom: 14px;
}
.registry-filter-sort,
.registry-filter-price { min-width: 190px; }
.registry-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.registry-price-inputs input { width: 0; flex: 1 1 0; }
.registry-price-inputs span { color: rgba(74,59,54,0.4); }

.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.registry-item {
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: opacity 0.3s;
}
.registry-item.purchased { opacity: 0.55; }

.registry-item-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  border: 1px solid var(--glass-b);
}
.registry-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.registry-item-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.registry-item-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(74,59,54,0.68);
  margin-bottom: 10px;
  flex-grow: 1;
}
.registry-item-price,
.registry-item-qty {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.registry-item-price { color: var(--gold); }
.registry-item-qty { color: var(--sage); margin-bottom: 14px; }

.fund-progress {
  height: 8px;
  background: rgba(74,59,54,0.12);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 8px;
}
.fund-progress-bar {
  height: 100%;
  background: var(--sage);
  transition: width 0.6s ease;
}

.registry-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.registry-claimed-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage);
}

.registry-loading {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(74,59,54,0.5);
  grid-column: 1 / -1;
  padding: 40px 0;
}

/* ================================
   FORMS
================================ */
.rsvp-intro strong { color: var(--gold); }

.f-field { display: flex; flex-direction: column; gap: 9px; }

.f-field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.f-field input,
.f-field select,
.f-field textarea,
.rsvp-guest-row select,
.rsvp-guest-row input[type="text"] {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(74,59,54,0.15);
  border-radius: 11px;
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rsvp-guest-row select,
.rsvp-guest-row input[type="text"] {
  padding: 10px 12px;
  font-size: 0.88rem;
  width: 100%;
}
input::placeholder,
textarea::placeholder { color: rgba(74,59,54,0.35); }
.f-field input:focus,
.f-field select:focus,
.f-field textarea:focus,
.rsvp-guest-row select:focus,
.rsvp-guest-row input[type="text"]:focus {
  border-color: var(--blush);
  box-shadow: 0 0 0 3px rgba(232,132,156,0.18);
}
select option { background: var(--cream); color: var(--ink); }
.f-field textarea { resize: vertical; min-height: 90px; }

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blush);
  cursor: pointer;
}

/* ================================
   RSVP
================================ */
.rsvp-search-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.rsvp-search-row .f-field { flex: 1 1 240px; }

.rsvp-message {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(74,59,54,0.7);
  margin-top: 24px;
}
.rsvp-message a { color: var(--gold); font-weight: 600; }

.rsvp-household-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.rsvp-household-btn { width: 100%; justify-content: flex-start; text-align: left; }
.rsvp-household-names { color: rgba(74,59,54,0.55); font-weight: 400; }

.rsvp-household-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 24px 0 18px;
}

.rsvp-guest-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.rsvp-guest-row {
  display: grid;
  grid-template-columns: 1fr auto 2.6fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255,255,255,0.35);
  border: 1px solid var(--glass-b);
  border-radius: 14px;
}
.rsvp-guest-row input.rsvp-guest-name { font-weight: 700; font-size: 0.95rem; }
.rsvp-guest-going {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.rsvp-note-field { margin-bottom: 28px; }

.rsvp-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ================================
   BUTTONS
================================ */
.btn-primary,
.registry-buy-btn,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.btn-primary,
.registry-buy-btn {
  background: var(--blush);
  border: none;
  color: white;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.btn-primary { padding: 15px 40px; font-size: 1rem; }
.registry-buy-btn { padding: 11px 24px; font-size: 0.92rem; }
.btn-primary:hover,
.registry-buy-btn:hover { background: var(--mauve); }

.btn-secondary {
  padding: 12px 30px;
  background: transparent;
  border: 1px solid rgba(124,148,115,0.45);
  color: var(--sage);
  font-size: 0.9rem;
  font-weight: 500;
}
.btn-secondary:hover {
  background: rgba(124,148,115,0.12);
  border-color: var(--sage);
}

.btn-outline {
  padding: 13px 36px;
  background: rgba(74,59,54,0.06);
  border: 1px solid rgba(74,59,54,0.16);
  color: var(--ink);
  font-size: 0.92rem;
}
.btn-outline:hover {
  background: rgba(74,59,54,0.1);
  border-color: rgba(74,59,54,0.28);
}

/* ================================
   MODALS
================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74,59,54,0.42);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--cream);
  border-radius: 22px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(74,59,54,0.18);
}

.modal-emoji { font-size: 3rem; margin-bottom: 20px; display: block; }

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.modal-body {
  font-size: 0.93rem;
  line-height: 1.78;
  color: rgba(74,59,54,0.78);
  margin-bottom: 32px;
}
.modal-body .f-field { text-align: left; margin-top: 22px; }

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================
   FAQ
================================ */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item { padding: 24px 28px; }

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(74,59,54,0.68);
}

/* ================================
   CONTACT
================================ */
.contact-grid {
  max-width: 520px;
  margin: 0 auto;
}

.contact-card {
  border-radius: 20px;
  padding: 38px 32px;
  text-align: center;
}

.contact-icon { font-size: 2.2rem; margin-bottom: 18px; display: block; }

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(74,59,54,0.68);
  margin-bottom: 22px;
}

/* ================================
   FOOTER
================================ */
.footer-note { margin-top: 10px; }

/* ================================
   MOBILE
================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 28px 24px;
    border-bottom: 1px solid var(--glass-b);
    flex-direction: column;
    gap: 22px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .gallery { grid-template-columns: repeat(2, 1fr); }


  .rsvp-search-row { flex-direction: column; align-items: stretch; }
  .rsvp-guest-row { grid-template-columns: 1fr; }

  .modal-box { padding: 38px 26px; }
  .modal-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .countdown { gap: 10px; }
  .cd-item { min-width: 70px; padding: 14px 16px; }
}
