/* ================================================
   WEDDING WEBSITE — Maira & Vinícius
   style.css
   ================================================
   Color palette:
   --dusty-rose:    #B88784
   --warm-brown:    #6B4F43
   --champagne:     #D8C3A5
   --ivory:         #F7F4EF
   --gold:          #C6A664
   ================================================ */

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

:root {
  --dusty-rose: #B88784;
  --warm-brown: #6B4F43;
  --champagne:  #D8C3A5;
  --ivory:      #F7F4EF;
  --gold:       #C6A664;
  --text-dark:  #3A2C27;
  --text-mid:   #6B4F43;
  --text-light: #9C8278;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Montserrat', 'Helvetica Neue', sans-serif;

  --max-width: 900px;
  --section-pad: clamp(80px, 12vw, 140px);
  --card-radius: 4px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 60px);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vh, 20px);
  text-align: center;
  /* Warm dark gradient — evokes a candlelit night */
  background: linear-gradient(
    165deg,
    #1a0f0b 0%,
    #2d1a14 30%,
    #3b2219 55%,
    #2a1810 80%,
    #150d09 100%
  );
  overflow: hidden;
  padding: 60px 24px 80px;
}

/* Subtle texture vignette */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    rgba(198, 166, 100, 0.06) 0%,
    transparent 65%
  ),
  radial-gradient(
    ellipse 100% 50% at 50% 100%,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* Ambient particles — pure CSS, no JS */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(184, 135, 132, 0.08) 0%, transparent 70%);
}
.hero::after {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, rgba(198, 166, 100, 0.07) 0%, transparent 70%);
}

/* Logo in hero */
.hero__logo {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(16px, 3vw, 28px);
  opacity: 0;
}

.hero__logo-img {
  width: clamp(260px, 60vw, 420px);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 28px rgba(198, 166, 100, 0.22));
  user-select: none;
  -webkit-user-drag: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero__prelude {
  font-family: var(--font-body);
  font-size: clamp(11px, 2.2vw, 13px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  margin-bottom: 20px;
}

.hero__divider {
  margin: 28px 0 24px;
  opacity: 0;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(13px, 2.8vw, 16px);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--champagne);
  line-height: 1.9;
  opacity: 0;
  max-width: 380px;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(198, 166, 100, 0.6));
  animation: scrollPulse 2.4s ease-in-out infinite;
  animation-delay: 2.5s;
}

/* ================================================
   SECTION SHARED STYLES
   ================================================ */
.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 72px);
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5.5vw, 42px);
  font-weight: 400;
  font-style: italic;
  color: var(--warm-brown);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
  opacity: 0.6;
}

/* ================================================
   INFO SECTION
   ================================================ */
.info {
  padding: var(--section-pad) 0;
  background: var(--ivory);
  position: relative;
}

.info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(198, 166, 100, 0.3), transparent);
}

.info__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 28px);
  margin-bottom: clamp(48px, 8vw, 80px);
}

/* Info cards */
.info-card {
  background: #fff;
  border: 1px solid rgba(198, 166, 100, 0.18);
  border-radius: var(--card-radius);
  padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 32px);
  text-align: center;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  /* Warm paper tone */
  background: linear-gradient(145deg, #fffcf9 0%, #f9f5ef 100%);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(107, 79, 67, 0.1);
}

/* Gold top accent line */
.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.info-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.info-card__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.info-card__value {
  font-family: var(--font-heading);
  font-size: clamp(17px, 3.2vw, 22px);
  font-weight: 500;
  color: var(--warm-brown);
  line-height: 1.3;
  margin-bottom: 6px;
}

.info-card__detail {
  font-family: var(--font-body);
  font-size: clamp(11px, 2vw, 13px);
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.6;
  letter-spacing: 0.03em;
}

/* Decorative quote */
.info__quote {
  text-align: center;
  padding: clamp(32px, 6vw, 52px) 0 0;
  border-top: 1px solid rgba(198, 166, 100, 0.18);
}

.info__quote blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(16px, 3.2vw, 22px);
  font-style: italic;
  font-weight: 400;
  color: var(--warm-brown);
  line-height: 1.8;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
}

/* ================================================
   COMING SOON SECTION
   ================================================ */
.coming-soon {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    #2a1810 0%,
    #3b2219 40%,
    #2d1a14 70%,
    #1e100c 100%
  );
}

.coming-soon__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 60% at 50% 50%,
    rgba(198, 166, 100, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.coming-soon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(198, 166, 100, 0.3), transparent);
}

.coming-soon__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 3vw, 24px);
}

/* Coming soon cards */
.coming-card {
  border: 1px solid rgba(198, 166, 100, 0.15);
  border-radius: var(--card-radius);
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3.5vw, 28px);
  text-align: center;
  background: rgba(255, 252, 249, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.coming-card:hover {
  border-color: rgba(198, 166, 100, 0.35);
  background: rgba(255, 252, 249, 0.07);
}

.coming-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  opacity: 0.85;
}

.coming-card__title {
  font-family: var(--font-heading);
  font-size: clamp(14px, 2.8vw, 17px);
  font-weight: 500;
  font-style: italic;
  color: var(--ivory);
  margin-bottom: 8px;
  line-height: 1.3;
}

.coming-card__desc {
  font-family: var(--font-body);
  font-size: clamp(11px, 2vw, 13px);
  font-weight: 300;
  color: var(--champagne);
  line-height: 1.7;
  opacity: 0.75;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: #150d09;
  text-align: center;
  padding: clamp(40px, 7vw, 64px) 24px clamp(32px, 6vw, 52px);
  border-top: 1px solid rgba(198, 166, 100, 0.12);
}

.footer__ornament {
  margin-bottom: 20px;
  opacity: 0.7;
}

.footer__text {
  font-family: var(--font-heading);
  font-size: clamp(14px, 2.8vw, 18px);
  font-style: italic;
  font-weight: 400;
  color: var(--champagne);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.footer__sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(216, 195, 165, 0.45);
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */

/* Fade-in for hero elements */
.fade-in {
  animation-fill-mode: forwards;
  animation-timing-function: ease;
  animation-name: fadeInUp;
  animation-duration: 1s;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.7s; }
.delay-3 { animation-delay: 1.1s; }
.delay-4 { animation-delay: 1.6s; }

/* Scroll-reveal — toggled by JS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.22s; }
.reveal.delay-3 { transition-delay: 0.34s; }
.reveal.delay-4 { transition-delay: 0.46s; }

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.9; transform: scaleY(1.15); }
}

/* ================================================
   RESPONSIVE — MOBILE FIRST ADJUSTMENTS
   ================================================ */

/* Small phones */
@media (max-width: 400px) {
  .hero__names {
    font-size: 52px;
  }

  .info__grid,
  .coming-soon__grid {
    grid-template-columns: 1fr;
  }
}

/* Phones */
@media (max-width: 600px) {
  .hero {
    padding: 60px 20px 90px;
  }

  .info__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .coming-soon__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .info-card {
    padding: 28px 24px;
  }

  .coming-card {
    padding: 24px 20px;
  }
}

/* Tablets and up */
@media (min-width: 768px) {
  .info__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .coming-soon__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large screens */
@media (min-width: 1200px) {
  :root {
    --section-pad: 140px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
