/* ==========================================================================
   THEME 6 — "Friendly Rounded"  (generated base: footer2.css with re-mapped tokens)
   Palette: purple #5A2D82 · mint #6FD6A8 · lavender #F7F5FB. No red, no black.
   The hand-written design layer is appended below the base.
   ⚠ GENERATED FILE — do not edit here. Edit scripts/theme6/<this file name> (design layer)
     then run:  node scripts/build_theme6_base.js   (and bump ASSET_VERSION before deploying)
   ========================================================================== */
/* ============================================
   FOOTER — THEME 2: OBSIDIAN GOLD
   ============================================ */

:root {
  /* ===============================
     FOOTER COLORS (OBSIDIAN GOLD)
  =============================== */
  --ebft20-footer-background-color: #FFFFFF;
  --ebft20-footer-border-color: #5A2D82;
  --ebft20-top-decoration-color: #5A2D82;

  --ebft20-site-title-color: #34184F;
  --ebft20-site-description-color: #3D2C54;

  --ebft20-social-background-color: #F7F5FB;
  --ebft20-social-border-color: #ECE6F5;
  --ebft20-social-icon-color: #3D2C54;
  --ebft20-social-hover-background-color: #5A2D82;
  --ebft20-social-hover-border-color: #5A2D82;
  --ebft20-social-hover-icon-color: #FFFFFF;

  --ebft20-col-title-color: #34184F;
  --ebft20-col-title-underline-color: #5A2D82;

  --ebft20-nav-link-color: #3D2C54;
  --ebft20-nav-link-hover-color: #5A2D82;

  --ebft20-contact-text-color: #3D2C54;
  --ebft20-contact-icon-color: #6FD6A8;
  --ebft20-contact-hover-text-color: #5A2D82;

  --ebft20-bottom-background-color: #F7F5FB;
  --ebft20-bottom-border-color: #ECE6F5;
  --ebft20-bottom-text-color: #3D2C54;
  --ebft20-bottom-link-color: #34184F;
  --ebft20-bottom-link-hover-color: #5A2D82;

  /* ===============================
     FOOTER SHADOW
  =============================== */
  --ebft20-social-hover-shadow: 0 4px 12px rgba(90, 45, 130, 0.180);

  /* ===============================
     FOOTER TYPOGRAPHY
  =============================== */
  --ebft20-site-title-font-size: 1.25rem;
  --ebft20-site-title-font-weight: 700;
  --ebft20-site-title-letter-spacing: 0.05em;
  --ebft20-site-description-font-size: 0.9rem;
  --ebft20-site-description-line-height: 1.7;
  --ebft20-col-title-font-size: 1.1rem;
  --ebft20-col-title-font-weight: 700;
  --ebft20-nav-link-font-size: 0.9rem;
  --ebft20-nav-link-font-weight: 600;
  --ebft20-contact-font-size: 0.9rem;
  --ebft20-contact-font-weight: 600;
  --ebft20-contact-icon-font-size: 1.1rem;
  --ebft20-bottom-font-size: 0.85rem;
  --ebft20-creator-link-font-weight: 700;

  /* ===============================
     FOOTER SPACING
  =============================== */
  --ebft20-footer-padding: 6rem 0 0 0;
  --ebft20-container-padding: 0 2rem;
  --ebft20-col-gap: 1.25rem;
  --ebft20-logo-wrapper-gap: 0.75rem;
  --ebft20-socials-gap: 1rem;
  --ebft20-socials-margin-top: 0.5rem;
  --ebft20-col-title-padding-bottom: 0.5rem;
  --ebft20-links-list-gap: 0.8rem;
  --ebft20-contact-list-gap: 1rem;
  --ebft20-contact-item-gap: 0.75rem;
  --ebft20-bottom-padding: 1.5rem 0;
  --ebft20-bottom-container-padding: 0 2rem;
  --ebft20-bottom-container-gap: 1rem;

  /* ===============================
     FOOTER LAYOUT
  =============================== */
  --ebft20-container-max-width: 1200px;
  --ebft20-top-decoration-offset: 4px;
  --ebft20-top-decoration-height: 1px;
  --ebft20-logo-height: 36px;
  --ebft20-grid-margin-bottom: 4rem;

  /* ===============================
     FOOTER SOCIAL
  =============================== */
  --ebft20-social-width: 36px;
  --ebft20-social-height: 36px;
  --ebft20-social-hover-translate-y: -3px;

  /* ===============================
     FOOTER LINKS
  =============================== */
  --ebft20-col-title-underline-width: 30px;
  --ebft20-col-title-underline-height: 2px;
  --ebft20-nav-link-hover-translate-x: -5px;

  /* ===============================
     FOOTER CONTACT
  =============================== */
  --ebft20-contact-svg-width: 18px;
  --ebft20-contact-svg-height: 18px;
  --ebft20-contact-hover-scale: 1.1;

  /* ===============================
     FOOTER BOTTOM-BAR
  =============================== */
  --ebft20-bottom-container-max-width: 1200px;

  /* ===============================
     FOOTER BORDER
  =============================== */
  --ebft20-footer-border-width: 1px;
  --ebft20-social-border-width: 1px;
  --ebft20-bottom-border-width: 1px;
  --ebft20-radius: 0px;

  /* ===============================
     FOOTER ANIMATION
  =============================== */
  --ebft20-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ebft20-social-transition-duration: 0.3s;
  --ebft20-nav-link-transition-duration: 0.25s;
  --ebft20-contact-transition-duration: 0.3s;
  --ebft20-contact-icon-transition-duration: 0.3s;
  --ebft20-contact-svg-transition-duration: 0.3s;
  --ebft20-creator-link-transition-duration: 0.3s;

  /* ===============================
     FOOTER RESPONSIVE
  =============================== */
  --ebft20-grid-template-columns-desktop: 2fr 1fr 1fr 1.5fr;
  --ebft20-grid-template-columns-tablet: 1fr 1fr;
  --ebft20-grid-template-columns-mobile: 1fr;
  --ebft20-grid-gap-desktop: 3rem;
  --ebft20-grid-gap-tablet: 2.5rem;
  --ebft20-grid-gap-mobile: 2rem;
  --ebft20-bottom-flex-direction-desktop: row;
  --ebft20-bottom-flex-direction-tablet: column;
  --ebft20-bottom-text-align-desktop: start;
  --ebft20-bottom-text-align-tablet: center;
}

