/* Mini Morgans Nursery, site header */

@keyframes mmDropIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.mm-header {
  position: relative;
  z-index: 60;
  background: #f7f1e7;
}

.mm-header__banner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.mm-header__utility {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 22px;
}

.mm-header__phone {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4a3327;
  font-size: 14px;
  font-weight: 700;
}

.mm-header__phone:hover {
  color: #a8623b;
}

.mm-header__phone i {
  font-size: 13px;
  color: #a8623b;
}

.mm-header__socials {
  display: flex;
  gap: 13px;
  font-size: 17px;
}

.mm-header__socials a {
  color: #a8623b;
}

.mm-header__socials a:hover {
  color: #84492a;
}

.mm-header__logo-link {
  grid-column: 2;
  justify-self: center;
  display: block;
}

.mm-header__logo {
  height: 96px;
  width: auto;
  display: block;
}

.mm-header__actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.mm-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  background: #6b4530;
  color: #fff;
  padding: 14px 24px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mm-header__cta:hover {
  background: #4d3122;
  color: #fff;
}

.mm-header__cta i {
  font-size: 13px;
}

.mm-header__cta--outline {
  background: transparent;
  border: 1px solid #6b4530;
  color: #6b4530;
  padding: 13px 22px;
}

.mm-header__cta--outline:hover {
  background: #6b4530;
  color: #fff;
}

.mm-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: none;
  background: transparent;
  color: #4a3327;
  font-size: 27px;
  cursor: pointer;
}

/* ---------- Desktop nav ---------- */

.mm-nav {
  position: relative;
  z-index: 50;
  border-top: 1px solid #e7dbcc;
  border-bottom: 1px solid #e7dbcc;
}

.mm-nav__inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  gap: 46px;
}

.mm-nav-item {
  position: relative;
}

.mm-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 18px 0;
  color: #4a3327;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.mm-nav-link:hover {
  color: #a8623b;
}

.mm-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: #a8623b;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mm-nav-link:hover::after,
.mm-nav-link.mm-active::after {
  transform: scaleX(1);
}

.mm-nav-link .fa-caret-down {
  font-size: 11px;
  color: #b08a68;
  transition: transform 0.28s ease;
}

.mm-nav-item:hover .fa-caret-down,
.mm-nav-item:focus-within .fa-caret-down {
  transform: rotate(180deg);
}

.mm-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  padding: 10px 0;
  background: #fdfbf7;
  border: 1px solid #e7dbcc;
  border-radius: 4px;
  box-shadow: 0 14px 36px rgba(62, 44, 33, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mm-dropdown--wide {
  min-width: 266px;
}

.mm-nav-item:hover .mm-dropdown,
.mm-nav-item:focus-within .mm-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: mmDropIn 0.22s ease both;
}

.mm-dropdown a {
  display: block;
  padding: 11px 22px;
  color: #4a3327;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.mm-dropdown a:hover,
.mm-dropdown a:focus {
  background: #f7f1e7;
  color: #a8623b;
  padding-left: 28px;
}

/* ---------- Mobile menu ---------- */

.mm-mobile-menu {
  border-bottom: 1px solid #e7dbcc;
  background: #fdfbf7;
}

.mm-mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding: 14px 22px 26px;
}

.mm-mobile-link {
  padding: 12px 2px;
  border-bottom: 1px solid #f0e6d9;
  color: #a8623b;
  font-size: 15px;
  font-weight: 700;
}

.mm-mobile-section {
  padding: 16px 2px 6px;
  color: #a8623b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mm-mobile-sublink {
  padding: 10px 2px;
  color: #4a3327;
  font-size: 15px;
  font-weight: 600;
}

.mm-mobile-link--primary {
  margin-top: 8px;
  padding: 12px 2px;
  border-top: 1px solid #f0e6d9;
  color: #4a3327;
  font-size: 15px;
  font-weight: 700;
}

.mm-mobile-link--plain {
  padding: 12px 2px;
  color: #4a3327;
  font-size: 15px;
  font-weight: 700;
}

.mm-mobile-link.mm-active-m,
.mm-mobile-link--primary.mm-active-m,
.mm-mobile-link--plain.mm-active-m,
.mm-mobile-sublink.mm-active-m {
  color: #a8623b;
}

.mm-mobile-cta {
  margin-top: 16px;
  padding: 15px 22px;
  background: #6b4530;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
}

.mm-mobile-cta:hover,
.mm-mobile-cta:focus-visible {
  background: #4f3122;
  color: #fff;
}

.mm-mobile-cta--outline {
  background: transparent;
  border: 1px solid #6b4530;
  color: #6b4530;
}

.mm-mobile-cta--outline:hover,
.mm-mobile-cta--outline:focus-visible {
  background: #6b4530;
  color: #fff;
}

.mm-mobile-cta--outline + .mm-mobile-cta {
  margin-top: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .mm-header__actions {
    gap: 10px;
  }

  .mm-header__cta {
    padding: 13px 16px;
    font-size: 12px;
    letter-spacing: 0.03em;
  }

  .mm-header__cta--outline {
    padding: 12px 15px;
  }
}

@media (max-width: 980px) {
  .mm-nav {
    display: none !important;
  }

  .mm-header__cta {
    display: none !important;
  }

  .mm-hamburger {
    display: inline-flex !important;
  }
}

@media (min-width: 981px) {
  .mm-mobile-menu {
    display: none !important;
  }
}

@media (max-width: 620px) {
  .mm-header__utility {
    display: none !important;
  }

  .mm-header__banner {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .mm-header__logo {
    height: 74px !important;
  }
}
