/* ============================================================
   Widad's Jirtig & Kına  ·  Sudanese + Turkish henna celebration
   Palette: deep burgundy · antique gold · warm cream
   ============================================================ */

:root {
  --burgundy:      #6e1423;
  --burgundy-deep: #56101c;
  --burgundy-soft: #7d1f2e;
  --red:           #9b1c2e;
  --gold:          #c9a24b;
  --gold-bright:   #e4c46a;
  --gold-deep:     #a07a2c;
  --cream:         #f6efe1;
  --cream-deep:    #efe4ce;
  --ink:           #3a1418;
  --ink-soft:      #6a4a3e;

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 18px 50px -28px rgba(86, 16, 28, .55);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-ui:      'Jost', system-ui, sans-serif;
  --font-script:  'Pinyon Script', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(201,162,75,.08), transparent 40%),
    radial-gradient(circle at 88% 80%, rgba(155,28,46,.07), transparent 45%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0 0 1rem; }
sup { font-size: .55em; }

/* ---------- decorative garmasis band ---------- */
.kilim-band {
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      var(--burgundy) 0 22px,
      var(--gold) 22px 25px,
      #1f3a6e 25px 28px,
      #f6efe1 28px 30px,
      #d8a93b 30px 44px,
      #f6efe1 44px 46px,
      #1f3a6e 46px 49px,
      var(--gold) 49px 52px);
  border-bottom: 3px solid var(--gold-deep);
}

/* ---------- floating decorative motifs ---------- */
.float {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.float svg { display: block; width: 100%; height: auto; animation: bob 7s ease-in-out infinite; }
.float:nth-of-type(2n) svg { animation-duration: 9s; animation-delay: -2s; }
.float:nth-of-type(3n) svg { animation-duration: 8s; animation-delay: -4s; }
.float:nth-of-type(4n) svg { animation-duration: 10s; animation-delay: -1.5s; }

@keyframes bob {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(7px, -20px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* ---------- layout helpers ---------- */
.container { width: min(var(--maxw), 90%); margin: 0 auto; position: relative; z-index: 1; }
.container--narrow { width: min(680px, 90%); }
.center { text-align: center; }
.muted { color: var(--ink-soft); font-style: italic; }
.tbc {
  font-style: italic; color: var(--gold-deep);
  background: rgba(201,162,75,.14);
  padding: .05em .5em; border-radius: 6px; font-size: .95em;
}
.tbc--light { color: var(--gold-bright); background: rgba(228,196,106,.16); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; overflow: hidden; }
.section--cream    { background: var(--cream-deep); }
.section--burgundy { background: var(--burgundy); color: var(--cream); }
.section--burgundy::before,
.section--burgundy::after { content: none; }

.section-head { margin-bottom: 2.8rem; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--burgundy); }
.section-head--light h2 { color: var(--cream); }
.section-head__note { max-width: 46ch; margin: .8rem auto 0; color: var(--ink-soft); }
.section-head--light .section-head__note { color: rgba(246,239,225,.82); }

.kicker {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--gold-deep);
  margin-bottom: .6rem;
}
.kicker--gold { color: var(--gold-bright); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem clamp(1rem, 5vw, 2.4rem);
  background: rgba(110, 20, 35, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201,162,75,.4);
}
.nav__brand {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--gold-bright); text-decoration: none; letter-spacing: .05em;
}
.nav__links { display: flex; gap: clamp(.7rem, 2.5vw, 1.8rem); flex-wrap: wrap; }
.nav__links a {
  font-family: var(--font-ui); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cream); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: .2s;
}
.nav__links a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: none;
  font-family: var(--font-ui); font-size: .85rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  padding: .9rem 2.4rem; border-radius: 40px; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: var(--burgundy-deep);
  box-shadow: 0 10px 24px -12px rgba(160,122,44,.9);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(160,122,44,1); }
