/* ============================================================
   Footer — Global Component
   Desktop: 4-col on #FA6900 bg + black bottom bar
   Mobile:  stacked vertical @ max-width 639.98px
   ============================================================ */

/* ── Footer wrapper ─────────────────────────────────────────── */
.site-footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fa6900;
  overflow: hidden;
}
.site-footer__col.site-footer__col--offices svg {
  width: 1.125rem;
  height: auto;
}
.footer-mid-col {
  flex: 1;
  display: flex;
}
/* ── Main area ─────────────────────────────────────────────── */
.site-footer__main {
  width: 100%;
}

/* ── Inner 4-col row ──────────────────────────────────────── */
/* Desktop height: 533px = 33.3125rem */
.site-footer__inner {
  display: flex;
  width: 100%;
  height: 33.3125rem;
  align-items: stretch;
  justify-content: center;
}

/* ── Column base ─────────────────────────────────────────── */
.site-footer__col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ── Col 1 — Brand ──────────────────────────────────────── */
/* Width 442px = 27.625rem, pt 47px = 2.9375rem, pb 34px = 2.125rem, px 51px = 3.1875rem */
.site-footer__col--brand {
  width: 27.625rem;
  flex-shrink: 0;
  padding-top: 2.9375rem;
  padding-bottom: 2.125rem;
  padding-left: 3.1875rem;
  padding-right: 3.1875rem;
  border-right: 1px solid rgba(19, 19, 19, 0.4);
  justify-content: space-between;
  align-items: center;
}

.site-footer__brand-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.site-footer__logo-link {
  display: inline-block;
  line-height: 0;
}

/* Logo: 320px wide = 20rem */
.site-footer__logo {
  width: 20rem;
  height: auto;
  display: block;
}

/* Tagline — shown on both desktop and mobile, italic + underlined */
.site-footer__tagline {
  display: block;
  font-family: "Lexend Deca", sans-serif;
  font-size: 1rem; /* 16px / 16 — visible at ~14–16px in design */
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: -0.0175rem; /* -0.28px */
  color: #ffffff;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  margin-top: 0.5rem;
}

/* Description: 16px light, centered, width 308px = 19.25rem */
/* mt 20px = 1.25rem */
.site-footer__desc {
  width: 21.25rem;
  font-family: "Lexend Deca", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.02rem;
  color: #ffffff;
  text-align: center;
  margin-top: 1.25rem;
}

