:root {
  --gold: #e2c462;
  --gold-deep: #c9a23c;
  --gold-ink: #8a6a1c;
  --cream: #f6f1e7;
  --cream-2: #fbf8f2;
  --ink: #2b2620;
  --muted: #7a7064;
  --rose: #f2a7b5;
  --rose-deep: #e07d93;
  --blush: #fbe3e8;
  --sage: #b9cfae;
  --navy: #243559;
  --line: #ece3d2;
  --radius: 28px;
  --shadow: 0 24px 60px -28px rgba(110, 84, 30, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Alexandria', 'Tajawal', system-ui, sans-serif;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(160, 130, 70, .13) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand span { font-size: 13px; color: var(--muted); font-weight: 500; }
.top .btn { padding: 10px 22px; font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; text-decoration: none;
  font: 600 16px/1 'Alexandria', sans-serif;
  padding: 18px 34px; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(201, 162, 60, .9);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: #e8cc6f; box-shadow: 0 16px 30px -14px rgba(201, 162, 60, .95); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: #fff; border: 2px solid var(--gold); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; }
.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fffdf8 0%, #fdf5e6 55%, #fbeef0 100%);
  border-radius: 40px; box-shadow: var(--shadow);
  border: 1px solid #fff;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px;
  padding: 64px 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blush); color: var(--rose-deep);
  font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 54px); line-height: 1.35; font-weight: 800;
  margin: 18px 0 16px; letter-spacing: -.5px;
}
.hero h1 em { font-style: normal; color: var(--gold-deep); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ''; position: absolute; inset-inline: -4px; bottom: 6px; height: 12px; z-index: -1;
  background: rgba(242, 167, 181, .45); border-radius: 8px;
}
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; padding-top: 24px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.trust b { display: block; font-size: 17px; color: var(--ink); font-weight: 800; }

.photo { position: relative; justify-self: center; width: min(420px, 100%); }
.photo .frame {
  position: relative; z-index: 2;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  overflow: hidden; aspect-ratio: 1 / 1;
  border: 10px solid #fff; box-shadow: var(--shadow);
  animation: morph 12s ease-in-out infinite;
}
.photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.photo .halo {
  position: absolute; inset: -6%; z-index: 1;
  border-radius: 50%; background: radial-gradient(circle, rgba(226, 196, 98, .45), transparent 65%);
}
.photo .badge {
  position: absolute; z-index: 3; bottom: 6%; inset-inline-start: -6%;
  background: #fff; border-radius: 20px; padding: 12px 18px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .35);
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
  animation: bob 5s ease-in-out infinite;
}
.photo .badge i { font-style: normal; font-size: 22px; }
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
  50% { border-radius: 56% 44% 54% 46% / 44% 56% 44% 56%; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- flowers ---------- */
.flower { position: absolute; pointer-events: none; z-index: 1; }
.flower svg { width: 100%; height: 100%; display: block; }
.sway { animation: sway 7s ease-in-out infinite; transform-origin: 50% 100%; }
.spin { animation: spin 26s linear infinite; }
.float { animation: bob 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sections ---------- */
section { position: relative; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.4; }
.sec-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }
.sprig { display: inline-block; width: 70px; height: 22px; margin-bottom: 10px; }

.features { padding: 64px 0 24px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat {
  background: #fff; border-radius: 24px; padding: 28px 22px; text-align: center;
  border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease;
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feat .ic {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 22px;
  display: grid; place-items: center; font-size: 30px;
}
.feat h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.feat p { font-size: 14.5px; color: var(--muted); }

/* ---------- form ---------- */
.register { padding: 56px 0 60px; }
@media (max-width: 600px) { .register { padding: 24px 0 40px; } }
.form-shell {
  position: relative; max-width: 760px; margin: 0 auto;
  background: #fff; border-radius: 36px; box-shadow: var(--shadow);
  padding: 48px 48px 40px; border: 1px solid var(--line);
}
.form-shell::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 10px; border-radius: 36px 36px 0 0;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--sage));
}
.form-title { text-align: center; margin-bottom: 30px; }
.form-title img { height: 64px; margin: 0 auto 12px; }
.form-title h2 { font-size: 28px; font-weight: 800; }
.form-title p { color: var(--muted); font-size: 15px; }

