/* ============================================
   EVENT PLANNER - CLEAN REWRITE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.2;
}

p {
  color: #333333;
}

a {
  color: #5C4A3D;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #ffffff;
}

.navbar.scrolled .nav-brand {
  color: #1a1a1a;
}

.brand-text {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
}

.navbar.scrolled .nav-link {
  color: #333333;
}

.nav-link-cta {
  padding: 0.5rem 2rem;
  border: 1px solid currentColor;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #ffffff;
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
  background: #1a1a1a;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              linear-gradient(135deg, #8B7355 0%, #5C4A3D 100%);
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 0;
}

.floating-elements,
.corner-flourish,
.image-overlay,
.venue-image-overlay,
.pattern-overlay,
.registry-pattern,
.card-glow {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #ffffff;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #ffffff;
  margin-bottom: 2rem;
}

.hero-divider-wrap {
  margin: 2rem auto;
  width: 200px;
}

.hero-divider-svg {
  width: 100%;
  color: #ffffff;
}

.hero-location {
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.hero-date {
  font-size: 1.25rem;
  color: #ffffff;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
  background: #f5f0eb;
  padding: 1rem 0;
  overflow: hidden;
}

.marquee {
  display: flex;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #5C4A3D;
  white-space: nowrap;
}

.marquee-separator {
  color: #8B7355;
}

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

.marquee-right .marquee-content {
  animation-direction: reverse;
}

/* ============================================
   STORY SECTION
   ============================================ */
.story-section {
  background: #faf8f5;
  padding: 6rem 0;
}

.section-frame {
  display: none;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-image {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #D4C4B5, #8B7355);
  border-radius: 4px;
}

.story-content {
  padding: 2rem 0;
}

.story-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #5C4A3D;
  text-align: center;
}

.header-line {
  flex: 1;
  max-width: 150px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #5C4A3D, transparent);
}

.section-subtitle {
  font-size: 1rem;
  text-align: center;
  color: #666666;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-section {
  background: #5C4A3D;
  padding: 4rem 0;
}

.countdown-section .section-title {
  color: #ffffff;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

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

.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #ffffff;
  display: block;
}

.countdown-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #D4C4B5;
}

.pattern-overlay {
  display: none;
}

/* ============================================
   SCHEDULE SECTION
   ============================================ */
