/* Header, nav, and footer — ported from custom.css "03. Header css" and
   "17. Footer css", with slicknav/Bootstrap-collapse swapped for a plain
   off-canvas panel (see assets/js/main.js) and jQuery removed entirely. */

/* ---- Topbar ---- */

.topbar {
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-divider);
  padding: 12px 0;
}

.topbar-contact-info ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 30px;
}

.topbar-contact-info ul li {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--chrome-text);
  line-height: 1.4em;
}

.topbar-contact-info ul li img {
  max-width: 18px;
  margin-right: 10px;
}

.topbar-contact-info ul li a {
  color: inherit;
  transition: color 0.3s ease-in-out;
}

.topbar-contact-info ul li:hover a {
  color: var(--accent);
}

/* ---- Header / nav ---- */

.main-header {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
}

.header-sticky {
  position: relative;
  top: 0;
  background: transparent;
  border-bottom: 1px solid var(--chrome-divider);
  transition: transform 0.3s ease-in-out;
}

.header-sticky.hide {
  transform: translateY(-100%);
}

.header-sticky.active {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(0);
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-divider);
}

/* A non-"none" transform on .header-sticky (above) makes it the containing
   block for its position:fixed descendants — including the off-canvas
   .main-menu, whose `inset: 0` would then resolve against the header's own
   small box instead of the viewport, collapsing the mobile panel down to
   header height. Neutralise the transform while the panel is open. */
.header-sticky:has(.main-menu.is-open) {
  transform: none;
}

.navbar {
  padding: 25px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
}

.navbar-brand__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar-brand__mark {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--chrome-text);
}

.navbar-brand__divider {
  color: var(--chrome-text);
  opacity: 0.5;
  font-size: 1rem;
}

.main-menu {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-menu-wrapper {
  flex: 1;
  text-align: center;
}

.nav-menu-wrapper > ul {
  display: inline-flex;
  align-items: center;
}

.main-menu ul li {
  margin: 0 10px;
}

/* Regular nav items get position:relative (harmless default for any future
   pseudo-element positioning); .has-submenu deliberately does NOT, so its
   .mega-menu can bubble up to .header-sticky and center on the viewport —
   see the comment on .has-submenu below. */
.main-menu ul li:not(.has-submenu) {
  position: relative;
}

.main-menu ul li a {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2em;
  padding: 12px 10px;
  color: var(--chrome-text);
  text-transform: uppercase;
  transition: color 0.3s ease-in-out;
}

.main-menu ul li a:hover,
.main-menu ul li a.is-active {
  color: var(--accent);
}

.header-btn .btn-default {
  padding: 14px 36px 14px 20px;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 95;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  flex-shrink: 0;
}

.nav-toggle__bar {
  width: 22px;
  height: 3px;
  margin-inline: auto;
  background-color: var(--white);
  border-radius: 6px;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(-45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(45deg);
}

/* ---- Mega menu (desktop only — see the @media block below for mobile) ---- */

.has-submenu {
  /* Deliberately NOT position:relative — .mega-menu needs to position
     itself against .header-sticky (full viewport width, further up the
     tree) so it's always centered on the page rather than on whichever
     nav item happens to trigger it. A trigger positioned off-centre in
     the nav (e.g. "Lavish Hair & Beauty") would otherwise push a wide
     mega-menu panel past the viewport edge. */
}

.has-submenu > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  margin-bottom: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease-in-out;
  opacity: 0.7;
}

.has-submenu.is-open > a::after,
.has-submenu:focus-within > a::after {
  transform: rotate(-135deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  max-width: 90vw;
  display: flex;
  gap: 30px;
  background: var(--chrome-bg);
  border: 1px solid var(--chrome-divider);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out, visibility 0.25s;
  z-index: 200;
  text-align: left;
}

.has-submenu.is-open .mega-menu,
.has-submenu:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu__columns {
  display: flex;
  gap: 30px;
  flex: 1 1 auto;
  min-width: 0;
}

.mega-menu__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 280px;
  min-width: 240px;
}

.mega-menu__col li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease-in-out;
}

