/* ========================================
   MATRIMONIO PRO — PREMIUM DESIGN SYSTEM
   Senior-level luxury wedding aesthetic
   ======================================== */

:root {
  /* Color palette — luxe, warm, editorial */
  --ink: #1A1A1A;
  --ink-soft: #2C2C2C;
  --gray-text: #6B6B6B;
  --gray-line: #E5E0D8;
  --ivory: #FAF6F0;
  --ivory-warm: #F4ECDE;
  --champagne: #EFE4D2;
  --white: #FFFFFF;
  --gold: #B8975A;
  --gold-light: #D4B57E;
  --gold-deep: #8F7340;
  --sage: #9CA88E;
  --sage-deep: #6B7960;
  --blush: #E8D5C4;
  --rose-soft: #F2DDD0;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-italic: 'Italiana', 'Cormorant Garamond', serif;
  --font-body: 'Inter', 'Lato', -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Subtle grain texture overlay — premium feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ========================================
   TYPOGRAPHY — EDITORIAL HIERARCHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

p {
  line-height: 1.7;
  font-size: 1rem;
  color: var(--gray-text);
  font-weight: 400;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 400;
}

/* Eyebrow — small uppercase label above sections */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.4s var(--ease-out);
}

/* Animated underline link */
.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}

.link-underline:hover::after {
  transform: scaleX(0);
  transform-origin: left;
}

/* ========================================
   BUTTONS — REFINED, MAGNETIC
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background: transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--ivory);
}

.btn-gold {
  background: var(--gold);
  color: var(--ivory);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--gray-line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-small {
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
}

.btn-large {
  padding: 1.35rem 3.5rem;
  font-size: 0.9rem;
}

/* Arrow icon for CTAs */
.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(6px);
}

/* ========================================
   NAVBAR — MINIMAL, EDITORIAL
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  padding: 1rem 3rem;
  border-bottom-color: var(--gray-line);
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo .italic {
  font-family: var(--font-italic);
  font-style: italic;
}

.navbar-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.navbar-menu a {
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}

.navbar-menu a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.navbar-menu a:not(.btn):hover::after {
  transform: scaleX(1);
}

.navbar-menu a:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  height: 1px;
  background: var(--ink);
  transition: all 0.4s var(--ease-out);
}

.menu-toggle span:nth-child(1) { top: 4px; width: 100%; }
.menu-toggle span:nth-child(2) { top: 50%; width: 70%; right: 0; left: auto; }
.menu-toggle span:nth-child(3) { bottom: 4px; width: 100%; }

@media (max-width: 900px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .navbar-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--gray-line);
  }

  .navbar-menu.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

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

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-divider {
  text-align: center;
  margin: var(--space-lg) auto;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.5em;
}

@media (max-width: 768px) {
  .container, .container-narrow {
    padding: 0 1.5rem;
  }

  .section {
    padding: var(--space-xl) 0;
  }
}

/* Section number — editorial detail */
.section-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.grid {
  display: grid;
  gap: 3rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ========================================
   HERO — EDITORIAL, OVERSIZED
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 3rem 4rem;
  background:
    radial-gradient(ellipse at top right, rgba(232, 213, 196, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(156, 168, 142, 0.2) 0%, transparent 50%),
    var(--ivory);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  margin-bottom: 2rem;
  animation: revealUp 1.2s var(--ease-out) 0.3s both;
}

.hero-content .italic {
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--gray-text);
  max-width: 480px;
  margin-bottom: 3rem;
  line-height: 1.7;
  animation: revealUp 1.2s var(--ease-out) 0.5s both;
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  animation: revealUp 1.2s var(--ease-out) 0.7s both;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--gray-text);
  letter-spacing: 0.05em;
}

.hero-meta-divider {
  width: 30px;
  height: 1px;
  background: var(--gray-line);
}

/* Hero visual — image with arch mask */
.hero-visual {
  position: relative;
  height: 70vh;
  min-height: 500px;
  animation: revealScale 1.5s var(--ease-out) 0.4s both;
}

.hero-image {
  width: 100%;
  height: 100%;
  background-image: url('https://source.unsplash.com/800x1000/?wedding,bride,elegant');
  background-size: cover;
  background-position: center;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  position: relative;
  z-index: 2;
}

