/* =====================================================================
   GROOM UP DUBAI — STYLES
   Colours and fonts: edit the variables in :root only.
   ===================================================================== */

:root {
  /* Brand colours */
  --cream: #F8F5EE;        /* main background */
  --sand: #EBDCC7;         /* cards, panels */
  --biscuit: #D4B895;      /* supporting tone — never put brown text on it */
  --choc: #32180F;         /* main type, dark sections */
  --brown: #7B5A3C;        /* secondary text on cream/sand only */
  --yellow: #F6CF58;       /* accent 1: CTAs, arrow, numbers */
  --pink: #E94F8B;         /* accent 2: large text/tags only, never body text */
  --choc-soft: #4A2A1D;    /* raised panels on dark sections */

  /* Type */
  --font-display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & space */
  --radius: 28px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(56px, 7vw, 96px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--choc);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--choc); text-underline-offset: 3px; }
a:hover { color: var(--brown); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); padding: 10px 16px; border-radius: var(--radius-pill); z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 1000px; }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.005em; }
.h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brown); }
.label--light { color: var(--biscuit); }
.lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 560px; }
.muted { color: var(--brown); }
.note { font-size: 14px; color: var(--brown); margin-top: 20px; }
.accent { color: var(--pink); }
.strong-link { font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font: 700 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 17px; }
.btn--yellow { background: var(--yellow); color: var(--choc); }
.btn--yellow:hover { color: var(--choc); transform: translateY(-2px); }
.btn--outline { border-color: var(--choc); color: var(--choc); background: transparent; }
.btn--outline:hover { background: var(--choc); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--cream); transition: box-shadow .2s; }
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(50, 24, 15, .08); }
.nav__inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.nav__logo { display: block; flex: 0 0 auto; }
.nav__logo img { height: 64px; width: auto; }
.nav__menu { margin-left: auto; }
.nav__menu ul { display: flex; gap: 4px; }
.nav__menu a { display: block; padding: 12px 14px; font-weight: 500; text-decoration: none; border-radius: var(--radius-pill); }
.nav__menu a:hover { background: var(--sand); color: var(--choc); }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__inner { flex-wrap: wrap; min-height: 64px; padding-block: 8px; }
  .nav__toggle {
    display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 18px;
    border: 2px solid var(--choc); border-radius: var(--radius-pill); background: transparent;
    font: 700 15px var(--font-body); color: var(--choc); cursor: pointer;
  }
  .nav__cta { min-height: 44px; padding: 8px 18px; font-size: 15px; }
  .nav__menu { order: 3; width: 100%; margin: 0; display: none; }
  .nav__menu.is-open { display: block; }
  .nav__menu ul { flex-direction: column; padding: 8px 0 12px; }
  .nav__menu a { padding: 14px 12px; font-size: 18px; }
}
@media (max-width: 480px) {
  .nav__logo img { height: 52px; }
  .nav__cta { display: none; }   /* hero shows "Get tickets" right below */
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 72px) 0 clamp(120px, 14vw, 180px); }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero__title { font-size: clamp(54px, 8vw, 112px); line-height: .95; }
.hero__date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.hero__date-short { font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); line-height: 1; }
.hero__date-long { font-weight: 500; color: var(--brown); }
.hero__whatsapp { font-size: 15px; font-weight: 500; }
.hero__media { position: relative; }
.hero__photo .placeholder { align-items: flex-start; }
.hero__photo { height: clamp(340px, 42vw, 580px); border-radius: var(--radius-lg); background: var(--sand); overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.wave-corner { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; fill: var(--cream); pointer-events: none; }
.hero__arrow {
  position: absolute; right: clamp(16px, 4vw, 72px); bottom: -40px;
  width: clamp(110px, 11vw, 170px); height: auto;
  transition: transform .35s ease;
}
.hero:hover .hero__arrow { transform: translateY(-10px); }

@media (max-width: 860px) {
  .hero { padding-bottom: 150px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__arrow { width: 96px; bottom: -14px; right: 8px; }
}
.tickets { position: relative; z-index: 1; }

/* ---------- Placeholders (removed automatically once photos are set) ---------- */
.placeholder {
  display: flex; align-items: flex-end; height: 100%; min-height: 200px; padding: 20px;
  border-radius: inherit; background: var(--sand);
}
.placeholder span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); }
.placeholder--map { height: 380px; border-radius: var(--radius-lg); background: var(--biscuit); align-items: center; justify-content: center; }
.placeholder--map span { color: var(--choc); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: 0 var(--section); }
.section--last { padding-bottom: calc(var(--section) + 24px); }
.section__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }

.panel { background: var(--sand); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--speakers { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }

.card { background: var(--sand); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.05; }
.card--img { padding: 0; overflow: hidden; gap: 0; }
.card__img { width: 100%; height: 240px; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 28px 32px 32px; }
.card:not(.card--img) .card__body { padding: 0; }

/* ---------- Before / after ---------- */
.ba { margin: 12px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba__item { position: relative; border-radius: 24px; overflow: hidden; background: var(--sand); }
.ba__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ba__tag { position: absolute; left: 12px; top: 12px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--cream); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ba__tag--after { background: var(--yellow); }

/* ---------- Tickets ---------- */
.tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tickets h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input { flex: 1 1 220px; }
@media (max-width: 760px) { .tickets { grid-template-columns: 1fr; } }

/* ---------- Numbers ---------- */
.numbers { color: var(--cream); }
.wave { display: block; margin-bottom: -1px; width: 100%; height: clamp(48px, 7vw, 110px); fill: var(--choc); background: var(--cream); }
.numbers__body { background: var(--choc); padding: 16px 0 clamp(64px, 8vw, 104px); }
.stat__value { font-family: var(--font-display); font-size: clamp(72px, 8vw, 112px); line-height: 1; color: var(--yellow); }
.stat__label { font-size: 18px; font-weight: 500; }

/* ---------- Programme ---------- */
.programme { display: flex; flex-direction: column; gap: 10px; }
.session {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 8px 24px; align-items: center;
  background: var(--sand); border-radius: 24px; padding: 18px 24px;
}
.session__time { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.session__title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.session__who { font-size: 15px; color: var(--brown); }
.tag { padding: 6px 14px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--cream); white-space: nowrap; }
.tag--competition { background: var(--yellow); }
.tag--awards { background: var(--pink); }
.tag--partner { background: var(--biscuit); }
@media (max-width: 620px) {
  .session { grid-template-columns: 1fr; padding: 18px 20px; }
  .session .tag { justify-self: start; }
}

/* ---------- Compete ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.split--center { align-items: center; }
.split__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.split__side { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.split__main .section__head { margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pills li { padding: 10px 18px; border-radius: var(--radius-pill); background: var(--sand); font-weight: 500; }
.steps { display: flex; flex-direction: column; gap: 14px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps__num { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; }
.steps p { padding-top: 9px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3vw, 36px); line-height: 1.05; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
input[type="text"], input[type="email"], select {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 2px solid var(--brown); border-radius: 14px; background: var(--cream);
  font: 16px var(--font-body); color: var(--choc);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--choc) 50%), linear-gradient(135deg, var(--choc) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--choc); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form__error { font-size: 15px; font-weight: 700; color: var(--choc); background: var(--cream); border-radius: 14px; padding: 12px 16px; border-left: 0; }
.form__done { display: flex; flex-direction: column; gap: 14px; padding-block: 16px; }
.form__done h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.5vw, 40px); line-height: 1.05; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Speakers ---------- */
.speaker { display: flex; flex-direction: column; gap: 16px; }
.speaker__photo { height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker__body { display: flex; flex-direction: column; gap: 6px; padding-inline: 4px; }
.speaker__name { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.speaker__role { font-size: 15px; font-weight: 700; }
.speaker__highlight { font-size: 15px; line-height: 1.45; color: var(--brown); }
.speaker__topic { margin-top: 6px; padding: 10px 14px; border-radius: 16px; background: var(--sand); font-size: 15px; font-weight: 500; line-height: 1.4; }

/* ---------- Partners ---------- */
.partners { background: var(--sand); border-radius: 40px 40px 40px 160px; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 36px; }
.partners__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.partners__head > div:first-child { display: flex; flex-direction: column; gap: 12px; flex: 1 1 420px; min-width: 0; }
.partners .label { color: var(--choc); }
.tier { background: var(--cream); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tier h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.tier__slots { font-size: 14px; font-weight: 700; color: var(--brown); }
@media (max-width: 620px) { .partners { border-radius: 32px 32px 32px 80px; } }

/* ---------- Venue ---------- */
.venue__name { font-size: 20px; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--sand); border-radius: 24px; padding: 0 24px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 28px; transition: transform .2s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; }

/* ---------- Footer ---------- */
.footer { color: var(--cream); }
.footer .wave { fill: var(--choc); }
.footer__body { background: var(--choc); padding: 16px 0 32px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; flex: 1 1 280px; }
.footer__logo { width: 220px; height: auto; }
.footer__line { font-family: var(--font-display); font-size: 24px; color: var(--yellow); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 12px; }
.footer__list { display: flex; flex-direction: column; gap: 8px; }
.footer__list a { color: var(--cream); }
.footer__list a:hover { color: var(--yellow); }
.footer__legal { margin-top: 40px; font-size: 14px; color: var(--biscuit); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__arrow, .btn, .faq summary::after { transition: none; }
  .hero:hover .hero__arrow, .btn--yellow:hover { transform: none; }
}
