:root {
  --ink: #1a1208;
  --ink-soft: #5c4a3a;
  --paper: #fffdf8;
  --paper-2: #fff6e8;
  --brand-red: #d00020;
  --brand-red-deep: #a80018;
  --gold: #c8a800;
  --gold-soft: #e0bc2a;
  --gold-dark: #9a7e00;
  --teal: var(--brand-red);
  --teal-deep: var(--brand-red-deep);
  --white: #ffffff;
  --line: rgba(208, 0, 32, 0.12);
  --shadow: 0 18px 50px rgba(26, 18, 8, 0.12);
  --radius: 18px;
  --font-display: "El Messiri", "Tajawal", sans-serif;
  --font-body: "Tajawal", "El Messiri", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(165deg, #fffdf8 0%, #ffffff 42%, #fff4e6 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Animated tech background */
.tech-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

#tech-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.tech-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(200, 168, 0, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(208, 0, 32, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 28s linear infinite;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.tech-glow {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: glowFloat 14s ease-in-out infinite alternate;
}

.tech-glow-a {
  top: -10%;
  right: -8%;
  background: radial-gradient(circle, rgba(200, 168, 0, 0.45), transparent 70%);
}

.tech-glow-b {
  bottom: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(208, 0, 32, 0.28), transparent 70%);
  animation-delay: -4s;
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(48px, 48px, 0); }
}

@keyframes glowFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, 6%, 0) scale(1.12); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(26, 18, 8, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
  direction: ltr; /* الشعار يسار — القائمة يمين */
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  direction: rtl;
}

.brand-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
  animation: brandPulse 3.5s ease-in-out infinite;
}

.brand-logo-footer {
  width: 64px;
  height: 64px;
}

.brand-hero-logo {
  width: clamp(110px, 18vw, 168px);
  height: auto;
  margin: 0 0 1rem;
  background: transparent;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  animation: brandPulse 3.5s ease-in-out infinite;
}

.page-hero-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  background: transparent;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

@keyframes brandPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.45)); }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.12rem;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-red);
}

.brand-text small {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  direction: rtl; /* الصفحات من اليمين لليسار */
}

.site-nav a {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(208, 0, 32, 0.1);
  color: var(--brand-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 168, 0, 0.45);
  background: linear-gradient(135deg, rgba(200, 168, 0, 0.14), rgba(208, 0, 32, 0.1));
  color: var(--brand-red-deep);
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lang-switch svg {
  display: block;
  flex-shrink: 0;
}

.lang-switch:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(200, 168, 0, 0.22);
  background: linear-gradient(135deg, rgba(200, 168, 0, 0.22), rgba(208, 0, 32, 0.14));
}

.nav-shop {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)) !important;
  color: var(--ink) !important;
}

.nav-shop:hover,
.nav-shop.active {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-deep)) !important;
  color: #fff !important;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 1rem 0.85rem 1.05rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(26, 18, 8, 0.08);
  box-shadow: 0 8px 22px rgba(26, 18, 8, 0.05);
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(200, 168, 0, 0.16);
  border-color: rgba(200, 168, 0, 0.45);
}

.brand-card-partner:hover {
  border-color: rgba(208, 0, 32, 0.35);
  box-shadow: 0 14px 28px rgba(208, 0, 32, 0.12);
}

.brand-card-logo {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 112px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(26, 18, 8, 0.07);
  overflow: hidden;
  padding: 0.7rem;
  box-sizing: border-box;
}

.brand-card-logo.has-logo {
  background: #fff;
}

