/* ================================================
   ROOT & RESET
================================================ */
:root {
  --blue:    #0079C1;
  --yellow:  #F9B233;
  --lblue:   #70C5E6;
  --bg:      #F8F3EC;
  --text:    #4A4A4A;
  --white:   #FFFFFF;
  --dark:    #1A2D44;
  --card-r:  16px;
  --trans:   0.35s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: 'Cairo', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka One', cursive;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.3px;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

/* ================================================
   LANGUAGE hidden
================================================ */
[data-lang] { display: none; }
.lang-fr [data-lang="fr"],
.lang-ar [data-lang="ar"],
.lang-en [data-lang="en"] { display: revert; }

.hi-card h5,
.act-card-body h5,
.team-card h6 {
  font-family: 'Fredoka One', cursive;
  font-weight: 400;
  letter-spacing: 0.3px;
}

html[dir="rtl"] .hi-card h5,
html[dir="rtl"] .act-card-body h5,
html[dir="rtl"] .team-card h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-family: 'Nunito', sans-serif;
}

#mainNav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,121,193,0.08);
  padding: 10px 0;
  transition: var(--trans);
  z-index: 1000;
}

#mainNav.scrolled {
  box-shadow: 0 4px 30px rgba(0,121,193,0.15);
}

.navbar-brand img { height: 52px; }

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark) !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: var(--trans);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 16px; right: 16px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--trans);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.navbar-nav .nav-link:hover { color: var(--blue) !important; }

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  background: #f0f4f8;
  border-radius: 20px;
  padding: 4px;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  color: var(--text);
  transition: var(--trans);
}

.lang-btn.active {
  background: var(--blue);
  color: white;
}

/* ================================================
   HERO
================================================ */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f4fd 0%, var(--bg) 60%, #fef7e6 100%);
}

.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}

.hero-bg-shape.s1 {
  width: 600px; height: 600px;
  background: var(--blue);
  top: -150px; right: -150px;
}

.hero-bg-shape.s2 {
  width: 400px; height: 400px;
  background: var(--yellow);
  bottom: -100px; left: -100px;
}

.hero-bg-shape.s3 {
  width: 300px; height: 300px;
  background: var(--lblue);
  top: 30%; left: 40%;
}

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
}

.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0deg, var(--yellow) 120deg, var(--lblue) 240deg, var(--blue) 360deg);
  opacity: 0.12;
  animation: spin 20s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-logo-wrap img {
  width: 170px;
  position: relative;
  filter: drop-shadow(0 12px 32px rgba(0,121,193,0.2));
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--blue), var(--lblue));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.9rem);
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: 0.5px;
}

.hero-title span { color: var(--blue); }

.hero-subtitle {
  font-size: 1.1rem;
  color: #6a7d90;
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta {
  background: linear-gradient(90deg, var(--yellow), #f9c55a);
  color: var(--dark);
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  box-shadow: 0 6px 24px rgba(249,178,51,0.35);
  transition: var(--trans);
  text-decoration: none;
  display: inline-block;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(249,178,51,0.45);
  color: var(--dark);
}

.hero-cta-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--trans);
  text-decoration: none;
  display: inline-block;
}

.hero-cta-outline:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-3px);
}

/* Stats row */
.stat-card {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: var(--card-r);
  box-shadow: 0 4px 20px rgba(0,121,193,0.08);
}

.stat-card .num {
  font-size: 2rem;
  font-weight: 400;
  font-family: 'Fredoka One', cursive;
  color: var(--blue);
}

.stat-card .lbl {
  font-size: 0.85rem;
  color: #8a9aaa;
  font-weight: 500;
}

/* ================================================
   SECTION GENERAL
================================================ */
section { padding: 96px 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: 0.4px;
}

.section-title span { color: var(--blue); }

.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  border-radius: 4px;
  margin-bottom: 48px;
}

.section-line.center { margin-left: auto; margin-right: auto; }

/* ================================================
   HIGHLIGHT CARDS (HOME)
================================================ */
.hi-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: var(--trans);
  height: 100%;
}

.hi-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,121,193,0.15);
}

.hi-card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.hi-card-icon.blue { background: #e5f3fc; color: var(--blue); }
.hi-card-icon.yellow { background: #fef5e3; color: var(--yellow); }
.hi-card-icon.green { background: #e8f7ef; color: #28a06a; }

/* ================================================
   CTA BANNER
================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #0c3a6e 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.15;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.1;
}

/* ================================================
   ABOUT
================================================ */
#about { background: white; }

.about-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  border-radius: 24px;
}

.about-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--yellow);
  color: var(--dark);
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(249,178,51,0.35);
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.value-icon {
  width: 48px; height: 48px; min-width: 48px;
  background: linear-gradient(135deg, var(--blue), var(--lblue));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.3rem;
}

/* Team */
.team-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg);
  border-radius: 20px;
  transition: var(--trans);
}

.team-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,121,193,0.12); }

