/* =============================================
   WEDDING V7 — Romantic Wedding Template
   Fundo: #fff5f5 | Rosa: #ec4899 | Ouro: #d4af37
   Fonte: Playfair Display
   ============================================= */

/* ----- Google Fonts ----- */
@import url('../assets/fonts/gfonts-10344dff.css');

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

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

body {
  font-family: 'Playfair Display', Georgia, serif;
  background-color: #fff5f5;
  color: #4a3030;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #4a3030;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #a08080;
  font-style: italic;
  margin-bottom: 3rem;
}

.section-divider {
  text-align: center;
  font-size: 1.8rem;
  color: #d4af37;
  margin-bottom: 0.5rem;
  letter-spacing: 8px;
}

/* ----- Container ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Header / Navigation ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 245, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.95rem;
  color: #7a5a5a;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4af37;
  transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: #ec4899;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: #4a3030;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid #d4af37;
  background: transparent;
  color: #d4af37;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: 0;
}

.btn:hover {
  background: #d4af37;
  color: #fff;
}

.btn-primary {
  background: #ec4899;
  border-color: #ec4899;
  color: #fff;
}

.btn-primary:hover {
  background: #d43d8a;
  border-color: #d43d8a;
  color: #fff;
}

.btn-ouro {
  background: #d4af37;
  border-color: #d4af37;
  color: #fff;
}

.btn-ouro:hover {
  background: #b89426;
  border-color: #b89426;
  color: #fff;
}

.btn-outline-light {
  border-color: #fff;
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: #4a3030;
}

/* ----- Hero Section ----- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
  background: linear-gradient(135deg, #fff5f5 0%, #fce4ec 50%, #fff5f5 100%);
  overflow: hidden;
}

.hero::before {
  content: '✦';
  position: absolute;
  top: 15%;
  left: 10%;
  font-size: 3rem;
  color: rgba(212, 175, 55, 0.15);
  animation: floatStar 6s ease-in-out infinite;
}

.hero::after {
  content: '✦';
  position: absolute;
  bottom: 20%;
  right: 12%;
  font-size: 2.5rem;
  color: rgba(212, 175, 55, 0.12);
  animation: floatStar 8s ease-in-out infinite reverse;
}

@keyframes floatStar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-floral {
  font-size: 2rem;
  color: #ec4899;
  margin-bottom: 1.5rem;
  opacity: 0.7;
  letter-spacing: 10px;
}

.hero-names {
  font-size: 4.5rem;
  font-weight: 700;
  color: #4a3030;
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
}

.hero-names .ampersand {
  color: #d4af37;
  font-style: italic;
  padding: 0 1rem;
}

.hero-date {
  font-size: 1.3rem;
  color: #a08080;
  font-style: italic;
  margin-bottom: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: #d4af37;
  margin: 1.5rem auto;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #8a6a6a;
  font-style: italic;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-ornament {
  font-size: 1.5rem;
  color: #d4af37;
  margin-top: 2rem;
  letter-spacing: 15px;
}

/* ----- Countdown ----- */
.countdown-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #ec4899, #d43d8a);
  color: #fff;
  text-align: center;
}

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

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

.countdown-number {
  font-size: 3.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.countdown-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.8;
  font-style: italic;
}

.countdown-separator {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  align-self: center;
  padding-top: 0.5rem;
}

/* ----- Sections ----- */
.section {
  padding: 5rem 0;
}

.section-light {
  background: #fff;
}

.section-soft {
  background: #fff5f5;
}

.section-rose {
  background: linear-gradient(135deg, #fff5f5, #fce4ec);
}

/* ----- Story Page ----- */
.story-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #ec4899, #d4af37, transparent);
  transform: translateX(-50%);
}

.story-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3.5rem;
  position: relative;
}

.story-item:nth-child(odd) {
  flex-direction: row;
}

.story-item:nth-child(even) {
  flex-direction: row-reverse;
}

