/* ==========================================================
   CANADIANS IN DUBAI — DIRECTORY
   Shared stylesheet for every page.
   ========================================================== */

:root {
  --red: #C8102E;
  --red-deep: #8B0A20;
  --yellow: #FFD23F;
  --cream: #FFF7F0;
  --paper: #FFFFFF;
  --ink: #0F0F10;
  --ink-60: rgba(15, 15, 16, 0.62);
  --ink-30: rgba(15, 15, 16, 0.3);
  --ink-12: rgba(15, 15, 16, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Fluid root size — every rem scales from here. Copy grows on larger
     desktops (so it never looks tiny on a dense retina screen) and eases
     down on small screens. ~18px at 1280w, ~20px at 1680w, cap 22px. */
  font-size: clamp(16px, 0.5vw + 11.6px, 22px);
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Assistant', sans-serif;
  font-weight: 500;
  line-height: 1.55;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.display {
  font-family: 'Anton', 'Impact', sans-serif;
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.wrap {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 72px);
  position: relative;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 20px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* ================= TOP BAR ================= */
.topbar {
  background: var(--red);
  border-bottom: 4px solid var(--ink);
  padding: 18px 0;
  position: relative;
  z-index: 60;
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: block; line-height: 0; }
.brand-logo { height: 34px; width: auto; display: block; }

.topbar-right { display: flex; align-items: center; gap: 24px; }
.topbar-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Hamburger — hidden on desktop, revealed in the mobile bar. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  padding: 10px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.topbar.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.topbar.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.topbar.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.topbar-link {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  padding-bottom: 2px;
}
.topbar-link:hover { border-bottom-color: var(--yellow); }

/* ---- New to Dubai dropdown ---- */
.nav-drop { position: relative; display: flex; align-items: center; }

.nav-drop-btn {
  background: none;
  border: 0;
  /* mirror .topbar-link's box exactly so the button's text sits on the
     same line as the anchor links (buttons otherwise reset line-height
     and don't carry the links' transparent bottom border) */
  border-bottom: 3px solid transparent;
  padding: 0 0 2px;
  line-height: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-drop-btn svg { width: 13px; height: 13px; transition: transform 0.15s; }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  display: none;
  flex-direction: column;
  z-index: 120;
}
/* invisible bridge so the pointer can cross the gap without closing */
.nav-drop-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.open .nav-drop-menu { display: flex; }

.nav-drop-menu a {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  padding: 13px 18px;
  border-bottom: 2px dashed var(--ink-12);
}
.nav-drop-menu a:last-child { border-bottom: none; }
.nav-drop-menu a:hover { background: var(--yellow); }

.topbar-cta {
  background: var(--yellow);
  color: var(--ink);
  padding: 13px 24px;
  text-decoration: none;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.topbar-cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.topbar-cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* ================= MASTHEAD ================= */
.masthead {
  background: var(--red);
  color: #fff;
  padding: 76px 0 70px;
  border-bottom: 8px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.masthead.compact { padding: 52px 0 46px; }

.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 25%, rgba(255,210,63,0.16) 0%, transparent 42%),
    radial-gradient(circle at 84% 76%, rgba(0,0,0,0.3) 0%, transparent 52%);
  pointer-events: none;
}

.mast-leaf {
  position: absolute;
  color: var(--red-deep);
  opacity: 0.5;
  pointer-events: none;
  width: 300px;
  height: 300px;
  right: -50px;
  top: -46px;
  transform: rotate(14deg);
}

.masthead.compact .mast-leaf { width: 220px; height: 220px; top: -34px; }

.mast-in { position: relative; z-index: 3; }

.mast-kicker {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding: 7px 16px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1.4deg);
  margin-bottom: 28px;
}

.mast-title {
  font-size: clamp(3.2rem, 10vw, 8rem);
  color: var(--yellow);
  text-shadow: 5px 5px 0 var(--ink);
  margin-bottom: 20px;
}
.mast-title .l2 { display: block; color: #fff; text-shadow: 5px 5px 0 var(--ink); }

.masthead.compact .mast-title { font-size: clamp(2.6rem, 7vw, 5rem); }

.mast-blurb {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.35;
  max-width: 940px;
}

/* Home hero (non-compact masthead): centre the content so it fills wide
   laptop/desktop screens instead of stranding everything on the left.
   The category/guide pages keep their left-aligned compact mastheads. */
.masthead:not(.compact) .mast-in { text-align: center; }
.masthead:not(.compact) .mast-kicker { margin-left: auto; margin-right: auto; }
.masthead:not(.compact) .mast-blurb { margin-left: auto; margin-right: auto; }
.masthead:not(.compact) .search-shell { margin-left: auto; margin-right: auto; }
.masthead:not(.compact) .mast-leaf {
  left: 50%;
  right: auto;
  transform: translateX(-50%) rotate(14deg);
  opacity: 0.16;
}

.crumbs {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.8);
}
.crumbs a { color: var(--yellow); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { padding: 0 8px; opacity: 0.5; }

/* ================= SEARCH ================= */
.search-shell {
  display: flex;
  align-items: stretch;
  max-width: 940px;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--paper);
  margin-top: 38px;
}

.search-shell .mag {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  align-self: center;
  margin-left: 18px;
  color: var(--ink-30);
}

.search-shell input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 19px 16px;
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  min-width: 0;
}
.search-shell input::placeholder { color: var(--ink-30); font-weight: 500; }
.search-shell input:focus { outline: none; }
.search-shell:focus-within { box-shadow: 4px 4px 0 var(--ink); transform: translate(2px, 2px); }

.search-clear {
  border: none;
  border-left: 3px solid var(--ink);
  background: var(--yellow);
  padding: 0 20px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: var(--ink);
}
.search-clear[hidden] { display: none; }

/* ================= TICKER ================= */
.ticker {
  background: var(--ink);
  color: #fff;
  padding: 17px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-run {
  display: inline-flex;
  animation: run 42s linear infinite;
  font-family: 'Anton', sans-serif;
  font-size: 1.28rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ticker-run > span { display: inline-flex; align-items: center; }
.ticker-run i { font-style: normal; padding: 0 26px; }
.ticker-run .amber { color: var(--yellow); }
.ticker-run b { display: inline-block; width: 9px; height: 9px; background: var(--red); border-radius: 50%; }

@keyframes run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================= SECTION FURNITURE ================= */
.section { padding: 86px 0; }
.section.tight { padding: 56px 0 86px; }

.sec-head { margin-bottom: 42px; }

.sec-tag {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  padding: 7px 15px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.sec-head h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  text-transform: uppercase;
  line-height: 0.95;
}
.sec-head h2 .red { color: var(--red); }

.sec-head p {
  font-size: 1.05rem;
  font-weight: 600;
  max-width: 520px;
  margin-top: 14px;
}

/* ================= CATEGORY GRID ================= */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 18px;
}

.cat-card {
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 26px 22px 22px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 168px;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
}
.cat-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); background: var(--yellow); }
.cat-card:nth-child(4n+2) { background: var(--yellow); }
.cat-card:nth-child(4n+2):hover { background: var(--paper); }
.cat-card:nth-child(4n+4) { background: var(--red); color: #fff; }
.cat-card:nth-child(4n+4) .cat-icon { color: var(--yellow); }
.cat-card:nth-child(4n+4):hover { background: var(--ink); }

.cat-icon { width: 34px; height: 34px; color: var(--red); stroke-width: 2.4; }

.cat-name {
  font-family: 'Anton', sans-serif;
  font-size: 1.42rem;
  text-transform: uppercase;
  line-height: 1.02;
}

.cat-count {
  margin-top: auto;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* ================= DUO CARDS (home page) ================= */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.duo-card {
  display: block;
  border: 4px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 32px 30px 28px;
  text-decoration: none;
  transition: transform 0.16s, box-shadow 0.16s;
}
.duo-card:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--ink); }
.duo-card.ev { background: var(--red); color: #fff; }
.duo-card.nc { background: var(--yellow); color: var(--ink); }

.duo-kicker {
  display: inline-block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding: 5px 11px;
  margin-bottom: 14px;
}
.duo-card.ev .duo-kicker { background: var(--yellow); color: var(--ink); }
.duo-card.nc .duo-kicker { background: var(--ink); color: var(--yellow); }

.duo-card h3 {
  font-family: 'Anton', sans-serif;
  font-size: 2.1rem;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 10px;
}

.duo-card p { font-weight: 600; font-size: 0.98rem; max-width: 420px; }

/* ================= NOTICE ================= */
.notice {
  background: var(--yellow);
  border: 4px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 20px 24px;
  margin-bottom: 44px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.notice svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--ink); }
