/* ============================================
   SAREE — Software Company Website
   Stylesheet
   ============================================ */

/* ----- RESET & BASE ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors - Dark Theme (default) */
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #818cf8;
  --color-accent: #06b6d4;
  --color-accent-dark: #0891b2;

  --color-bg: #0a0a1a;
  --color-bg-alt: #12122a;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-surface-hover: rgba(255, 255, 255, 0.08);

  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Header specific */
  --header-bg: rgba(10, 10, 26, 0.5);
  --header-bg-scrolled: rgba(10, 10, 26, 0.75);
  --header-border: rgba(255, 255, 255, 0.08);

  /* Toggle buttons */
  --toggle-bg: rgba(255, 255, 255, 0.06);
  --toggle-hover: rgba(255, 255, 255, 0.10);
  --toggle-icon: #94a3b8;

  /* Layout */
  --container-max: 1200px;
  --header-height: 132px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

/* Arabic font support */
[lang="ar"],
[dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

[lang="ar"] body,
[dir="rtl"] body,
[lang="ar"] *,
[dir="rtl"] * {
  font-family: 'Noto Sans Arabic', 'Inter', sans-serif !important;
}
[data-theme="light"] {
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-surface: rgba(0, 0, 0, 0.03);
  --color-surface-hover: rgba(0, 0, 0, 0.05);

  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-dim: #94a3b8;

  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  --header-bg: rgba(248, 250, 252, 0.6);
  --header-bg-scrolled: rgba(248, 250, 252, 0.85);
  --header-border: rgba(0, 0, 0, 0.06);

  --toggle-bg: rgba(0, 0, 0, 0.05);
  --toggle-hover: rgba(0, 0, 0, 0.08);
  --toggle-icon: #475569;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Glass morphism hover effect for ALL buttons */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border: none;
}

.btn--primary:hover {
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-text);
}

[data-theme="light"] .btn--outline {
  border-color: rgba(0, 0, 0, 0.2);
}

.btn--outline:hover {
  border-color: transparent;
}

.btn--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--color-primary-light);
  font-size: 0.875rem;
  padding: 10px 24px;
  border-radius: 10px;
}

.btn--glass:hover::before {
  opacity: 1;
}

.btn--glass:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--color-text);
}

/* ============================================
   TOGGLE BUTTONS (Lang + Theme)
   ============================================ */
.header__toggles {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-end: 8px;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--toggle-bg);
  border: 1px solid var(--glass-border);
  color: var(--toggle-icon);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.toggle-btn:hover {
  background: var(--toggle-hover);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-text);
}

[data-theme="light"] .toggle-btn:hover {
  border-color: rgba(0, 0, 0, 0.12);
}

.toggle-btn i {
  font-size: 0.95rem;
}

.toggle-btn--theme {
  padding: 8px 10px;
}

.toggle-btn__label {
  line-height: 1;
}

/* ============================================
   HEADER — Glass Morphism Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border);
  transition: background var(--transition), border-color var(--transition);
}

.header.scrolled {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .header.scrolled {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Order in RTL — toggles go on the right side */
[dir="rtl"] .header__toggles {
  margin-inline-end: 0;
  margin-inline-start: 8px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo__glass {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  max-height: 132px;
}

.logo__glass:hover {
  background: var(--color-surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--glass-shadow);
  transform: scale(1.02);
}

[data-theme="light"] .logo__glass:hover {
  border-color: rgba(0, 0, 0, 0.1);
}

.logo__img {
  height: 120px;
  width: auto;
  max-width: 600px;
  object-fit: contain;
  display: block;
}

.logo__glass--footer {
  padding: 12px 28px;
  border-radius: 16px;
  max-height: none;
}

.logo__img--footer {
  height: 140px;
  max-width: 700px;
}

/* Placeholder fallback (if no image) */
.logo__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  transition: var(--transition);
}

.logo__placeholder:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.logo__placeholder--footer {
  width: 56px;
  height: 56px;
  font-size: 0.85rem;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text);
  background: var(--toggle-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: var(--toggle-bg);
}

/* ============================================
   SECTIONS — Shared
   ============================================ */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

[dir="rtl"] .section__header {
  text-align: center;
}

.section__tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 16px;
}

[dir="rtl"] .section__tag {
  letter-spacing: 0;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-text), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 500px 400px at 80% 30%, rgba(6, 182, 212, 0.10), transparent),
    radial-gradient(ellipse 300px 300px at 50% 80%, rgba(99, 102, 241, 0.06), transparent);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

[data-theme="light"] .hero__bg {
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(99, 102, 241, 0.08), transparent),
    radial-gradient(ellipse 500px 400px at 80% 30%, rgba(6, 182, 212, 0.06), transparent),
    radial-gradient(ellipse 300px 300px at 50% 80%, rgba(99, 102, 241, 0.04), transparent);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  width: 100%;
  max-width: var(--container-max);
}

.hero__content {
  flex: 1;
  max-width: 600px;
}

[dir="ltr"] .hero__content {
  text-align: left;
}

