/* ============================================================
   Bustan Al Zohoor – Auto Maintenance Landing Page
   Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary:   #1a3a5c;   /* Deep navy blue */
  --color-primary-d: #122b46;   /* Darker navy */
  --color-accent:    #e63946;   /* Bold red */
  --color-accent-d:  #c1121f;   /* Darker red */
  --color-wa:        #25d366;   /* WhatsApp green */
  --color-wa-d:      #128c4e;   /* WA dark */
  --color-gold:      #d4a017;   /* Premium gold */
  --color-text:      #1a1a2e;   /* Near-black */
  --color-text-2:    #4a4a6a;   /* Secondary text */
  --color-bg:        #ffffff;
  --color-bg-light:  #f4f6f9;
  --color-bg-dark:   #0d1f35;
  --color-border:    #e2e8f0;
  --color-white:     #ffffff;

  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Inter', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.18);

  --transition: 0.25s ease;
  --header-h:   74px;
}

/* ---------- Base Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ar);
  color: var(--color-text);
  background: var(--color-bg);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
}

body.lang-en {
  font-family: var(--font-en);
  direction: ltr;
  text-align: left;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.bg-light { background: var(--color-bg-light); }
.bg-dark  { background: var(--color-bg-dark); }

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  background: rgba(26, 58, 92, .08);
  color: var(--color-primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-badge--light {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.3;
}

.section-header--light h2 { color: var(--color-white); }

.section-sub {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--color-text-2);
}
.section-sub--light { color: rgba(255,255,255,.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 3px solid var(--color-wa);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-primary-d); box-shadow: var(--shadow-lg); }

.btn-wa {
  background: var(--color-wa);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.btn-wa:hover { background: var(--color-wa-d); box-shadow: 0 8px 28px rgba(37,211,102,.45); }

.btn-outline {
  background: rgba(255,255,255,.12);
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,.2);
  border-color: var(--color-white);
}

.btn-lg  { padding: 15px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-xl  { padding: 18px 40px; font-size: 1.1rem; border-radius: var(--radius-lg); width: 100%; justify-content: center; }

/* ---------- WA Icon SVG ---------- */
.wa-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition), background var(--transition);
}

#header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.6rem;
  line-height: 1;
  background: var(--color-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-ar {
  font-family: var(--font-ar);
  font-size: .9rem;
  font-weight: 800;
  color: var(--color-primary);
}

.logo-en {
  font-family: var(--font-en);
  font-size: .7rem;
  font-weight: 600;
  color: var(--color-text-2);
  letter-spacing: .04em;
}

/* Nav */
#main-nav { margin: 0 auto; }

#main-nav ul {
  display: flex;
  gap: 4px;
}

#main-nav a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-text-2);
  transition: color var(--transition), background var(--transition);
}

#main-nav a:hover,
#main-nav a.active {
  color: var(--color-primary);
  background: rgba(26,58,92,.07);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-inline-start: auto;
}

.lang-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-white);
  transition: all var(--transition);
}

.lang-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.header-wa {
  padding: 8px 16px;
  font-size: .88rem;
  border-radius: var(--radius-sm);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,31,53,.88) 0%,
    rgba(26,58,92,.78) 40%,
    rgba(13,31,53,.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  margin-bottom: 20px;
  letter-spacing: .06em;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  width: fit-content;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
}

.stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
}

/* Scroll-down arrow */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}

.scroll-down svg {
  width: 18px;
  height: 18px;
  stroke: white;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-images {
  position: relative;
  height: 480px;
}

.about-img-main {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 75%;
  height: 85%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-img-main:hover img { transform: scale(1.04); }

.about-img-side {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 55%;
  height: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--color-white);
}

.about-img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-img-side:hover img { transform: scale(1.04); }

.about-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.about-content > p {
  font-size: 1.02rem;
  color: var(--color-text-2);
  margin-bottom: 28px;
  line-height: 1.8;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.about-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-text);
}