.notice-t {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.notice-b { font-size: 0.95rem; font-weight: 600; line-height: 1.5; }

/* ================= LISTINGS ================= */
.tally {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--ink-60);
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 22px;
  align-items: stretch;
}

.card {
  position: relative;
  transition: transform 0.16s;
}
.card:hover { transform: translate(-3px, -3px); }
.card.can-flip { cursor: pointer; }

/* A resting card must be plain 2D content: perspective, preserve-3d and
   backface-visibility all promote the faces to rasterized compositor
   layers, and any card sitting at a fractional pixel offset renders its
   text blurry — whichever face is showing. So the 3D machinery only
   exists while a flip is running: JS adds .animating (3D on, no
   transition), commits a reflow, then adds .easing (transition on) and
   toggles .flipped. When the transition ends both are removed and the
   card rests as flat 2D again — one face shown, the other
   visibility-hidden, no transforms anywhere. */
.card-inner {
  display: grid;
  height: 100%;
}
.card.animating .card-inner { transform-style: preserve-3d; }
.card.easing .card-inner { transition: transform 0.55s; }
.card.animating.flipped .card-inner { transform: perspective(1200px) rotateY(180deg); }

.card.animating .card-front,
.card.animating .card-back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Resting states — pure 2D, no rasterized layers. */
.card:not(.flipped):not(.animating) .card-back { visibility: hidden; }
.card.flipped:not(.animating) .card-front { visibility: hidden; }
.card.flipped:not(.animating) .card-back { transform: none; }