[dir="rtl"] .hero__content {
  text-align: right;
}

[dir="rtl"] .hero__inner {
  flex-direction: row-reverse;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

[dir="ltr"] .hero__title {
  letter-spacing: -0.02em;
}

.hero__highlight {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image-wrapper {
  flex: 0 0 420px;
  max-width: 420px;
  position: relative;
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25), 0 0 80px rgba(99, 102, 241, 0.08);
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .hero__inner {
    flex-direction: column;
    gap: 40px;
  }

  [dir="rtl"] .hero__inner {
    flex-direction: column;
  }

  .hero__content {
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image-wrapper {
    flex: 0 0 auto;
    max-width: 320px;
  }
}

/* ============================================
   ABOUT / WHO WE ARE
   ============================================ */
.about {
  background: var(--color-bg-alt);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.about__card {
  padding: 36px 28px;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  text-align: center;
}

[dir="rtl"] .about__card {
  text-align: center;
}

.about__card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .about__card:hover {
  border-color: rgba(0, 0, 0, 0.1);
}

.about__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 16px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  color: var(--color-primary-light);
}

.about__card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about__card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ============================================
   PRODUCTS
   ============================================ */
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.product-card {
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .product-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
}

.product-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.3rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  color: var(--color-primary-light);
}

.product-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-card__desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  flex: 1;
}

.product-card__features {
  margin-bottom: 22px;
}

.product-card__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  padding: 5px 0;
}

.product-card__features li i {
  color: var(--color-accent);
  font-size: 0.85rem;
}

.product-card .btn {
  align-self: flex-start;
}

[dir="rtl"] .product-card .btn {
  align-self: flex-end;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: var(--color-bg-alt);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.gallery__item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item--lg {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__placeholder-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  padding: 16px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: var(--color-text-dim);
}

[data-theme="light"] .gallery__placeholder-note {
  background: rgba(0, 0, 0, 0.03);
  border: 1px dashed rgba(0, 0, 0, 0.12);
}

.gallery__placeholder-note i {
  color: var(--color-primary-light);
  font-size: 1.1rem;
}

.gallery__placeholder-note code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--color-primary-light);
}

[data-theme="light"] .gallery__placeholder-note code {
  background: rgba(0, 0, 0, 0.05);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.why-us__card {
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  position: relative;
}

.why-us__card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .why-us__card:hover {
  border-color: rgba(0, 0, 0, 0.1);
}

.why-us__number {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(99, 102, 241, 0.2);
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.15));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-us__card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-us__card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: var(--color-bg-alt);
}

.faq__list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: var(--transition);
}

.faq__item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .faq__item:hover {
  border-color: rgba(0, 0, 0, 0.1);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

[dir="ltr"] .faq__question {
  text-align: left;
}

[dir="rtl"] .faq__question {
  text-align: right;
}

.faq__question:hover {
  color: var(--color-primary-light);
}

.faq__question i {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq__item.active .faq__question i {
  transform: rotate(180deg);
  color: var(--color-primary-light);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item.active .faq__answer {
  max-height: 300px;
}

.faq__answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 72px 0 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--header-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer__col--brand {
  max-width: 360px;
}

.footer__about-text {
  margin: 20px 0 24px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--toggle-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  font-size: 1rem;
  transition: var(--transition);
}

.footer__social a:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--color-primary-light);
  transform: translateY(-3px);
}

.footer__heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
}

.footer__links li,
.footer__contact li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--color-primary-light);
  padding-inline-start: 4px;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer__contact li i {
  color: var(--color-primary-light);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer__contact a {
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer__contact a:hover {
  color: var(--color-primary-light);
}

.footer__bottom {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--header-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.footer__bottom a {
  color: var(--color-text-dim);
  transition: var(--transition);
}

.footer__bottom a:hover {
  color: var(--color-primary-light);
}

/* ============================================
   RTL SPECIFIC OVERRIDES
   ============================================ */
[dir="rtl"] .nav__list {
  flex-direction: row;
}

[dir="rtl"] .hero__title {
  letter-spacing: normal;
}

[dir="rtl"] .gallery__placeholder-note {
  flex-direction: row;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header__inner {
    padding: 0 16px;
  }

  /* Move toggles before nav on mobile */
  .header__toggles {
    margin-inline-end: 4px;
    margin-inline-start: auto;
  }

  [dir="rtl"] .header__toggles {
    margin-inline-start: 4px;
    margin-inline-end: auto;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-border);
    padding: 12px 16px;
    transform: translateY(-110%);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__list {
    flex-direction: column;
    gap: 2px;
  }

  .nav__link {
    width: 100%;
    padding: 12px 16px;
  }

  .menu-toggle {
    display: block;
    order: 10;
  }

  [dir="rtl"] .menu-toggle {
    order: 10;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .section {
    padding: 64px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery__item--lg {
    grid-column: span 1;
    grid-row: span 1;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__col--brand {
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .products__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .toggle-btn__label {
    display: none;
  }
}