/* Social icons row: gap 20px = 1.25rem, icon size 48px = 3rem */
.site-footer__socials {
  display: flex;
  align-items: center;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 62.5rem;
  background-color: #131313;
  overflow: hidden;
  flex-shrink: 0;
  transition: opacity 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.site-footer__social-link + .site-footer__social-link {
  margin-left: 1.25rem;
}

/* YouTube & TikTok icons are full-bleed (transparent bg in Figma) */
.site-footer__social-link--no-bg {
  background-color: transparent;
  border-radius: 0;
  overflow: visible;
}

/* Member links shown BOLD in desktop col 3 (Figma screenshot shows semibold/600) */
.site-footer__col--members .site-footer__nav-link {
  font-weight: 600;
  color: var(--Body-White-100, #fff);

  /* PC/14/14-R-120 */
  font-family: "Lexend Deca";
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 1.05rem */
  letter-spacing: -0.00875rem;
}

.site-footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: #131313;
  border-radius: 50%;
}

.site-footer__social-icon img {
  width: 1.5rem;
  height: auto;
  display: block;
}

@media (min-width: 1024px) {
  .site-footer__social-link:hover {
    opacity: 0.75;
  }
  .site-footer__col--offices {
    padding-top: 2rem !important;
  }
  .site-footer__factories-section,
  .site-footer__contact-section {
    margin-top: 1.7rem !important;
  }
}

.site-footer__social-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ── Cols 2, 3, 4 — py 36px = 2.25rem ─────────────────────── */
/* Col2: space-between pushes profile/download to bottom on desktop */
.site-footer__col--info {
  min-width: 0;
  margin-right: 3.75rem;
  width: 12.5rem;
  padding-top: 2rem;
  padding-bottom: 2.25rem;
}

.site-footer__col--members {
  flex: 1;
  min-width: 0;
  padding-top: 2rem;
  padding-bottom: 2.25rem;
  border-right: 1px solid rgba(19, 19, 19, 0.4);
}

/* Nav padding inside col2 and col3: gap-[60px] between heading groups = pl 60px = 3.75rem */
.site-footer__col--info .site-footer__nav,
.site-footer__col--info .site-footer__profile,
.site-footer__col--members .site-footer__nav {
  padding-left: 2rem;
}

/* Col 4: pr 40px = 2.5rem, pl matches col2/3 = 3.75rem */
.site-footer__col--offices {
  width: 36.19rem;
  min-width: 0;
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
  padding-right: 2.5rem;
  padding-left: 2rem;
}

/* ── Nav headings: 12px regular, rgba(255,255,255,0.8), uppercase ── */
/* line-height 1.5, letter-spacing -0.18px → -0.01125rem */
.site-footer__nav-heading {
  font-family: "Lexend Deca", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  /* letter-spacing: -0.01125rem; */
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ── Nav lists ─────────────────────────────────────────────── */
.site-footer__nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__nav-item + .site-footer__nav-item {
  margin-top: 0.875rem;
}

/* Links: 14px regular, white, line-height 1.2, ls -0.14px = -0.00875rem */
.site-footer__nav-link {
  font-family: "Lexend Deca", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.00875rem;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  transition: opacity 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

@media (min-width: 1024px) {
  .site-footer__nav-link:hover {
    opacity: 0.75;
    text-decoration: underline;
  }
}

.site-footer__nav-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ── Profile / Download section ──────────────────────────── */
/* margin-top 32px = 2rem separating nav from profile in col2 */
.site-footer__profile {
  margin-top: 2rem;
}

/* Download btn: white bg, dark text, px 24px = 1.5rem, py 12px = 0.75rem */
.site-footer__download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  background-color: #ffffff;
  color: #131313;
  text-decoration: none;
  font-family: "Lexend Deca", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.00875rem;
  text-transform: uppercase;
  transition: background-color 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.site-footer__download-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .site-footer__download-btn:hover {
    background-color: rgba(255, 255, 255, 0.88);
  }
}

.site-footer__download-icon {
  margin-left: 0.5rem;
  width: 1rem;
  height: 1rem;
  display: block;
  flex-shrink: 0;
}

/* ── Address sections (col 4) ────────────────────────────── */
.site-footer__offices-section,
.site-footer__factories-section,
.site-footer__contact-section {
  display: flex;
  flex-direction: column;
}
.site-footer__factories-section,
.site-footer__contact-section {
  margin-top: 2rem;
}

/* gap-[12px] between sections inside col4 handled by col4 justify-content: space-between */

/* Address list: gap 10px = 0.625rem between items */
.site-footer__address-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__address-item {
  display: flex;
  align-items: center;
  width: 100%;
}

.site-footer__address-item + .site-footer__address-item {
  margin-top: 0.625rem;
}

/* Icon column: 18px icon = 1.125rem, row height 26px = 1.625rem */
.site-footer__address-icon {
  display: flex;
  align-items: center;
  height: 1.625rem;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.site-footer__address-icon img {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
}

/* Text: composite — font-size 0 on wrapper, spans have own size */
.site-footer__address-text {
  min-width: 0;
  font-family: "Lexend Deca", sans-serif;
  font-size: 0;
  color: #ffffff;
}

/* Office name: 14px regular (desktop), letter-spacing -0.14px */
.site-footer__address-name {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.00875rem;
  color: #ffffff;
}

/* Office address: 14px light, rgba(255,255,255,0.8), ls -0.14px */
.site-footer__address-detail {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.00875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 0.25rem;
}

/* ── Contact list — 2-col grid on desktop ────────────────── */
/* gap-[16px] between two columns = 1rem */
.site-footer__contact-list {
  grid-template-columns: 1.07fr 1fr;
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
}

/* Row gap (row 2 items) */
.site-footer__contact-item:nth-child(n + 3) {
  margin-top: 0.625rem;
}

.site-footer__contact-value {
  font-family: "Lexend Deca", sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.013125rem;
  color: #ffffff;
  text-decoration: none;
  margin-left: 0.25rem;
  display: inline;
}

a.site-footer__contact-value:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  a.site-footer__contact-value:hover {
    text-decoration: underline;
    opacity: 0.9;
  }
}

/* Tax code line wraps to 2 lines */
.site-footer__contact-value--tax {
  flex-direction: column;
}

/* ── Bottom bar ──────────────────────────────────────────── */
/* bg #131313, py 4px = 0.25rem, px 32px = 2rem, gap 12px = 0.75rem */
.site-footer__bottom {
  background-color: #131313;
  width: 100%;
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Copyright + design-by: 12px regular, white, ls -0.18px = -0.01125rem */
.site-footer__copyright,
.site-footer__design-by {
  font-family: "Lexend Deca", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01125rem;
  color: #ffffff;
  white-space: nowrap;
}

/* Bullet dot: 6px circle, white, margin 12px = 0.75rem each side */
.site-footer__dot {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: #ffffff;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* ============================================================
   Floating Social Sidebar — fixed right side
   px 12px = 0.75rem, py 4px + gap 17px
   ============================================================ */
.social-sidebar {
  position: fixed;
  right: 0.75rem;
  bottom: 1.25rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem;
}

.social-sidebar__icons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* gap 17px = 1.0625rem between social links */
.social-sidebar__link + .social-sidebar__link {
  margin-top: 1.0625rem;
}

.social-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: opacity 400ms cubic-bezier(0.47, 0, 0.01, 1.01),
    transform 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.social-sidebar__link:focus-visible {
  outline: 2px solid #fa6900;
  outline-offset: 2px;
  border-radius: 50%;
}

@media (min-width: 1024px) {
  .social-sidebar__link:hover {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

/* Messenger: 44px = 2.75rem */
.social-sidebar__link:nth-child(1) .social-sidebar__icon {
  width: 2.75rem;
  height: 2.75rem;
}

/* Zalo: ~44px */
.social-sidebar__link:nth-child(2) .social-sidebar__icon {
  width: 2.75rem;
  height: 2.75rem;
}

/* WhatsApp: 48px = 3rem */
.social-sidebar__link:nth-child(3) .social-sidebar__icon {
  width: 3rem;
  height: 3rem;
}

/* Back-to-top button: 46px = 2.875rem, margin-top 14px = 0.875rem */
.social-sidebar__back-top {
  margin-top: 0.875rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Hidden until scrolled */
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 400ms cubic-bezier(0.47, 0, 0.01, 1.01),
    transform 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.social-sidebar__back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.social-sidebar__back-top:focus-visible {
  outline: 2px solid #fa6900;
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .social-sidebar__back-top:hover {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

.social-sidebar__back-top .social-sidebar__icon {
  width: 2.875rem;
  height: 2.875rem;
}

.social-sidebar__icon {
  display: block;
}

/* ============================================================
   Mobile Overrides — max-width 639.98px
   All values measured from mobile Figma: 375px wide, 16px side padding
   Inner content = 343px
   ============================================================ */
@media screen and (max-width: 639.98px) {
  /* ── Inner: stacked, wrap for 2-col nav ──────────────── */
  /* Mobile: py 30px = 1.875rem, px 16px = 1rem */
  .site-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    align-items: flex-start;
    padding-top: 1.875rem;
    padding-bottom: 1.875rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* ── Ordering ─────────────────────────────────────────── */
  .site-footer__col--brand {
    order: 1;
  }
  .footer-mid-col {
    flex: unset;
    width: 100%;
    order: 2;
  }
  .site-footer__col--info {
    order: 2;
  }
  .site-footer__col--members {
    order: 3;
  }
  .site-footer__col--offices {
    order: 4;
  }

  /* ── Brand col: full width, centered ─────────────────── */
  /* gap-[28px] below brand block: margin-bottom 1.75rem */
  .site-footer__col--brand {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    height: auto;
    padding: 0;
    border-right: none;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1.75rem;
  }
  .site-footer__offices-section .site-footer__nav-heading,
  .site-footer__profile .site-footer__nav-heading,
  .site-footer__factories-section .site-footer__nav-heading,
  .site-footer__contact-section .site-footer__nav-heading {
    letter-spacing: -0.01125rem;
    margin-bottom: 0.75rem;
  }

  .site-footer__address-item {
    height: 2.45rem;
    align-items: start;
  }
  /* Logo: 280px = 17.5rem on mobile */
  .site-footer__logo {
    width: 17.5rem;
    height: auto;
  }

  /* Tagline mobile: 14px (override desktop 16px) */
  .site-footer__tagline {
    font-size: 0.875rem;
  }

  /* Desc: 14px light, width 294px = 18.375rem, mt 16px = 1rem */
  .site-footer__desc {
    font-size: 0.875rem;
    width: 18.375rem;
    text-align: center;
    margin-top: 1rem;
  }

  /* Socials: mt 20px = 1.25rem, icon size 44px = 2.75rem */
  .site-footer__socials {
    margin-top: 1.75rem;
  }

  .site-footer__social-link {
    width: 2.75rem;
    height: 2.75rem;
  }

  .site-footer__social-link--no-bg {
    width: 2.75rem;
    height: 2.75rem;
  }

  .site-footer__social-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  /* ── Col 2 (info) & Col 3 (members): 2-col side-by-side ── */
  /* gap-[30px] between them: col2 pr 0.9375rem, col3 pl 0.9375rem */
  .site-footer__col--info {
    flex: 0 0 50%;
    max-width: 50%;
    height: auto;
    width: 9.87rem;

    padding: 0;
    padding-right: 0.9375rem;
    border-right: none;
    justify-content: flex-start;
    margin-right: 1.87rem;
    flex: unset;
  }

  .site-footer__col--members {
    width: 9.87rem;
    flex: 0 0 50%;
    max-width: 50%;
    height: auto;
    padding: 0;
    padding-left: 0rem;
    border-right: none;
    flex: unset;
  }

  /* Remove nav left padding on mobile */
  .site-footer__col--info .site-footer__nav,
  .site-footer__col--info .site-footer__profile,
  .site-footer__col--members .site-footer__nav {
    padding-left: 0;
  }

  /* Profile section: mt 30px = 1.875rem gap from nav */
  .site-footer__profile {
    margin-top: 1.875rem;
    width: fit-content;
  }

  /* Download btn size same on mobile */
  .site-footer__download-btn {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    white-space: nowrap;
  }

  /* ── Col 4 (offices): full width, mt 30px = 1.875rem ─── */
  .site-footer__col--offices {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    height: auto;
    padding: 0;
    margin-top: 1.875rem;
    justify-content: flex-start;
  }

  /* Sections spacing: gap 12px = 0.75rem between sections */
  /* .site-footer__offices-section {
    margin-bottom: 0.75rem;
  } */
  .site-footer__factories-section .site-footer__address-item {
    min-height: 2.81rem;
  }
  .site-footer__factories-section .site-footer__address-detail {
    line-height: 1.5;
  }
  .site-footer__factories-section,
  .site-footer__contact-section {
    margin-top: 1rem;
  }
  .site-footer__factories-section {
    margin-bottom: 0.75rem;
    margin-top: 1.75rem;
  }

  /* Address name: Medium weight on mobile */
  .site-footer__address-name {
    font-weight: 500;
  }

  /* Address detail: full white on mobile */
  .site-footer__address-detail {
    color: #ffffff;
    line-height: 1.3;
  }

  /* Contact list: single column on mobile */
  .site-footer__contact-list {
    grid-template-columns: 1fr;
  }

  .site-footer__contact-item {
    flex: none;
    max-width: 100%;
    padding-right: 0;
  }

  .site-footer__contact-item + .site-footer__contact-item {
    margin-top: 0.75rem;
  }

  .site-footer__contact-item:nth-child(n + 3) {
    margin-top: 0.75rem;
  }

  /* ── Bottom bar — same padding on mobile ─────────────── */
  .site-footer__bottom-inner {
    justify-content: center;
  }

  /* ── Social sidebar: smaller on mobile ───────────────── */
  .social-sidebar {
    right: 0.5rem;
    bottom: 1rem;
  }
  .site-footer__contact-item--phone {
    order: 1;
  }
  .site-footer__contact-item--web {
    order: 3;
  }
  .site-footer__contact-item--email {
    order: 2;
  }
  .site-footer__contact-item--tax {
    width: 12.06rem;
    order: 4;
  }
}
