/* Riyadh Gallery — Vibrant Spectrum identity layer */
:root {
  --color-ink: #001b3c;
  --color-ink-soft: #183153;
  --color-gold: #ffba27;
  --color-gold-dark: #7a5500;
  --color-cream: #f0f3ff;
  --color-paper: #f9f9ff;
  --color-white: #ffffff;
  --color-muted: #5b6677;
  --color-border: #dce4f3;
  --color-open: #137a4a;
  --color-open-bg: #e8f7ef;
  --color-closed: #b7102a;
  --color-closed-bg: #ffeaec;
  --color-focus: #2b6485;
  --primary: #b7102a;
  --primary-strong: #92001c;
  --primary-soft: #ffdad8;
  --secondary: #2b6485;
  --secondary-soft: #c7e7ff;
  --tertiary: #ffba27;
  --surface: #f9f9ff;
  --surface-low: #f0f3ff;
  --surface-high: #dee8ff;
  --inverse: #183153;
  --shadow-sm: 0 8px 26px rgba(24, 49, 83, .08);
  --shadow-md: 0 20px 55px rgba(24, 49, 83, .15);
  --shadow-lg: 0 30px 80px rgba(24, 49, 83, .20);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --container: 1280px;
  --header-height: 78px;
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(163, 216, 254, .25), transparent 24rem),
    radial-gradient(circle at 96% 28%, rgba(255, 218, 216, .30), transparent 27rem),
    var(--surface);
  color: var(--color-ink);
  font-family: "Be Vietnam Pro", "Plus Jakarta Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.68;
}

html[lang^="ar"] body {
  font-family: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.72;
}

h1, h2, h3, h4, h5, h6,
.brand-text strong,
.stat-card strong {
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", ui-sans-serif, sans-serif;
}

html[lang^="ar"] h1,
html[lang^="ar"] h2,
html[lang^="ar"] h3,
html[lang^="ar"] h4,
html[lang^="ar"] h5,
html[lang^="ar"] h6,
html[lang^="ar"] .brand-text strong,
html[lang^="ar"] .stat-card strong {
  font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
}

::selection { background: var(--primary-soft); color: var(--primary-strong); }
:focus-visible { outline-color: var(--secondary); }
.container { width: min(calc(100% - 48px), var(--container)); }
.section { padding-block: clamp(64px, 8vw, 108px); }
.section-compact { padding-block: clamp(42px, 5vw, 68px); }
.section-muted { background: rgba(240, 243, 255, .78); }
.section-dark {
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(163, 216, 254, .22), transparent 26rem),
    radial-gradient(circle at 10% 80%, rgba(183, 16, 42, .25), transparent 24rem),
    var(--inverse);
}

