:root {
  --brand-blue: #4a6fa5;
  --brand-orange: #e76f51;
  --brand-green: #2a9d8f;
  --brand-dark: #264653;
  --surface: #0f172a;
  --surface-2: #111827;
  --card: #0b1222;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.18);
  --glow: 0 0 40px rgba(74, 111, 165, 0.25);
  --radius: 18px;
  --shadow-lg: 0 20px 60px rgba(2, 6, 23, 0.45);
  --shadow-md: 0 12px 30px rgba(2, 6, 23, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --text-dark: #0f172a;
  --text-mid: #475569;
  --text-light: #64748b;
}

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

body {
  font-family: "Montserrat", sans-serif;
  background: radial-gradient(circle at top, #f5f7fb 0%, #eef2f7 45%, #e9eef6 100%);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text);
}

.brand img {
  height: 42px;
  width: auto;
  border-radius: 10px;
  background: #ffffff;
  padding: 4px 6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.brand strong {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  line-height: 1.2;
  text-transform: none;
  color: var(--text-dark);
}

.brand strong span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand span {
  color: var(--brand-orange);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-mid);
  transition: color 0.35s var(--ease);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-actions .button {
  white-space: nowrap;
}

.button {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.button.primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
  box-shadow: var(--shadow-md);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.button.ghost {
  border-color: var(--border);
  color: var(--text-dark);
  background: #ffffff;
}

.hero {
  padding: 80px 0 120px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text-slider {
  min-height: 2.25em;
}

.hero-text-dynamic {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.hero-text-dynamic.is-hiding {
  opacity: 0;
  transform: translateY(12px);
}

.hero p {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
  transform: translateY(0);
  transition: transform 0.4s var(--ease);
}

.hero-card:hover {
  transform: translateY(-8px);
}

.hero-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

.hero-slider .slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
}

.hero-slider .slide-placeholder {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--text-mid);
  background: linear-gradient(145deg, rgba(247, 250, 252, 1) 0%, rgba(226, 232, 240, 1) 100%);
  border: 1px dashed rgba(148, 163, 184, 0.7);
}

.hero-slider-dots {
  display: flex;
  gap: 8px;
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
}

.hero-slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.hero-slider-dots button.active {
  background: var(--brand-orange);
  transform: scale(1.2);
}

.section {
  padding: 80px 0;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 42px;
}

.section-title span {
  color: var(--brand-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.card p {
  color: #475569;
  line-height: 1.6;
}

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

.stat {
  padding: 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.stat h4 {
  font-size: 2rem;
  color: var(--brand-orange);
}

.stat span {
  color: var(--text-light);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  min-height: 220px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.2) 0%, rgba(226, 232, 240, 0.65) 100%);
}

.gallery-item h4,
.gallery-item p {
  position: relative;
  z-index: 2;
}

.testimonial {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.testimonial-card p {
  color: var(--text-mid);
  margin-bottom: 18px;
}

.testimonial-card strong {
  color: var(--text);
}

.faq-item {
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  padding: 18px 0;
}

.faq-item button {
  width: 100%;
  background: none;
  border: none;
  color: #0f172a;
  text-align: left;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
}

.faq-item p {
  color: #475569;
  margin-top: 8px;
  display: none;
}

.faq-item.active p {
  display: block;
}

.footer {
  padding: 50px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  text-align: center;
  color: var(--text-light);
}

.form-card {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input, select, textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #ffffff;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(74, 111, 165, 0.6);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--brand-green);
  background: rgba(42, 157, 143, 0.08);
}

.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #ffffff;
  padding: 28px;
  border-right: 1px solid rgba(148, 163, 184, 0.35);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sidebar h3 {
  margin: 0;
}

.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.sidebar-toggle:hover {
  background: #f8fafc;
}

.sidebar-toggle:focus-visible {
  outline: none;
  border-color: rgba(74, 111, 165, 0.6);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-mid);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.sidebar-link.active,
.sidebar-link:hover {
  color: var(--text-dark);
  background: rgba(148, 163, 184, 0.12);
  transform: translateX(2px);
}

.dashboard-content {
  padding: 40px;
  min-width: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.table th, .table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text-mid);
}

.table th {
  color: var(--text);
  font-weight: 600;
}

.invitation-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.invitation-hero h1 {
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  margin-bottom: 12px;
}

.invitation-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 40px;
}

.invitation-slider-wrap {
  min-height: 420px;
}

.invitation-model-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  min-height: 420px;
}

.invitation-model-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.invitation-model-slider .slide.active {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

.invitation-model-slider .slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.invitation-slide-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.82) 100%);
  color: #ffffff;
}

.invitation-slide-overlay h3 {
  margin-bottom: 6px;
  color: #ffffff;
}

.invitation-slide-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.invitation-slide-chip {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
}

.invitation-empty-state {
  height: 420px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--text-mid);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: linear-gradient(140deg, rgba(248, 250, 252, 1) 0%, rgba(226, 232, 240, 0.95) 100%);
}

.invitation-section {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  margin-bottom: 24px;
}

.invitation-dynamic-details .invitation-meta-line {
  color: var(--text-mid);
  margin-bottom: 18px;
}

.invitation-detail-list p {
  margin: 0 0 10px;
}

.invitation-rsvp-status {
  margin-top: 12px;
  color: var(--text-mid);
}

.invitation-rsvp-status.is-success {
  color: #166534;
  font-weight: 600;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(226, 232, 240, 0.4);
}

@media (max-width: 1024px) {
  .dashboard {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
  }

  .invitation-showcase {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    margin: 0 20px;
    padding: 16px;
    border-right: none;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  }

  .sidebar h3 {
    font-size: 1rem;
  }

  .sidebar-header {
    margin-bottom: 0;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar[data-collapsible-ready="true"] .sidebar-toggle {
    display: inline-flex;
  }

  .sidebar[data-collapsible-ready="true"] .sidebar-nav {
    display: none;
  }

  .sidebar[data-collapsible-ready="true"].is-open .sidebar-nav {
    display: flex;
  }

  .sidebar-nav {
    margin-top: 12px;
    gap: 8px;
  }

  .sidebar-link {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    border-radius: 12px;
    font-size: 0.92rem;
    white-space: normal;
  }

  .sidebar-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(74, 111, 165, 0.22);
  }

  .sidebar-link:hover {
    transform: none;
  }

  .dashboard-content {
    padding: 0 20px 30px;
  }

  .dashboard-content .section-title {
    margin-bottom: 28px;
  }

  .dashboard-content .section-title h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .dashboard-content .table {
    display: block;
    overflow-x: auto;
    margin-top: 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-content .table th,
  .dashboard-content .table td {
    white-space: nowrap;
    font-size: 0.92rem;
  }
}

@media (max-width: 768px) {
  .dashboard {
    gap: 10px;
  }

  .sidebar {
    margin: 0 14px;
    padding: 14px;
  }

  .dashboard-content {
    padding: 0 14px 24px;
  }

  .dashboard-content .card-grid {
    gap: 16px;
  }

  .dashboard-content .card {
    padding: 20px;
  }

  .navbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.2;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero-slider .slide img {
    height: 280px;
  }

  .invitation-model-slider .slide img,
  .invitation-empty-state {
    height: 300px;
  }

  .brand strong span {
    font-size: 0.65rem;
  }

  .dashboard-content {
    padding: 24px;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s var(--ease) forwards;
}

.fade-up.delay-1 {
  animation-delay: 0.15s;
}

.fade-up.delay-2 {
  animation-delay: 0.3s;
}

.fade-up.delay-3 {
  animation-delay: 0.45s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