.team-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 4px solid white;
  box-shadow: 0 4px 16px rgba(0,121,193,0.15);
  object-fit: cover;
}

/* ================================================
   ACTIVITIES
================================================ */
#activities { background: var(--bg); }

.act-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--trans);
  height: 100%;
}

.act-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,121,193,0.14);
}

.act-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.act-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.act-card:hover .act-card-img img { transform: scale(1.08); }

.act-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,121,193,0.85) 100%);
  opacity: 0;
  transition: var(--trans);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.act-card:hover .act-card-overlay { opacity: 1; }

.act-date-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--yellow);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.act-card-body { padding: 20px; }

.act-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

/* ================================================
   GALLERY — Professional Masonry Bento
================================================ */
#gallery {
  background: #F2EDE6;
  position: relative;
}

[data-theme="dark"] #gallery { background: #0c1628; }

/* ── Filter Tabs ── */
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.gf-btn {
  background: white;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 8px 22px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: var(--trans);
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

[data-theme="dark"] .gf-btn { background: #1e293b; color: #94a3b8; }
.gf-btn:hover { border-color: var(--blue); color: var(--blue); }
.gf-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 4px 16px rgba(0,121,193,0.3);
}
.gf-btn .gf-count {
  display: inline-flex;
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  font-size: 0.7rem;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}
.gf-btn:not(.active) .gf-count { background: rgba(0,121,193,0.1); color: var(--blue); }

/* ── Bento Grid ── */
.gallery-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: 12px;
}

.gitem { display: block; }
.gitem.hidden { display: none; }

.gitem-wide   { grid-column: span 8; grid-row: span 3; }
.gitem-tall   { grid-column: span 4; grid-row: span 4; }
.gitem-medium { grid-column: span 6; grid-row: span 3; }
.gitem-small  { grid-column: span 4; grid-row: span 2; }
.gitem-sq     { grid-column: span 4; grid-row: span 3; }
.gitem-short  { grid-column: span 6; grid-row: span 2; }
.gitem-banner { grid-column: span 12; grid-row: span 2; }

/* ── Gallery Item ── */
.gitem {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gitem img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
  display: block;
}
.gitem:hover img { transform: scale(1.07); }

/* Rich overlay */
.gitem-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,30,60,0.88) 0%,
    rgba(0,121,193,0.25) 60%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.gitem:hover .gitem-overlay { opacity: 1; }

.gitem-cat {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}
.gitem-title {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.gitem-actions {
  display: flex;
  gap: 8px;
}
.gitem-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--trans);
}
.gitem-btn-zoom { background: white; color: var(--dark); }
.gitem-btn-zoom:hover { background: var(--yellow); }
.gitem-btn-share { background: rgba(255,255,255,0.15); color: white; }
.gitem-btn-share:hover { background: var(--blue); }

/* Category color strip on left edge */
.gitem::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  z-index: 1;
  transition: var(--trans);
  transform: scaleY(0);
  transform-origin: top;
}
.gitem:hover::before { transform: scaleY(1); }
.gitem[data-cat="patrimoine"]::before   { background: var(--blue); }
.gitem[data-cat="solidarite"]::before   { background: #28a06a; }
.gitem[data-cat="environnement"]::before{ background: #20c997; }
.gitem[data-cat="artisanat"]::before    { background: var(--yellow); }
.gitem[data-cat="evenement"]::before    { background: #e74c3c; }

/* ── Load More ── */
.gallery-load-wrap {
  text-align: center;
  margin-top: 40px;
}
.gallery-load-btn {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 12px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--trans);
  font-family: 'Nunito', sans-serif;
}
.gallery-load-btn:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,121,193,0.25);
}
.gallery-load-btn.all-loaded {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Stats strip under gallery ── */
.gallery-stats-strip {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,121,193,0.12);
}
.gstat { text-align: center; }
.gstat-num {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: 'Fredoka One', cursive;
  color: var(--blue);
  line-height: 1;
}
.gstat-lbl {
  font-size: 0.78rem;
  color: #8a9aaa;
  font-weight: 600;
  margin-top: 4px;
}

/* ── Professional Lightbox ── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,0.96);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox.open { display: flex; }

.lb-inner {
  position: relative;
  max-width: 88vw;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lbImg {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  object-fit: contain;
  transition: opacity 0.25s ease;
}
#lbImg.fading { opacity: 0; }

/* nav arrows */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--trans);
  backdrop-filter: blur(4px);
}
.lb-arrow:hover { background: var(--blue); border-color: var(--blue); }
#lbPrev { left: -68px; }
#lbNext { right: -68px; }

