:root {
  --primary: #8e1b1f;
  --primary-2: #b0262b;
  --primary-soft: #fbecea;
  --accent: #f5c800;
  --accent-soft: #fff8d6;
  --ink: #2b2b2b;
  --muted: #666160;
  --bg: #ffffff;
  --tint: #faf7f4;
  --line: #ece4df;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(60, 20, 20, .08);
  --shadow-lg: 0 18px 50px rgba(60, 20, 20, .14);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Tajawal", system-ui, "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--accent); color: #2b1d05;
  font-weight: 700; font-size: 1rem; font-family: inherit;
  padding: .8em 1.6em; border-radius: 999px; border: 2px solid var(--accent);
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 200, 0, .4); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn-sm { padding: .45em 1.2em; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-logo { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.brand-text small { color: var(--muted); font-size: .85rem; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { color: var(--ink); font-weight: 500; padding: .4em .8em; border-radius: 10px; transition: background .2s, color .2s; }
.site-nav a:not(.btn):hover, .site-nav a.active { background: var(--primary-soft); color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(40,12,12,.35) 0%, rgba(90,16,20,.78) 55%, rgba(110,20,24,.92) 100%),
    url("img/banner.jpg") center / cover no-repeat,
    linear-gradient(135deg, #5c1215, var(--primary));
  padding: 110px 0 150px;
}
.hero .eyebrow { color: var(--accent); }

/* Photo band */
.photo-band {
  position: relative; color: #fff; text-align: center; padding: 110px 0;
  background:
    linear-gradient(rgba(43,30,30,.62), rgba(43,30,30,.62)),
    url("img/band.jpg") center / cover no-repeat fixed,
    var(--ink);
}
.photo-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; margin: 0; }
.photo-band p { margin: .4em 0 0; font-size: 1.2rem; opacity: .9; }
.photo-band .accent-bar { width: 70px; height: 5px; background: var(--accent); border-radius: 3px; margin: 0 auto 22px; }

/* About with photo */
.about-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: stretch; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 320px; position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about-photo::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 45%; height: 8px; background: var(--accent); }
.about-cards { display: grid; gap: 24px; }

/* Register with photo background */
.register-section {
  background:
    linear-gradient(rgba(250,247,244,.94), rgba(250,247,244,.94)),
    url("img/register.jpg") center / cover no-repeat;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .95rem; color: var(--accent); margin-bottom: .4em; letter-spacing: .02em; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; margin-bottom: .2em; }
.lead { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 500; opacity: .95; }
.hero-sub { max-width: 34em; opacity: .85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero-card {
  display: grid; gap: 14px; padding: 28px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px; backdrop-filter: blur(6px);
}
.stage-chip {
  display: flex; align-items: center; gap: 14px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 1.15rem;
  padding: 14px 20px; border-radius: 16px; box-shadow: var(--shadow);
}
.stage-chip span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); font-size: 1.3rem; }
.stage-chip:nth-child(2) { margin-inline-start: 28px; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; fill: var(--bg); }

.ico { width: 26px; height: 26px; display: block; }
.card-icon, .contact-icon, .stage-chip span { color: var(--primary); }
.value span { color: var(--primary); display: flex; justify-content: center; }
.value .ico { width: 34px; height: 34px; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.section-head .eyebrow { color: var(--primary-2); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.card h3 { color: var(--primary); font-size: 1.35rem; font-weight: 800; }
.card p:last-child { margin-bottom: 0; }
.card-accent { border-top: 4px solid var(--accent); transition: transform .25s, box-shadow .25s; }
.card-accent:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2rem; width: 60px; height: 60px; display: grid; place-items: center; background: var(--primary-soft); border-radius: 16px; margin-bottom: 16px; }

.num-list { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.num-list li { counter-increment: n; position: relative; padding-inline-start: 46px; margin-bottom: 14px; }
.num-list li:last-child { margin-bottom: 0; }
.num-list li::before {
  content: counter(n); position: absolute; inset-inline-start: 0; top: .1em;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .9rem;
  display: grid; place-items: center;
}

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value {
  text-align: center; padding: 28px 16px; border-radius: var(--radius);
  background: var(--tint); border: 1px solid var(--line);
  transition: transform .25s, background .25s;
}
.value:hover { transform: translateY(-4px); background: var(--primary-soft); }
.value span { display: block; font-size: 2.2rem; margin-bottom: 10px; }
.value p { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.6; }

/* Register */
.register { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.register-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.register-copy p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.check-list li { background: #fff; border: 1px solid var(--line); padding: .35em 1em .35em 1.1em; border-radius: 999px; font-weight: 700; color: var(--primary); }
.check-list li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-inline-end: 8px; vertical-align: middle; }
.form .field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7em .9em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px var(--primary-soft); outline: none; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #d9534f; }
textarea { resize: vertical; }
.form-error { color: #b52b27; font-weight: 700; font-size: .95rem; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; box-shadow: none; }
.form-result { margin-top: 16px; padding: 16px; border-radius: 12px; }
.form-result p { margin-bottom: 12px; font-weight: 700; }
.form-result.is-ok { background: var(--primary-soft); color: var(--primary); }
.form-result.is-fail { background: #fdecea; color: #b52b27; }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-wa:hover { box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; box-shadow: var(--shadow); color: var(--ink);
  transition: transform .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-icon { font-size: 1.8rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); margin-bottom: 8px; }
.contact-label { color: var(--muted); font-size: .95rem; }
.contact-card strong { font-size: 1.15rem; color: var(--primary); }
.ltr-small { font-size: .95rem !important; word-break: break-all; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .55em 1.1em; border-radius: 999px; border: 1.5px solid var(--line);
  color: var(--ink); font-weight: 700; transition: background .2s, border-color .2s, color .2s;
}
.socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* Map */
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 420px; border: 0; }
.map-link { text-align: center; margin-top: 18px; font-weight: 700; }

/* Footer */
.site-footer { background: #2f2c2b; color: rgba(255,255,255,.8); padding: 26px 0; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-left: 72px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--accent); font-weight: 700; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { 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; }
}

/* Responsive */
@media (max-width: 960px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .hero-inner, .register { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .about-wrap { grid-template-columns: 1fr; }
  .photo-band { background-attachment: scroll; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .7em 1em; }
  .site-nav .btn { margin-top: 6px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 110px; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .stage-chip:nth-child(2) { margin-inline-start: 0; }
  .map iframe { height: 320px; }
}