.schedule-section {
  background: #ffffff;
  padding: 6rem 0;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.schedule-card {
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.schedule-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 4px;
}

.card-front {
  background: linear-gradient(180deg, #8B7355, #5C4A3D);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.card-back {
  background: #faf8f5;
  transform: rotateY(180deg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.card-day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #ffffff;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: #5C4A3D;
  margin-bottom: 1.5rem;
  text-align: center;
}

.card-details {
  text-align: center;
  margin-bottom: 1.5rem;
}

.card-time {
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.card-venue {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #5C4A3D;
  border-bottom: 1px solid #5C4A3D;
  padding-bottom: 2px;
}

.card-event {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid #D4C4B5;
  margin-bottom: 1rem;
}

.card-event h4 {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: #5C4A3D;
  margin-bottom: 0.25rem;
}

.card-dress {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #D4C4B5;
}

.dress-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #666666;
  margin-bottom: 0.25rem;
}

.dress-code {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #1a1a1a;
}

.card-glow {
  display: none;
}

/* ============================================
   IMAGE DIVIDER
   ============================================ */
.image-divider {
  height: 40vh;
  min-height: 300px;
  background: linear-gradient(135deg, #5C4A3D, #8B7355);
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-content {
  text-align: center;
}

.divider-ornament {
  width: 100px;
  color: #ffffff;
}

/* ============================================
   VENUE SECTION
   ============================================ */
.venue-section {
  background: #f5f0eb;
  padding: 6rem 0;
}

.venue-slider {
  position: relative;
  overflow: hidden;
}

.venue-track {
  display: flex;
  gap: 2rem;
}

.venue-card {
  flex: 0 0 280px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease;
}

.venue-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(92, 74, 61, 0.2);
}

.venue-card:hover .venue-image {
  transform: scale(1.05);
}

.venue-card:hover .venue-name {
  color: #5C4A3D;
}

.venue-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #D4C4B5, #8B7355);
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.venue-info {
  text-align: center;
}

.venue-name {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.venue-link {
  font-size: 0.75rem;
  color: #5C4A3D;
}

.slider-arrow {
  display: none;
}

.slider-progress {
  margin-top: 2rem;
  height: 2px;
  background: #D4C4B5;
  position: relative;
}

.slider-progress-bar {
  height: 100%;
  width: 25%;
  background: #5C4A3D;
}

/* ============================================
   ACTIVITIES
   ============================================ */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.activity-card {
  height: 300px;
  perspective: 1000px;
  cursor: pointer;
}

.activity-card .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.activity-card:hover .card-inner {
  transform: rotateY(180deg);
}

.activity-front,
.activity-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 4px;
}

.activity-front {
  background: #5C4A3D;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.activity-back {
  background: #faf8f5;
  transform: rotateY(180deg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.activity-icon {
  width: 50px;
  height: 50px;
  color: #ffffff;
}

.activity-title {
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: #ffffff;
}

.activity-list {
  width: 100%;
}

.activity-item {
  text-align: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #D4C4B5;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  background: #ffffff;
  padding: 6rem 0;
}

.container-narrow {
  max-width: 800px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid #D4C4B5;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
  color: #1a1a1a;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-question span {
  color: #1a1a1a;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: #5C4A3D;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.8;
  padding-bottom: 1.5rem;
}

/* ============================================
   REGISTRY SECTION
   ============================================ */
.registry-section {
  background: #faf8f5;
  padding: 4rem 0;
}

.registry-pattern {
  display: none;
}

.registry-ornament {
  width: 100px;
  color: #5C4A3D;
  margin: 0 auto 1rem;
  display: block;
}

.registry-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333333;
  text-align: center;
  margin-bottom: 2rem;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary {
  background: #5C4A3D;
  color: #ffffff;
}

.btn-primary:hover {
  background: #3D2E24;
}

.btn-outline {
  background: transparent;
  border: 1px solid #5C4A3D;
  color: #5C4A3D;
}

.btn-outline:hover {
  background: #5C4A3D;
  color: #ffffff;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-arrow {
  width: 16px;
  height: 16px;
}

/* ============================================
   RSVP SECTION
   ============================================ */
.rsvp-section {
  background: linear-gradient(180deg, #8B7355, #5C4A3D);
  padding: 6rem 0;
}

.rsvp-section .section-title {
  color: #ffffff;
}

.header-line-light {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.rsvp-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  margin-top: -2rem;
  margin-bottom: 2rem;
}

.rsvp-form {
  background: #ffffff;
  padding: 3rem;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.input-animated {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1rem 0 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: transparent;
  border: none;
  border-bottom: 1px solid #D4C4B5;
}

.form-input:focus {
  outline: none;
  border-color: #5C4A3D;
}

.form-label-float {
  position: absolute;
  top: 1rem;
  left: 0;
  font-size: 0.9375rem;
  color: #666666;
  pointer-events: none;
  transition: 0.3s;
}

.form-input:focus ~ .form-label-float,
.form-input:not(:placeholder-shown) ~ .form-label-float {
  top: 0;
  font-size: 0.75rem;
  color: #5C4A3D;
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #5C4A3D;
  transition: 0.3s;
}

.form-input:focus ~ .input-border {
  width: 100%;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-group-vertical {
  flex-direction: column;
}

.checkbox-animated {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #333333;
}

.checkbox-animated input {
  position: absolute;
  opacity: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #D4C4B5;
  border-radius: 3px;
  position: relative;
}

.checkbox-animated input:checked ~ .checkbox-custom {
  background: #5C4A3D;
  border-color: #5C4A3D;
}

.checkbox-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: 0.2s;
}

.checkbox-animated input:checked ~ .checkbox-custom::after {
  transform: rotate(45deg) scale(1);
}

.success-message {
  display: none;
  text-align: center;
  padding: 3rem;
}

.success-message.show {
  display: block;
}

.success-icon {
  width: 60px;
  height: 60px;
  color: #5C4A3D;
  margin-bottom: 1rem;
}

.success-message p {
  font-size: 1.125rem;
  color: #333333;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1a1a1a;
  padding: 4rem 0;
  text-align: center;
}

.footer-ornament {
  margin-bottom: 2rem;
}

.footer-ornament svg {
  width: 150px;
  color: #5C4A3D;
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-date {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: #D4C4B5;
  margin-bottom: 2rem;
}

.footer-credit {
  font-size: 0.75rem;
  color: #666666;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #5C4A3D;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  cursor: pointer;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   SCROLL REVEAL - TEXT VISIBLE BY DEFAULT
   ============================================ */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-image {
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .nav-link {
    color: #333333;
  }

  .nav-toggle {
    display: block;
  }

  .countdown {
    gap: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
  }

  .header-line {
    width: 60px;
  }

  .rsvp-form {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: 0.1em;
  }

  .schedule-card {
    height: 350px;
  }

  .activity-card {
    height: 250px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-reveal,
  .reveal-text {
    opacity: 1 !important;
    transform: none !important;
  }
}
