:root {
  --burg: #6d1a36;
  --burg-2: #8f2a4c;
  --ink: #2a1520;
  --muted: #7a6470;
  --cream: #f8efe9;
  --cream-2: #f1e2d8;
  --card: #fffaf6;
  --line: rgba(109, 26, 54, 0.14);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 21, 32, 0.06), 0 10px 28px -12px rgba(109, 26, 54, 0.35);
  --space: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Segoe UI", Tahoma, "Geeza Pro", "SF Arabic", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 50% -10%, #fbf3ee 0%, transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  background-color: var(--cream);
  min-height: 100dvh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  inset-inline-start: var(--space);
  top: -60px;
  background: var(--burg);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 50;
  text-decoration: none;
}
.skip:focus { top: var(--space); }

:focus-visible { outline: 3px solid var(--burg-2); outline-offset: 3px; }

.hero {
  text-align: center;
  padding: calc(28px + env(safe-area-inset-top)) var(--space) 8px;
}
.brand-en {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  color: var(--burg);
  margin-bottom: 4px;
}
.brand-ar {
  font-size: clamp(1.9rem, 6vw + 0.5rem, 2.6rem);
  font-weight: 700;
  color: var(--burg);
  line-height: 1.2;
  text-wrap: balance;
}
.tagline {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 18px auto 0;
  padding: 8px;
  max-width: 420px;
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.78);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--shadow);
}
.tab {
  flex: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  color: var(--burg);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tab span { font-weight: 400; font-size: 0.85em; opacity: 0.8; }
.tab:hover { background: var(--burg); color: #fff; }

main { max-width: 1080px; margin: 0 auto; padding: 0 var(--space); }

.section { padding-top: 28px; scroll-margin-top: 12px; }
.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.35rem;
  color: var(--burg);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.section-title span {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 0.8em;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.card {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.card img.is-loaded { opacity: 1; }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(42, 21, 32, 0.08), 0 18px 36px -14px rgba(109, 26, 54, 0.45); }
}

.skeleton {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #f3e6dd 30%, #fbf4ef 50%, #f3e6dd 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
  .card, .card img, .tab { transition: none; }
}

.notice {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 24px 8px;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 36px var(--space) 8px;
}
.footer-phone {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--burg);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.call {
  position: fixed;
  inset-inline: var(--space);
  bottom: calc(14px + env(safe-area-inset-bottom));
  max-width: 420px;
  margin-inline: auto;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--burg) 0%, var(--burg-2) 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px -10px rgba(109, 26, 54, 0.8);
  z-index: 10;
}
.call-en { font-weight: 400; opacity: 0.85; margin-inline-start: 6px; font-size: 0.9em; }

.viewer {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: rgba(20, 8, 14, 0.94);
  color: #fff;
}
.viewer::backdrop { background: rgba(20, 8, 14, 0.94); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) var(--space) 10px;
}
.viewer-count { font-size: 0.95rem; opacity: 0.85; }
.viewer-btn, .viewer-nav {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.viewer-btn:hover, .viewer-nav:hover { background: rgba(255, 255, 255, 0.26); }
.viewer-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space) calc(16px + env(safe-area-inset-bottom));
  touch-action: pan-y;
  min-height: 0;
}
.viewer-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}
.viewer-prev { inset-inline-start: 8px; }
.viewer-next { inset-inline-end: 8px; }
@media (max-width: 639px) { .viewer-nav { display: none; } }
