:root {
  --sea: #12414f;
  --sea-deep: #0b2c36;
  --sand: #f5efe4;
  --stone: #d9cdb8;
  --sun: #e2703a;
  --ink: #1a1f22;
  --muted: #5b6a70;
  --white: #ffffff;
  --radius: 14px;
  --wrap: 1080px;
  --shadow: 0 10px 30px rgba(11, 44, 54, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--sea); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px; z-index: 10;
  background: var(--white); padding: 10px 14px; border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sea); color: var(--sand);
  font-weight: 700; letter-spacing: 0.06em; font-size: 0.85rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

.site-header nav { display: flex; gap: 18px; }
.site-header nav a {
  text-decoration: none; color: var(--sea-deep);
  font-size: 0.95rem; font-weight: 500;
}
.site-header nav a:hover { color: var(--sun); }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: var(--sand);
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

/* Photo hero: the gradient above stays as the fallback under the image. */
.hero.has-photo {
  background-image:
    linear-gradient(100deg, rgba(11, 44, 54, 0.90) 0%, rgba(11, 44, 54, 0.66) 42%, rgba(11, 44, 54, 0.30) 72%, rgba(11, 44, 54, 0.38) 100%),
    url("../img/hero-ghajn-tuffieha.jpg");
  background-size: cover, cover;
  background-position: center right, center right;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: normal;
}
.hero.has-photo .hero-inner { position: relative; }
.hero.has-photo h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero.has-photo .lead { color: #eaf1ef; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.30); }

.hero-credit {
  margin: 22px 0 0;
  font-size: 0.72rem;
  color: rgba(233, 240, 238, 0.72);
}
.hero-credit a { color: rgba(233, 240, 238, 0.88); text-decoration: underline; }
.hero-credit a:hover { color: var(--white); }
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.78rem; color: var(--stone); margin-bottom: 12px;
}
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lead { max-width: 62ch; color: #dfe7e4; font-size: 1.05rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sun); color: var(--white); }
.btn-primary:hover { background: #c95f2e; }
.btn-ghost { border-color: rgba(245, 239, 228, 0.5); color: var(--sand); }
.btn-ghost:hover { background: rgba(245, 239, 228, 0.12); }

.hero-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px; margin: 0; padding-top: 26px;
  border-top: 1px solid rgba(245, 239, 228, 0.22);
}
.hero-facts dt {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; color: var(--stone); margin-bottom: 4px;
}
.hero-facts dd { margin: 0; font-size: 0.95rem; color: var(--white); }

/* Sections */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-alt { background: var(--white); }
.section-lead { color: var(--muted); max-width: 62ch; margin-bottom: 32px; }

.grid-2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

/* Stage list */
.stage-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.stage-card {
  background: var(--white); border: 1px solid var(--stone);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stage-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11, 44, 54, 0.16); }
.stage-card.is-hidden { display: none; }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.stage-top time { font-size: 0.85rem; color: var(--muted); }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(18, 65, 79, 0.1); color: var(--sea);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.stage-card h3 { margin: 0 0 10px; }
.stage-card h3 a { text-decoration: none; color: var(--ink); }
.stage-card h3 a:hover { color: var(--sun); }

.stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 14px;
  margin: 0 0 12px; padding: 0; font-size: 0.85rem; color: var(--muted);
}
.stats strong { color: var(--sea-deep); font-size: 1rem; }
.notes { font-size: 0.93rem; color: var(--muted); }
.more { margin-top: auto; font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.more:hover { color: var(--sun); }

/* Filters */
.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 28px; font-size: 0.85rem; color: var(--muted);
}
.chip {
  font: inherit; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--stone); background: var(--white);
  color: var(--sea-deep); cursor: pointer;
}
.chip:hover { border-color: var(--sea); }
.chip.is-active { background: var(--sea); color: var(--sand); border-color: var(--sea); }

/* Ticks */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.ticks li::before {
  content: "➜"; position: absolute; left: 0; top: 0;
  color: var(--sun); font-size: 0.9rem;
}

/* Join */
.join { text-align: center; max-width: 620px; margin: 0 auto; }
.fine { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

/* Stage page */
.breadcrumb { margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; font-size: 0.9rem; }
.fact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px; margin: 28px 0; padding: 22px;
  background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius);
}
.fact-grid dt {
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.72rem; color: var(--muted); margin-bottom: 4px;
}
.fact-grid dd { margin: 0; font-weight: 600; }
.fact-grid .wide { grid-column: 1 / -1; }

.callout {
  background: var(--white); border-left: 5px solid var(--sun);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  background: var(--sea-deep); color: #cfdadb;
  padding: 36px 0; font-size: 0.9rem;
}
.site-footer a { color: var(--sand); }
.site-footer .fine { color: #93a6a9; margin-bottom: 0; }

@media (max-width: 640px) {
  .site-header nav { gap: 12px; font-size: 0.85rem; }
  .brand-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .stage-card:hover { transform: none; }
}