.card-front, .card-back {
  grid-area: 1 / 1;
  border: 4px solid var(--ink);
  padding: 26px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 0.16s;
}
.card-front { background: var(--paper); box-shadow: 7px 7px 0 var(--ink); }
.card:hover .card-front { box-shadow: 10px 10px 0 var(--ink); }

.card-back {
  background: var(--ink);
  color: #fff;
  box-shadow: 7px 7px 0 var(--red);
  transform: rotateY(180deg);
}
.card:hover .card-back { box-shadow: 10px 10px 0 var(--red); }
.card-back .stamp { color: var(--yellow); opacity: 0.35; }

.back-cat { background: var(--yellow); color: var(--ink); }

.back-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.22);
}
.back-label {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--yellow);
}
.back-value {
  font-weight: 600;
  font-size: 0.97rem;
  color: #fff;
  word-break: break-word;
}
a.back-value {
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  align-self: flex-start;
  padding-bottom: 1px;
}
a.back-value:hover { border-bottom-color: var(--red); }

.flip-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.5;
}
.flip-hint svg { width: 12px; height: 12px; }
.card-back .flip-hint { color: var(--yellow); opacity: 0.8; margin-top: auto; padding-top: 14px; }

.stamp {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  color: var(--red);
  opacity: 0.9;
  transform: rotate(-13deg);
  pointer-events: none;
}

.card-cat {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--yellow);
  margin-bottom: 14px;
  text-decoration: none;
}
a.card-cat:hover { background: var(--red); color: #fff; }

.card-name {
  font-family: 'Anton', sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 8px;
  padding-right: 34px;
}

.card-area {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--red);
  margin-bottom: 14px;
}

.card-note { font-size: 0.95rem; font-weight: 500; line-height: 1.52; margin-bottom: 18px; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 2px dashed var(--ink-30);
}

.tag {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.57rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border: 2px solid var(--ink);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 2px;
  align-self: flex-start;
}.card-link:hover { border-bottom-color: var(--red); }
.card-link svg { width: 13px; height: 13px; }

/* ================= EMPTY ================= */
.empty { border: 4px dashed var(--ink); padding: 60px 32px; text-align: center; }
.empty h3 { font-family: 'Anton', sans-serif; font-size: 2rem; text-transform: uppercase; margin-bottom: 10px; }
.empty p { font-weight: 600; color: var(--ink-60); margin-bottom: 22px; }
.empty[hidden] { display: none; }

.btn-solid {
  display: inline-block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 15px 26px;
  background: var(--red);
  color: #fff;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-solid:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn-solid:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

/* ================= SUBMIT BAND ================= */
.band {
  background: var(--ink);
  color: #fff;
  padding: 88px 0;
  border-top: 8px solid var(--red);
  position: relative;
  overflow: hidden;
}

.band-leaf {
  position: absolute;
  width: 280px;
  height: 280px;
  color: var(--yellow);
  opacity: 0.07;
  left: -54px;
  bottom: -40px;
  transform: rotate(17deg);
  pointer-events: none;
}

.band-in {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.band h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  text-transform: uppercase;
  line-height: 0.96;
  color: var(--yellow);
  text-shadow: 4px 4px 0 var(--red);
  margin-bottom: 16px;
}
.band p { font-weight: 600; font-size: 1.05rem; max-width: 460px; }

.band-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.band-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  padding: 19px 36px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 4px solid #fff;
  box-shadow: 7px 7px 0 var(--red);
  transition: transform 0.15s, box-shadow 0.15s;
}
.band-btn:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--red); }

