/* Obour Tours — shared theme (EN market) */
:root {
  --gold: #f4c542;
  --gold-dark: #e8950a;
  --gold-light: #fff8e6;
  --navy: #050d24;
  --navy-mid: #0f1f4d;
  --bg: #f5f6fa;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f0f2f6;
  --surface-muted: #e8ebf0;
  --surface-border: #d8dce6;
  --chrome-text: #1a1a2e;
  --chrome-text-muted: #5a5a72;
  --tx: #1a1a2e;
  --tx2: #5a5a72;
  --tx3: #9a9ab0;
  --bd: #e4e6ef;
  --ok: #1e7b40;
  --ok-bg: #f0fff4;
  --err: #c0392b;
  --err-bg: #fff0f0;
  --sh: 0 2px 16px rgba(5, 13, 36, 0.08);
  --sh-lg: 0 12px 40px rgba(5, 13, 36, 0.14);
  --r: 14px;
  --rs: 10px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.5;
  min-height: 100vh;
}

/* ── Site header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 1px 0 rgba(26, 26, 46, 0.04);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.site-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--chrome-text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold-dark);
  background: var(--gold-light);
}

.site-nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
}

.site-nav-cta:hover {
  opacity: 0.92;
  color: var(--navy) !important;
}

/* ── Mobile nav (hamburger + drawer) ── */
.site-header-controls {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--gold-dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--gold-light);
  border-color: rgba(232, 149, 10, 0.35);
  outline: none;
}

.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);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 26, 46, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 201;
  width: min(300px, 88vw);
  height: 100%;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border-left: 1px solid var(--surface-border);
  box-shadow: -8px 0 32px rgba(26, 26, 46, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--surface-border);
}

.nav-drawer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.nav-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--chrome-text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.nav-drawer-close:hover {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 4px;
  overflow-y: auto;
}

.nav-drawer-links a {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--chrome-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.nav-drawer-links a:hover,
.nav-drawer-links a:focus-visible {
  background: var(--gold-light);
  color: var(--gold-dark);
  outline: none;
}

.nav-drawer-links a.active {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.nav-drawer-links a.nav-drawer-cta {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy) !important;
  text-align: center;
  font-weight: 700;
}

.nav-drawer-links a.nav-drawer-cta:hover {
  opacity: 0.92;
  color: var(--navy) !important;
}

body.nav-menu-open {
  overflow: hidden;
}

/* ── Language switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--surface-border);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--chrome-text-muted);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.lang-btn:hover {
  color: var(--navy);
  background: var(--surface-muted);
}

.lang-btn.is-active {
  background: var(--gold-light);
  color: var(--gold-dark);
}

/* ── RTL layout ── */
html[dir="rtl"] body {
  font-family: 'Tajawal', var(--font);
}

html[dir="rtl"] .site-logo-text,
html[dir="rtl"] .page-hero h1,
html[dir="rtl"] .nav-drawer-title,
html[dir="rtl"] .auth-box h2,
html[dir="rtl"] .svc-card h2 {
  font-family: 'Tajawal', var(--font-display);
}

html[dir="rtl"] .nav-drawer {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid rgba(244, 197, 66, 0.2);
  transform: translateX(-100%);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
}

html[dir="rtl"] .nav-drawer.is-open {
  transform: translateX(0);
}

html[dir="rtl"] .site-header-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .site-nav {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-drawer-links a.nav-drawer-cta {
  text-align: center;
}

html[dir="rtl"] .upload-zone {
  direction: rtl;
  text-align: center;
}
html[dir="rtl"] .auth-divider::before,
html[dir="rtl"] .auth-divider::after {
  direction: ltr;
}

@media (min-width: 769px) {
  .lang-switcher {
    display: flex;
  }

  .site-header-controls {
    display: flex;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .site-header-controls {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (min-width: 769px) {
  .nav-overlay,
  .nav-drawer {
    display: none !important;
  }
}

/* ── Page shell ── */
.page-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

.page-hero {
  text-align: center;
  margin-bottom: 28px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--tx2);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Cards & buttons ── */
.card {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh);
  border: 1px solid var(--bd);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  border: none;
  padding: 12px 24px;
  border-radius: var(--rs);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 149, 10, 0.35);
}

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--tx2);
  border: 1.5px solid var(--bd);
  padding: 10px 18px;
  border-radius: var(--rs);
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}

/* ── Auth modal ── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 36, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-overlay.open { display: flex; }

.auth-box {
  background: var(--white);
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--sh-lg);
}

.auth-box h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.auth-box > p {
  font-size: 0.88rem;
  color: var(--tx2);
  margin-bottom: 20px;
}

.auth-msg {
  display: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.auth-msg.err { display: block; background: var(--err-bg); color: var(--err); border: 1px solid #ffd0d0; }
.auth-msg.ok { display: block; background: var(--ok-bg); color: var(--ok); border: 1px solid #c0efd0; }

.auth-google {
  width: 100%;
  padding: 13px;
  background: #fff;
  border: 1.5px solid var(--bd);
  border-radius: var(--rs);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-google:hover { border-color: var(--gold-dark); }

.auth-divider {
  text-align: center;
  font-size: 0.75rem;
  color: var(--tx3);
  margin: 16px 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--bd);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-field { margin-bottom: 12px; }

.auth-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tx2);
  margin-bottom: 4px;
}

.auth-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--bd);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.88rem;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--gold-dark);
}

.auth-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.auth-actions .btn-primary,
.auth-actions .btn-outline { flex: 1; }

.spin {
  width: 32px;
  height: 32px;
  border: 3px solid var(--bd);
  border-top-color: var(--gold-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }
