/* =========================================================
   ESC Travel Bahrain — global styles
   Visual DNA: Gulf heritage × modern luxury × wanderlust
   ========================================================= */

:root {
  /* Bahraini-inspired palette */
  --ink: #1a1410;            /* deep date-pit brown */
  --ink-soft: #3a2e26;
  --paper: #f5efe6;          /* sand cream */
  --paper-warm: #ebe1d2;
  --pearl: #fbf8f3;          /* pearl white */
  --bahrain-red: #b8002e;    /* flag red, slightly muted */
  --bahrain-red-deep: #7a001e;
  --gold: #c89b3c;           /* desert gold */
  --gold-soft: #d9b06a;
  --gulf-blue: #1e4a6b;      /* Gulf sea */
  --gulf-deep: #0d2a3f;
  --rule: rgba(26, 20, 16, 0.12);

  /* Type */
  --serif: "Cormorant Garamond", "Amiri", Georgia, serif;
  --sans: "Tajawal", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", monospace;

  --container: min(1280px, 92vw);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

[dir="rtl"] body { font-family: "Tajawal", "Cairo", sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: "Tajawal", "Cairo", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

p { margin: 0; text-wrap: pretty; }

/* ---------- Layout primitives ---------- */
.container {
  width: var(--container);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bahrain-red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--bahrain-red);
}
[dir="rtl"] .eyebrow { letter-spacing: 0.04em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--pearl);
}
.btn-primary:hover { background: var(--bahrain-red); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--pearl); }

.btn-whatsapp {
  background: #25d366;
  color: white;
}
.btn-whatsapp:hover { background: #1ea854; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 230, 0.9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 0.5px solid var(--ink);
  border-radius: 50%;
  opacity: 0.4;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-text { line-height: 1.1; white-space: nowrap; }
.brand-text { white-space: nowrap; }
.brand-text .name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
[dir="rtl"] .brand-text .name { font-family: "Tajawal", sans-serif; font-weight: 800; letter-spacing: 0; }
.brand-text .sub {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  margin-top: 2px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: all 0.2s;
}
.nav a:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
.nav a.active { color: var(--ink); background: rgba(0,0,0,0.06); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-toggle {
  display: inline-flex;
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--sans);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--pearl);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
  margin-top: 120px;
}
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: rgba(245, 239, 230, 0.6); font-size: 14px; line-height: 1.7; margin-top: 16px; }
.footer-col h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(245, 239, 230, 0.75); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(245, 239, 230, 0.1);
  margin-top: 64px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(245, 239, 230, 0.5);
  letter-spacing: 0.04em;
}

/* ---------- Pearl divider (Bahraini motif) ---------- */
.pearl-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto;
  width: fit-content;
  color: var(--gold);
}
.pearl-divider::before,
.pearl-divider::after {
  content: "";
  width: 60px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.pearl-divider .pearl {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8e7, var(--gold));
  box-shadow: 0 0 12px rgba(200, 155, 60, 0.4);
}

/* ---------- WhatsApp floating ---------- */
.fab-wa {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.2s;
}
.fab-wa:hover { transform: scale(1.1); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .site-header .container { gap: 12px; }
  .nav { display: none; }
  .site-footer .container { grid-template-columns: 1fr 1fr; gap: 32px; }
}
