/* ========================================
   CSS Variables / Design Tokens
   ======================================== */
:root {
  /* Colors */
  --gold: oklch(0.72 0.10 80);
  --gold-light: oklch(0.85 0.06 80);
  --gold-dark: oklch(0.55 0.10 75);
  --crimson: oklch(0.40 0.12 25);
  --crimson-light: oklch(0.50 0.12 25);
  --cream: oklch(0.97 0.005 80);
  --cream-dark: oklch(0.93 0.01 80);

  /* Semantic colors */
  --background: oklch(0.97 0.005 80);
  --foreground: oklch(0.22 0.02 30);
  --card: oklch(0.99 0.003 80);
  --card-foreground: oklch(0.22 0.02 30);
  --primary: oklch(0.40 0.12 25);
  --primary-foreground: oklch(0.97 0.005 80);
  --muted: oklch(0.93 0.01 80);
  --muted-foreground: oklch(0.50 0.03 30);
  --border: oklch(0.88 0.02 75);

  /* Radius */
  --radius: 0.625rem;

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
}

/* ========================================
   Utility
   ======================================== */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-md {
  max-width: 56rem;
}

.container-sm {
  max-width: 42rem;
}

.text-crimson {
  color: var(--crimson);
}

.fw-semibold {
  font-weight: 600;
}

/* ========================================
   Section base
   ======================================== */
.section {
  padding: 5rem 0;
}

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

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

.section-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1.5rem;
  display: block;
}

.bell-gold {
  color: var(--gold);
}

.icon-gold {
  color: var(--gold);
  width: 2rem;
  height: 2rem;
  margin: 0 auto 1.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--foreground);
  margin-bottom: 1rem;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.75;
}

/* ========================================
   Decorative Border
   ======================================== */
.decorative-border {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 20rem;
  margin: 0 auto 2rem;
}

.db-sm {
  max-width: 24rem;
  margin: 0 auto 2rem;
}

.db-line {
  height: 1px;
  flex: 1;
  background-color: var(--gold);
  opacity: 0.3;
}