.ebft20-footer {
  position: relative;
  background-color: var(--ebft20-footer-background-color);
  border-top: var(--ebft20-footer-border-width) solid var(--ebft20-footer-border-color);
  padding: var(--ebft20-footer-padding);
  overflow: hidden;
}

/* Elegant gold line accents */
.ebft20-top-decor {
  position: absolute;
  top: var(--ebft20-top-decoration-offset);
  left: 0;
  right: 0;
  height: var(--ebft20-top-decoration-height);
  background-color: var(--ebft20-top-decoration-color);
}

.ebft20-container {
  max-width: var(--ebft20-container-max-width);
  margin: 0 auto;
  padding: var(--ebft20-container-padding);
}

.ebft20-grid {
  display: grid;
  grid-template-columns: var(--ebft20-grid-template-columns-desktop);
  gap: var(--ebft20-grid-gap-desktop);
  margin-bottom: var(--ebft20-grid-margin-bottom);
}

@media (max-width: 1024px) {
  .ebft20-grid {
    grid-template-columns: var(--ebft20-grid-template-columns-tablet);
    gap: var(--ebft20-grid-gap-tablet);
  }
}

@media (max-width: 480px) {
  .ebft20-grid {
    grid-template-columns: var(--ebft20-grid-template-columns-mobile);
    gap: var(--ebft20-grid-gap-mobile);
  }
}

/* Columns */
.ebft20-col {
  display: flex;
  flex-direction: column;
  gap: var(--ebft20-col-gap);
}

.ebft20-logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--ebft20-logo-wrapper-gap);
}

.ebft20-logo {
  height: var(--ebft20-logo-height);
  width: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: var(--ebft20-radius);
}

.ebft20-site-title {
  font-size: var(--ebft20-site-title-font-size);
  font-weight: var(--ebft20-site-title-font-weight);
  color: var(--ebft20-site-title-color);
  letter-spacing: var(--ebft20-site-title-letter-spacing);
  font-family: "El Messiri", sans-serif;
}

.ebft20-desc {
  font-size: var(--ebft20-site-description-font-size);
  color: var(--ebft20-site-description-color);
  line-height: var(--ebft20-site-description-line-height);
}

/* Social links */
.ebft20-socials {
  display: flex;
  gap: var(--ebft20-socials-gap);
  margin-top: var(--ebft20-socials-margin-top);
}

.ebft20-social-link {
  width: var(--ebft20-social-width);
  height: var(--ebft20-social-height);
  border-radius: var(--ebft20-radius);
  background: var(--ebft20-social-background-color);
  border: var(--ebft20-social-border-width) solid var(--ebft20-social-border-color);
  color: var(--ebft20-social-icon-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--ebft20-social-transition-duration) var(--ebft20-ease);
}

.ebft20-social-link:hover {
  background: var(--ebft20-social-hover-background-color);
  color: var(--ebft20-social-hover-icon-color);
  border-color: var(--ebft20-social-hover-border-color);
  transform: translateY(var(--ebft20-social-hover-translate-y));
  box-shadow: var(--ebft20-social-hover-shadow);
}