.btn--ghost {
  background: transparent; color: var(--gold-bright);
  border: 1px solid var(--gold);
}
.btn--ghost:hover { background: rgba(201,162,75,.14); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  padding: clamp(3rem, 9vw, 6rem) 1rem;
  background:
    radial-gradient(ellipse at 50% 0%, var(--burgundy-soft), var(--burgundy) 45%, var(--burgundy-deep) 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  /* faint geometric "tabag" weave */
  content: ""; position: absolute; inset: 0; opacity: .10;
  background-image:
    repeating-linear-gradient(45deg, var(--gold) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, var(--gold) 0 2px, transparent 2px 22px);
}
.hero__frame {
  position: relative;
  z-index: 1;
  max-width: 640px; width: 100%;
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3rem);
  text-align: center;
  border: 1px solid rgba(201,162,75,.55);
  outline: 1px solid rgba(201,162,75,.3); outline-offset: 7px;
  border-radius: 6px;
  background: rgba(86,16,28,.28);
}
.ornament--crescent { color: var(--gold-bright); margin-bottom: .4rem; }
.hero__eyebrow {
  font-family: var(--font-ui); letter-spacing: .25em; text-transform: uppercase;
  font-size: .72rem; color: var(--gold-bright); margin: 0 0 .4rem;
}
.hero__script {
  font-family: var(--font-script); font-size: clamp(3rem, 11vw, 5rem);
  color: var(--gold-bright); line-height: .9; margin: 0;
}
.hero__title {
  font-size: clamp(2.8rem, 12vw, 5.4rem); letter-spacing: .02em; margin: .2rem 0 .4rem;
  color: var(--cream);
}
.hero__title .amp { font-family: var(--font-script); color: var(--gold-bright); font-size: .7em; }
.hero__sub { font-size: 1.15rem; font-style: italic; color: rgba(246,239,225,.9); margin: 0; }
.hero__divider { color: var(--gold); margin: 1.5rem 0; }
.hero__when { font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 2rem); margin: 0; }
.hero__where { font-size: 1.1rem; color: rgba(246,239,225,.85); margin: .1rem 0 1rem; }
.hero__badge {
  display: inline-block; font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--burgundy-deep);
  background: var(--gold-bright); padding: .35rem 1rem; border-radius: 30px; margin: 0 0 1.8rem;
}
.hero__cta { margin-top: .4rem; }

/* ---------- welcome ---------- */
.welcome .lede { font-size: 1.3rem; line-height: 1.8; color: var(--ink); }
.welcome h2 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--burgundy); margin-bottom: .8rem; }

/* ---------- detail cards ---------- */
.cards {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.card {
  background: var(--cream); border: 1px solid rgba(201,162,75,.45);
  border-radius: var(--radius); padding: 2rem 1.4rem; text-align: center;
  box-shadow: var(--shadow);
}
.card__icon {
  width: 58px; height: 58px; margin: 0 auto 1rem;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--burgundy); background: rgba(201,162,75,.18);
  border: 1px solid rgba(201,162,75,.5);
}
.card h3 { color: var(--gold-deep); font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-ui); font-weight: 500; margin-bottom: .5rem; }
.card p { font-size: 1.15rem; margin: 0; }
.card__link {
  display: inline-block; margin-top: .8rem; font-family: var(--font-ui); font-size: .8rem;
  letter-spacing: .08em; color: var(--red); text-decoration: none; border-bottom: 1px solid currentColor;
}
.card__link:hover { color: var(--burgundy); }

.ladies-note {
  display: flex; align-items: center; gap: .6rem; justify-content: center;
  flex-wrap: wrap; text-align: center;
  margin: 2.4rem auto 0; max-width: 60ch; color: var(--burgundy);
  font-size: 1.05rem;
}
.ladies-note svg { color: var(--red); flex-shrink: 0; }

/* ---------- traditions ---------- */
.trad {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr auto 1fr; align-items: start;
}
.trad__col { text-align: center; }
.trad__motif { color: var(--burgundy); margin-bottom: 1rem; }
.trad__col h3 { font-size: 2rem; color: var(--burgundy); margin-bottom: .3rem; }
.trad__sub {
  display: block; font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-deep); margin-top: .2rem;
}
.trad__col p { color: var(--ink-soft); max-width: 36ch; margin: .8rem auto 0; }
.trad__divider { color: var(--gold); align-self: stretch; display: grid; place-items: center; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.3rem; margin-top: .5rem; }
.field { display: grid; gap: .4rem; border: none; padding: 0; margin: 0; }
.field__label {
  font-family: var(--font-ui); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}
