/* Ardi website. Palette from the land seen from above: desert sand, irrigated green, wheat, water. */
:root {
  /* Brand tokens come from /brand/tokens.css; the site adds only the desert land of its hero picture. */
  --land: #E4D7B8;
  --land-road: #D3C39C;
  --step: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--f-body); font-size: var(--step); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(242, 244, 239, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
/* The logo: the wordmark beside أرضي, as in the prototype. */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); line-height: 1; direction: ltr; }
.logo svg { height: 30px; width: auto; display: block; }
.logo .arm { stroke: var(--bg); } .logo .hub { fill: var(--bg); }
.logo-ar { font-family: var(--f-logo-ar); font-weight: 700; font-size: 30px; color: var(--accent); padding-bottom: 4px; }
.foot .logo svg { height: 20px; } .foot .logo-ar { font-size: 20px; }
.nav { display: flex; gap: 18px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.lang { font: inherit; background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 6px; }
.signin { font-weight: 600; text-decoration: none; border: 1.5px solid var(--accent); padding: 6px 14px; border-radius: var(--radius); }
@media (max-width: 720px) { .nav { display: none; } .lang { margin-inline-start: auto; } }

/* hero */
.hero { background: var(--bg); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
  gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 6vw, 88px) clamp(16px, 4vw, 56px); }
.hero-text { max-width: 34rem; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem); color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
html[lang="en"] h1 { line-height: 1.08; }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); margin: 22px 0 30px; max-width: 32rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { font: inherit; font-weight: 600; display: inline-block; text-decoration: none; padding: 13px 24px; border-radius: var(--radius); border: 2px solid var(--accent); cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--surface); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.quiet { color: var(--accent); background: transparent; }
.btn:disabled { opacity: 0.6; cursor: default; }

.field { margin: 0; position: relative; }
#pivots { width: 100%; height: auto; display: block; border-radius: 6px; background: var(--land); }
#pivots .pivot { transition: fill 900ms ease; stroke: rgba(23, 34, 27, 0.18); stroke-width: 1; }
#pivots .arm { stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; transform-box: view-box; }
#pivots .track { fill: none; stroke: rgba(23, 34, 27, 0.12); stroke-width: 1; }
#pivots .road { stroke: var(--land-road); stroke-width: 7; }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 12px; font-size: 0.95rem; }
.season-label { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-inline-end: 6px; vertical-align: -1px; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } .hero-text { max-width: none; } }

/* season */
section { padding: clamp(48px, 7vw, 104px) clamp(16px, 4vw, 56px); }
h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); color: var(--ink); max-width: 22ch; letter-spacing: -0.01em; }
.steps { list-style: none; counter-reset: step; margin: 48px 0 0; padding: 0; display: grid; gap: clamp(48px, 6vw, 88px); }
.step { counter-increment: step; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.step-text { position: relative; padding-inline-start: 64px; max-width: 34rem; }
.step-text::before { content: counter(step, arabic-indic); position: absolute; inset-inline-start: 0; top: -6px; font-family: var(--f-display); font-size: 2.6rem;
  color: var(--k-wheat); font-weight: 700; line-height: 1; }
html[lang="en"] .step-text::before { content: counter(step); }
.step-text h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin-bottom: 10px; }
.step-text p { margin: 0; color: var(--muted); }
.step:not(:has(.shot)) { grid-template-columns: minmax(0, 0.8fr); }
.shot { border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 40px -24px rgba(23, 34, 27, 0.45); }
.shot.phone { max-width: 300px; justify-self: center; border-radius: 22px; }
@media (max-width: 880px) { .step { grid-template-columns: 1fr; } }

/* private */
.private { background: var(--ink); color: var(--bg); }
.private h2 { color: var(--surface); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); margin-top: 40px; }
.rule { border-top: 2px solid var(--gold); padding-top: 18px; }
.rule .big { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); color: var(--surface); margin: 0 0 8px; font-weight: 600; }
.rule p { margin: 0; max-width: 28rem; }
.private .fine { margin: 40px 0 0; max-width: 46rem; color: #B9C7BC; }
@media (max-width: 880px) { .rules { grid-template-columns: 1fr; } }

/* facts */
.facts { padding-block: 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; font-weight: 500; }
.facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-inline-end: 10px; vertical-align: 2px; }

/* pilot */
.pilot { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.pilot-text p { color: var(--muted); max-width: 30rem; margin: 18px 0 0; }
.form { display: grid; gap: 16px; background: var(--bg); padding: clamp(20px, 3vw, 32px); border-radius: 10px; border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form input, .form select { font: inherit; font-weight: 400; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roles { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.roles legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; padding: 0; }
.chip { display: inline-flex !important; align-items: center; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { padding: 8px 16px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); font-weight: 500; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.msg { margin: 0; min-height: 1.5em; font-weight: 500; }
.msg.ok { color: var(--good); }
.msg.err { color: var(--bad); }
@media (max-width: 880px) { .pilot { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form .two { grid-template-columns: 1fr; } }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px clamp(16px, 4vw, 56px); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } #pivots .pivot { transition: none; } }