.check-icon {
  width: 20px;
  height: 20px;
  stroke: var(--color-wa);
  stroke-width: 3;
  fill: none;
  flex-shrink: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 4px;
  height: 0;
  background: var(--color-primary);
  border-radius: 0 0 4px 4px;
  transition: height 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.service-card:hover::before { height: 100%; }

.service-card--featured {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.service-card--featured h3,
.service-card--featured p {
  color: var(--color-white);
}

.service-card--featured::before { background: var(--color-gold); }

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.service-card p {
  font-size: .9rem;
  color: var(--color-text-2);
  line-height: 1.7;
}

.card-badge {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  background: var(--color-gold);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: .06em;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(26,58,92,.08);
  line-height: 1;
  margin-bottom: 12px;
  font-family: var(--font-en);
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.why-card p {
  font-size: .9rem;
  color: var(--color-text-2);
  line-height: 1.7;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a5c8a 100%);
  padding: 64px 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner-text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 8px;
}

.cta-banner-text p {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: var(--color-white);
  font-size: .82rem;
  font-weight: 600;
  padding: 16px 14px 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover figcaption { transform: translateY(0); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.testi-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.testi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testi-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  inset-inline-end: 24px;
  font-size: 4rem;
  color: rgba(26,58,92,.08);
  font-family: Georgia, serif;
  line-height: 1;
}

.testi-stars {
  color: #f4c430;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testi-card p {
  font-size: .95rem;
  color: var(--color-text-2);
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.testi-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-text);
  font-style: normal;
  display: block;
}

.testi-role {
  font-size: .8rem;
  color: var(--color-text-2);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--color-wa);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon--email   { background: var(--color-accent); }
.contact-icon--location { background: var(--color-primary); }
.contact-icon--hours   { background: var(--color-gold); }

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: white;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-icon svg path { stroke: none; fill: white; }

.contact-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  transition: color var(--transition);
}

.contact-value:hover { color: var(--color-wa); }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-lg);
  background: #1a2a3a;
}

.map-placeholder {
  width: 100%;
  height: 100%;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #081523;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 56px 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer-social a:hover { background: var(--color-wa); }

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: white;
}
.footer-social a:nth-child(2) svg {
  fill: none;
  stroke: white;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-links h4,
.footer-contact h4 {
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-white); }

.footer-contact p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 8px;
}

.footer-contact a {
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--color-wa); }

.footer-lang { margin-top: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

.footer-powered a {
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-powered a:hover { color: var(--color-white); }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.floating-wa {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 900;
  width: 60px;
  height: 60px;
  background: var(--color-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  transition: transform var(--transition), box-shadow var(--transition);
}

.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37,211,102,.65);
}

.floating-wa:focus-visible {
  outline: 3px solid var(--color-wa);
  outline-offset: 4px;
}

.floating-wa svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.floating-wa-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-wa);
  animation: pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================================
   ANIMATIONS / REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid       { grid-template-columns: 1fr; gap: 40px; }
  .about-images     { height: 300px; margin-bottom: 0; }
  .about-img-main   { width: 70%; height: 90%; }
  .about-img-side   { width: 50%; height: 50%; }
  .contact-grid     { grid-template-columns: 1fr; }
  .contact-map      { height: 300px; }
  .footer-inner     { grid-template-columns: 1fr 1fr; }
  .gallery-grid     { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .gallery-item--wide { grid-column: span 2; }
}

/* Mobile large */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  section { padding: 60px 0; }

  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 20px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
    margin: 0;
  }

  #main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  #main-nav a { display: block; padding: 10px 14px; font-size: 1rem; }

  .menu-toggle { display: flex; }
  .header-wa span { display: none; }
  .header-wa { padding: 8px 10px; }

  .hero-stats {
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 8px;
  }
  .stat { padding: 0 16px; }
  .stat-divider { display: none; }

  .services-grid   { grid-template-columns: 1fr 1fr; }
  .why-grid        { grid-template-columns: 1fr; }
  .testi-grid      { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .gallery-item--wide { grid-column: span 2; }

  .cta-banner-inner { flex-direction: column; align-items: flex-start; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
}

/* Mobile small */
@media (max-width: 480px) {
  .hero-actions    { flex-direction: column; }
  .btn-lg          { width: 100%; }
  .services-grid   { grid-template-columns: 1fr; }
  .gallery-grid    { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item--wide { grid-column: span 1; }

  .hero-stats      { justify-content: center; }
  .about-images    { height: 220px; }
}

/* ============================================================
   LANGUAGE — LTR overrides
   ============================================================ */
body.lang-en .logo-ar,
body.lang-en [data-show-ar] { display: none; }

body:not(.lang-en) .logo-en,
body:not(.lang-en) [data-show-en] { display: none; }

/* RTL gallery fix: flip wide item in LTR */
body.lang-en .gallery-item--wide:last-child { grid-column: span 2; }

/* Scroll-down in LTR: keep centred */
body.lang-en .scroll-down { left: 50%; }

/* floating WA positioning is already handled by inset-inline-end */
