/* =============================================================
   YSAT — Footer Stylesheet
   ysat-footer-style.css
   Covers: ysat-footer__main + ysat-footer__bottom
   Prepared by ThierryDev (thierrydev.me)
   ============================================================= */

/* -------------------------------------------------------------
   Brand Tokens (mirrored from ysat-brand.css)
   ------------------------------------------------------------- */
:root {
  --ysat-green:        #009444;
  --ysat-deep-green:   #007A38;
  --ysat-forest-green: #005A28;
  --ysat-mid-green:    #33A963;
  --ysat-soft-green:   #7FCB9B;
  --ysat-mint:         #D6F0E2;
  --ysat-gold:         #E8A020;
  --ysat-gold-dark:    #C87D0A;
  --ysat-near-black:   #1A1A1A;
  --ysat-dark-gray:    #4A4A4A;
  --ysat-light-gray:   #C8C8C8;
  --ysat-off-white:    #F5F5F5;
  --ysat-white:        #FFFFFF;

  --ysat-font:          'Archivo', sans-serif;
  --ysat-side-padding:  50px;
  --ysat-ease-fast:     0.18s ease;
}


/* =============================================================
   FOOTER MAIN — .ysat-footer
   ============================================================= */

.ysat-footer {
  background-color: var(--ysat-forest-green);
  padding: 36px var(--ysat-side-padding) 28px;
  width: 100%;
}

.ysat-footer__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

/* -------------------------------------------------------------
   Left column — logo + contact
   ------------------------------------------------------------- */
.ysat-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ysat-footer__logo img {
  height: 200px;
  width: auto;
  display: block;
}

.ysat-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ysat-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ysat-font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ysat-white);
  text-decoration: none;
  transition: color var(--ysat-ease-fast);
}

.ysat-footer__contact-item:hover {
  color: var(--ysat-mint);
}

.ysat-footer__contact-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transition: background-color var(--ysat-ease-fast);
}

.ysat-footer__contact-item:hover i {
  background-color: rgba(255, 255, 255, 0.22);
}

/* -------------------------------------------------------------
   Right column — offices
   ------------------------------------------------------------- */
.ysat-footer__offices {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Office region block */
.ysat-footer__region {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Region heading row — title + gold rule */
.ysat-footer__region-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ysat-footer__region-title {
  font-family: var(--ysat-font);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ysat-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  margin: 0;
}

.ysat-footer__region-rule {
  flex: 1;
  height: 2px;
  background-color: var(--ysat-gold);
  border: none;
  margin: 0;
  opacity: 0.7;
}

/* Office grid — two columns */
.ysat-footer__office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}

.ysat-footer__office h4 {
  font-family: var(--ysat-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ysat-white);
  margin: 0 0 6px;
  line-height: 1.3;
}

.ysat-footer__office p {
  font-family: var(--ysat-font);
  font-size: var(--font-size-base);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
  margin: 0;
}

/* Single-column office entry (South Sudan) */
.ysat-footer__office--full {
  grid-column: 1;
}

/* =============================================================
   FOOTER BOTTOM — .ysat-footer__bottom
   ============================================================= */

.ysat-footer__bottom {
  background-color: var(--ysat-forest-green);
  padding: 12px var(--ysat-side-padding);
  width: 100%;
}

.ysat-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 12px;
}

.ysat-footer__copyright {
  font-family: var(--ysat-font);
  font-size: var(--font-size-base);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.ysat-footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ysat-footer__bottom-links a {
  font-family: var(--ysat-font);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--ysat-white);
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 4px;
  transition: background-color var(--ysat-ease-fast),
              color var(--ysat-ease-fast);
}

.ysat-footer__bottom-links a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--ysat-white);
}


/* =============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================= */

/* 1100px — tighten office grid gap */
@media (max-width: 1100px) {
  .ysat-footer__inner {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }

  .ysat-footer__office-grid {
    gap: 20px 28px;
  }
}

/* 900px — stack brand + offices vertically */
@media (max-width: 900px) {
  .ysat-footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ysat-footer__brand {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
  }

  .ysat-footer__logo img {
    height: 120px;
  }
}

/* 768px — reduce padding */
@media (max-width: 768px) {
  .ysat-footer {
    padding: 48px 24px 32px;
  }

  .ysat-footer__bottom {
    padding: 16px 24px;
  }

  .ysat-footer__office-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ysat-footer__office--full {
    grid-column: 1;
  }
}

/* 576px — mobile layout */
@media (max-width: 576px) {
  .ysat-footer {
    padding: 40px 16px 28px;
  }

  .ysat-footer__bottom {
    padding: 14px 16px;
  }

  /* Center both copyright and links */
  .ysat-footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .ysat-footer__bottom-links {
    gap: 16px;
    justify-content: center;
  }

  /* Center the brand/logo column */
  .ysat-footer__brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ysat-footer__logo {
    display: flex;
    justify-content: center;
  }

  .ysat-footer__logo img {
    height: 130px;
  }

  /* Contacts on one horizontal line */
  .ysat-footer__contacts {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .ysat-footer__contact-item {
    font-size: var(--font-size-base);
  }
}
/* ---- Social icons ---- */
.ysat-footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ysat-footer__social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color var(--ysat-ease-fast), color var(--ysat-ease-fast);
}

.ysat-footer__social a:hover {
  background-color: var(--ysat-green);
  color: var(--ysat-white);
}

/* Social icons inside office regions */
.ysat-footer__region .ysat-footer__social {
  margin-top: 14px;
}

/* Social groups in brand column */
.ysat-footer__social-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ysat-footer__social-label {
  font-family: var(--ysat-font);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Remove margin-top override from region social */
.ysat-footer__region .ysat-footer__social {
  margin-top: 0;
}

/* Contacts in bottom bar */
.ysat-footer__bottom-contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ysat-footer__bottom-contact {
  font-family: var(--ysat-font);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--ysat-ease-fast);
}

.ysat-footer__bottom-contact:hover {
  color: var(--ysat-white);
}

.ysat-footer__bottom-contact i {
  font-size: 0.85rem;
}

/* Both social groups on same row */
.ysat-footer__socials-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}