.band-fine {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* ================= FORM ================= */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.form-card {
  background: var(--paper);
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 40px 38px;
}

.field { margin-bottom: 26px; }

.field label {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 9px;
}

.field .req { color: var(--red); margin-left: 3px; }

.field .hint {
  display: block;
  font-family: 'Assistant', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-60);
  margin-top: 4px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 3px solid var(--ink);
  background: var(--cream);
  padding: 14px 16px;
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 108px; line-height: 1.5; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--yellow);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F0F10' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.hp { position: absolute; left: -9999px; }

.form-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.form-submit:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.form-submit:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }

.aside-card {
  background: var(--ink);
  color: #fff;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--red);
  padding: 32px 28px;
}

.aside-card h3 {
  font-family: 'Anton', sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
  line-height: 1.05;
}

.aside-list { list-style: none; }
.aside-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
}
.aside-list li:last-child { border-bottom: none; }
.aside-list li::before {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  background: var(--yellow);
  margin-top: 7px;
  transform: rotate(45deg);
}

/* ================= CONFIRMATION ================= */
.confirm { padding: 110px 0 120px; text-align: center; }
.confirm-leaf { width: 84px; height: 84px; color: var(--red); margin: 0 auto 26px; display: block; transform: rotate(-9deg); }
.confirm h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 18px;
}
.confirm p { font-size: 1.1rem; font-weight: 600; max-width: 520px; margin: 0 auto 34px; }

/* ================= FOOTER ================= */
footer {
  background: var(--red);
  color: #fff;
  padding: 58px 0 28px;
  border-top: 8px solid var(--ink);
}

.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--ink);
}

.foot-logo { height: 30px; width: auto; margin-bottom: 14px; display: block; }
.foot-note { font-weight: 600; font-size: 0.95rem; max-width: 340px; }

.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }

.foot-col strong {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin-bottom: 3px;
}

.foot-col a {
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: #fff;
}
.foot-col a:hover { text-decoration: underline; }

.foot-base {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

/* ================= EVENTS ================= */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 860px;
}

.event-card {
  display: flex;
  gap: 28px;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 28px 26px;
  transition: transform 0.16s, box-shadow 0.16s;
}
.event-card:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--ink); }

.event-date {
  flex-shrink: 0;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 8px 12px;
  transform: rotate(-2deg);
}
.event-date .d {
  font-family: 'Anton', sans-serif;
  font-size: 2.3rem;
  line-height: 0.9;
}
.event-date .m {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 5px;
}
.event-date .y {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  opacity: 0.55;
  margin-top: 2px;
}

.event-body { min-width: 0; }
.event-body .card-name { padding-right: 0; }

.event-when {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-60);
  margin-bottom: 8px;
}

.event-card.past { opacity: 0.72; }
.event-card.past:hover { transform: none; box-shadow: 7px 7px 0 var(--ink); }
.event-card.past .event-date { background: var(--paper); transform: none; }

.past-head { margin-top: 72px; }
#pastsec[hidden] { display: none; }

/* ================= NEWCOMERS GUIDE ================= */
.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1120px;
}

.guide-side { position: sticky; top: 24px; }

.guide-toc {
  background: var(--ink);
  color: #fff;
  box-shadow: 8px 8px 0 var(--red);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.guide-toc h3 {
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
  line-height: 1.05;
}
.guide-toc a {
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
}
.guide-toc a:last-child { border-bottom: none; }
.guide-toc a:hover { color: var(--yellow); }

.guide-main { min-width: 0; max-width: 760px; }

.guide-intro {
  font-size: 1.08rem;
  font-weight: 600;
  border-left: 6px solid var(--yellow);
  background: var(--paper);
  border-top: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.guide-intro a { color: var(--red); font-weight: 700; }

.g-sec {
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 36px 34px 32px;
  margin-bottom: 32px;
  scroll-margin-top: 24px;
  position: relative;
}

.g-num {
  position: absolute;
  top: -16px;
  left: 24px;
  background: var(--red);
  color: #fff;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border: 3px solid var(--ink);
  transform: rotate(-2deg);
}

.g-sec h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  line-height: 0.98;
  margin-bottom: 16px;
}

.g-sec p { margin-bottom: 14px; font-size: 1rem; }
.g-sec p:last-child { margin-bottom: 0; }
.g-sec a { color: var(--red); font-weight: 700; }

.g-check { list-style: none; margin-top: 4px; }
.g-check li {
  position: relative;
  padding: 11px 0 11px 24px;
  font-size: 0.98rem;
  line-height: 1.5;
  border-bottom: 2px dashed var(--ink-12);
}
.g-check li:last-child { border-bottom: none; }
.g-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 19px;
  width: 10px;
  height: 10px;
  background: var(--red);
  transform: rotate(45deg);
}

