@charset "utf-8";

/* ============================================================
   Divi Theme Builder footer → the mockup's .site-footer
   ============================================================

   The site footer is a Theme Builder global footer built to a fixed
   recipe (README, "The footer (Theme Builder)"), each part carrying
   a class set under Advanced → Attributes:

     footer.et-l--footer
       .et_pb_section.sh-footer
         .et_pb_row.sh-footer__top          three columns
           Image .sh-footer__logo           reversed logo
           Text  .sh-footer__blurb
           Heading .sh-footer__heading      h2.et_pb_module_header
           Text  .sh-footer__list           a <ul> of links
         .et_pb_row.sh-footer__bottom       two columns
           Text  .sh-footer__copyright
           Text  .sh-footer__dua            dir="rtl" lang="ar"

   This file gives that markup the mockup's footer: footer.css
   section 6, value for value. It targets those classes, never
   Divi's numbered et_pb_*_tb_footer ones, so modules can be
   reordered without breaking it.

   Specificity. Every rule starts with `.et-db #et-boc
   .et-l.et-l--footer`, outranking Divi's stylesheet and the inline
   rules it prints for builder settings. Leave the footer's design
   settings in the builder at their defaults.

   Layout. The top row is a grid, one column and then from 48em the
   mockup's 1.4fr / 1fr / 1fr, in place of Divi's column widths: the
   builder's tablet layout is overridden, and the mockup's breakpoint
   kept (no Divi script depends on the footer's width).

   Every value is a token from tokens.css.
   ============================================================ */

/* -- The band ----------------------------------------------- */

.et-db #et-boc .et-l.et-l--footer .sh-footer {
  row-gap: 0; /* Divi spaces rows by --section-gutter (60px) */
  padding: var(--space-2xl) 0 var(--space-xl);
  font-size: var(--text-sm);
  color: var(--colour-text-inverse-muted);
  background-color: var(--colour-bg-inverse);
}

/* The rows are the mockup's .container's content box: its width less
   the gutter on each side. Sized rather than padded, so the top row's
   rule runs the width of the content, not into the gutters. */
.et-db #et-boc .et-l.et-l--footer .sh-footer .et_pb_row {
  width: calc(100% - 2 * var(--space-gutter));
  max-width: calc(var(--container-lg) - 2 * var(--space-gutter));
  margin-inline: auto;
  padding-inline: 0;
}

.et-db #et-boc .et-l.et-l--footer .sh-footer .et_pb_column {
  row-gap: 0;
  width: auto;
  max-width: none;
  margin: 0;
}

.et-db #et-boc .et-l.et-l--footer .sh-footer .et_pb_module {
  margin: 0;
}

/* Any link written into the blurb or the copyright: readable on the
   dark ground. The mockup has none; its lists are styled below. */
.et-db #et-boc .et-l.et-l--footer .sh-footer a {
  color: inherit;
}

/* The site's burgundy focus ring is invisible on burgundy. */
.et-db #et-boc .et-l.et-l--footer .sh-footer :focus-visible {
  outline: var(--focus-ring-inverse);
}

/* -- Top: logo and blurb, then two link lists ------------------ */

.et-db #et-boc .et-l.et-l--footer .sh-footer .sh-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-block: 0 var(--space-xl);
  border-bottom: var(--rule-hairline) solid var(--burgundy-800);
}

@media (min-width: 48em) {
  .et-db #et-boc .et-l.et-l--footer .sh-footer .sh-footer__top {
    grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
    gap: var(--space-2xl);
  }
}

.et-db #et-boc .et-l.et-l--footer .sh-footer .sh-footer__logo {
  line-height: 0;
}

.et-db #et-boc .et-l.et-l--footer .sh-footer .sh-footer__logo img {
  width: min(100%, 15rem);
  height: auto;
}

.et-db #et-boc .et-l.et-l--footer .sh-footer .sh-footer__blurb {
  max-width: var(--measure-narrow);
  margin-top: var(--space-md);
  line-height: var(--leading-relaxed);
}

.et-db #et-boc .et-l.et-l--footer .sh-footer .sh-footer__heading {
  margin-bottom: var(--space-md);
}

.et-db #et-boc .et-l.et-l--footer .sh-footer .sh-footer__heading h2 {
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--colour-text-inverse);
}

/* Divi gives footer lists bullets, 1em of indent, 23px below and a
   26px line height (.et-l--footer ul). */
.et-db #et-boc .et-l.et-l--footer .sh-footer .sh-footer__list ul {
  display: grid;
  gap: var(--space-2xs);
  padding: 0;
  line-height: inherit;
  list-style: none;
}

.et-db #et-boc .et-l.et-l--footer .sh-footer .sh-footer__list a {
  color: var(--colour-text-inverse-muted);
}

.et-db #et-boc .et-l.et-l--footer .sh-footer .sh-footer__list a:hover {
  color: var(--colour-text-inverse);
  text-decoration: underline;
  text-underline-offset: var(--space-3xs);
}

/* -- Bottom: copyright and du'a ------------------------------- */

.et-db #et-boc .et-l.et-l--footer .sh-footer .sh-footer__bottom {
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-lg) 0;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
}

.et-db #et-boc .et-l.et-l--footer .sh-footer .sh-footer__bottom .et_pb_column {
  flex: 0 1 auto;
}

.et-db #et-boc .et-l.et-l--footer .sh-footer .sh-footer__dua {
  font-family: var(--font-arabic);
  font-size: var(--text-base);
  line-height: var(--leading-arabic-inline);
  color: var(--colour-text-inverse);
}