.brand-card-logo.is-mono {
  background: linear-gradient(145deg, #fff8e8, #fff);
}

.brand-card-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.brand-card-mono {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  letter-spacing: 0.06em;
  color: var(--brand-red);
  line-height: 1;
  opacity: 0.92;
}

.brand-card-name {
  margin: 0;
  margin-top: auto;
  width: 100%;
  min-height: 2.4em;
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
  word-break: break-word;
}

/* legacy chips (if any) */
.brand-chip {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(200, 168, 0, 0.35);
  font-weight: 800;
  text-align: center;
}

.vision-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.vision-card {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.vision-card h2 {
  margin-top: 0;
  color: var(--brand-red);
}

.map-block {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.map-block h2 {
  font-family: var(--font-display);
  margin-bottom: 0.85rem;
}

.map-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.map-frame iframe {
  width: 100%;
  height: min(420px, 55vh);
  border: 0;
  display: block;
}

.whatsapp-float {
  position: fixed;
  z-index: 45;
  left: 1rem;
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.4);
  animation: waPulse 2.2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(18, 140, 126, 0.35); }
  50% { box-shadow: 0 12px 28px rgba(18, 140, 126, 0.55), 0 0 0 10px rgba(37, 211, 102, 0.18); }
}

@media (max-width: 900px) {
  .vision-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .whatsapp-float {
    left: max(0.75rem, env(safe-area-inset-left));
    bottom: max(4.8rem, calc(env(safe-area-inset-bottom) + 4.2rem));
    width: 52px;
    height: 52px;
  }
}

.about-text {
  white-space: pre-line;
}

html[dir="ltr"] .brand {
  direction: ltr;
}

html[dir="ltr"] .site-nav {
  direction: ltr;
}

html[dir="ltr"] .slide-content {
  margin-right: 0;
  margin-left: 0;
}

html[dir="ltr"] .section-head h2::after,
html[dir="ltr"] .page-hero h1::after {
  margin-inline: auto;
}

html[dir="ltr"] .about-grid h2::after {
  margin-inline: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero slider — full site content width; image never cropped */
.hero-band {
  padding-block: 1rem 0.25rem;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: min(520px, 62vh);
  min-height: 0;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  background: #0a0a0a;
  border-radius: 18px;
  border: 1px solid rgba(200, 168, 0, 0.22);
  box-shadow: 0 14px 36px rgba(26, 18, 8, 0.12);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0a0a0a;
  overflow: hidden;
}

.slide-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.slide-media-link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.slide-media-link img {
  pointer-events: none;
}

.slide.has-zoom .slide-media img {
  transform: scale(1.02);
  animation: kenburns 16s ease-in-out infinite alternate;
}

.slide.has-zoom.is-active .slide-media img {
  animation-play-state: running;
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.slide-media-fallback {
  background:
    radial-gradient(circle at 20% 30%, rgba(200, 168, 0, 0.4), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(208, 0, 32, 0.35), transparent 40%),
    linear-gradient(135deg, #1a1208, #3a180c 55%, #1a1208);
}

.slide-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 28, 45, 0.78) 0%, rgba(8, 28, 45, 0.45) 48%, rgba(8, 28, 45, 0.25) 100%),
    linear-gradient(180deg, transparent 40%, rgba(8, 28, 45, 0.55));
  pointer-events: none;
}

.slide.no-shade .slide-content h1,
.slide.no-shade .slide-content .slide-sub {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.5);
}

@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.04) translateY(-1%); }
}

.slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 1.5rem 1.75rem 2.5rem;
  color: var(--white);
  max-width: min(520px, 70%);
  margin: 0;
  animation: riseIn 0.9s ease both;
}

.slide.is-active .slide-content {
  animation: riseIn 0.9s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  max-width: 16ch;
  line-height: 1.35;
}

.slide-sub {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
}

.slider-controls {
  position: absolute;
  z-index: 3;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.slider-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.dot.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-deep));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(208, 0, 32, 0.32);
}

.btn-outline {
  background: transparent;
  border-color: rgba(200, 168, 0, 0.55);
  color: var(--gold-dark);
}

.btn-outline:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(200, 168, 0, 0.35);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2,
.page-hero h1,
.about-grid h2,
.contact-aside h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--white);
}

.section-head h2::after,
.page-hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.65rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-red), var(--gold));
}

.about-grid h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.65rem 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-red), var(--gold));
}

.section-head p,
.page-hero p {
  margin: 0 auto;
  color: var(--ink-soft);
  max-width: 42ch;
}

.page-hero {
  padding: 4.5rem 0 2rem;
  text-align: center;
}

.page-hero .page-hero-logo {
  display: block;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.about-grid p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.about-panel {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(200, 168, 0, 0.14), rgba(208, 0, 32, 0.1));
  border: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--brand-red);
  line-height: 1.2;
}

.stat span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.visits-band {
  padding-top: 0.5rem;
}

.visits-panel {
  padding: 1.5rem 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(200, 168, 0, 0.12), rgba(208, 0, 32, 0.08));
  border: 1px solid var(--line);
}

.visits-panel .section-head {
  margin-bottom: 1rem;
}

.visits-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.visit-metric {
  text-align: center;
  padding: 1rem 0.65rem;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  border: 1px solid rgba(240, 226, 200, 0.9);
}