.db-diamonds {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.db-diamond {
  transform: rotate(45deg);
  background-color: var(--gold);
}

.db-diamond.small {
  width: 0.375rem;
  height: 0.375rem;
  opacity: 0.5;
}

.db-diamond.large {
  width: 0.5rem;
  height: 0.5rem;
  opacity: 0.7;
}

/* ========================================
   Ornament SVG
   ======================================== */
.ornament {
  display: block;
  margin: 0 auto;
  color: var(--gold);
}

.ornament-top {
  width: 16rem;
  margin-bottom: 2rem;
}

.ornament-bottom {
  width: 16rem;
  margin-top: 2rem;
}

.ornament-inv-top,
.ornament-inv-bottom {
  width: 14rem;
  margin: 0 auto 2rem;
}

.ornament-inv-bottom {
  margin: 2rem auto 0;
}

.ornament-sm {
  width: 12rem;
  margin-top: 2rem;
}

.ornament-footer {
  width: 12rem;
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

/* ========================================
   NAVIGATION
   ======================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s;
  background: transparent;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(from var(--background) r g b / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-bell-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold-light);
  transition: color 0.3s;
}

#navbar.scrolled .nav-bell-icon {
  color: var(--gold);
}

.nav-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--primary-foreground);
  transition: color 0.3s;
}

#navbar.scrolled .nav-title {
  color: var(--foreground);
}

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

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(from var(--primary-foreground) r g b / 0.8);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gold);
}

#navbar.scrolled .nav-links a {
  color: var(--muted-foreground);
}

#navbar.scrolled .nav-links a:hover {
  color: var(--gold);
}

/* Mobile toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.25rem;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.bar {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--primary-foreground);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

#navbar.scrolled .bar {
  background: var(--foreground);
}

.mobile-toggle.open .bar1 {
  transform: rotate(45deg) translate(2px, 2px);
}

.mobile-toggle.open .bar2 {
  opacity: 0;
}

.mobile-toggle.open .bar3 {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: rgba(from var(--background) r g b / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

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

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
}

.mobile-link {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.3s;
}

.mobile-link:hover {
  color: var(--gold);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(from var(--foreground) r g b / 0.6);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(from var(--foreground) r g b / 0.3),
    transparent,
    rgba(from var(--foreground) r g b / 0.5)
  );
}

/* Floating bells & sparkles */
.hero-floating {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-bell {
  position: absolute;
  color: var(--gold);
}

.fb1 { top: 15%; left: 10%; width: 2rem; height: 2rem; opacity: 0.4; animation: float 6s ease-in-out infinite; }
.fb2 { top: 25%; right: 15%; width: 1.5rem; height: 1.5rem; opacity: 0.3; animation: float 6s ease-in-out 2s infinite; }
.fb3 { bottom: 30%; left: 20%; width: 1.75rem; height: 1.75rem; opacity: 0.25; animation: float 6s ease-in-out 4s infinite; }
.fb4 { top: 40%; right: 8%; width: 1.25rem; height: 1.25rem; opacity: 0.35; animation: float 6s ease-in-out infinite; }

.floating-sparkle {
  position: absolute;
  color: var(--gold);
}

.fs1 { top: 20%; left: 30%; width: 0.75rem; height: 0.75rem; opacity: 0.4; animation: sparkle 3s ease-in-out infinite; }
.fs2 { top: 60%; right: 25%; width: 1rem; height: 1rem; opacity: 0.3; animation: sparkle 3s ease-in-out 1s infinite; }
.fs3 { bottom: 25%; left: 40%; width: 0.75rem; height: 0.75rem; opacity: 0.35; animation: sparkle 3s ease-in-out 2s infinite; }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 48rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1s, transform 1s;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.125rem;
  color: var(--primary-foreground);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .hero-title { font-size: 4.375rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 5rem; }
}

.hero-ceremony {
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .hero-ceremony { font-size: 1.5rem; }
}

.hero-divider {
  width: 4rem;
  height: 1px;
  background: rgba(from var(--gold) r g b / 0.5);
  margin: 2rem auto;
}

.hero-name {
  color: rgba(from var(--primary-foreground) r g b / 0.9);
  font-size: 1.25rem;
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .hero-name { font-size: 1.5rem; }
}

.hero-school {
  color: rgba(from var(--primary-foreground) r g b / 0.7);
  font-size: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-school { font-size: 1.125rem; }
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(from var(--foreground) r g b / 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(from var(--gold) r g b / 0.3);
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
}

.badge-bell {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold);
}

.hero-date-badge span {
  color: rgba(from var(--primary-foreground) r g b / 0.9);
  font-size: 1rem;
}

@media (min-width: 768px) {
  .hero-date-badge span { font-size: 1.125rem; }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.scroll-indicator span {
  color: rgba(from var(--primary-foreground) r g b / 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 2rem;
  background: rgba(from var(--gold) r g b / 0.3);
  animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  background: var(--background);
}

.about-grid {
  display: grid;
  gap: 2rem;
}

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

.about-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about-text-title { font-size: 1.875rem; }
}

.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* ========================================
   INVITATION SECTION
   ======================================== */
.invitation-section {
  background: var(--card);
}

.invitation-card {
  position: relative;
  background: var(--background);
  border: 2px solid rgba(from var(--gold) r g b / 0.3);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

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

/* Corner decorations */
.corner {
  position: absolute;
  width: 2rem;
  height: 2rem;
}

.corner-tl { top: 1rem; left: 1rem; border-top: 2px solid rgba(from var(--gold) r g b / 0.4); border-left: 2px solid rgba(from var(--gold) r g b / 0.4); border-radius: 4px 0 0 0; }
.corner-tr { top: 1rem; right: 1rem; border-top: 2px solid rgba(from var(--gold) r g b / 0.4); border-right: 2px solid rgba(from var(--gold) r g b / 0.4); border-radius: 0 4px 0 0; }
.corner-bl { bottom: 1rem; left: 1rem; border-bottom: 2px solid rgba(from var(--gold) r g b / 0.4); border-left: 2px solid rgba(from var(--gold) r g b / 0.4); border-radius: 0 0 0 4px; }
.corner-br { bottom: 1rem; right: 1rem; border-bottom: 2px solid rgba(from var(--gold) r g b / 0.4); border-right: 2px solid rgba(from var(--gold) r g b / 0.4); border-radius: 0 0 4px 0; }

.inv-label {
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.inv-bell {
  width: 3rem;
  height: 3rem;
  color: var(--gold);
  display: block;
  margin: 0 auto 1.5rem;
}

.inv-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--foreground);
  line-height: 1.75;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .inv-text { font-size: 1.25rem; }
}

/* Invitation details */
.inv-details {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .inv-details {
    grid-template-columns: repeat(3, 1fr);
  }
}

.inv-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.detail-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold);
}

.detail-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-value {
  font-family: var(--font-serif);
  color: var(--foreground);
  text-align: center;
}

/* Map placeholder */
.map-placeholder {
  position: relative;
  aspect-ratio: 16/6;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--muted);
}

