/* Martin & Bridget Wedding Website */
:root {
  --sage: #8B937E;
  --blush: #D8A7A5;
  --bark: #4D5D4A;
  --olivewood: #DECDB8;
  --olive: #66735C;
  --sand: #DBC8B8;
  --parchment: #F7F2EC;
  --background: var(--parchment);
  --foreground: var(--bark);
  --primary: var(--olive);
  --secondary: #DBC8B8;
  --muted-foreground: #5C6658;
  --accent: #DECDB8;
  --border: var(--sand);
  --hero-gradient: linear-gradient(135deg, rgba(163,177,138,.8), rgba(231,183,178,.55));
  --romantic-gradient: linear-gradient(135deg, var(--parchment), #F1E7DC);
  --elegant-shadow: 0 10px 30px -5px rgba(128,128,0,.2);
  --soft-shadow: 0 4px 15px -3px rgba(163,177,138,.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, sans-serif;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.romantic-heading,
.font-romantic {
  font-family: "Playfair Display", serif;
}

.elegant-text {
  color: var(--muted-foreground);
  line-height: 1.65;
}

.hero-text {
  color: var(--parchment);
}

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-sage { color: var(--sage); }
.text-muted { color: var(--muted-foreground); }
.text-center { text-align: center; }

.bg-background { background: var(--background); }
.bg-romantic-gradient { background: var(--romantic-gradient); }

.section-padding {
  padding: 4rem 1rem;
}

.max-w-7xl { max-width: 80rem; margin: auto; }
.max-w-6xl { max-width: 72rem; margin: auto; }
.max-w-4xl { max-width: 56rem; margin: auto; }
.max-w-2xl { max-width: 42rem; margin: auto; }
.max-w-md { max-width: 28rem; margin: auto; }

.wedding-card {
  background: var(--parchment);
  border: 2px solid rgba(163,177,138,.3);
  border-radius: .75rem;
  box-shadow: var(--elegant-shadow);
}

.section-header {
  margin-bottom: 4rem;
}

.section-header svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--accent);
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  margin: 0 0 1rem;
}

.section-title-small {
  font-size: clamp(1.9rem, 4vw, 2.25rem);
  margin: 0 0 .5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 1rem;
}

/* Navigation */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: transparent;
  transition: .3s;
}

nav.scrolled {
  background: rgba(243,234,215,.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--soft-shadow);
}

.nav-inner {
  max-width: 80rem;
  margin: auto;
  height: 4rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  color: var(--foreground);
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.nav-logo svg {
  color: var(--primary);
}

.nav-items {
  display: none;
  align-items: center;
  gap: .25rem;
}

.nav-btn {
  border: 0;
  background: transparent;
  color: var(--foreground);
  padding: .5rem .75rem;
  border-radius: .375rem;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: .3s;
}

.nav-btn:hover,
.nav-btn.active {
  color: var(--primary);
  background: rgba(163,177,138,.2);
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.menu-toggle {
  display: block;
  background: transparent;
  border: 0;
  color: var(--foreground);
  padding: .5rem;
}

.mobile-menu {
  display: none;
  background: rgba(243,234,215,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: .5rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-bg,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: var(--hero-gradient);
}

.hero-content-wrap {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}

.hero-main-icon {
  width: 4rem;
  height: 4rem;
  color: var(--parchment);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3.75rem, 10vw, 6rem);
  line-height: 1;
  margin: .8rem 0 1rem;
}

.hero-sub {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  color: var(--parchment);
  opacity: .9;
}

.hero-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2rem;
  font-size: 1.125rem;
  color: var(--parchment);
}

.hero-detail.location {
  margin-bottom: 3rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto 2rem;
}

.countdown-card {
  padding: 1rem;
  text-align: center;
}

.count-number {
  font-size: 1.875rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
  color: var(--primary);
}

.count-label {
  font-size: .875rem;
  color: var(--muted-foreground);
  text-transform: capitalize;
}

.primary-btn {
  background: var(--sage);
  color: var(--parchment);
  border: 0;
  border-radius: .5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  transition: .3s;
}

.primary-btn:hover {
  background: rgba(163,177,138,.9);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid var(--parchment);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}

.mouse-dot {
  width: .25rem;
  height: .75rem;
  background: var(--parchment);
  border-radius: 999px;
  margin-top: .5rem;
  animation: bounce 1s infinite;
}

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

/* Story */
.story-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.story-img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,.3);
}

.story-copy p {
  color: var(--muted-foreground);
  line-height: 1.75;
  font-size: 1.05rem;
  max-width: 70ch;
  margin: 0 0 1.5rem;
}