.hero-decoration {
  position: absolute;
  top: 30%;
  right: -40px;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.15;
  z-index: 1;
  transform: rotate(-15deg);
  pointer-events: none;
}

/* Floating petals */
.petal {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  animation: petalFloat 12s linear infinite;
}

.petal svg {
  width: 24px;
  height: 24px;
  fill: var(--rose-soft);
  opacity: 0.6;
}

@media (max-width: 900px) {
  .hero {
    padding: 7rem 1.5rem 3rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    height: 50vh;
    min-height: 400px;
    order: -1;
  }

  .hero-decoration {
    font-size: 5rem;
    right: 10px;
  }
}

/* ========================================
   STATS BAR — EDITORIAL NUMBERS
   ======================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
  background: var(--ivory-warm);
}

.stat {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid var(--gray-line);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--ink);
  display: block;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-top: 0.75rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--gray-line);
    padding-bottom: 1.5rem;
  }

  .stat:last-child {
    border-bottom: none;
  }
}

/* ========================================
   FEATURE CARDS — MINIMAL EDITORIAL
   ======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--gray-line);
  border-left: 1px solid var(--gray-line);
}

.feature {
  padding: 3rem 2rem;
  border-right: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
  background: var(--ivory);
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ivory-warm);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}

.feature:hover::before {
  transform: translateY(0);
}

.feature > * {
  position: relative;
  z-index: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transition: all 0.5s var(--ease-out);
}

.feature:hover .feature-icon {
  background: var(--gold);
  color: var(--ivory);
  transform: rotate(360deg);
}

.feature h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.feature p {
  font-size: 0.925rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ========================================
   TEMPLATE GRID — BENTO STYLE
   ======================================== */

.templates-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.template-card {
  position: relative;
  overflow: hidden;
  background: var(--ivory-warm);
  cursor: pointer;
  transition: all 0.5s var(--ease-out);
  border-radius: 2px;
  grid-column: span 3;
}

.template-card:nth-child(1) { grid-column: span 4; }
.template-card:nth-child(2) { grid-column: span 4; }
.template-card:nth-child(3) { grid-column: span 4; }
.template-card:nth-child(4) { grid-column: span 3; }
.template-card:nth-child(5) { grid-column: span 3; }
.template-card:nth-child(6) { grid-column: span 3; }
.template-card:nth-child(7) { grid-column: span 3; }

.template-preview {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
  transition: all 0.7s var(--ease-out);
}

.template-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 26, 26, 0.6) 100%);
  z-index: 1;
}

.template-card:hover .template-preview {
  transform: scale(1.05);
}

.template-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
  color: var(--ivory);
}

.template-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ivory);
  margin-bottom: 0.25rem;
}

.template-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
}

.template-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  z-index: 3;
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.template-card.selected {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

@media (max-width: 900px) {
  .templates-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .template-card,
  .template-card:nth-child(n) {
    grid-column: span 1;
  }
}

/* ========================================
   PROCESS — STEPPED, EDITORIAL
   ======================================== */

.process {
  position: relative;
  padding-left: 2rem;
}

.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-line);
  align-items: center;
  transition: all 0.5s var(--ease-out);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step:hover {
  padding-left: 1rem;
}

.process-step:hover .process-number {
  color: var(--gold);
}

.process-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4rem;
  font-weight: 300;
  color: var(--gray-line);
  line-height: 1;
  transition: color 0.5s var(--ease-out);
}

.process-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.process-content p {
  font-size: 1.05rem;
  color: var(--gray-text);
  max-width: 500px;
}

@media (max-width: 768px) {
  .process-step {
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }

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

  .process-content h3 {
    font-size: 1.25rem;
  }
}

/* ========================================
   ABOUT — SPLIT COLUMNS
   ======================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-image {
  aspect-ratio: 3/4;
  background-image: url('https://source.unsplash.com/600x800/?italy,castle,wedding');
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 0 0 50% 50% / 0 0 20% 20%;
}

.about-image::after {
  content: '"';
  position: absolute;
  top: -2rem;
  left: -3rem;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 12rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image::after {
    font-size: 6rem;
    top: -1rem;
    left: -1rem;
  }
}

/* ========================================
   TESTIMONIALS — MARQUEE + CARDS
   ======================================== */

