:root {
  --bg: #f7f5f0;
  --bg-muted: #ece8df;
  --surface: #ffffff;
  --text: #142033;
  --text-muted: #5c6678;
  --primary: #0d3b66;
  --primary-dark: #082743;
  --accent: #c9a227;
  --accent-soft: #f3e7bc;
  --border: #d9dde5;
  --shadow: 0 18px 50px rgba(20, 32, 51, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --header-h: 76px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-ar: "Noto Sans Arabic", "DM Sans", system-ui, sans-serif;
}

html[dir="rtl"] body {
  font-family: var(--font-ar);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin: 0 0 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217,221,229,0.8);
}
.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  position: relative;
}
.logo {
  grid-column: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #1d5f99);
  color: #fff; font-size: 0.85rem;
}
.site-nav {
  grid-column: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.4vw, 18px);
  min-width: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.site-nav a.is-active:not(.btn) {
  color: var(--primary);
  box-shadow: inset 0 -3px 0 var(--accent);
}
.site-nav .nav-cta {
  flex-shrink: 0;
  margin-inline-start: 2px;
}
.site-nav .nav-cta.is-active {
  box-shadow: var(--shadow), inset 0 0 0 2px var(--accent);
}
.lang-switcher {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 240px;
  flex-shrink: 0;
}
.lang-switcher a {
  font-size: 0.75rem;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: #fff;
}
.lang-switcher a.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #1d5f99); color: #fff; box-shadow: var(--shadow); }
.btn-secondary { background: #fff; color: var(--primary); border: 1px solid var(--border); }
.btn-sm { padding: 10px 16px; font-size: 0.92rem; }
.btn-lg { padding: 16px 28px; }
.btn-block { width: 100%; }

.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,39,67,.15), rgba(8,39,67,.78));
}
.hero-content {
  position: relative;
  color: #fff;
  padding: 80px 0 64px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 16px;
  max-width: 12ch;
}
.hero-content .lead {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 2px rgba(8, 39, 67, 0.55), 0 2px 14px rgba(8, 39, 67, 0.4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.section { padding: 72px 0; }
.section-muted { background: var(--bg-muted); }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }

.feature-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature-icon { color: var(--accent); font-size: 1.2rem; }

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.tour-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tour-card a { text-decoration: none; color: inherit; display: block; }
.tour-card-body { padding: 20px; }
.tour-card h2, .tour-card h3 { margin: 0 0 8px; font-size: 1.2rem; }

.placeholder-image {
  min-height: 180px;
  background: linear-gradient(135deg, #d7e3f2, #f3e7bc);
}
.placeholder-image.large { min-height: 320px; border-radius: var(--radius); }

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.intro-image img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-capacity {
  margin: 12px 0 0;
  font-weight: 700;
  color: rgba(255,255,255,.92);
}

.section-head-split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.section-compact-top { padding-top: 24px; }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.offer-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
}
.offer-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.offer-card-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-muted); }
.offer-card-image img { width: 100%; height: 100%; object-fit: cover; }
.offer-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.offer-card h2, .offer-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.offer-card-excerpt { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.offer-card-meta { list-style: none; padding: 0; margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.offer-card-meta li + li { margin-top: 4px; }
.offer-card-link { margin-top: auto; font-weight: 700; color: var(--primary); }

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.catalog-filter {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.catalog-filter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.vehicle-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.vehicle-gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.vehicle-gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.tour-detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.tour-detail-image img { width: 100%; height: auto; display: block; }
.prose ul { padding-inline-start: 1.2rem; }

.notice-card, .info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.info-card dl { margin: 0; }
.info-card dt { font-weight: 700; margin-top: 12px; }
.info-card dd { margin: 4px 0 0; color: var(--text-muted); }

.page-hero { padding: 56px 0 24px; }
.page-hero-compact { padding-top: 40px; }
.page-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }

.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }

.contact-grid, .tour-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}
.prose p { margin-top: 0; }

.booking-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note, .form-success { color: var(--text-muted); margin: 0; }
.form-success { color: #17653a; font-weight: 600; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.faq-item summary { cursor: pointer; font-weight: 700; }

.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.88);
  padding: 48px 0 24px;
  margin-bottom: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 12px 0 0; }
.site-footer li { margin: 8px 0; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 0.92rem;
}

.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--border);
  gap: 10px;
  z-index: 90;
}
.mobile-bar__btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 12px;
  border-radius: 12px;
  color: #fff;
}
.mobile-bar__btn--book { background: var(--primary); }
.mobile-bar__btn--contact { background: var(--accent); color: var(--primary-dark); }

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .nav-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    grid-column: 1 / -1;
    justify-self: stretch;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 10;
  }
  .site-nav a.is-active:not(.btn) {
    box-shadow: none;
    color: var(--primary);
    border-inline-start: 3px solid var(--accent);
    padding-inline-start: 10px;
  }
  .site-nav.is-open { display: flex; }
  .lang-switcher { display: none; }
  .contact-grid, .tour-detail-grid, .footer-grid, .form-row, .intro-grid {
    grid-template-columns: 1fr;
  }
  .mobile-bar { display: flex; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