.visit-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  color: var(--brand-red);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.visit-metric span {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.visit-metric-live strong {
  color: #1b6b34;
}

.visit-metric-live {
  border-color: rgba(27, 107, 52, 0.28);
  background: rgba(232, 246, 236, 0.85);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-grid-lg {
  grid-template-columns: repeat(2, 1fr);
}

.feature-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.feature-item-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.feature-item-link:hover {
  border-color: rgba(200, 168, 0, 0.55);
}

a.feature-item-link:focus-visible {
  outline: 2px solid rgba(200, 168, 0, 0.55);
  outline-offset: 2px;
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-item h3,
.division-card h3 {
  font-family: var(--font-display);
  margin: 0.75rem 0 0.4rem;
  font-size: 1.15rem;
}

.feature-item p,
.division-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.feature-thumb,
.section-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 0.5rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(200, 168, 0, 0.28), rgba(208, 0, 32, 0.12));
  border: 1px solid rgba(200, 168, 0, 0.35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--brand-red);
  box-shadow: 0 6px 16px rgba(26, 18, 8, 0.06);
}

.feature-icon-svg {
  width: 34px;
  height: 34px;
  display: block;
}

.feature-item:hover .feature-icon,
.division-card:hover .feature-icon {
  color: var(--brand-red-deep);
  background: linear-gradient(145deg, rgba(200, 168, 0, 0.4), rgba(208, 0, 32, 0.16));
  transform: translateY(-2px);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

.division-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.division-grid-page {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.division-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 1.45rem 1.35rem 1.5rem;
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(255, 251, 242, 0.82));
  border: 1px solid rgba(200, 168, 0, 0.28);
  box-shadow: 0 10px 26px rgba(26, 18, 8, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 100%;
}

.division-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(200, 168, 0, 0.16);
  border-color: rgba(200, 168, 0, 0.5);
}

.division-card-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 0.55rem;
}

.cta-band {
  padding-top: 2rem;
}

.cta-inner {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 20%, rgba(200, 168, 0, 0.35), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(208, 0, 32, 0.35), transparent 45%),
    linear-gradient(135deg, #1a1208, #3d1510 55%, #1a1208);
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.25rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-form,
.contact-aside {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-row input,
.form-row textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(200, 168, 0, 0.45);
  border-color: var(--gold);
}

.contact-aside p {
  margin: 0 0 0.85rem;
  display: grid;
  gap: 0.15rem;
}

.contact-aside span {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.contact-num {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.social-links {
  margin-top: 1.25rem;
}

/* Social icons */
.social-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-block;
  padding: 0;
  margin: 0;
  border: 0;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  vertical-align: middle;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 24px rgba(15, 39, 64, 0.18);
}

.social-btn svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  display: block;
  pointer-events: none;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.08);
}

.social-btn:hover svg {
  transform: translate(-50%, -50%);
}

