:root {
  --guidebook-bg: #f7f4ee;
  --guidebook-surface: rgba(255, 253, 250, 0.92);
  --guidebook-surface-strong: #fffdfa;
  --guidebook-ink: #17313c;
  --guidebook-muted: rgba(23, 49, 60, 0.72);
  --guidebook-line: rgba(23, 49, 60, 0.12);
  --guidebook-line-strong: rgba(23, 49, 60, 0.18);
  --guidebook-deep: #17313c;
  --guidebook-accent: #b78d5a;
  --guidebook-sea: rgba(220, 236, 244, 0.9);
  --guidebook-mint: rgba(227, 238, 231, 0.92);
  --guidebook-peach: rgba(245, 231, 221, 0.9);
  --guidebook-shadow: 0 24px 54px rgba(10, 24, 32, 0.09);
  --guidebook-max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 0 0, rgba(220, 236, 244, 0.76), transparent 26%),
    radial-gradient(circle at 100% 16%, rgba(245, 231, 221, 0.72), transparent 24%),
    linear-gradient(180deg, #fcfaf6 0%, #f6f1e9 100%);
  color: var(--guidebook-ink);
  font-family: "Manrope", system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--guidebook-ink);
}

body[data-lang="ar"] {
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.guidebook-page {
  width: min(calc(100% - 32px), var(--guidebook-max));
  margin: 18px auto 48px;
}

.guidebook-hero,
.guidebook-section,
.guidebook-footer {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: var(--guidebook-surface);
  box-shadow: var(--guidebook-shadow);
  backdrop-filter: blur(14px);
}

.guidebook-hero {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 40px;
}

.guidebook-hero::before,
.guidebook-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.guidebook-hero::before {
  top: -110px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: var(--guidebook-sea);
}

.guidebook-hero::after {
  bottom: -120px;
  left: -110px;
  width: 280px;
  height: 280px;
  background: var(--guidebook-mint);
}

.guidebook-topbar,
.guidebook-hero-copy,
.guidebook-section,
.guidebook-footer {
  position: relative;
  z-index: 1;
}

.guidebook-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.guidebook-lockup {
  display: grid;
  gap: 10px;
}

.guidebook-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--guidebook-deep);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guidebook-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(23, 49, 60, 0.05);
  color: rgba(23, 49, 60, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.guidebook-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--guidebook-accent);
}

.guidebook-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 49, 60, 0.08);
  box-shadow: 0 14px 28px rgba(10, 24, 32, 0.07);
}

.guidebook-lang-button {
  min-width: 116px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--guidebook-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.guidebook-lang-button:hover {
  color: var(--guidebook-deep);
  transform: translateY(-1px);
}

.guidebook-lang-button.is-active {
  background: var(--guidebook-deep);
  color: #fff;
}

.guidebook-hero-copy {
  max-width: 720px;
  display: grid;
  gap: 16px;
}

.guidebook-hero-copy h1,
.guidebook-section-intro h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  text-wrap: balance;
}

.guidebook-hero-copy h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.guidebook-hero-copy p,
.guidebook-section-intro p,
.guidebook-card p,
.guidebook-card li,
.guidebook-contact-card p {
  margin: 0;
  color: var(--guidebook-muted);
  line-height: 1.7;
}

.guidebook-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.guidebook-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--guidebook-surface-strong);
  border: 1px solid var(--guidebook-line);
  color: var(--guidebook-deep);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 14px 28px rgba(10, 24, 32, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.guidebook-action:hover {
  transform: translateY(-1px);
  border-color: var(--guidebook-line-strong);
  background: #ffffff;
}

.guidebook-action.is-download {
  background: var(--guidebook-deep);
  border-color: transparent;
  color: #fff;
}

.guidebook-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guidebook-facts span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(23, 49, 60, 0.06);
  color: rgba(23, 49, 60, 0.8);
  font-size: 0.84rem;
  font-weight: 700;
}

.guidebook-nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin: 16px 0 18px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(249, 245, 237, 0.9);
  border: 1px solid rgba(23, 49, 60, 0.08);
  box-shadow: 0 14px 30px rgba(10, 24, 32, 0.08);
  backdrop-filter: blur(14px);
}

.guidebook-nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.guidebook-nav-row::-webkit-scrollbar {
  display: none;
}

