/* =====================
   Design tokens
   ===================== */

/* Smooth anchor scrolling on the root scroller */
html {
  scroll-behavior: smooth;
}

/* Optional: keep the target from sticking to the very top */
#details {
  scroll-margin-top: 24px;
}

:root {
  --bg: #0b1c17;
  --card: #0f241e;
  --text: #f2f6f7;
  --muted: #9fb0b1;
  --border: #1e3a33;
  --gold: #d4af37;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.muted {
  color: var(--muted);
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: 56px;
  line-height: 1.05;
  margin: 6px 0 8px;
}

h2 {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  margin: 0 0 12px;
}

/* =====================
   Background
   ===================== */
body {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1200px 600px at 85% -20%, rgba(212, 175, 55, .12) 0%, transparent 60%),
    radial-gradient(1000px 500px at 0% 0%, rgba(27, 138, 128, .12) 0%, transparent 60%),
    linear-gradient(180deg, #0b1c17 0%, #0d241e 100%);
}

/* =====================
   Header & language switch
   ===================== */
header {
  display: flex;
  justify-content: end;
  align-items: flex-start;
  gap: 16px;
  padding: 10px;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-btn {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d1f1a;
  color: #cfe1df;
  cursor: pointer;
}

.lang-btn.active {
  background: #14907f;
  color: #071d19;
  border-color: #0e6f63;
}

/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 40px);
  max-width: 80vw;
  margin: 0 auto;
}

.bismillah {
  font-family: "Amiri", serif;
  color: #efe6c4;
  font-size: 26px;
  margin: 14px 0 4px;
}

.subtitle {
  color: #d5e6e4;
  margin: 6px 0 16px;
  font-size: 18px;
}

/* Wedding date pill in hero */
.hero-date {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #0d1f1a;
  color: #e6eeee;
  margin: 8px 0 10px;
}

/* Two dates under names (for /2) */
.hero-dates {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
  padding: 0;
  list-style: none;
}

.hero-dates .pill {
  background: #0d1f1a;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
}

/* Compact card for inline timers */
.card.compact {
  padding: 12px;
  margin-top: 8px;
}

/* Scroll cue (bottom arrow) */
.scroll-cue {
  --size: 44px;
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #0d1f1a;
  color: var(--gold);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  animation: scrollCueFloat 1.8s ease-in-out infinite;
}

.scroll-cue__icon {
  width: 22px;
  height: 22px;
  display: block;
}

.scroll-cue:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.scroll-cue:active {
  transform: translateX(-50%) translateY(0);
}

.scroll-cue:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .45);
}

@keyframes scrollCueFloat {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue {
    animation: none;
  }
}

/* =====================
   Cards & buttons
   ===================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.btn {
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #f0e3b6, #e2c874);
  color: #111;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: #f4e8be;
}

/* =====================
   Dua
   ===================== */
.dua {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dua .dua-text {
  font-family: "Amiri", serif;
  font-size: 24px;
  color: #e7ece9;
  text-align: center;
  margin: 10px 0 6px;
}

.dua .dua-tr {
  text-align: center;
}

.divider {
  height: 10px;
  margin: 8px 0;
  background: repeating-linear-gradient(90deg, rgba(212, 175, 55, .9) 0 14px, transparent 14px 20px);
  mask-image: linear-gradient(90deg, transparent 0 1%, #000 15% 85%, transparent 99% 100%);
  border-radius: 10px;
}

/* =====================
   Details
   ===================== */
.section {
  min-height: 60vh;
  background: linear-gradient(180deg, #0d241e, #0b1c17);
  display: flex;
  align-items: center;
}

.section-title {
  font-size: 32px;
  margin-bottom: 16px;
  text-align: center;
}

.details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.details-list>.card+.card,
.details-list>li+li {
  margin-top: 16px;
}

.event-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Countdown */
.timerLabel {
  font-weight: 700;
  margin-bottom: 10px;
}

.countdown {
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
}

.count {
  min-width: 90px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #0c1b17;
}

.count span[data-part] {
  font-size: 26px;
  font-weight: 800;
  display: block;
}

.count small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

/* =====================
   Footer
   ===================== */
footer {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

footer small[data-i18n="footer"] {
  white-space: pre-line;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 900px) {
  h1 {
    font-size: 35px;
  }

  .subtitle {
    font-size: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 85vh;
    max-width: 90vw;
  }

  .count {
    min-width: 70px;
    padding: 6px;
    font-size: 16px;
  }

  .count span[data-part] {
    font-size: 18px;
  }

  footer {
    padding: 20px 10px;
    font-size: 20px;
    text-align: center;
  }
}

/* =====================
   Removed (previously unused)
   - .row, .between, .center, .small, .chips, .timers, .grid, .dl
   ===================== */