.section-heading { margin-bottom: 38px; }
.section-heading h2,
.page-heading h1 {
  color: var(--color-ink);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 750;
  letter-spacing: -.04em;
}
html[lang^="ar"] .section-heading h2,
html[lang^="ar"] .page-heading h1 {
  font-size: clamp(1.85rem, 3.3vw, 2.85rem);
  line-height: 1.28;
}
.section-heading p, .page-heading p { color: var(--color-muted); }
.section-dark .section-heading h2 { color: #fff; }
.section-dark .section-heading p { color: rgba(255,255,255,.72); }

.eyebrow {
  color: var(--primary);
  letter-spacing: .11em;
  font-size: .76rem;
  font-weight: 800;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #fb8500, var(--tertiary));
}
html[lang^="ar"] .eyebrow { letter-spacing: 0; }

.button {
  min-height: 46px;
  padding: 11px 20px;
  font-size: .9rem;
  font-weight: 750;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary,
.button-gold {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #db313f 54%, #fb8500 130%);
  box-shadow: 0 12px 28px rgba(183, 16, 42, .22);
}
.button-primary:hover,
.button-gold:hover {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  box-shadow: 0 16px 34px rgba(183, 16, 42, .28);
}
.button-ghost {
  color: var(--secondary);
  background: #fff;
  border: 1.5px solid rgba(43, 100, 133, .35);
}
.button-outline {
  color: var(--secondary);
  background: rgba(255,255,255,.7);
  border: 1.5px solid var(--secondary);
  backdrop-filter: blur(10px);
}
.button-outline:hover { color: #fff; background: var(--secondary); border-color: var(--secondary); }
.icon-button {
  border-color: var(--color-border);
  box-shadow: 0 6px 18px rgba(24,49,83,.07);
}
.icon-button:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.inline-link { color: var(--primary); }

.site-header {
  height: var(--header-height);
  background: rgba(249, 249, 255, .82);
  border-bottom: 1px solid rgba(213, 227, 255, .75);
  box-shadow: 0 4px 20px rgba(24,49,83,.05);
  backdrop-filter: blur(20px) saturate(140%);
}
.header-inner { gap: 28px; }
.brand { gap: 12px; }
.brand-mark {
  width: 46px;
  height: 46px;
  padding: 5px;
  border-radius: 15px;
  color: transparent;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 22px rgba(24,49,83,.10);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text strong { color: var(--color-ink); font-size: .98rem; font-weight: 800; }
.brand-text small { color: var(--color-muted); font-size: .68rem; }
.desktop-nav { gap: clamp(12px,1.5vw,26px); }
.desktop-nav a {
  color: #40516a;
  padding-block: 28px;
  font-size: .86rem;
  font-weight: 700;
}
.desktop-nav a::after { height: 3px; bottom: 17px; background: var(--primary); border-radius: 99px; }
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--primary); }
.language-switcher { color: var(--secondary); }
.language-switcher:hover { background: var(--secondary-soft); }
.menu-button { border-color: var(--color-border); background: #fff; color: var(--primary); }
.mobile-menu { background: rgba(249,249,255,.98); backdrop-filter: blur(18px); }
.mobile-nav > a:not(.button) { border-color: var(--color-border); color: var(--color-ink); }
.notice-strip { display: none !important; }

/* Asymmetric homepage hero */
.hero {
  min-height: 720px;
  color: var(--color-ink);
  background: transparent;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -7vw;
  top: 4%;
  width: 45vw;
  height: 45vw;
  max-width: 690px;
  max-height: 690px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,218,216,.7), rgba(163,216,254,.54), rgba(255,222,169,.6));
  filter: blur(8px);
  opacity: .7;
}
.hero-media {
  inset: 54px 4vw 54px auto;
  width: min(51vw, 740px);
  border-radius: 38px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.2deg);
  transition: transform .7s ease;
}
html[dir="rtl"] .hero-media { inset: 54px auto 54px 4vw; transform: rotate(-1.2deg); }
.hero:hover .hero-media { transform: rotate(0deg); }
.hero-media img { filter: saturate(1.04) contrast(1.02); }
.hero-media::after {
  background: linear-gradient(180deg, transparent 55%, rgba(0,27,60,.28));
}
html[dir="rtl"] .hero-media::after { background: linear-gradient(180deg, transparent 55%, rgba(0,27,60,.28)); }
.hero-content {
  width: min(40%, 560px);
  margin-left: max(24px, calc((100vw - var(--container)) / 2));
  margin-right: auto;
  padding-block: 88px;
}
html[dir="rtl"] .hero-content {
  margin-right: max(24px, calc((100vw - var(--container)) / 2));
  margin-left: auto;
}
.hero h1 {
  max-width: 620px;
  color: var(--color-ink);
  font-size: clamp(2.9rem, 4.8vw, 4.2rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.06em;
}
html[lang^="ar"] .hero h1 {
  font-size: clamp(2.55rem, 4.4vw, 3.75rem);
  line-height: 1.16;
}
.hero h1::after {
  content: "";
  display: block;
  width: 92px;
  height: 7px;
  margin-top: 20px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #fb8500, var(--tertiary), #4da96b, var(--secondary));
}
.hero-lead { color: var(--color-muted); max-width: 520px; margin-top: 20px; font-size: clamp(1rem,1.45vw,1.12rem); }
html[lang^="ar"] .hero-lead { font-size: 1rem; line-height: 1.85; }
.hero-actions { margin-top: 26px; }
.hero-search {
  width: 100%;
  border: 1px solid rgba(213,227,255,.9);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(24,49,83,.16);
  margin-top: 30px;
}
.hero-search input { color: var(--color-ink); font-size: .92rem; }
.search-results { border-color: var(--color-border); box-shadow: var(--shadow-md); }
.hero-trust { color: #52627a; gap: 18px; margin-top: 22px; font-size: .8rem; }
.hero-trust .icon { color: var(--primary); }

.stats-grid {
  margin-top: -42px;
  border-radius: 24px;
  border: 1px solid rgba(213,227,255,.9);
  box-shadow: var(--shadow-md);
}
.stat-card { background: rgba(255,255,255,.92); padding: 24px; backdrop-filter: blur(14px); }
.stat-card strong { color: var(--color-ink); font-size: clamp(1.7rem,3vw,2.6rem); font-weight: 800; }
.stat-card span { color: var(--color-muted); font-size: .82rem; }
.stat-card:nth-child(1) strong { color: var(--primary); }
.stat-card:nth-child(2) strong { color: #d46b00; }
.stat-card:nth-child(3) strong { color: var(--secondary); }
.stat-card:nth-child(4) strong { color: #5c3c96; }

.category-grid { gap: 22px; }
.category-card {
  border-radius: 30px;
  background: var(--inverse);
  box-shadow: 0 12px 36px rgba(24,49,83,.10);
}
.category-card::after { background: linear-gradient(180deg, rgba(0,27,60,.02) 30%, rgba(0,27,60,.88) 100%); }
.category-card-content { inset-inline: 26px; bottom: 25px; }
.category-card h3 { font-size: clamp(1.45rem,2vw,1.9rem); }
html[lang^="ar"] .category-card h3 { font-size: 1.45rem; }
.category-card p { color: rgba(255,255,255,.82); }
.category-card-meta { color: #fff; }
.category-card-meta::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tertiary); }
.category-card:nth-child(2) .category-card-meta::before { background: #fb8500; }
.category-card:nth-child(3) .category-card-meta::before { background: #4da96b; }
.category-card:nth-child(4) .category-card-meta::before { background: #4ea4d8; }
.category-card:nth-child(5) .category-card-meta::before { background: #9168c0; }

.places-grid { gap: 24px; }
.place-card {
  border-color: rgba(213,227,255,.9);
  border-radius: 24px;
  box-shadow: 0 8px 26px rgba(24,49,83,.07);
}
.place-card:hover { border-color: rgba(183,16,42,.25); box-shadow: var(--shadow-md); transform: translateY(-7px); }
.place-card-image { aspect-ratio: 16/11; }
.place-card-body { padding: 21px; }
.badge { min-height: 27px; font-size: .7rem; }
.badge-category { background: var(--secondary-soft); color: #064c6b; }
.badge-featured { color: #fff; background: linear-gradient(135deg,var(--primary),#db313f); }
.rating { color: #745000; }
.place-card h3 { color: var(--color-ink); margin-top: 13px; font-size: 1.25rem; }
html[lang^="ar"] .place-card h3 { font-size: 1.18rem; }
.place-card h3 a:hover { color: var(--primary); }
.place-card-body > p { color: var(--color-muted); font-size: .87rem; min-height: 70px; }
.place-meta { border-color: var(--color-border); }
.place-meta dt { color: var(--secondary); }
.place-meta dd { color: #46566e; font-size: .82rem; }
.open-status.is-open { color: var(--color-open); }

.visit-panel {
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(163,216,254,.25), transparent 16rem),
    linear-gradient(140deg, #183153 0%, #001b3c 100%);
}
.visit-panel h2 { font-size: clamp(2rem,3.5vw,3.05rem); }
html[lang^="ar"] .visit-panel h2 { font-size: clamp(1.8rem,3vw,2.6rem); line-height: 1.35; }
.visit-fact { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); }
.visit-fact dt { color: #ffdea9; }
.visit-map-overlay { border: 1px solid var(--color-border); }
.gallery-preview a { border-radius: 22px; }
.faq-list details { border-color: var(--color-border); box-shadow: 0 5px 18px rgba(24,49,83,.04); }
.faq-list summary { color: var(--color-ink); font-size: .94rem; }
.faq-list details[open] { border-color: rgba(183,16,42,.22); }

.page-hero {
  min-height: 430px;
  background: var(--inverse);
}
.page-hero img { opacity: .72; filter: saturate(1.04); }
.page-hero::after { background: linear-gradient(180deg, rgba(0,27,60,.08), rgba(0,27,60,.92)); }
.page-hero-content { padding-block: 105px 52px; }
.page-hero h1 { font-size: clamp(2.8rem,5.5vw,5rem); font-weight: 800; }
html[lang^="ar"] .page-hero h1 { font-size: clamp(2.25rem,4.7vw,4rem); line-height: 1.22; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1rem; }
.breadcrumb { background: rgba(255,255,255,.72); border-bottom: 1px solid var(--color-border); backdrop-filter: blur(10px); }
.breadcrumb ol { font-size: .82rem; }
.breadcrumb a:hover { color: var(--primary); }

.filters-panel {
  background: rgba(255,255,255,.90);
  border-color: rgba(213,227,255,.95);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(24,49,83,.10);
  backdrop-filter: blur(18px);
}
.filter-search,
.filter-controls select,
.checkbox-filter { border-color: var(--color-border); background: var(--surface); }
.filter-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(183,16,42,.08); }
.checkbox-filter input { accent-color: var(--primary); }

.place-detail-hero { min-height: 600px; }
.place-detail-hero::after { background: linear-gradient(180deg, rgba(0,27,60,.03) 20%, rgba(0,27,60,.94) 100%); }
.place-detail-content h1 { font-size: clamp(3rem,6.3vw,5.6rem); font-weight: 800; }
html[lang^="ar"] .place-detail-content h1 { font-size: clamp(2.45rem,5.4vw,4.5rem); line-height: 1.22; }
.place-detail-content p { color: rgba(255,255,255,.84); font-size: 1rem; }
.detail-section,
.info-card,
.info-tile {
  border-color: var(--color-border);
  border-radius: 22px;
  box-shadow: 0 8px 26px rgba(24,49,83,.05);
}
.detail-section h2 { color: var(--color-ink); font-size: 1.45rem; }
html[lang^="ar"] .detail-section h2 { font-size: 1.3rem; }
.detail-section > p,
.prose p,
.prose li { color: #536176; }
.feature-list li::before { background: linear-gradient(135deg,var(--primary),#fb8500); }
.info-list dt { color: var(--secondary); }
.detail-gallery img { border-radius: 20px; }
.visitor-note-card {
  color: #264a61;
  background: linear-gradient(135deg, #eef8ff, #f9fbff);
  border-color: #c7e7ff;
}

.content-page { padding-block: 42px 90px; }
.prose h1 { font-size: clamp(2.3rem,4.7vw,4.1rem); color: var(--color-ink); }
html[lang^="ar"] .prose h1 { font-size: clamp(2rem,4vw,3.3rem); line-height: 1.3; }
.prose h2 { color: var(--color-ink); font-size: 1.55rem; }
.info-tile .icon { color: var(--primary); }
.map-board { background: var(--surface-low); border-color: var(--color-border); }
.map-legend { border: 1px solid var(--color-border); }
.photo-grid figure { background: #fff; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }

.site-footer {
  color: #fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(183,16,42,.22), transparent 25rem),
    radial-gradient(circle at 90% 100%, rgba(43,100,133,.42), transparent 32rem),
    #112a49;
}
.footer-grid { padding-block: 70px; }
.brand-footer .brand-mark { background: #fff; color: transparent; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #c7d7ec; }
.footer-brand p { color: #cbd6e6; }
.site-footer h2 { color: #ffdea9; }
.footer-links, .footer-contact { color: #d4deeb; }
.footer-bottom { border-color: rgba(255,255,255,.12); }
.footer-bottom-inner { color: #aebed2; }

/* Gentle reveal without hiding content when JS is unavailable */
.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
.site-header.is-scrolled { box-shadow: 0 10px 32px rgba(24,49,83,.10); }

@media (max-width: 1080px) {
  .hero { min-height: 660px; }
  .hero-media { width: 53vw; inset-inline-end: 2vw; }
  html[dir="rtl"] .hero-media { inset-inline-start: 2vw; }
  .hero-content { width: 43%; margin-left: 32px; margin-right: auto; }
  html[dir="rtl"] .hero-content { margin-right: 32px; margin-left: auto; }
}

@media (max-width: 820px) {
  :root { --header-height: 70px; }
  .container { width: min(calc(100% - 36px), var(--container)); }
  .hero {
    min-height: 760px;
    color: #fff;
    align-items: end;
  }
  .hero::before { display: none; }
  .hero-media,
  html[dir="rtl"] .hero-media {
    inset: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .hero-media::after,
  html[dir="rtl"] .hero-media::after {
    background: linear-gradient(180deg, rgba(0,27,60,.10) 20%, rgba(0,27,60,.94) 78%);
  }
  .hero-content,
  html[dir="rtl"] .hero-content {
    width: 100%;
    margin: 0 auto;
    padding: 220px 18px 62px;
  }
  .hero h1 { color: #fff; font-size: clamp(2.75rem,11vw,4.7rem); }
  html[lang^="ar"] .hero h1 { font-size: clamp(2.5rem,10vw,4rem); }
  .hero-lead { color: rgba(255,255,255,.82); }
  .hero-trust { color: rgba(255,255,255,.76); }
  .button-outline { color: #fff; border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }
  .stats-grid { margin-top: 0; border-radius: 0 0 24px 24px; }
  .page-hero { min-height: 390px; }
  .page-hero-content { padding-block: 90px 44px; }
}

@media (max-width: 620px) {
  body { font-size: 14.5px; }
  html[lang^="ar"] body { font-size: 14px; }
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section { padding-block: 56px; }
  .section-compact { padding-block: 38px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 13px; }
  .brand-text strong { font-size: .8rem; }
  .hero { min-height: 720px; }
  .hero-content,
  html[dir="rtl"] .hero-content { padding: 190px 12px 50px; }
  .hero h1 { font-size: clamp(2.55rem,13vw,4rem); }
  html[lang^="ar"] .hero h1 { font-size: clamp(2.2rem,11vw,3.45rem); }
  .hero h1::after { height: 6px; width: 78px; margin-top: 16px; }
  .hero-search { border-radius: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 18px 14px; }
  .category-card { min-height: 300px; border-radius: 24px; }
  .category-card-content { inset-inline: 20px; bottom: 20px; }
  .place-card { border-radius: 21px; }
  .place-card-body { padding: 18px; }
  .place-card-body > p { font-size: .84rem; }
  .page-hero { min-height: 350px; }
  .page-hero h1 { font-size: clamp(2.25rem,11vw,3.5rem); }
  html[lang^="ar"] .page-hero h1 { font-size: clamp(2rem,9vw,3rem); }
  .place-detail-hero { min-height: 600px; }
  .place-detail-content h1 { font-size: clamp(2.4rem,12vw,4rem); }
  html[lang^="ar"] .place-detail-content h1 { font-size: clamp(2.15rem,10vw,3.35rem); }
  .detail-section, .info-card { border-radius: 18px; }
  .footer-grid { padding-block: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media, .place-card, .button, .category-card img, .place-card-image img { transition: none !important; }
  .reveal-ready { opacity: 1; transform: none; }
}