.testimonials-marquee {
  overflow: hidden;
  padding: 2rem 0;
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
  background: var(--ivory-warm);
  position: relative;
}

.testimonials-marquee::before,
.testimonials-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.testimonials-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--ivory-warm), transparent);
}

.testimonials-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--ivory-warm), transparent);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.marquee-item::after {
  content: '✦';
  color: var(--gold);
  font-size: 1rem;
}

.testimonial {
  background: var(--white);
  padding: 3rem 2.5rem;
  position: relative;
  transition: all 0.5s var(--ease-out);
  border: 1px solid var(--gray-line);
}

.testimonial:hover {
  background: var(--ivory-warm);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 6rem;
  color: var(--gold);
  line-height: 0.5;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-line);
}

.testimonial-author-name {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.testimonial-author-detail {
  font-size: 0.75rem;
  color: var(--gold);
  margin-top: 0.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ========================================
   FAQ — MINIMAL ACCORDION
   ======================================== */

.faq-list {
  border-top: 1px solid var(--gray-line);
}

.faq-item {
  border-bottom: 1px solid var(--gray-line);
  transition: all 0.5s var(--ease-out);
}

.faq-item.open {
  background: var(--ivory-warm);
}

.faq-question {
  padding: 2rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: all 0.4s var(--ease-out);
  padding-left: 1rem;
  padding-right: 1rem;
}

.faq-question:hover {
  color: var(--gold);
  padding-left: 1.5rem;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  transition: all 0.4s var(--ease-out);
}

.faq-toggle::before {
  width: 16px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  width: 1px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}

.faq-answer-inner {
  padding: 0 1rem 2rem 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-text);
  max-width: 700px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ========================================
   FORM — REFINED INPUTS
   ======================================== */

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

label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid var(--gray-line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: all 0.4s var(--ease-out);
  border-radius: 0;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

textarea {
  min-height: 100px;
  resize: vertical;
  font-family: var(--font-body);
}

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

/* ========================================
   CHECKBOX CARDS — REFINED
   ======================================== */

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.checkbox-card {
  background: var(--ivory);
  border: 1px solid var(--gray-line);
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  text-align: center;
  position: relative;
}

.checkbox-card input[type="checkbox"] {
  display: none;
}

.checkbox-card:hover {
  border-color: var(--gold);
  background: var(--white);
}

.checkbox-card.checked {
  border-color: var(--gold);
  background: var(--ivory-warm);
}

.checkbox-card.checked::before {
  content: '✓';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 20px;
  height: 20px;
  background: var(--gold);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border-radius: 50%;
}

.checkbox-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.checkbox-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
}

/* ========================================
   MULTI-STEP FORM
   ======================================== */

.form-page {
  min-height: 100vh;
  background: var(--ivory);
  padding-top: 100px;
}

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

.form-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-line);
}

.form-header h2 {
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 1px;
  background: var(--gray-line);
  position: relative;
  margin: 2rem 0;
}

.progress-fill {
  height: 1px;
  background: var(--gold);
  transition: width 0.6s var(--ease-out);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-body {
  background: var(--white);
  padding: 4rem 3rem;
  border: 1px solid var(--gray-line);
  min-height: 500px;
  position: relative;
}

.form-step {
  display: none;
  animation: stepIn 0.6s var(--ease-out);
}

.form-step.active {
  display: block;
}

.form-footer {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .form-body {
    padding: 2.5rem 1.5rem;
  }

  .form-footer {
    flex-direction: column-reverse;
  }

  .form-footer .btn {
    width: 100%;
  }
}

/* ========================================
   INVITATION DEMO — REFINED
   ======================================== */

.invitation-splash {
  width: 100%;
  height: 100vh;
  background:
    radial-gradient(ellipse at center, rgba(232, 213, 196, 0.3) 0%, transparent 70%),
    var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.splash-content {
  max-width: 600px;
  padding: 2rem;
}

.splash-ornament {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 2rem;
  letter-spacing: 0.5em;
  margin-bottom: 2rem;
  animation: revealUp 1s var(--ease-out) 0.2s both;
}

.splash-names {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  animation: revealUp 1s var(--ease-out) 0.4s both;
}

.splash-names .ampersand {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--gold);
  font-size: 1.2em;
  display: inline-block;
  margin: 0 0.2em;
}

.splash-date {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 3rem;
  animation: revealUp 1s var(--ease-out) 0.6s both;
}

.splash-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 320px;
  margin: 0 auto;
  animation: revealUp 1s var(--ease-out) 0.8s both;
}