/* Program */
.program-desktop {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.program-line {
  width: 2rem;
  height: 2px;
  background: rgba(163,177,138,.5);
}

.program-mobile {
  display: block;
}

.program-mobile .program-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(163,177,138,.2);
}

/* Notes */
.notes-card {
  padding: 2rem;
}

.color-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 92px));
  justify-content: center;
  align-items: start;
  gap: clamp(.8rem, 3vw, 1.5rem);
}

.color-swatch {
  width: 72px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  margin: 0 auto .65rem;
  border: 2px solid rgba(139,147,126,.22);
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.color-name {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
}

.notes-grid {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(163,177,138,.2);
  display: grid;
  gap: 1.5rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-card {
  overflow: hidden;
}

.faq-button {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.faq-button h3 {
  margin: 0;
  font-size: 1.1rem;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: .3s;
}

.faq-answer.open {
  max-height: 24rem;
  opacity: 1;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
}

.help-card {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(163,177,138,.1);
}

/* Forms */
.form-card {
  background: var(--parchment);
  border: 1px solid rgba(163,177,138,.2);
  border-radius: .75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.form-header {
  padding: 1.5rem 1.5rem 0;
  text-align: center;
}

.form-header h3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--sage);
}

.form-content {
  padding: 1.5rem;
}

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

label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: .5rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--sand);
  background: var(--background);
  color: var(--foreground);
  border-radius: .375rem;
  padding: .7rem .75rem;
  outline: none;
}

input:focus,
textarea:focus {
  box-shadow: 0 0 0 2px var(--sage);
}

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

.field-help {
  font-size: .875rem;
  color: var(--muted-foreground);
}

.btn {
  background: var(--primary);
  color: var(--parchment);
  border: 0;
  border-radius: .375rem;
  padding: .75rem 1rem;
  width: 100%;
  cursor: pointer;
  font-weight: 500;
}

/* Location */
.location-grid {
  display: grid;
  gap: 2rem;
}

.location-card {
  padding: 2rem;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.info-row h4 {
  margin: 0 0 .25rem;
}

.small {
  font-size: .875rem;
}

.map-placeholder {
  background: var(--sand);
  border-radius: .5rem;
  padding: 2rem;
  text-align: center;
}

.elegant-button {
  background: var(--secondary);
  color: var(--bark);
  border-radius: .5rem;
  padding: .5rem 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  cursor: pointer;
}

.hotel-list {
  display: grid;
  gap: 1rem;
}

.hotel-card {
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: 1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-card {
  padding: 1.5rem;
  text-align: center;
}

.contact-card svg {
  color: var(--accent);
}

.contact-card .actions {
  margin-top: 1.5rem;
  display: grid;
  gap: .5rem;
}

.contact-card .whatsapp {
  background: #22c55e;
  color: white;
}

.emergency-card,
.planning-card {
  margin-top: 2rem;
  padding: 1.5rem;
}

.emergency-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  align-items: center;
}

.emergency-links a,
.emergency-links span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* Gifts */
.gift-grid {
  display: grid;
  gap: 2rem;
}

.gift-card {
  padding: 2rem;
  text-align: center;
}

.gift-card > svg {
  color: var(--primary);
  width: 2.5rem;
  height: 2.5rem;
}

.detail-box {
  margin-top: 1rem;
  padding: .9rem;
  background: rgba(163,177,138,.05);
  border-radius: .5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  text-align: left;
}

.detail-box p {
  margin: 0 0 .25rem;
  font-size: .875rem;
}

.copy-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.gift-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(163,177,138,.1);
  border-radius: .5rem;
  color: var(--muted-foreground);
}

.hearts-card {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(163,177,138,.05);
}

.heart-emoji {
  font-size: 2.5rem;
  margin-top: 1.5rem;
}

/* Messages */
.message-section {
  background: linear-gradient(135deg, rgba(163,177,138,.1), rgba(163,177,138,.1));
}

.required {
  color: #ef4444;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 4rem 2rem;
  }

  .program-desktop {
    display: flex;
  }

  .program-mobile {
    display: none;
  }

  .color-grid {
    grid-template-columns: repeat(3, minmax(72px, 92px));
  }

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

@media (min-width: 1024px) {
  .section-padding {
    padding: 4rem;
  }

  .nav-items {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .story-grid {
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
  }

  .story-image-column {
    position: sticky;
    top: 2rem;
  }

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

  .color-grid {
    grid-template-columns: repeat(3, minmax(72px, 92px));
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