.field__label em { color: var(--gold-bright); font-style: normal; }
.section--cream .field__label em { color: var(--red); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1.05rem; color: var(--ink);
  background: #fffaf0; border: 1px solid rgba(58,20,24,.25);
  border-radius: 10px; padding: .8rem 1rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(201,162,75,.3);
}
.field textarea { resize: vertical; }
.upper { text-transform: uppercase; }

/* labels on burgundy bg */
.section--burgundy .field__label,
.section--burgundy legend { color: var(--gold-bright); }

.field--radio { gap: .6rem; }
.radio-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio {
  display: flex; align-items: center; gap: .5rem; cursor: pointer;
  background: #fffaf0; color: var(--ink); border: 1px solid rgba(58,20,24,.25);
  padding: .7rem 1.1rem; border-radius: 10px; flex: 1 1 200px;
  font-size: 1rem;
}
.radio input { accent-color: var(--red); width: 18px; height: 18px; }
.radio:has(input:checked) { border-color: var(--gold-deep); box-shadow: 0 0 0 2px rgba(201,162,75,.35); }

.form__submit { justify-self: center; margin-top: .6rem; }
.form__status { text-align: center; font-family: var(--font-ui); font-size: .9rem; min-height: 1.2em; margin: .4rem 0 0; }
.form__status.is-ok { color: var(--gold-deep); }
.section--burgundy .form__status.is-ok { color: var(--gold-bright); }
.form__status.is-err { color: #d23b3b; }

/* form replaced by thank-you */
.thanks { text-align: center; padding: 2rem 1rem; }
.thanks svg { color: var(--gold-deep); }
.section--burgundy .thanks svg { color: var(--gold-bright); }
.thanks h3 { font-size: 2rem; color: inherit; margin: .6rem 0 .4rem; }

/* ---------- parking note ---------- */
.parking-note {
  max-width: 480px; margin: 0 auto;
  background: var(--cream); border: 1px solid rgba(201,162,75,.45);
  border-radius: var(--radius); padding: 2.2rem 1.6rem;
  box-shadow: var(--shadow);
}
.parking-note__icon {
  width: 58px; height: 58px; margin: 0 auto 1rem;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--burgundy); background: rgba(201,162,75,.18);
  border: 1px solid rgba(201,162,75,.5);
}
.parking-note p { font-size: 1.2rem; margin: 0 0 .5rem; }
.parking-note__strong { color: var(--burgundy); margin-top: 1rem !important; }

/* ---------- faq ---------- */
.faq { display: grid; gap: .8rem; }
.faq details {
  background: var(--cream); border: 1px solid rgba(201,162,75,.45);
  border-radius: 10px; padding: .2rem 1.3rem; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 0;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--burgundy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 1.5rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1rem; color: var(--ink-soft); }
.faq a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.faq a:hover { color: var(--burgundy); }

/* ---------- footer ---------- */
.footer {
  text-align: center; background: var(--burgundy-deep); color: var(--cream);
  padding: clamp(3rem, 7vw, 4.5rem) 1rem;
  border-top: 3px solid var(--gold-deep);
}
.footer__crescent { color: var(--gold-bright); }
.footer__script { font-family: var(--font-script); font-size: clamp(2.4rem, 8vw, 3.6rem); color: var(--gold-bright); margin: .3rem 0; }
.footer__line { color: rgba(246,239,225,.8); margin: .4rem 0 1rem; }
.footer__credit {
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(201,162,75,.7); margin: 2rem 0 0;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 18px; }
  .trad { grid-template-columns: 1fr; gap: 2.5rem; }
  .trad__divider { display: none; }
  .nav { justify-content: center; gap: .6rem; flex-wrap: wrap; }
  .nav__brand { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .float svg { animation: none !important; }
}
