/* Al Rahal Performance — cream, gold & brown (from logo) */
:root {
  --cream: #FBF6EC;
  --sand: #F3E8D3;
  --white: #FFFFFF;
  --line: #E8DCC6;
  --line-strong: #D9C6A5;
  --ink: #3B1A08;
  --muted: #6B4A33;
  --brown: #5A2811;
  --brown-dark: #3B1A08;
  --gold: #F8B131;
  --gold-text: #9A5B12;      /* gold readable on cream */
  --radius: 6px;
  --display: 'Barlow Condensed', 'Tajawal', system-ui, sans-serif;
  --body: 'Barlow', 'Tajawal', system-ui, sans-serif;
}
[dir="rtl"] {
  --display: 'Tajawal', 'Barlow Condensed', system-ui, sans-serif;
  --body: 'Tajawal', 'Barlow', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--gold-text); }
a:hover { color: var(--brown); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.25; font-weight: 800; }
p { margin: 0; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 50; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 2px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
.section { padding-block: clamp(56px, 8vw, 104px); display: flex; flex-direction: column; gap: 40px; }
.band-white { background: var(--white); border-block: 1px solid var(--line); }
.band-sand { background: var(--sand); }
.band-brown { background: var(--brown); color: var(--cream); }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: 14px; letter-spacing: 0.2em; font-weight: 600; color: var(--gold-text); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 16px; }
h2 { font-size: clamp(34px, 5vw, 56px); }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head > p { color: var(--muted); max-width: 440px; }

/* buttons */
.btn, .btn-outline, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 4px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 16px; }
.btn { background: var(--gold); color: var(--ink); }
.btn:hover { background: #E89E1C; color: var(--ink); }
.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: var(--cream); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-lg { font-size: 17px; padding: 14px 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: none; align-self: flex-start; padding-block: 10px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 246, 236, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 10px; }
.logo img { height: 64px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; padding-block: 8px; white-space: nowrap; }
.main-nav a:hover { color: var(--gold-text); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.lang { font-family: 'Tajawal', 'Barlow', sans-serif; }

/* hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(46px, 7vw, 86px); line-height: 0.96; }
[dir="rtl"] .hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.2; }
.photo { width: 100%; border-radius: var(--radius); object-fit: cover; }
.hero-photo { aspect-ratio: 4 / 3; }
.square { aspect-ratio: 1 / 1; }
.placeholder { display: flex; align-items: center; justify-content: center; background: var(--sand); border: 1px dashed var(--line-strong); color: var(--muted); }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.svc { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.svc-icon { color: var(--gold-text); }
.svc h3 { font-size: 28px; }
.svc p { color: var(--muted); }

/* off-road */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; align-items: center; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 24px; }
.tick-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }

/* parts */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.brand-tile { background: var(--white); border: 1px solid var(--line-strong); border-radius: 4px; padding: 26px 20px; display: flex; flex-direction: column; gap: 6px; }
.brand-tile strong { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; line-height: 1.1; }
.brand-tile span { color: var(--muted); font-size: 14px; }
.brand-tile.has-logo { align-items: center; text-align: center; justify-content: center; gap: 10px; }
.brand-logo { height: 56px; width: 100%; max-width: 170px; object-fit: contain; }
.brand-cta { background: var(--brown); border-color: var(--brown); color: var(--cream); text-decoration: none; justify-content: center; }
.brand-cta strong { font-family: var(--display); }
.brand-cta span { color: #F3D9A8; }
.brand-cta:hover { background: var(--brown-dark); color: var(--cream); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding-top: 6px; }

/* booking */
.band-brown .eyebrow { color: var(--gold); }
.band-brown h2 { color: var(--cream); }
.book { align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: baseline; color: #EAD7BC; }
.steps span { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; color: var(--gold); }
.book-form { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .book-form .full, .form-error { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; background: var(--white); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 4px; padding: 11px 12px; min-height: 46px; width: 100%; }
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid select { border-color: #B42318; }
.field small, .form-error { color: #B42318; font-size: 14px; }
.hp { position: absolute; inset-inline-start: -9999px; height: 0; overflow: hidden; }

/* thank you */
.thanks { align-items: center; text-align: center; min-height: 55vh; justify-content: center; }
.thanks h1 { font-size: clamp(36px, 5vw, 56px); }
.thanks .lead { margin-inline: auto; }
.thanks-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }

/* footer */
.site-footer { background: var(--brown-dark); color: #EAD7BC; }
.site-footer a { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 36px; padding-block: 56px 32px; }
.footer-grid h3 { font-size: 20px; color: var(--white); margin-bottom: 10px; }
.footer-grid p { margin-bottom: 6px; font-size: 15px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #D9BF9A; }
.footer-brand img { width: 200px; background: var(--cream); padding: 12px; border-radius: var(--radius); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid var(--brown); font-size: 13px; color: #D9BF9A; }
.footer-bottom a { color: #D9BF9A; }

.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #1F8F4E; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 30; }
.wa-float:hover { color: #fff; background: #187A41; }

@media (max-width: 720px) {
  .main-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 18px; font-size: 15px; }
  .header-actions .btn { padding-inline: 14px; }
  .logo img { height: 52px; }
  .svc { padding: 24px; }
}