.map-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.map-pin-icon {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.map-title {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.map-address {
  color: var(--muted-foreground);
  opacity: 0.6;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ========================================
   CELEBRATION SECTION
   ======================================== */
.celebration-section {
  background: var(--background);
}

.celebration-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .celebration-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.celebration-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.celebration-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.celebration-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.celebration-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.celebration-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.celebration-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.celebration-item-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(from var(--gold) r g b / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.celebration-item-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold);
}

.celebration-item-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.celebration-item-value {
  font-family: var(--font-serif);
  color: var(--foreground);
  font-size: 1.125rem;
}

.celebration-quote {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(from var(--gold) r g b / 0.05);
  border: 1px solid rgba(from var(--gold) r g b / 0.2);
  border-radius: var(--radius);
}

.celebration-quote p {
  color: rgba(from var(--foreground) r g b / 0.8);
  font-size: 0.875rem;
  text-align: center;
  font-style: italic;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
  background: var(--card);
}

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

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .gallery-tall {
    grid-row: span 2;
  }
}

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
}

.aspect-3-4 {
  aspect-ratio: 3/4;
}

.aspect-4-3 {
  aspect-ratio: 4/3;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(from var(--foreground) r g b / 0);
  transition: background 0.5s;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(from var(--foreground) r g b / 0.2);
}

/* ========================================
   RSVP SECTION
   ======================================== */
.rsvp-section {
  background: var(--background);
}

/* Success state */
.rsvp-success {
  background: var(--card);
  border: 2px solid rgba(from var(--gold) r g b / 0.3);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.rsvp-success-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(from var(--gold) r g b / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.rsvp-success-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
}

.rsvp-success-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.rsvp-success-text {
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* Form */
.rsvp-form {
  background: var(--card);
  border: 2px solid rgba(from var(--gold) r g b / 0.3);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .rsvp-form {
    padding: 3rem;
  }
}

.rsvp-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.rsvp-bell {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
  display: block;
  margin: 0 auto 1rem;
}

.rsvp-respond-label {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.rsvp-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rsvp-field {
  /* field wrapper */
}

.rsvp-label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.rsvp-input,
.rsvp-select,
.rsvp-textarea {
  width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.rsvp-input::placeholder,
.rsvp-textarea::placeholder {
  color: rgba(from var(--muted-foreground) r g b / 0.5);
}

.rsvp-input:focus,
.rsvp-select:focus,
.rsvp-textarea:focus {
  border-color: rgba(from var(--gold) r g b / 0.5);
  box-shadow: 0 0 0 2px rgba(from var(--gold) r g b / 0.3);
}

.rsvp-textarea {
  resize: none;
}

/* Attendance buttons */
.attendance-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.attendance-btn {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--background);
  color: var(--muted-foreground);
  font-family: var(--font-serif);
  text-align: center;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.attendance-btn:hover {
  border-color: rgba(from var(--gold) r g b / 0.3);
}

.attendance-btn.selected {
  border-color: var(--gold);
  background: rgba(from var(--gold) r g b / 0.1);
  color: var(--foreground);
}

/* Submit button */
.rsvp-submit {
  width: 100%;
  background: var(--crimson);
  color: var(--primary-foreground);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  padding: 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: background 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border: none;
}

.rsvp-submit svg {
  width: 1.25rem;
  height: 1.25rem;
}

.rsvp-submit:hover {
  background: var(--crimson-light);
}

/* Guests field animation */
#guests-field {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--foreground);
  padding: 3rem 0;
}

.footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.footer-bell {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
  display: block;
  margin: 0 auto 1rem;
}

.footer-name {
  font-family: var(--font-serif);
  color: rgba(from var(--primary-foreground) r g b / 0.7);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.footer-class {
  color: rgba(from var(--primary-foreground) r g b / 0.4);
  font-size: 0.875rem;
}

.footer-school {
  color: rgba(from var(--primary-foreground) r g b / 0.3);
  font-size: 0.75rem;
  margin-top: 1rem;
}

/* ========================================
   Animations
   ======================================== */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Animate-on-scroll children */
[data-animate-child] {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1s, transform 1s;
}

[data-animate].visible [data-animate-child] {
  opacity: 1;
  transform: translateY(0);
}

/* Delays */
[data-animate-child][data-delay="200"] {
  transition-delay: 0.2s;
}

[data-animate-child][data-delay="400"] {
  transition-delay: 0.4s;
}