/* top bar */
.lb-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}
.lb-meta { color: white; }
.lb-counter {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.lb-cat-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 2px;
}
.lb-title-text {
  font-size: 0.95rem;
  font-weight: 600;
}
.lb-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--trans);
}
.lb-close:hover { background: #e74c3c; border-color: #e74c3c; }

/* bottom thumbnails strip */
.lb-thumbs {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.lb-thumb {
  width: 48px; height: 36px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.45;
  border: 2px solid transparent;
  transition: var(--trans);
  flex-shrink: 0;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb.active { opacity: 1; border-color: var(--yellow); }
.lb-thumb:hover { opacity: 0.8; }

/* Responsive gallery */
@media (max-width: 900px) {
  .gallery-bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 70px;
  }
  .gitem-wide   { grid-column: span 6; grid-row: span 3; }
  .gitem-tall   { grid-column: span 6; grid-row: span 3; }
  .gitem-medium { grid-column: span 6; grid-row: span 3; }
  .gitem-small  { grid-column: span 3; grid-row: span 2; }
  .gitem-sq     { grid-column: span 3; grid-row: span 3; }
  .gitem-short  { grid-column: span 6; grid-row: span 2; }
  .gitem-banner { grid-column: span 6; grid-row: span 2; }
  #lbPrev { left: -50px; }
  #lbNext { right: -50px; }
}
@media (max-width: 576px) {
  .gallery-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }
  .gitem-wide, .gitem-tall, .gitem-medium,
  .gitem-small, .gitem-sq, .gitem-short, .gitem-banner {
    grid-column: span 1;
    grid-row: span 2;
  }
  .gitem-wide, .gitem-banner { grid-column: span 2; }
  .lb-thumbs { display: none; }
  #lbPrev { left: 4px; }
  #lbNext { right: 4px; }
  .lb-inner { max-width: 95vw; }
}

/* ================================================
   CONTACT
================================================ */
#contact { background: var(--bg); }

.contact-card {
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

.form-control, .form-select {
  border: 2px solid #e8edf2;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--trans);
  background: #fafbfc;
}

.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,121,193,0.08);
  background: white;
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.btn-submit {
  background: linear-gradient(90deg, var(--blue), #0099e6);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--trans);
  box-shadow: 0 6px 24px rgba(0,121,193,0.25);
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,121,193,0.35);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 52px; height: 52px; min-width: 52px;
  background: linear-gradient(135deg, var(--blue), var(--lblue));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.3rem;
}

.social-link {
  display: inline-flex;
  width: 44px; height: 44px;
  background: var(--bg);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.2rem;
  transition: var(--trans);
  text-decoration: none;
}

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

/* ================================================
   FOOTER
================================================ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

footer h5 {
  color: white;
  font-family: 'Fredoka One', cursive;
  font-weight: 400;
  margin-bottom: 20px;
  font-size: 1.15rem;
  letter-spacing: 0.4px;
}

.footer-logo img { height: 60px; filter: brightness(0) invert(1); opacity: 0.9; }

.footer-link {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 4px 0;
  transition: var(--trans);
  font-size: 0.9rem;
}

.footer-link:hover { color: var(--yellow); padding-left: 6px; }

html[dir="rtl"] .footer-link:hover { padding-left: 0; padding-right: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 48px;
  font-size: 0.85rem;
}

/* ================================================
   SCROLL TO TOP
================================================ */
#scrollTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  border: none;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--trans);
  box-shadow: 0 6px 24px rgba(0,121,193,0.35);
  z-index: 9999;
}

html[dir="rtl"] #scrollTop { right: auto; left: 28px; }

#scrollTop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTop:hover { background: var(--yellow); color: var(--dark); transform: translateY(-4px); }

/* ================================================
   RTL OVERRIDES
================================================ */
html[dir="rtl"] .section-line { margin-left: 0; }
html[dir="rtl"] .section-line.center { margin-left: auto; margin-right: auto; }
html[dir="rtl"] .hero-subtitle { margin-left: auto; }
html[dir="rtl"] .footer-link:hover { padding-left: 0; padding-right: 6px; }

/* ── About section RTL ── */
html[dir="rtl"] #about { text-align: right; }

html[dir="rtl"] .value-item {
  /* dir="rtl" on <html> already flows flex row right→left.
     row-reverse was double-reversing → icon back on left. Removed. */
  text-align: right;
  align-items: flex-start;
}

html[dir="rtl"] .value-icon {
  flex-shrink: 0;
}

html[dir="rtl"] .about-badge {
  right: auto;
  left: 24px;
}

html[dir="rtl"] .section-label {
  display: block;
  text-align: right;
}

html[dir="rtl"] #about .section-line {
  margin-left: unset;
  margin-right: 0;
}

html[dir="rtl"] #about p,
html[dir="rtl"] #about h2,
html[dir="rtl"] #about h6,
html[dir="rtl"] #about .section-label {
  text-align: right;
}

/* ================================================
   MISC
================================================ */
.bg-blue-soft { background: #e8f4fd; }

img.placeholder-img {
  width: 100%;
  object-fit: cover;
}

#formSuccess {
  display: none;
  background: #e8f7ef;
  border-left: 4px solid #28a06a;
  color: #1a6640;
  padding: 14px 20px;
  border-radius: 12px;
  margin-top: 16px;
  font-weight: 600;
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 768px) {
  .contact-card { padding: 32px 20px; }
  .hero-logo-wrap img { width: 120px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
