:root {
  --sand: #F3EEE6;
  --paper: #FFFcf8;
  --ink: #171410;
  --muted: #6A635B;
  --navy: #12233A;
  --navy-2: #1C3552;
  --gold: #B08D57;
  --cta: #C24E1D;
  --cta-hover: #A63F16;
  --line: rgba(18, 35, 58, 0.1);
  --shadow: 0 18px 50px rgba(18, 35, 58, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 40px;
  background: var(--navy);
  color: #fff;
}
.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 22px 40px;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: #fff;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
}
.logo strong { font-size: 17px; font-weight: 700; }
.logo span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
}
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { color: rgba(255, 255, 255, 0.9); font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -1px 0 #E4C58A; }
.nav-cta {
  background: #fff;
  color: var(--navy) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.nav-cta:hover { background: #F6F1E9; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
  padding: 0;
}
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 760px;
  background: url("../img/dubai-hero.jpg") center 42% / cover no-repeat;
  color: #fff;
  padding: 150px 0 170px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 20, 0.42) 0%, rgba(7, 12, 20, 0.16) 52%, rgba(7, 12, 20, 0.08) 100%),
    linear-gradient(180deg, rgba(7, 12, 20, 0.72) 0%, rgba(7, 12, 20, 0.58) 32%, rgba(7, 12, 20, 0.46) 58%, rgba(7, 12, 20, 0.66) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow,
.hero h1,
.hero .lead {
  text-shadow: 0 1px 2px rgba(6, 10, 16, 0.55), 0 10px 28px rgba(6, 10, 16, 0.48);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #F3E2C2;
  margin-bottom: 18px;
}
.eyebrow i { width: 28px; height: 1px; background: var(--gold); display: inline-block; }
h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  max-width: 14ch;
}
.hero p.lead {
  max-width: 540px;
  margin-top: 18px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.96);
}

.planner {
  position: relative;
  z-index: 5;
  margin: -88px auto 0;
  width: min(1180px, calc(100% - 48px));
  background: var(--paper);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px 20px 20px;
}
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
}
.tab.active { background: var(--navy); color: #fff; }
.panel { display: none; }
.panel.active { display: block; }
.fields {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
label,
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field {
  background: #F6F1E9;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
}
.field b { display: block; font-size: 15px; font-weight: 600; }
.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 18px 26px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 64px;
  white-space: nowrap;
}
.go:hover { background: var(--cta-hover); color: #fff; }

section { padding: 88px 0; }
.section-kicker {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h3 { font-weight: 540; }
.sub { color: var(--muted); max-width: 58ch; margin-top: 12px; }

.events { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; margin-top: 36px; }
.card {
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(18, 35, 58, 0.06);
}
.card img { width: 100%; height: 280px; object-fit: cover; }
.card.side img { height: 220px; }
.card .body { padding: 24px 26px 28px; }
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: #E8D9BE;
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 12px;
}
.card h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  font-weight: 540;
  margin-bottom: 8px;
}
.card h3 a:hover { color: var(--navy-2); }
.meta { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.card p { color: #3d3833; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.text-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--cta); border-bottom-color: var(--cta); }

.trip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.trip article { background: var(--paper); border-radius: 20px; overflow: hidden; }
.trip img { height: 190px; width: 100%; object-fit: cover; }
.trip .img-sail { object-position: center 32%; }
.trip .body { padding: 22px; }
.trip h3 { font-size: 20px; font-family: Fraunces, Georgia, serif; margin-bottom: 8px; }
.trip p { color: #3d3833; }

.venues { background: var(--navy); color: #fff; }
.venues .section-kicker { color: #E4C58A; }
.venues .sub { color: rgba(255, 255, 255, 0.72); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.venue-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
}
.venue-box h3 { font-family: Fraunces, Georgia, serif; font-size: 26px; margin: 8px 0 10px; }
.venue-box p { color: rgba(255, 255, 255, 0.78); }
.venue-box a { color: #fff; font-weight: 700; border-bottom: 1px solid #E4C58A; }
.when {
  color: #E4C58A;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq { display: grid; gap: 12px; margin-top: 32px; }
details { background: var(--paper); border-radius: 16px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
details p { color: var(--muted); margin-top: 10px; }
details a { color: var(--navy); font-weight: 700; border-bottom: 1px solid var(--gold); }
.faq-section { padding-top: 20px; }

.page-intro { padding: 52px 0 8px; }
.page-intro h1 { font-size: clamp(36px, 5vw, 58px); max-width: 18ch; }
.page-section { padding: 28px 0 80px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--navy); font-weight: 600; }
.crumb a:hover { border-bottom: 1px solid var(--gold); }
.crumb span { margin: 0 6px; color: var(--gold); }

.page-photo {
  margin-top: 8px;
  border-radius: 22px;
  overflow: hidden;
  height: 380px;
  background: var(--navy);
}
.page-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-photo .img-sail { object-position: center 30%; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.fact {
  background: var(--paper);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 8px 30px rgba(18, 35, 58, 0.05);
}
.fact span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.fact strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 540;
  line-height: 1.25;
}

.prose { max-width: 68ch; margin-top: 28px; color: #3d3833; }
.prose p + p { margin-top: 14px; }
.prose h2 { margin: 32px 0 10px; font-size: clamp(26px, 3vw, 34px); }
.prose .text-link { margin-top: 18px; }

.note {
  margin-top: 22px;
  background: var(--paper);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  max-width: 72ch;
  color: #3d3833;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.next-grid a {
  background: var(--paper);
  border-radius: 18px;
  padding: 22px;
  display: block;
  box-shadow: 0 8px 30px rgba(18, 35, 58, 0.06);
  min-height: 128px;
}
.next-grid a:hover { background: #fff; }
.next-grid a span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.next-grid a strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 26px;
  font-weight: 540;
  line-height: 1.2;
  color: var(--navy);
}
.related { margin-top: 26px; color: var(--muted); }
.related a {
  color: var(--navy);
  font-weight: 700;
  border-bottom: 1px solid var(--gold);
}

.stack { display: grid; gap: 16px; margin-top: 22px; }
.stack article {
  background: var(--paper);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 8px 30px rgba(18, 35, 58, 0.05);
}
.stack h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
  margin-bottom: 8px;
}
.stack p { color: #3d3833; }

footer {
  background: #0D1A2B;
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 32px;
}
footer .top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
footer strong { color: #fff; }
.footer-lead { margin-top: 8px; max-width: 42ch; }
.footer-links { text-align: right; }
.footer-links a:hover { color: #fff; }
.footer-contact { margin-top: 8px; }
footer small {
  display: block;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .fields,
  .events,
  .trip,
  .split,
  .facts,
  .next-grid { grid-template-columns: 1fr; }
  .site-header,
  .site-header--overlay { padding: 14px 20px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }
  .site-nav.is-open { display: flex; }
  .site-header--overlay.is-open { background: var(--navy); }
  .site-nav a { font-size: 16px; padding: 12px 2px; width: 100%; }
  .site-nav a.nav-cta {
    display: block;
    width: 100%;
    margin-top: 10px;
    text-align: center;
  }
  .fields .go { width: 100%; }
  .hero { min-height: 620px; padding: 120px 0 130px; }
  .planner { margin-top: -56px; }
  footer .top { flex-direction: column; gap: 22px; }
  .footer-links { text-align: left; }
  .page-photo { height: 220px; }
  .card img,
  .card.side img { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