.story-content {
  width: 45%;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.story-content::after {
  content: '';
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.story-item:nth-child(odd) .story-content::after {
  right: -20px;
  border-left-color: #d4af37;
}

.story-item:nth-child(even) .story-content::after {
  left: -20px;
  border-right-color: #d4af37;
}

.story-date {
  font-size: 0.85rem;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.story-content h3 {
  font-size: 1.3rem;
  color: #4a3030;
  margin-bottom: 0.5rem;
}

.story-content p {
  font-size: 0.95rem;
  color: #7a5a5a;
  line-height: 1.8;
}

.story-marker {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 20px;
  height: 20px;
  background: #d4af37;
  border: 4px solid #fff5f5;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 3px #d4af37;
}

/* ----- Gallery Page ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: #fce4ec;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 48, 48, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 300;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border: 3px solid rgba(212, 175, 55, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(236, 72, 153, 0.6);
  border-color: #ec4899;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(212, 175, 55, 0.6);
  border-color: #d4af37;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

/* ----- Details Page ----- */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.detail-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.detail-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.detail-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ec4899;
}

.detail-card h3 {
  font-size: 1.3rem;
  color: #4a3030;
  margin-bottom: 0.8rem;
}

.detail-card p {
  color: #7a5a5a;
  font-size: 0.95rem;
  line-height: 1.8;
}

.detail-card .detail-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #d4af37;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Schedule timeline */
.schedule {
  max-width: 700px;
  margin: 0 auto;
}

.schedule-item {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  align-items: flex-start;
}

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

.schedule-time {
  min-width: 100px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #d4af37;
  font-style: italic;
}

.schedule-info h4 {
  font-size: 1.1rem;
  color: #4a3030;
  margin-bottom: 0.3rem;
}

.schedule-info p {
  color: #8a6a6a;
  font-size: 0.9rem;
}

/* ----- RSVP Page ----- */
.rsvp-form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: #4a3030;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  border: 1px solid #e0c0c0;
  background: #fffaf5;
  color: #4a3030;
  transition: border-color 0.3s ease;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d4af37;
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d4af37' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.rsvp-radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.rsvp-radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
}

.rsvp-radio-group input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #ec4899;
}

.rsvp-submit {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
}

/* ----- Contact Page ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-info-card h3 {
  font-size: 1.3rem;
  color: #4a3030;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.contact-person:last-child {
  border-bottom: none;
}

.contact-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fce4ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ec4899;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1rem;
  color: #4a3030;
  margin-bottom: 0.2rem;
}

.contact-details p {
  font-size: 0.85rem;
  color: #8a6a6a;
}

.contact-details a {
  color: #ec4899;
}

.contact-details a:hover {
  color: #d4af37;
}

/* ----- Map Placeholder ----- */
.map-placeholder {
  width: 100%;
  height: 280px;
  background: #fce4ec;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  color: #a08080;
  font-style: italic;
}

.map-placeholder:hover {
  background: #f8d7e0;
  color: #4a3030;
}

.map-placeholder span {
  font-size: 2.5rem;
}

/* ----- Footer ----- */
.footer {
  background: #4a3030;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 3rem 1.5rem;
}

.footer-floral {
  font-size: 1.5rem;
  color: #d4af37;
  margin-bottom: 1rem;
  letter-spacing: 10px;
}

.footer p {
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.footer .footer-hearts {
  color: #ec4899;
}

/* ----- Page Header ----- */
.page-header {
  padding: 10rem 1.5rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, #fff5f5 0%, #fce4ec 100%);
  position: relative;
}

.page-header h1 {
  font-size: 3.5rem;
  color: #4a3030;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: #8a6a6a;
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
}

.page-header::after {
  content: '✦';
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: #d4af37;
}

/* ----- 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: 1024px) {
  .hero-names {
    font-size: 3.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .details-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 245, 245, 0.98);
    justify-content: center;
    gap: 2rem;
    backdrop-filter: blur(10px);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
    position: fixed;
    top: 1rem;
    right: 1.5rem;
  }

  /* Hero */
  .hero-names {
    font-size: 2.8rem;
  }

  .hero-names .ampersand {
    padding: 0 0.5rem;
  }

  .hero-date {
    font-size: 1rem;
  }

  /* Countdown */
  .countdown-grid {
    gap: 1.5rem;
  }

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

  /* Story */
  .story-timeline::before {
    left: 20px;
  }

  .story-item,
  .story-item:nth-child(even) {
    flex-direction: row;
    padding-left: 50px;
  }

  .story-content {
    width: 100%;
  }

  .story-content::after {
    display: none;
  }

  .story-marker {
    left: 20px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Details & Contact */
  .details-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .rsvp-form {
    padding: 1.5rem;
  }

  /* Page header */
  .page-header h1 {
    font-size: 2.5rem;
  }

  /* Section */
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-names {
    font-size: 2.2rem;
  }

  .countdown-grid {
    gap: 1rem;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}
