:root {
  --color-bg: #f9faf8;
  --color-surface: #ffffff;
  --color-sage-50: #f2f6f3;
  --color-sage-100: #e4ece6;
  --color-sage-200: #ccdcd1;
  --color-sage-600: #55715f;
  --color-sage-700: #3f5547;
  --color-sage-800: #2c3c32;
  --color-gold-300: #e7ca7d;
  --color-gold-400: #d4af37;
  --color-gold-500: #b89127;
  --color-gold-600: #937119;
  --color-gold-light: #faf5ea;
  --color-text-dark: #232c27;
  --color-text-muted: #596a60;
  --color-border: #dde5df;
  --color-error: #b93838;
  --color-success: #2e7d4a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 4px 20px rgba(44, 60, 50, 0.07);
  --shadow-card: 0 8px 30px rgba(44, 60, 50, 0.1);
  --shadow-gold: 0 4px 18px rgba(184, 145, 39, 0.25);
  --font-serif: "Playfair Display", "Baskerville", "Georgia", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--color-gold-500);
  color: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Nav Header */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 248, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-sage-700);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-brand span {
  color: var(--color-gold-500);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-gold-600);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, #f6faf7 0%, #ebf2ed 100%);
  overflow: hidden;
}

.hero-bg-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
}

.hero-frame {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-card);
}

.hero-bismillah {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-sage-700);
  margin-bottom: 1rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.825rem;
  color: var(--color-gold-600);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  line-height: 1.2;
  color: var(--color-sage-800);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero-title .amp {
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold-500);
  margin: 0 0.35rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.hero-meta-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--color-gold-light);
  border: 1px solid var(--color-gold-300);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  margin-bottom: 2rem;
}

.meta-date {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-sage-800);
}

.meta-venue {
  font-size: 0.95rem;
  color: var(--color-gold-600);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-400), var(--color-gold-500));
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--color-gold-500), var(--color-gold-600));
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-sage-700);
  border-color: var(--color-sage-200);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-sage-600);
  background: var(--color-sage-50);
}

/* Section Containers */
.section {
  padding: 4.5rem 1.25rem;
}

.section-container {
  max-width: 960px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-badge {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--color-gold-600);
  background: var(--color-gold-light);
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  color: var(--color-sage-800);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Countdown */
.countdown-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-sage-50) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.countdown-card {
  background: #ffffff;
  border: 1px solid var(--color-gold-300);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold-400), var(--color-gold-500));
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-sage-800);
  margin-bottom: 0.35rem;
}

.countdown-lbl {
  font-size: 0.785rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold-600);
  font-weight: 600;
}

.countdown-status {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-sage-700);
  font-style: italic;
}

/* Atur Cara Section */
.schedule-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-soft);
  max-width: 720px;
  margin: 0 auto;
}

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

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 7px;
  width: 2px;
  background: var(--color-sage-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-gold-400);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--color-gold-300);
}

.timeline-time {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold-600);
  background: var(--color-gold-light);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-size: 1.15rem;
  color: var(--color-sage-800);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Lokasi Section */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.venue-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.venue-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-sage-800);
  margin-bottom: 0.75rem;
}

.venue-address {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.venue-meta-list {
  list-style: none;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--color-sage-100);
  padding-top: 1rem;
}

.venue-meta-list li {
  font-size: 0.925rem;
  color: var(--color-sage-700);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.venue-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.map-visual-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-svg-wrap {
  width: 100%;
  height: 280px;
  background: #eef3ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-svg-wrap svg {
  width: 100%;
  height: 100%;
}

.map-card-body {
  padding: 1.25rem;
  background: #ffffff;
}

/* RSVP Section */
.rsvp-section {
  background: linear-gradient(180deg, var(--color-sage-50) 0%, #ffffff 100%);
}

.rsvp-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--color-sage-800);
  margin-bottom: 0.4rem;
}

.form-hint {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text-dark);
  background-color: #fafbf9;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold-400);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  background-color: #ffffff;
}

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

.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fafbf9;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-card input {
  margin-right: 0.75rem;
  accent-color: var(--color-gold-500);
  width: 18px;
  height: 18px;
}

.radio-card:has(input:checked) {
  border-color: var(--color-gold-400);
  background: var(--color-gold-light);
  font-weight: 600;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.925rem;
}

.form-status.hidden {
  display: none;
}

.form-status.error {
  background: #fdf2f2;
  border: 1px solid #f8b4b4;
  color: var(--color-error);
}

.form-status.success {
  background: #f3faf4;
  border: 1px solid #a3d9b1;
  color: var(--color-success);
}

/* Guest wishes list */
.wishes-wrapper {
  max-width: 680px;
  margin: 3rem auto 0;
}

.wishes-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-sage-800);
  margin-bottom: 1rem;
  text-align: center;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wish-item {
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
}

.wish-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.wish-author {
  font-weight: 600;
  color: var(--color-sage-800);
}

.wish-attendance {
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--color-sage-100);
  color: var(--color-sage-700);
}

.wish-attendance.hadir {
  background: #e6f4ea;
  color: #1e7e34;
}

.wish-attendance.tidak {
  background: #fbeae8;
  color: #c93b2b;
}

.wish-msg {
  font-size: 0.925rem;
  color: var(--color-text-dark);
  font-style: italic;
}

/* Footer */
.site-footer {
  background: var(--color-sage-800);
  color: #ffffff;
  text-align: center;
  padding: 3rem 1.25rem;
  border-top: 3px solid var(--color-gold-400);
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
  color: var(--color-gold-300);
}

.footer-note {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 3rem 1rem;
  }

  .hero-frame {
    padding: 2rem 1.25rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

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

  .location-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .rsvp-wrapper {
    padding: 1.5rem 1.25rem;
  }

  .nav-links {
    gap: 0.85rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}