.mega-menu__col li a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mega-menu__link-title {
  display: block;
  color: var(--chrome-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  transition: color 0.2s ease-in-out;
}

.mega-menu__col li a:hover .mega-menu__link-title {
  color: var(--accent);
}

.mega-menu__link-desc {
  display: block;
  margin-top: 2px;
  color: var(--chrome-text);
  opacity: 0.55;
  font-size: 12px;
  line-height: 1.4;
  text-transform: none;
}

.mega-menu .mega-menu__featured {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.mega-menu__featured img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mega-menu__featured:hover img {
  transform: scale(1.06);
}

.mega-menu__featured-body {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-menu__featured-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mega-menu__featured-cta {
  color: var(--accent);
  font-size: 12px;
}

/* Drop the decorative image panel on tighter desktop/laptop widths so the
   service columns keep full room to breathe rather than being squeezed. */
@media (max-width: 1199px) {
  .mega-menu .mega-menu__featured {
    display: none;
  }
}

@media (max-width: 991px) {
  .mega-menu,
  .has-submenu > a::after {
    display: none;
  }
}

@media (max-width: 991px) {
  .main-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    background: var(--chrome-bg);
    padding: 100px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 90;
  }

  .main-menu.is-open {
    transform: translateX(0);
  }

  .nav-menu-wrapper {
    text-align: left;
  }

  .nav-menu-wrapper > ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .main-menu ul li {
    margin: 0;
    width: 100%;
  }

  .main-menu ul li a {
    display: block;
    padding: 10px 0;
  }

  .header-btn {
    margin-top: 20px;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ---- Footer ---- */

.main-footer {
  position: relative;
  padding: 100px 0 0;
  border-top: 1px solid var(--chrome-divider);
}

.main-footer .container {
  position: relative;
  z-index: 2;
}

.footer-header {
  border-bottom: 1px solid var(--chrome-divider);
  padding-bottom: 40px;
  margin-bottom: 60px;
}

.about-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  border-right: 1px solid var(--chrome-divider);
  padding-right: 40px;
}

.footer-logo__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo__mark {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--chrome-text);
}

.about-footer-content {
  max-width: 780px;
}

.about-footer-content p {
  color: var(--chrome-text);
  opacity: 0.85;
  margin-bottom: 0;
}

.footer-social-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-social-links ul li a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--chrome-divider);
  border-radius: 50%;
  color: var(--chrome-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.3s ease-in-out;
}

.footer-social-links ul li a:hover {
  background: var(--accent-strong);
}

.footer-links-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-links h3 {
  font-size: 20px;
  color: var(--chrome-text);
  margin-bottom: 30px;
}

.footer-links ul li {
  position: relative;
  color: var(--chrome-text);
  opacity: 0.85;
  line-height: 1.5em;
  padding-left: 20px;
  margin-bottom: 16px;
}

.footer-links ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.footer-links ul li:last-child {
  margin-bottom: 0;
}

.footer-links ul li a {
  color: inherit;
  transition: color 0.3s ease-in-out;
}

.footer-links ul li a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-item .icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent-strong) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-item .icon-box img {
  width: 100%;
  max-width: 18px;
}

.footer-contact-content h3 {
  font-size: 16px;
  color: var(--chrome-text);
  margin-bottom: 0;
}

.footer-contact-content p {
  color: var(--chrome-text);
  opacity: 0.85;
  margin: 5px 0 0;
}

.footer-contact-content p a {
  color: inherit;
  transition: color 0.3s ease-in-out;
}

.footer-contact-content p a:hover {
  color: var(--accent);
}

.footer-hours-label {
  margin: 28px 0 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chrome-text);
  opacity: 0.5;
}

ul.footer-hours {
  margin-top: 0;
}

ul.footer-hours li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--chrome-divider);
  font-size: 14px;
  color: var(--chrome-text);
}

ul.footer-hours li::before {
  content: none;
}

ul.footer-hours li:last-child {
  border-bottom: none;
}

ul.footer-hours li span:first-child {
  opacity: 0.75;
  font-weight: 500;
}

ul.footer-hours li span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
}

ul.footer-hours li.is-today {
  margin-inline: -14px;
  padding-inline: 14px;
  border-radius: 10px;
  border-bottom-color: transparent;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

ul.footer-hours li.is-today span:first-child {
  opacity: 1;
  color: var(--chrome-text);
}

.footer-hours-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

.footer-copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--chrome-divider);
  padding: 40px 0 60px;
  margin-top: 60px;
}

.footer-copyright-text p {
  color: var(--chrome-text);
  opacity: 0.75;
  margin-bottom: 0;
}

.footer-privacy-policy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
}

.footer-privacy-policy ul li {
  color: var(--chrome-text);
  opacity: 0.85;
}

.footer-privacy-policy ul li a {
  color: inherit;
  transition: color 0.3s ease-in-out;
}

.footer-privacy-policy ul li a:hover {
  color: var(--accent);
}

/* ---- Floating WhatsApp widget ---- */

.whatsapp-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.whatsapp-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: whatsapp-widget-pulse 2.2s ease-out infinite;
  z-index: -1;
}

.whatsapp-widget:hover,
.whatsapp-widget:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

.whatsapp-widget img {
  width: 30px;
  height: 30px;
}

@keyframes whatsapp-widget-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (max-width: 575px) {
  .whatsapp-widget {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-widget img {
    width: 26px;
    height: 26px;
  }
}
