/* ============================================================
   MADE FOR ONE — HEADER & FOOTER STYLES
   assets/css/layout.css
   ============================================================ */


/* ------------------------------------------------------------
   SKIP LINK (accessibility)
   ------------------------------------------------------------ */
.mfo-skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--mfo-forest);
  color: var(--mfo-linen);
  padding: 8px 16px;
  border-radius: var(--mfo-r-sm);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.mfo-skip-link:focus {
  top: 16px;
}


/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
.mfo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--mfo-linen);
  border-bottom: 1px solid var(--mfo-stone);
  transition: box-shadow 0.2s ease;
}

.mfo-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(26, 26, 24, 0.06);
}

.mfo-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}


/* Logo */
.mfo-header__logo {
  text-decoration: none;
  flex-shrink: 0;
}

.mfo-header__logo-text {
  font-family: var(--mfo-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--mfo-forest);
  line-height: 1;
}

.mfo-header__logo-img {
  height: 36px;
  width: auto;
  display: block;
}


/* Navigation */
.mfo-nav {
  flex: 1;
}

.mfo-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mfo-nav__list a {
  font-size: 14px;
  font-weight: 400;
  color: var(--mfo-bark);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.mfo-nav__list a:hover,
.mfo-nav__list .current-menu-item > a {
  color: var(--mfo-forest);
}

/* Dropdown */
.mfo-nav__list .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--mfo-white);
  border: 1px solid var(--mfo-stone);
  border-radius: var(--mfo-r-md);
  padding: 8px 0;
  min-width: 180px;
  list-style: none;
  margin: 0;
  box-shadow: 0 8px 24px rgba(26, 26, 24, 0.08);
}

.mfo-nav__list .menu-item-has-children {
  position: relative;
}

.mfo-nav__list .menu-item-has-children:hover > .sub-menu {
  display: block;
}

.mfo-nav__list .sub-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
}

.mfo-nav__list .sub-menu a:hover {
  background-color: var(--mfo-dew);
}


/* Header actions */
.mfo-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Cart icon */
.mfo-header__cart {
  position: relative;
  color: var(--mfo-bark);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}
.mfo-header__cart:hover {
  color: var(--mfo-forest);
}

.mfo-header__cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--mfo-forest);
  color: var(--mfo-linen);
  font-size: 10px;
  font-weight: 500;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Header CTA button — slightly smaller than page CTAs */
.mfo-header__cta {
  padding: 9px 18px;
  font-size: 13px;
}


/* Burger (mobile) */
.mfo-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--mfo-r-xs);
  transition: background-color 0.2s;
}
.mfo-header__burger:hover {
  background-color: var(--mfo-dew);
}
.mfo-header__burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: var(--mfo-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Burger open state */
.mfo-header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.mfo-header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mfo-header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* Scroll shadow */
.mfo-header.is-scrolled {
  box-shadow: 0 1px 0 var(--mfo-stone), 0 4px 16px rgba(26,26,24,0.04);
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.mfo-footer {
  background-color: var(--mfo-ink);
  color: var(--mfo-stone);
}

.mfo-footer__main {
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mfo-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}


/* Brand column */
.mfo-footer__logo {
  display: inline-block;
  font-family: var(--mfo-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--mfo-linen);
  text-decoration: none;
  margin-bottom: 14px;
}

.mfo-footer__tagline {
  font-size: 13px;
  color: var(--mfo-pebble);
  line-height: 1.65;
  margin-bottom: 20px;
}

.mfo-footer__social {
  display: flex;
  gap: 12px;
}

.mfo-footer__social-link {
  color: var(--mfo-pebble);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}
.mfo-footer__social-link:hover {
  color: var(--mfo-sage);
}


/* Columns */
.mfo-footer__col-title {
  font-family: var(--mfo-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mfo-pebble);
  margin-bottom: 16px;
}

.mfo-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mfo-footer__links a {
  font-size: 14px;
  color: var(--mfo-stone);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mfo-footer__links a:hover {
  color: var(--mfo-sage);
}


/* Trust list */
.mfo-footer__trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mfo-footer__trust li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--mfo-stone);
  line-height: 1.5;
}

.mfo-footer__trust-icon {
  color: var(--mfo-sage);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}


/* Bottom bar */
.mfo-footer__bottom {
  padding: 20px 0;
}

.mfo-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.mfo-footer__copy {
  font-size: 12px;
  color: var(--mfo-pebble);
  margin: 0;
}

.mfo-footer__legal {
  display: flex;
  gap: 20px;
}

.mfo-footer__legal a {
  font-size: 12px;
  color: var(--mfo-pebble);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mfo-footer__legal a:hover {
  color: var(--mfo-sage);
}

.mfo-footer__payments {
  display: flex;
  gap: 10px;
  margin: 0;
}

.mfo-footer__payments span {
  font-size: 11px;
  font-weight: 500;
  color: var(--mfo-pebble);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3px 8px;
  border-radius: var(--mfo-r-xs);
  letter-spacing: 0.03em;
}


/* ------------------------------------------------------------
   RESPONSIVE — HEADER
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .mfo-header__cta {
    display: none;
  }

  .mfo-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--mfo-linen);
    border-bottom: 1px solid var(--mfo-stone);
    padding: 16px 24px 24px;
    z-index: 99;
  }

  .mfo-nav.is-open {
    display: block;
  }

  .mfo-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .mfo-nav__list > li {
    width: 100%;
    border-bottom: 1px solid var(--mfo-dew);
  }

  .mfo-nav__list > li > a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
  }

  .mfo-nav__list .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 8px 16px;
  }

  .mfo-header__burger {
    display: flex;
  }

  .mfo-header__inner {
    position: relative;
  }
}


/* ------------------------------------------------------------
   RESPONSIVE — FOOTER
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .mfo-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .mfo-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .mfo-footer__grid {
    grid-template-columns: 1fr;
  }

  .mfo-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .mfo-footer__payments {
    flex-wrap: wrap;
  }
}