:root {
  --ink: #22313f;
  --muted: #64707b;
  --paper: #fffaf4;
  --mist: #f2f7f7;
  --rose: #a85f6a;
  --rose-dark: #7f3f4b;
  --sage: #6f8c80;
  --line: #eadbd1;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
.navbar-brand {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  letter-spacing: 0;
}

.wedding-nav {
  background: rgba(255, 250, 244, 0.92);
  border-bottom: 1px solid rgba(234, 219, 209, 0.9);
  backdrop-filter: blur(12px);
}

.navbar-brand {
  color: var(--rose-dark);
  font-size: 1.55rem;
  font-weight: 600;
}

.nav-link {
  color: var(--ink);
  font-weight: 600;
}

.nav-link.active,
.nav-link:focus,
.nav-link:hover {
  color: var(--rose-dark);
}

.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  background:
    linear-gradient(90deg, rgba(18, 25, 28, 0.78) 0%, rgba(18, 25, 28, 0.58) 32%, rgba(18, 25, 28, 0.18) 67%, rgba(18, 25, 28, 0.1) 100%),
    url("/assets/images/hero-home.webp?v=202607221950") center / cover no-repeat,
    var(--ink);
}

.hero h1,
.page-heading h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 500;
  line-height: 0.96;
}

.hero h1 {
  color: #fffaf4;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.32);
}

.hero-copy,
.page-heading p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.65;
}

.hero-copy {
  color: rgba(255, 250, 244, 0.9);
}

.eyebrow,
.card-kicker {
  color: var(--rose-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f8dce0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn-primary {
  --bs-btn-bg: var(--rose);
  --bs-btn-border-color: var(--rose);
  --bs-btn-hover-bg: var(--rose-dark);
  --bs-btn-hover-border-color: var(--rose-dark);
  --bs-btn-active-bg: var(--rose-dark);
  --bs-btn-active-border-color: var(--rose-dark);
}

.hero .btn-outline-dark {
  --bs-btn-color: #fffaf4;
  --bs-btn-border-color: rgba(255, 250, 244, 0.72);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: #fffaf4;
  --bs-btn-hover-border-color: #fffaf4;
}

.section {
  padding: 72px 0;
}

.info-card,
.detail-block,
.form-panel,
.info-list article {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 55px rgba(34, 49, 63, 0.07);
}

.info-card,
.detail-block,
.info-list article {
  padding: 28px;
}

.info-card h2,
.detail-block h2,
.info-list h2 {
  margin: 8px 0 12px;
  font-size: 1.7rem;
}

.info-card p,
.detail-block p,
.info-list p {
  color: var(--muted);
  line-height: 1.65;
}

.page-shell {
  padding-top: 74px;
}

.page-heading {
  padding: 70px 0 42px;
  background: linear-gradient(135deg, rgba(111, 140, 128, 0.17), transparent 45%), var(--paper);
}

.form-panel {
  max-width: 920px;
  padding: clamp(22px, 4vw, 42px);
}

legend {
  margin-bottom: 16px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 1.55rem;
}

.form-label {
  color: var(--ink);
  font-weight: 700;
}

.form-control,
.form-check-input {
  border-color: #d9c8bf;
}

.form-control:focus,
.form-check-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 0.25rem rgba(168, 95, 106, 0.18);
}

.attendance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.attendance-option,
.choice-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.attendance-option strong,
.attendance-option small,
.choice-row span {
  display: block;
}

.attendance-option small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.dietary-section {
  display: none;
  padding: 22px;
  border-radius: 8px;
  background: var(--mist);
}

.dietary-section.is-visible {
  display: block;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
}

.admin-login-panel {
  max-width: 560px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 0;
}

.guest-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(34, 49, 63, 0.07);
}

.guest-table {
  min-width: 1080px;
  margin: 0;
}

.guest-table th {
  color: var(--ink);
  background: var(--mist);
  white-space: nowrap;
}

.guest-table td {
  color: var(--muted);
  vertical-align: top;
}

.guest-table td:first-child {
  color: var(--ink);
}

@media (max-width: 767.98px) {
  .hero {
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 64px;
    background:
      linear-gradient(180deg, rgba(18, 25, 28, 0.78) 0%, rgba(18, 25, 28, 0.46) 46%, rgba(18, 25, 28, 0.34) 100%),
      url("/assets/images/hero-home-mobile.webp?v=202607221950") center bottom / cover no-repeat,
      var(--ink);
  }

  .hero h1,
  .page-heading h1 {
    font-size: 3rem;
  }

  .attendance-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

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

  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
