:root {
  --cream: #F7F1E7;
  --cream-warm: #EFE3CF;
  --sand: #E0CFB3;
  --rose-gold: #C8956D;
  --rose-gold-deep: #A87648;
  --olive: #6B7A4F;
  --sage: #9CAF88;
  --ink: #3A2E26;
  --ink-soft: #5C4A3D;
  --muted: #8B7560;
  --serif-en: 'Cormorant Garamond', 'Times New Roman', serif;
  --serif-ar: 'Amiri', 'Cairo', serif;
  --sans: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif-ar);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[lang="en"], .en, [dir="ltr"] { font-family: var(--serif-en); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding: 2rem 1.25rem;
}

.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.95);
  transform: scale(1.06);
  animation: kenburns 22s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0%   { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.5%, -2%); }
}

.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(40,28,18,0.20) 0%, rgba(20,12,6,0.65) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(20,12,6,0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--serif-en);
  font-style: italic;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--cream-warm);
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.hero__names {
  font-family: var(--serif-ar);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.hero__names .name { white-space: nowrap; }
.hero__names .amp {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  color: var(--rose-gold);
  font-size: 0.85em;
}

.hero__names-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  letter-spacing: 0.08em;
  color: var(--cream-warm);
  margin-top: 0.6rem;
  opacity: 0.9;
}

.hero__names-en .amp-en { color: var(--rose-gold); padding: 0 0.2em; }

.hero__date {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.06em;
  color: var(--cream-warm);
  font-weight: 400;
}

/* divider */
.hero__date::before, .hero__date::after {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: var(--rose-gold);
  vertical-align: middle;
  margin: 0 1rem;
  opacity: 0.7;
}

/* countdown — boho */
.countdown {
  direction: ltr;
  margin-top: 3rem;
  display: inline-flex;
  align-items: flex-end;
  gap: 1.6rem;
  padding: 0;
  background: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
}

/* Subtle pressed leaf flourishes on either side */
.countdown::before, .countdown::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.55;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='none' stroke='%23C8956D' stroke-width='1.1' stroke-linecap='round'><path d='M14 56 Q32 32 50 8'/><path d='M22 48 Q30 44 36 38'/><path d='M28 40 Q34 36 40 30'/><path d='M34 32 Q40 28 44 22'/><path d='M40 24 Q44 20 46 16'/></g></svg>");
}
.countdown::before { right: calc(100% + 14px); transform: translateY(-50%) scaleX(-1); }
.countdown::after  { left: calc(100% + 14px); }

.cd__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.2rem;
  position: relative;
}

.cd__num {
  font-family: var(--serif-en);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: #FBF1E0;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(40, 24, 12, 0.45);
}

.cd__label {
  font-family: var(--serif-ar);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  margin-top: 0.8rem;
  color: var(--rose-gold);
  opacity: 0.85;
  font-weight: 400;
}

/* tiny dotted divider between cells, vertically centered on the number row */
.cd__sep {
  align-self: flex-start;
  margin-top: 0.4em;
  font-family: var(--serif-en);
  color: var(--rose-gold);
  opacity: 0.55;
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  letter-spacing: 0.3em;
  display: flex;
  align-items: center;
  padding-top: 0.25em;
}
.cd__sep::before {
  content: "·";
  font-size: 1.8em;
  line-height: 0.4;
}

.hero__cta {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--cream-warm);
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rose-gold);
  transition: color 0.3s, border-color 0.3s;
}

.hero__cta:hover { color: #fff; border-color: #fff; }

/* ============ DETAILS ============ */
.details {
  padding: 6rem 1.25rem 5rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 149, 109, 0.08), transparent 60%),
    var(--cream);
  text-align: center;
}

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

.ornament {
  font-family: var(--serif-en);
  color: var(--rose-gold);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.section-title {
  font-family: var(--serif-ar);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--ink);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--rose-gold);
  margin: 1rem auto 0;
  opacity: 0.6;
}

.invite {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
  line-height: 2;
}

.invite.en {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2.4rem 1rem;
  border-top: 1px solid rgba(200, 149, 109, 0.3);
  border-bottom: 1px solid rgba(200, 149, 109, 0.3);
}

.info { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }

.info__label {
  font-family: var(--serif-en);
  font-style: italic;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--rose-gold-deep);
}

.info__val {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.6;
}

.info__val small { color: var(--muted); font-size: 0.85rem; display: block; margin-top: 0.2rem; }

/* ============ GALLERY ============ */
.gallery { padding: 4rem 0; background: var(--cream-warm); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4px;
}

.gallery__cell {
  position: relative;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(0.95) brightness(0.96);
}

.gallery__cell::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(58,46,38,0.15));
}

.gallery__cell:hover { transform: scale(1.015); filter: saturate(1.05) brightness(1); }

@media (max-width: 700px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ MAP ============ */
.map { padding: 5rem 1.25rem; text-align: center; background: var(--cream); }

.map__hint {
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.map__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(200, 149, 109, 0.4) inset,
    0 12px 40px -12px rgba(58, 46, 38, 0.25);
}

.map__embed iframe { width: 100%; height: 100%; border: 0; }

.map__cta {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--serif-en);
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--rose-gold-deep);
  font-size: 1rem;
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rose-gold);
  transition: color 0.3s;
}

.map__cta:hover { color: var(--ink); }

/* ============ FOOTER ============ */
.footer {
  padding: 5rem 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  color: var(--ink-soft);
}

.footer__ornament {
  font-family: var(--serif-en);
  color: var(--rose-gold);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.footer__line { font-size: 1.1rem; margin: 0.4rem 0; }
.footer__line.en { font-style: italic; font-weight: 300; color: var(--muted); font-size: 0.95rem; }

.footer__couple {
  margin-top: 2rem;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}

/* ============ RESPONSIVE TUNING ============ */
@media (max-width: 560px) {
  .countdown { gap: 1rem; }
  .countdown::before, .countdown::after { display: none; }
  .cd__cell { min-width: 2.6rem; }
  .hero__date::before, .hero__date::after { width: 1rem; margin: 0 0.5rem; }
  .info-grid { padding: 2rem 0.5rem; }
}
