/* ===================================================================
   AMAL MALKI LEGAL THEME – MAIN STYLESHEET
   Design System: Dark Gold + Warm White | Arabic RTL
   =================================================================== */

/* ─── 1. CSS Variables ──────────────────────────────────────────── */
@font-face {
  font-family: 'DIN Next LT Arabic';
  src: url('../fonts/DINNextLTArabic-Regular-3.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DIN Next LT Arabic';
  src: url('../fonts/DINNextLTArabic-Heavy2-2.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DIN Next LT Arabic';
  src: url('../fonts/alfont_com_AlFont_com_DINNEXTLTARABIC-LIGHT.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand Colors */
  --color-gold: rgba(195, 138, 71, 1);
  --color-gold-light: #E8C96A;
  --color-gold-dark: #A8893A;
  --color-dark: #1A0E05;
  --color-dark-mid: #2D1F0F;
  --color-dark-footer: linear-gradient(180deg, #4D201B 0%, #411429 28.35%, #34193A 75%, #231B42 100%);
  --color-white: #FFFFFF;
  --color-off-white: #F8F5F0;
  --color-text: #2C1A0A;
  --color-text-muted: #6B5B47;
  --color-border: #E8E0D4;



  /* Typography */
  --font-serif: 'DIN Next LT Arabic', 'Noto Serif Arabic', 'Georgia', serif;
  --font-sans: 'DIN Next LT Arabic', 'Noto Sans Arabic', 'Tahoma', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Layout */
  --container-max: 1400px;
  /* زدت العرض هنا ليصبح أكبر */
  --container-pad: 1.5rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.16);

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

/* ─── 2. Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
}

/* ─── 3. Utility Classes ────────────────────────────────────────── */
/* إصلاح حجم SVG في المتجر بشكل عام */
svg {
  max-width: 100%;
  height: auto;
}

.hero-section svg {
  width: 20px !important;
  height: 20px !important;
  display: inline-block;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-fluid {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─── Preloader ─────────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(180deg, #4D201B 0%, #411429 28.35%, #34193A 75%, #231B42 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-content img {
  max-width: 400px;
  height: auto;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.preloader-text {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.preloader-bar {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preloader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: var(--color-gold);
  border-radius: 4px;
  animation: loadingBar 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.95);
  }
}

@keyframes loadingBar {
  0% {
    left: -50%;
  }

  100% {
    left: 100%;
  }
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  font-weight: 400;
}



/* ─── 4. Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.5rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
}

.btn--gold:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
}

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

/* ─── 5. HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  background: linear-gradient(220.86deg, rgba(77, 32, 27, 0.7) 23.19%, rgba(65, 20, 41, 0.7) 59.82%, rgba(52, 25, 58, 0.7) 120.11%, rgba(35, 27, 66, 0.7) 152.42%);
  transition: background 0.4s ease;
}

.front-page .site-header {
  background: linear-gradient(220.86deg, rgba(77, 32, 27, 0.7) 23.19%, rgba(65, 20, 41, 0.7) 59.82%, rgba(52, 25, 58, 0.7) 120.11%, rgba(35, 27, 66, 0.7) 152.42%);
}

.site-header.scrolled,
.front-page .site-header.scrolled {
  background: linear-gradient(220.86deg, rgba(77, 32, 27, 0.7) 23.19%, rgba(65, 20, 41, 0.7) 59.82%, rgba(52, 25, 58, 0.7) 120.11%, rgba(35, 27, 66, 0.7) 152.42%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  padding-block: 1rem;
}

/* Logo */
.site-branding {
  flex-shrink: 0;
}

.site-branding img {
  height: 90px;
  width: auto;
}

@media (max-width: 768px) {
  .site-branding img {
    height: 55px;
  }
}

.site-name-link {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
}

/* Language Badge */
.lang-badge a,
.lang-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.05em;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lang-badge a:hover {
  opacity: 1;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
  border-radius: 2px;
}

/* Nav Drawer (mobile) */
.nav-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: -100%;
  width: min(320px, 85vw);
  background: var(--color-dark);
  padding: 5rem var(--space-md) var(--space-md);
  transition: inset-inline-end 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: 999;
}

.nav-drawer.open {
  inset-inline-end: 0;
}

.nav-menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu-list a {
  display: block;
  padding: 1rem 0;
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  transition: color 0.2s;
}

.nav-menu-list a:hover {
  color: var(--color-gold);
}

/* Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

/* ─── 6. HERO ───────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(77, 32, 27, 0.6) 0%, rgba(35, 27, 66, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: 0 var(--space-xl);
  color: var(--color-white);
}

.hero-title {
  font-family: 'DIN Next LT Arabic', var(--font-serif);
  font-size: clamp(3rem, 10vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 2.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 300;
}

.hero-subtitle {
  font-family: 'DIN Next LT Arabic', var(--font-sans);
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  line-height: 1.5;
  max-width: 690px;
  margin: 0 auto 3rem;
  opacity: 1;
  font-weight: 300;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);

}

.hero-cta {
  background: var(--color-white) !important;
  color: #4e2316 !important;
  border: none !important;
  border-radius: 15px !important;
  padding: 0.8rem 4.5rem !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
  background: #f0f0f0 !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Social Pills */
.hero-social {
  position: absolute;
  top: 120px;
  inset-inline-start: var(--container-pad);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--color-white);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.social-pill:hover {
  background: var(--color-gold);
  transform: scale(1.1);
}

.social-pill svg {
  width: 20px;
  height: 20px;
}

/* ─── 7. ABOUT ──────────────────────────────────────────────────── */
.about-section {
  padding-block: var(--space-xl);
  background: var(--color-white);
}

.about-section .section-title {
  font-weight: 500;
  color: rgba(195, 138, 71, 1);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-main-title {
  text-align: start;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: var(--space-md);
}

.about-main-title::after {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.about-block {
  margin-bottom: var(--space-md);
}

.about-block-label {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #2d1f0fc4;
  margin-bottom: 0.5rem;
}

.about-block-text {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: 1.1rem;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

/* ─── 8. SERVICES ───────────────────────────────────────────────── */
.services-section {
  padding-block: var(--space-xl);
}

.services-section .section-title {
  color: rgba(45, 31, 15, 1);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: rgba(245, 245, 245, 1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-card__thumb {
  height: 130px;
  overflow: hidden;
}

.service-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__thumb img {
  transform: scale(1.05);
}

.service-card__thumb--placeholder {
  background: linear-gradient(135deg, var(--color-dark-mid), var(--color-dark));
}

.service-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.service-card__title a {
  color: inherit;
  font-size: 1.2rem;
}

.service-card__title a:hover {
  color: var(--color-gold);
}

.service-card__excerpt {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card__link {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  width: max-content;
  margin: 0.7rem 0;
}

.service-card__link:hover {
  color: var(--color-gold);
}

.service-card__arrow {
  font-size: 1rem;
  margin-top: 10px;
}

/* ─── 9. WHY US ─────────────────────────────────────────────────── */
.why-us-section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  /* Background color is now dynamic inline */
}

.why-us-section .section-title {
  /* color dynamic via inline, fallback to gold */
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.why-us-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.why-us-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

.why-us-flex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.why-us-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

@media (min-width: 992px) {
  .why-us-flex-grid {
    gap: var(--space-md);
  }

  .why-us-card {
    /* If --cols is set, divide space dynamically. Fallback is 3. */
    width: calc((100% / var(--cols, 3)) - (var(--space-md) * (var(--cols, 3) - 1) / var(--cols, 3)));
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .why-us-card {
    width: calc(50% - var(--space-sm) / 2);
  }
}

@media (max-width: 767px) {
  .why-us-section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .why-us-section .section-title {
    font-size: 1.75rem;
  }

  .why-us-subtitle {
    font-size: 0.95rem;
  }

  .why-us-header {
    margin-bottom: var(--space-md);
  }

  /* One card per row stacked vertically on mobile */
  .why-us-flex-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.85rem;
    overflow: visible;
  }

  .why-us-card {
    width: 100%;
    flex: none;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #4D201B 0%, #411429 28.35%, #34193A 75%, #231B42 100%);

  }

  .why-us-card__title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .why-us-card__text {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

.why-us-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.why-us-card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 0.85rem;
}

.why-us-card__text {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── 10. ARTICLES ──────────────────────────────────────────────── */
.articles-section {
  padding-block: var(--space-xl);
  background: var(--color-white);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}

.article-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.article-card__thumb {
  height: 160px;
  overflow: hidden;
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article-card:hover .article-card__thumb img {
  transform: scale(1.06);
}

.article-card__thumb--placeholder {
  background: linear-gradient(135deg, var(--color-dark-mid), var(--color-dark));
}

.article-card__body {
  padding: 0.75rem;
}

.article-card__title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
}

.article-card__title a:hover {
  color: var(--color-gold);
}

/* ─── 11. CONTACT ───────────────────────────────────────────────── */
.contact-section {
  padding-block: var(--space-xl);
  background: var(--color-off-white);
}

.contact-title,
.contact-subtitle {
  text-align: center;
}

.contact-subtitle {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.contact-form {
  max-width: 640px;
  margin-inline: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group {
  margin-bottom: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.25s;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.contact-form .btn--gold {
  display: block;
  margin-inline: auto;
  margin-top: var(--space-sm);
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

.form-feedback {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5em;
}

.form-feedback.success {
  color: #2e7d32;
}

.form-feedback.error {
  color: #c62828;
}

/* ─── 12. FOOTER ────────────────────────────────────────────────── */
.site-footer {
  color: var(--color-white);
  background-color: var(--color-dark);
  background-image: var(--color-dark-footer);
}

.footer-inner {
  padding-block: var(--space-lg) var(--space-lg);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.footer-brand img {
  height: 90px;
  width: auto;
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  color: var(--color-white);
}

@media (min-width: 992px) {
  .footer-columns .footer-col:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-columns .footer-col:nth-child(3) {
    justify-self: end;
  }
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 1rem;
}


.footer-subtitle {
  color: rgba(157, 115, 72, 1);
  margin-top: -1rem;
  font-weight: 900;
  font-size: 1.2rem;
}

.footer-nav-list li {
  margin-bottom: 0.5rem;
}

.footer-nav-list a {
  font-size: 1.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-nav-list a:hover {
  color: var(--color-gold);
}

.footer-hours-label {
  font-size: 1.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.25rem;
}

.footer-hours {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 900;
}

address {
  font-style: normal;
}

.footer-contact-label {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.75rem;
  margin-bottom: 0.2rem;
}

.footer-contact-value {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-value svg {
  width: 24px !important;
  height: 24px !important;
}

.footer-contact-value a:hover {
  color: var(--color-gold);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  color: #a1744e;
  transition: var(--transition);
}

.social-icon:hover {
  background: transparent;
  color: var(--color-white);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.25rem;
}

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ─── 13. ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideUp {
  0% {
    opacity: 0;
    transform: translateY(120px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: heroSlideUp 5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.6s;
}

.hero-title {
  animation: fadeInUp 4.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.2s;
}

.hero-subtitle {
  animation: fadeInUp 4.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 2.2s;
}

.hero-cta {
  animation: fadeInUp 4.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 3.2s;
}

/* Intersection Observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

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

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

  .why-us-card {
    flex: 0 1 calc(33.333% - 1rem);
    /* 3 cards per row */
  }

  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    height: 300px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 3rem;
  }

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

  .why-us-card {
    flex: 0 1 calc(50% - 1rem);
    /* 2 cards per row on tablets */
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-social {
    display: none;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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

/* ─── Scroll to Top Button ─────────────────────────────────────── */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  /* Position on left for RTL */
  width: 50px;
  height: 50px;
  background: var(--color-gold);
  color: var(--color-dark);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
}

.scroll-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--color-white);
  color: var(--color-gold);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
  transform: translateY(-3px);
}

/* Adjust for LTR */
[dir="ltr"] .scroll-to-top {
  left: auto;
  right: 30px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ─── WhatsApp Floating Button ──────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px; /* في اليمين من المتجر */
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-float:hover {
  background-color: #1ebe57;
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
  color: #fff;
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Mobile Adjustments for WhatsApp */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}