/**
 * Footer Styles
 *
 * Footer styles for the Onwords theme extracted from STUDIO site.
 * All values are exact copies from Chrome DevTools MCP extraction.
 * Uses BEM naming convention and CSS variables from variables.css.
 */

/* ========================================
   Footer Root
   ======================================== */

.footer {
  /* Layout - from STUDIO site */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  /* Spacing - from STUDIO site */
  margin: 120px 0 0;
  padding: 80px 0 40px;
  gap: 40px;

  /* Sizing - from STUDIO site */
  max-width: 100%;

  /* Colors - from STUDIO site */
  background-color: rgb(246, 246, 246);
  color: rgb(51, 51, 51);

  /* Box Model */
  box-sizing: border-box;
  position: relative;
}

/* ========================================
   Main Container (Branding + Navigation)
   ======================================== */

.footer__container {
  /* Layout - from STUDIO site */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;

  /* Spacing - from STUDIO site */
  gap: 40px;
  padding: 0;

  /* Sizing - from STUDIO site */
  width: 100%;
  max-width: calc(100% - 64px);
}

/* ========================================
   Branding Section (Logo + Tagline)
   ======================================== */

.footer__branding {
  /* Layout - from STUDIO site */
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  /* Spacing - from STUDIO site */
  gap: 40px;

  /* Sizing - from STUDIO site */
  width: 180px;
}

.footer__logo-link {
  /* Layout */
  display: flex;
  width: 180px;
  height: 54.5938px;

  /* Styling */
  text-decoration: none;
}

.footer__logo {
  /* Sizing - from STUDIO site */
  width: 180px;
  height: 54.5938px;
  object-fit: fill;

  /* Display */
  display: block;
}

.footer__tagline {
  /* Typography - from STUDIO site */
  font-family: "Open Sans", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 24.5px;

  /* Color - from STUDIO site */
  color: rgb(34, 34, 34);

  /* Spacing */
  margin: 0;
}

/* ========================================
   Navigation Section
   ======================================== */

.footer__nav {
  /* Layout - from STUDIO site */
  display: flex;
  flex-direction: row;

  /* Spacing - from STUDIO site */
  gap: 80px;
}

.footer__menu {
  /* Layout - from STUDIO site */
  display: flex;
  flex-direction: column;

  /* Spacing - from STUDIO site */
  gap: 14px;
  padding: 0;
  margin: 0;

  /* List Style - from STUDIO site */
  list-style: none;
}

.footer__menu--left,
.footer__menu--right {
  /* Inherit from .footer__menu */
}

.footer__menu a {
  /* Layout - from STUDIO site */
  display: flex;
  align-items: center;
  flex-shrink: 0;

  /* Typography - from STUDIO site (inner <p> tag values) */
  font-family: "Open Sans", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 24.5px;

  /* Color - from STUDIO site */
  color: rgb(66, 66, 66);

  /* Styling */
  text-decoration: none;

  /* Transition - from STUDIO site */
  transition: 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

.footer__menu a:hover {
  /* Hover state (opacity or color changes if any) */
  opacity: 1;
}

/* ========================================
   External Link Icons (Font Awesome 6)
   ======================================== */

.footer__link--external {
  /* Display */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* External link icon using Font Awesome 6 */
.footer__link--external i {
  /* Font - from STUDIO site */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* Solid style */
  font-size: 14px;

  /* Color - from STUDIO site */
  color: rgb(66, 66, 66);

  /* Display */
  line-height: 1;
}

/* ========================================
   Copyright
   ======================================== */

.footer__copyright {
  /* Typography - from STUDIO site */
  font-family: "Open Sans", "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 24px;

  /* Color - from STUDIO site */
  color: rgb(66, 66, 66);

  /* Alignment - from STUDIO site */
  text-align: center;

  /* Sizing - from STUDIO site */
  width: 100%;

  /* Spacing - from STUDIO site */
  margin: 0;
  padding-top: 16px;

  /* Border - from STUDIO site */
  border-top: 1px solid rgb(226, 226, 226);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet and below (< 1140px) */
@media screen and (max-width: 1140px) {
  .footer {
    padding: 60px 0 30px;
    width: 100%;
  }

  .footer__container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 90%;
  }

  .footer__branding {
    align-items: flex-start;
  }

  .footer__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
  }

  .footer__menu {
    align-items: flex-start;
  }
}

/* Mobile and below (< 540px) */
@media screen and (max-width: 540px) {
  .footer {
    padding: var(--footer-mobile-padding);
    gap: var(--footer-gap);
    margin: var(--footer-mobile-margin-top) 0 0;
  }

  .footer__branding {
    gap: var(--footer-gap);
  }

  .footer__logo-link,
  .footer__logo {
    width: var(--footer-mobile-logo-width);
    height: auto;
  }

  .footer__nav {
    gap: var(--footer-gap);
  }

  .footer__menu {
    gap: 14px;
  }

  .footer__menu a {
    font-size: 13px;
    line-height: 22.75px;
  }
}