.g-faq-q {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 22px;
  margin-bottom: 6px;
}
.g-sec .g-faq-q:first-of-type { margin-top: 4px; }

.g-fine {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-60);
  margin-top: 10px;
}
.g-fine a { color: var(--red); }

/* ================= RESPONSIVE ================= */
/* The category and listing grids are fluid (auto-fill), so they add
   columns to fill any width on their own — no fixed per-breakpoint
   column counts needed. Wide desktops just get a bigger decorative leaf. */
@media (min-width: 1441px) {
  .masthead .mast-leaf { width: 460px; height: 460px; top: -80px; }
}

/* Below desktop: collapse the nav behind a hamburger. The bar keeps just
   the logo, the Add-a-business CTA and the toggle; the links drop into a
   full-width panel below. Breakpoint sits above the width the enlarged
   inline nav needs (~1200px) so it never wraps. */
@media (max-width: 1240px) {
  .topbar { position: relative; }
  .nav-toggle { display: flex; }
  .topbar-nav { display: none; }

  .topbar.menu-open .topbar-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red);
    border-bottom: 5px solid var(--ink);
    padding: 6px 0 14px;
    z-index: 90;
  }
  .topbar.menu-open .topbar-nav > .topbar-link,
  .topbar.menu-open .nav-drop-btn {
    width: 100%;
    padding: 15px clamp(20px, 3.5vw, 72px);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    font-size: 0.85rem;
    color: #fff;
  }
  .topbar.menu-open .topbar-nav > .topbar-link:hover,
  .topbar.menu-open .nav-drop-btn:hover { background: rgba(0, 0, 0, 0.18); border-bottom-color: rgba(255,255,255,0.18); }

  /* "New to Dubai" becomes a heading with its links always listed. */
  .topbar.menu-open .nav-drop { display: block; width: 100%; }
  .topbar.menu-open .nav-drop-btn { justify-content: flex-start; cursor: default; }
  .topbar.menu-open .nav-drop-btn svg { display: none; }
  .topbar.menu-open .nav-drop-menu {
    position: static;
    display: flex;
    flex-direction: column;
    transform: none;
    min-width: 0;
    border: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.16);
  }
  .topbar.menu-open .nav-drop-menu::before { display: none; }
  .topbar.menu-open .nav-drop-menu a {
    color: #fff;
    padding: 13px clamp(20px, 3.5vw, 72px);
    padding-left: calc(clamp(20px, 3.5vw, 72px) + 18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .topbar.menu-open .nav-drop-menu a:hover { background: rgba(0, 0, 0, 0.28); }
}

@media (max-width: 1040px) {
  .form-layout { grid-template-columns: 1fr; gap: 34px; }
  .band-in { grid-template-columns: 1fr; gap: 32px; }
  .guide-layout { grid-template-columns: 1fr; gap: 38px; }
  .guide-side { position: static; }
}

@media (max-width: 720px) {
  .masthead { padding: 52px 0 48px; }
  .masthead.compact { padding: 38px 0 34px; }
  .mast-leaf { width: 190px; height: 190px; right: -44px; }
  .section { padding: 58px 0; }
  .section.tight { padding: 40px 0 58px; }
  .duo { grid-template-columns: 1fr; }
  .band { padding: 62px 0; }
  .ticker-run { font-size: 1.05rem; }
  .ticker-run i { padding: 0 16px; }
  .foot-logo { height: 22px; }
  /* Keep the top bar on one row: logo | CTA + hamburger */
  .topbar-in { gap: 10px; flex-wrap: nowrap; }
  .topbar-right { gap: 10px; }
  .brand { min-width: 0; }
  .brand-logo { height: 18px; }
  .topbar-cta { font-size: 0.6rem; padding: 8px 11px; letter-spacing: 0.05em; }
  .nav-toggle { width: 42px; height: 40px; padding: 9px; }
  .topbar-link { font-size: 0.66rem; }
  .nav-drop-menu { left: -12px; right: auto; transform: none; }
  .notice { flex-direction: column; gap: 12px; }
  .event-card { flex-direction: column; gap: 18px; padding: 22px 20px; }
  .event-date { flex-direction: row; width: auto; align-self: flex-start; gap: 8px; align-items: baseline; padding: 8px 14px; }
  .event-date .d { font-size: 1.5rem; }
  .event-date .m, .event-date .y { margin-top: 0; }
  .g-sec { padding: 30px 22px 26px; }
  .form-card { padding: 28px 22px; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .foot-cols { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}