/* Titles */
.ebft20-col-title {
  font-size: var(--ebft20-col-title-font-size);
  font-weight: var(--ebft20-col-title-font-weight);
  color: var(--ebft20-col-title-color);
  position: relative;
  padding-bottom: var(--ebft20-col-title-padding-bottom);
  font-family: "El Messiri", sans-serif;
}

.ebft20-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: var(--ebft20-col-title-underline-width);
  height: var(--ebft20-col-title-underline-height);
  background-color: var(--ebft20-col-title-underline-color);
}

/* Link Lists */
.ebft20-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--ebft20-links-list-gap);
}

.ebft20-links-list a {
  font-size: var(--ebft20-nav-link-font-size);
  color: var(--ebft20-nav-link-color);
  font-weight: var(--ebft20-nav-link-font-weight);
  transition: all var(--ebft20-nav-link-transition-duration) var(--ebft20-ease);
  display: inline-block;
}

.ebft20-links-list a:hover {
  color: var(--ebft20-nav-link-hover-color);
  transform: translateX(var(--ebft20-nav-link-hover-translate-x));
}

/* Contact List */
.ebft20-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--ebft20-contact-list-gap);
}

.ebft20-contact-item {
  display: flex;
  align-items: center;
  gap: var(--ebft20-contact-item-gap);
  font-size: var(--ebft20-contact-font-size);
  color: var(--ebft20-contact-text-color);
  font-weight: var(--ebft20-contact-font-weight);
  transition: color var(--ebft20-contact-transition-duration) var(--ebft20-ease);
}

.ebft20-contact-item i {
  font-size: var(--ebft20-contact-icon-font-size);
  color: var(--ebft20-contact-icon-color);
  transition: transform var(--ebft20-contact-icon-transition-duration) var(--ebft20-ease);
}

.ebft20-contact-svg {
  width: var(--ebft20-contact-svg-width);
  height: var(--ebft20-contact-svg-height);
  color: var(--ebft20-contact-icon-color);
  flex-shrink: 0;
  transition: transform var(--ebft20-contact-svg-transition-duration) var(--ebft20-ease);
}

.ebft20-contact-item:hover {
  color: var(--ebft20-contact-hover-text-color);
}

.ebft20-contact-item:hover i,
.ebft20-contact-item:hover .ebft20-contact-svg {
  transform: scale(var(--ebft20-contact-hover-scale));
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */
.ebft20-bottom {
  border-top: var(--ebft20-bottom-border-width) solid var(--ebft20-bottom-border-color);
  background-color: var(--ebft20-bottom-background-color);
  padding: var(--ebft20-bottom-padding);
}

.ebft20-bottom-container {
  max-width: var(--ebft20-bottom-container-max-width);
  margin: 0 auto;
  padding: var(--ebft20-bottom-container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ebft20-bottom-container-gap);
  font-size: var(--ebft20-bottom-font-size);
  color: var(--ebft20-bottom-text-color);
}

@media (max-width: 768px) {
  .ebft20-bottom-container {
    flex-direction: var(--ebft20-bottom-flex-direction-tablet);
    text-align: var(--ebft20-bottom-text-align-tablet);
  }
}

.ebft20-creator-link {
  font-weight: var(--ebft20-creator-link-font-weight);
  color: var(--ebft20-bottom-link-color);
  transition: color var(--ebft20-creator-link-transition-duration) var(--ebft20-ease);
}

.ebft20-creator-link:hover {
  color: var(--ebft20-bottom-link-hover-color);
}

/* ===============================
   MOBILE RESPONSIVE (768px & 380px)
=============================== */
@media (max-width: 768px) {
  .ebft20-footer {
    padding-top: 1.75rem !important;
  }
  .ebft20-container {
    padding: 0 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .ebft20-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
    justify-items: center !important;
  }
  .ebft20-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  .ebft20-logo-wrapper {
    justify-content: center !important;
  }
  .ebft20-site-title {
    font-size: 1.15rem !important;
  }
  .ebft20-desc {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    max-width: 340px !important;
    margin: 0 auto !important;
  }
  .ebft20-col-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
  }
  .ebft20-links-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0 !important;
    list-style: none !important;
    margin: 0 !important;
  }
  .ebft20-links-list li a {
    font-size: 0.88rem !important;
  }
  .ebft20-contact-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.65rem !important;
    padding: 0 !important;
    list-style: none !important;
    margin: 0 !important;
  }
  .ebft20-contact-item {
    justify-content: center !important;
    font-size: 0.88rem !important;
    gap: 0.5rem !important;
  }
  .ebft20-socials {
    display: flex !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    margin-top: 0.5rem !important;
  }
  .ebft20-social-link {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.9rem !important;
  }
  .ebft20-bottom {
    padding: 1.25rem 0 !important;
  }
  .ebft20-bottom-container {
    flex-direction: column !important;
    gap: 0.6rem !important;
    text-align: center !important;
    padding: 0 0.75rem !important;
  }
  .ebft20-copyright {
    font-size: 0.82rem !important;
  }
  .ebft20-created-by {
    font-size: 0.82rem !important;
    display: flex !important;
    justify-content: center !important;
  }
}

@media (max-width: 380px) {
  .ebft20-desc {
    font-size: 0.82rem !important;
  }
  .ebft20-col-title {
    font-size: 1rem !important;
  }
  .ebft20-links-list li a {
    font-size: 0.82rem !important;
  }
  .ebft20-contact-item {
    font-size: 0.82rem !important;
  }
  .ebft20-copyright {
    font-size: 0.78rem !important;
  }
}

/* LTR overrides for English */
html[dir="ltr"] .ebft20-col-title::after {
  left: 0;
  right: auto;
}

html[dir="ltr"] .ebft20-links-list a:hover {
  transform: translateX(5px);
}


/* === MOBILE-COMPACT DISTRIBUTED: FOOTER 480 === */
@media (max-width: 480px) {
  .ebft20-container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-inline: 0.75rem !important;
  }
  .ebft20-bottom-container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-inline: 0.75rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: FOOTER 380 === */
@media (max-width: 380px) {
  .ebft20-container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-inline: 0.5rem !important;
  }
  .ebft20-bottom-container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-inline: 0.5rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: FOOTER 768 INLINE FIX === */
@media (max-width: 768px) {
  .ebft20-container {
    padding-inline: 0.75rem !important;
  }
  .ebft20-bottom-container {
    padding-inline: 0.75rem !important;
  }
}


/* ==========================================================================
   THEME 6 — FOOTER: deep purple with a big rounded top edge (3rem),
   mint accents, soft blobs, and a matching bottom strip.
   ========================================================================== */
body.theme-6 .ebft20-footer {
  background: var(--t6-purple-deep);
  color: rgba(255, 255, 255, .78);
  border-radius: 3rem 3rem 0 0;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  border: 0;
}
body.theme-6 .ebft20-footer::before {
  content: "";
  position: absolute; width: 320px; height: 320px; top: -140px; inset-inline-end: -100px;
  background: rgba(111, 214, 168, .12);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: t6-morph 16s ease-in-out infinite;
  pointer-events: none;
}
body.theme-6 .ebft20-top-decor { display: none; }
body.theme-6 .ebft20-logo {
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  border: 0;
}
body.theme-6 .ebft20-site-title { color: #fff; font-weight: 800; }
body.theme-6 .ebft20-desc { color: rgba(255, 255, 255, .72); line-height: 1.9; }
body.theme-6 .ebft20-col-title { color: #fff; font-weight: 800; border: 0; position: relative; padding-bottom: 12px; }
body.theme-6 .ebft20-col-title::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 34px; height: 6px; border-radius: 999px; background: var(--t6-mint);
  left: auto; right: auto; transform: none;
}
body.theme-6.lang-ar .ebft20-col-title::after { right: 0; }
body.theme-6.lang-en .ebft20-col-title::after { left: 0; }
body.theme-6 .ebft20-links-list a,
body.theme-6 .ebft20-contact-item { color: rgba(255, 255, 255, .78); transition: color .25s ease, padding .25s ease; }
body.theme-6 .ebft20-links-list a:hover,
body.theme-6 .ebft20-contact-item:hover { color: var(--t6-mint); padding-inline-start: 4px; }
body.theme-6 .ebft20-contact-svg { color: var(--t6-mint); stroke: var(--t6-mint); }
body.theme-6 .ebft20-social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff; border: 0;
  transition: background .3s ease, transform .35s var(--t6-ease), color .3s ease;
}
body.theme-6 .ebft20-social-link:hover { background: var(--t6-mint); color: var(--t6-purple-deep); transform: translateY(-3px); }

body.theme-6 .ebft20-bottom {
  background: #2a1340;
  border: 0;
  color: rgba(255, 255, 255, .6);
}
body.theme-6 .ebft20-copyright,
body.theme-6 .ebft20-created-by { color: rgba(255, 255, 255, .6); }
body.theme-6 .ebft20-creator-link { color: var(--t6-mint); }

@media (max-width: 640px) {
  body.theme-6 .ebft20-footer { border-radius: 2rem 2rem 0 0; }
}