.guidebook-nav-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(23, 49, 60, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: rgba(23, 49, 60, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.guidebook-nav-row a.is-active {
  background: var(--guidebook-deep);
  border-color: transparent;
  color: #fff;
}

.guidebook-section {
  margin-top: 18px;
  padding: 28px;
  border-radius: 32px;
}

.guidebook-section-intro {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
  max-width: 720px;
}

.guidebook-section-intro h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.guidebook-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(23, 49, 60, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.guidebook-eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--guidebook-accent);
}

.guidebook-grid.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guidebook-grid.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.guidebook-card,
.guidebook-contact-card {
  padding: 22px;
  border-radius: 24px;
  background: var(--guidebook-surface-strong);
  border: 1px solid var(--guidebook-line);
}

.guidebook-card h3,
.guidebook-contact-card strong {
  display: block;
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.guidebook-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

body[data-lang="ar"] .guidebook-card ul {
  padding-left: 0;
  padding-right: 18px;
}

.guidebook-contact-list {
  display: grid;
  gap: 14px;
}

.guidebook-inline-links,
.guidebook-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guidebook-inline-links {
  margin-top: 14px;
}

.guidebook-inline-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(23, 49, 60, 0.06);
  color: var(--guidebook-deep);
  font-size: 0.84rem;
  font-weight: 800;
}

.guidebook-footer {
  margin-top: 18px;
  padding: 22px 26px;
  border-radius: 30px;
}

.guidebook-footer p {
  margin: 0;
  color: var(--guidebook-muted);
  line-height: 1.68;
}

.guidebook-footer-actions {
  margin-top: 14px;
  align-items: center;
}

.guidebook-footer-actions a {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--guidebook-deep);
}

.lang-ar {
  text-align: right;
  direction: rtl;
}

body[data-lang="en"] .lang-ar {
  display: none !important;
}

body[data-lang="ar"] .lang-en {
  display: none !important;
}

body[data-lang="ar"] .guidebook-lockup,
body[data-lang="ar"] .guidebook-hero-copy,
body[data-lang="ar"] .guidebook-section-intro,
body[data-lang="ar"] .guidebook-card,
body[data-lang="ar"] .guidebook-contact-card,
body[data-lang="ar"] .guidebook-footer {
  text-align: right;
}

.phone {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media print {
  html,
  body {
    background: #ffffff !important;
    color: #10242d !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.45;
  }

  .guidebook-page {
    width: 100%;
    margin: 0;
  }

  .guidebook-hero,
  .guidebook-section,
  .guidebook-footer {
    margin: 0 0 14pt;
    padding: 18pt;
    border: 1px solid rgba(16, 36, 45, 0.12);
    border-radius: 0;
    background: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    break-inside: avoid;
  }

  .guidebook-hero::before,
  .guidebook-hero::after {
    display: none;
  }

  .guidebook-topbar,
  .guidebook-actions,
  .guidebook-nav,
  .guidebook-footer-actions {
    display: none !important;
  }

  .guidebook-hero-copy,
  .guidebook-section-intro,
  .guidebook-card,
  .guidebook-contact-card,
  .guidebook-footer,
  .guidebook-inline-links,
  .guidebook-facts {
    color: #10242d !important;
  }

  .guidebook-hero-copy h1,
  .guidebook-section-intro h2,
  .guidebook-card h3,
  .guidebook-contact-card strong {
    color: #10242d !important;
  }

  .guidebook-card p,
  .guidebook-card li,
  .guidebook-contact-card p,
  .guidebook-section-intro p,
  .guidebook-hero-copy p {
    color: rgba(16, 36, 45, 0.88) !important;
  }

  [data-reveal],
  [data-reveal].is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .guidebook-grid,
  .guidebook-contact-list {
    gap: 12pt;
  }

  .guidebook-grid.two-up,
  .guidebook-grid.support-layout {
    grid-template-columns: 1fr 1fr;
  }

  .guidebook-inline-links a,
  .guidebook-footer a {
    color: #10242d !important;
    text-decoration: underline;
  }

  .guidebook-facts span,
  .guidebook-badge,
  .guidebook-eyebrow {
    border-color: rgba(16, 36, 45, 0.16) !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #10242d !important;
  }
}

@media (max-width: 900px) {
  .guidebook-actions,
  .guidebook-grid.two-up,
  .guidebook-grid.support-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .guidebook-page {
    width: min(calc(100% - 18px), var(--guidebook-max));
    margin-top: 10px;
  }

  .guidebook-hero,
  .guidebook-section,
  .guidebook-footer {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .guidebook-topbar {
    align-items: stretch;
  }

  .guidebook-lang-switch {
    width: 100%;
    justify-content: center;
  }

  .guidebook-lang-button {
    flex: 1;
    min-width: 0;
  }

  .guidebook-nav {
    top: 8px;
    margin-top: 12px;
  }
}