.social-facebook { background: linear-gradient(145deg, #4267B2, #365899); }
.social-whatsapp { background: linear-gradient(145deg, #25D366, #128C7E); }
.social-tiktok { background: linear-gradient(145deg, #25F4EE, #111111 45%, #FE2C55); }
.social-instagram { background: linear-gradient(145deg, #f58529, #dd2a7b 50%, #8134af); }
.social-store { background: linear-gradient(145deg, var(--gold-soft), var(--gold) 40%, var(--brand-red)); }

.social-bar-float {
  position: fixed;
  z-index: 40;
  left: 1rem;
  top: 50%;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.65rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(-130%) scale(0.75);
}

.social-bar-float.is-entered {
  visibility: visible;
  pointer-events: auto;
  animation:
    socialDockIn 0.95s cubic-bezier(0.2, 1.15, 0.32, 1) forwards,
    socialDockGlow 1.4s ease-out 0.2s;
}

.social-bar-float .social-btn {
  width: 46px;
  height: 46px;
  opacity: 0;
  transform: scale(0.35) rotate(-18deg);
}

.social-bar-float.is-entered .social-btn {
  animation: socialIconFlash 0.65s cubic-bezier(0.2, 1.35, 0.36, 1) forwards;
  animation-delay: calc(0.28s + (var(--i, 0) * 0.12s));
}

@keyframes socialDockIn {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-130%) scale(0.75);
  }
  70% {
    opacity: 1;
    transform: translateY(-50%) translateX(10px) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

@keyframes socialDockGlow {
  0% {
    box-shadow: 0 0 0 rgba(200, 168, 0, 0);
  }
  40% {
    box-shadow:
      0 0 0 3px rgba(208, 0, 32, 0.25),
      0 0 36px rgba(200, 168, 0, 0.55),
      0 14px 30px rgba(26, 18, 8, 0.2);
  }
  100% {
    box-shadow: var(--shadow);
  }
}

@keyframes socialIconFlash {
  0% {
    opacity: 0;
    filter: brightness(2.2);
    transform: scale(0.25) rotate(-24deg);
  }
  65% {
    opacity: 1;
    filter: brightness(1.25);
    transform: scale(1.18) rotate(4deg);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-bar-float {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%);
  }

  .social-bar-float .social-btn {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .social-bar-float.is-entered {
    animation: none;
  }
}

.social-bar-showcase {
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-bar-showcase .social-btn {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.social-bar-showcase .social-btn svg {
  width: 28px;
  height: 28px;
}

.social-showcase {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.social-showcase-inner {
  padding: 2.25rem 1.5rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(15, 39, 64, 0.06);
}

.social-bar-footer {
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.social-bar-footer .social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.social-bar-inline {
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .social-bar-float {
    left: auto;
    right: max(0.75rem, env(safe-area-inset-right));
    top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom));
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(100vw - 1.5rem);
    padding: 0.45rem;
    transform: translateY(140%) scale(0.85);
  }

  .social-bar-float.is-entered {
    animation:
      socialDockInMobile 0.9s cubic-bezier(0.2, 1.15, 0.32, 1) forwards,
      socialDockGlow 1.4s ease-out 0.2s;
  }

  .social-bar-float .social-btn {
    width: 42px;
    height: 42px;
  }
}

@keyframes socialDockInMobile {
  0% {
    opacity: 0;
    transform: translateY(140%) scale(0.85);
  }
  70% {
    opacity: 1;
    transform: translateY(-8px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: #1a1208;
  color: rgba(255, 255, 255, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  max-width: 36ch;
}

.site-footer h4 {
  margin: 0 0 0.75rem;
  color: var(--gold);
}

.site-footer a {
  display: block;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.brand-footer .brand-text strong {
  color: var(--gold-soft);
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.flash-wrap {
  padding-top: 1rem;
}

.flash {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.flash-success {
  background: rgba(200, 168, 0, 0.16);
  color: var(--gold-dark);
}

.flash-error {
  background: rgba(208, 0, 32, 0.1);
  color: var(--brand-red-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.empty-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
}

/* —— Responsive: tablet —— */
@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .division-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slide-content {
    max-width: min(480px, 78%);
  }
}

/* —— Responsive: tablet / small laptop —— */
@media (max-width: 900px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .header-inner {
    min-height: 76px;
    position: relative;
  }

  .site-header {
    position: sticky;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .brand-text strong {
    font-size: 1.28rem;
  }

  .brand-text small {
    font-size: 0.8rem;
  }

  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    direction: rtl;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    text-align: right;
  }

  .hero-slider {
    max-height: min(440px, 56vh);
    border-radius: 14px;
  }

  .slide-content {
    width: auto;
    max-width: 85%;
    padding: 1.1rem 1.1rem 2.75rem;
    justify-content: flex-end;
    min-height: 0;
    height: 100%;
  }

  .slide-shade {
    background:
      linear-gradient(180deg, rgba(26, 18, 8, 0.25) 0%, rgba(26, 18, 8, 0.72) 55%, rgba(26, 18, 8, 0.88) 100%);
  }

  .brand-hero-logo {
    width: clamp(88px, 22vw, 130px);
  }

  .slide-content h1 {
    max-width: none;
    font-size: clamp(1.35rem, 5vw, 1.9rem);
  }

  .feature-grid,
  .feature-grid-lg,
  .about-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .visits-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 3.25rem 0;
  }

  .page-hero {
    padding: 3rem 0 1.25rem;
  }

  .cta-inner {
    padding: 2.25rem 1.15rem;
    border-radius: 22px;
  }

  .social-showcase-inner {
    padding: 1.75rem 1rem;
    border-radius: 22px;
  }

  .social-bar-showcase .social-btn {
    width: 56px;
    height: 56px;
  }

  .slider-controls {
    bottom: 1rem;
    width: max-content;
    max-width: calc(100% - 2rem);
  }
}

/* —— Responsive: phones —— */
@media (max-width: 640px) {
  body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }

  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .brand-text small {
    display: none;
  }

  .hero-slider {
    max-height: min(380px, 52vh);
    border-radius: 12px;
  }

  .slide.has-zoom .slide-media img {
    animation: none;
    transform: none;
  }

  .slide-content {
    padding-block: 1.25rem 3.25rem;
    min-height: 0;
    height: 100%;
  }

  .slide-sub {
    font-size: 0.95rem;
    max-width: none;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .slide-content .btn {
    align-self: flex-start;
  }

  .feature-grid,
  .feature-grid-lg,
  .division-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .feature-item,
  .division-card {
    padding: 1.15rem;
  }

  .feature-thumb,
  .section-thumb,
  .division-card-thumb {
    height: 160px;
  }

  .page-hero-logo {
    width: 72px;
    height: 72px;
  }

  .contact-form,
  .contact-aside {
    padding: 1.15rem;
  }

  .form-row input,
  .form-row textarea {
    font-size: 16px; /* يمنع تكبير iOS التلقائي */
  }

  .footer-grid {
    gap: 1.5rem;
    padding: 2.25rem 0 1.5rem;
  }

  .social-bar-float {
    gap: 0.4rem;
  }

  .social-bar-float .social-btn {
    width: 40px;
    height: 40px;
  }

  .social-bar-float .social-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* —— Landscape phones —— */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-slider {
    max-height: min(280px, 75vh);
  }

  .brand-hero-logo {
    width: 72px;
  }

  .slide-content {
    padding-block: 1rem 2.5rem;
    justify-content: center;
    min-height: 0;
    height: 100%;
  }

  .social-bar-float {
    bottom: 0.5rem;
  }
}