.invitation {
  width: 100%;
  min-height: 100vh;
  background: var(--ivory);
  display: none;
  padding-bottom: 4rem;
}

.invitation.active {
  display: block;
  animation: fadeIn 1s var(--ease-out);
}

.invitation-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(232, 213, 196, 0.2) 0%, transparent 60%),
    var(--ivory);
}

.invitation-hero h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  margin-bottom: 1rem;
}

.invitation-hero .ampersand {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--gold);
}

.invitation-hero .date {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 4rem;
}

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

.countdown-item {
  text-align: center;
  padding: 1.5rem 0.5rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-top: 0.75rem;
  font-weight: 500;
}

.invitation-section {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.invitation-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.invitation-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-ornament {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.25rem;
  letter-spacing: 0.5em;
  margin-bottom: 1rem;
  display: block;
}

.invitation-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}

.invitation-photos img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transition: transform 0.6s var(--ease-out);
}

.invitation-photos img:hover {
  transform: translateY(-8px);
}

.invitation-photos img:nth-child(2) {
  margin-top: 3rem;
}

@media (max-width: 700px) {
  .invitation-photos {
    grid-template-columns: 1fr;
  }

  .invitation-photos img:nth-child(2) {
    margin-top: 0;
  }
}

.event-card {
  background: var(--white);
  padding: 3rem;
  text-align: center;
  border: 1px solid var(--gray-line);
  margin-bottom: 2rem;
  position: relative;
}

.event-card-icon {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.event-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.event-card .time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 1.5rem 0;
}

.dress-code-card {
  text-align: center;
  padding: 3rem;
  background: var(--ivory-warm);
  border: 1px solid var(--gold);
}

.dress-code-card .label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin: 1rem 0;
}

.gift-card {
  background: var(--ink);
  color: var(--ivory);
  padding: 4rem 3rem;
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.gift-card::before,
.gift-card::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold);
}

.gift-card::before {
  top: 1rem;
  left: 1rem;
  border-right: none;
  border-bottom: none;
}

.gift-card::after {
  bottom: 1rem;
  right: 1rem;
  border-left: none;
  border-top: none;
}

.gift-alias {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  margin: 2rem 0 1rem;
  letter-spacing: 0.15em;
}

.map-container {
  width: 100%;
  height: 400px;
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid var(--gray-line);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.3) sepia(0.1);
}

.rsvp-form {
  background: var(--white);
  padding: 3rem;
  border: 1px solid var(--gray-line);
}

/* Audio control */
.audio-control {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: var(--ivory);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 50;
  transition: all 0.4s var(--ease-out);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.15);
}

.audio-control:hover {
  background: var(--gold);
  transform: scale(1.05);
}

/* ========================================
   FOOTER — REFINED
   ======================================== */

footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 5rem 0 2rem;
  position: relative;
}

.footer-top {
  text-align: center;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 3rem;
}

.footer-top h2 {
  color: var(--ivory);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.footer-top .italic {
  color: var(--gold-light);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  padding: 0 3rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
}

.footer-section h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.footer-section a {
  display: block;
  color: var(--ivory);
  opacity: 0.7;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
  padding: 2rem 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(250, 246, 240, 0.5);
  letter-spacing: 0.1em;
}

/* ========================================
   ANIMATIONS — REFINED, MEANINGFUL
   ======================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes petalFloat {
  0% {
    transform: translate(0, -100px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translate(100px, 100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

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

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE FINE-TUNING
   ======================================== */

@media (max-width: 768px) {
  .container, .container-narrow {
    padding: 0 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .audio-control {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 46px;
    height: 46px;
  }

  .grid {
    gap: 1.5rem;
  }

  .testimonial {
    padding: 2rem 1.5rem;
  }

  .testimonial-text {
    font-size: 1.1rem;
  }
}

/* Selection styling */
::selection {
  background: var(--gold);
  color: var(--ivory);
}

::-moz-selection {
  background: var(--gold);
  color: var(--ivory);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ivory);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 0;
}