fieldset { border: 0; }
.group-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--gold-ink);
  margin: 8px 0 14px;
}
.group-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field label .req { color: var(--rose-deep); }
.input {
  width: 100%; height: 56px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 16px; background: var(--cream-2);
  font: 500 16px 'Alexandria', sans-serif; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%238a6a1c' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 18px center; padding-left: 44px;
}
.input::placeholder { color: #b5aa98; }
.input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(226, 196, 98, .22); }
.field.err .input { border-color: var(--rose-deep); background: #fff7f8; }
.field .msg { display: none; font-size: 13px; color: var(--rose-deep); margin-top: 6px; }
.field.err .msg { display: block; }
.phone-wrap { position: relative; }
.phone-wrap .input { direction: ltr; text-align: right; }

/* workshop chips */
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.chip { position: relative; }
.chip.wide { grid-column: 1 / -1; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line);
  background: var(--cream-2); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .2s ease;
}
.chip span i { font-style: normal; font-size: 24px; }
.chip input:checked + span { border-color: var(--gold); background: #fff8e3; box-shadow: 0 0 0 4px rgba(226, 196, 98, .2); }
.chip span .tick {
  margin-inline-start: auto; flex: none; width: 24px; height: 24px; border-radius: 8px;
  border: 2px solid #d9cdb4; background: #fff; display: grid; place-items: center; transition: all .2s ease;
}
.chip input:checked + span .tick { background: var(--gold); border-color: var(--gold); }
.chip input:checked + span .tick::after {
  content: ''; width: 6px; height: 11px; margin-top: -3px;
  border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.chip input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.field.err .chip span { border-color: #f1c2cc; }

/* sibling toggle */
.sibling-toggle {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; margin: 6px 0 18px; border-radius: 18px; cursor: pointer;
  border: 1.5px dashed var(--rose); background: var(--blush);
  font: 600 15px 'Alexandria', sans-serif; color: var(--ink); text-align: start;
  transition: background .2s, border-color .2s;
}
.sibling-toggle:hover { background: #fdd9e0; }
.sibling-toggle .plus {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--rose-deep); display: grid; place-items: center;
  font-size: 22px; line-height: 1; transition: transform .3s ease;
}
.sibling-toggle[aria-expanded='true'] { border-style: solid; background: #fff; }
.sibling-toggle[aria-expanded='true'] .plus { transform: rotate(45deg); background: var(--blush); }
.sibling-toggle small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

.sibling {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .4s ease, opacity .3s ease;
}
.sibling.open { grid-template-rows: 1fr; opacity: 1; }
.sibling > div { overflow: hidden; }
.sibling-card {
  background: #fffafb; border: 1.5px solid #f6d3db; border-radius: 22px;
  padding: 20px 20px 4px; margin-bottom: 18px;
}

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }

.submit { width: 100%; height: 62px; font-size: 18px; margin-top: 10px; }
.submit[disabled] { opacity: .7; cursor: wait; transform: none; }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, .15); border-top-color: var(--ink);
  animation: spin .8s linear infinite; display: none;
}
.submit[disabled] .spinner { display: inline-block; }
.form-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-error {
  display: none; margin-top: 14px; padding: 12px 16px; border-radius: 14px;
  background: #fff1f3; color: #b3405a; font-size: 14px; text-align: center;
}
.form-error.show { display: block; }

/* ---------- footer ---------- */
footer { padding: 34px 0 40px; text-align: center; color: var(--muted); font-size: 14px; }
footer img { height: 46px; margin: 0 auto 10px; opacity: .9; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-card { grid-template-columns: 1fr; padding: 44px 28px 36px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .actions, .trust { justify-content: center; }
  .photo { order: -1; width: min(300px, 80%); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .top .wrap { height: 64px; }
  .brand img { height: 36px; }
  .brand span { display: none; }
  .hero { padding-top: 24px; }
  .hero-card { border-radius: 30px; padding: 34px 20px 30px; }
  .hero .actions .btn { width: 100%; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feat { padding: 20px 14px; }
  .form-shell { padding: 38px 20px 28px; border-radius: 28px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .chips { grid-template-columns: 1fr; }
  .photo .badge { inset-inline-start: -2%; font-size: 13px; }
  .register .flower { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
