/* ============================================================
   WEBEXTENT — HEADER & FOOTER CSS
   assets/css/nav.css

   Shared across ALL pages. Always load after global.css.
   ============================================================ */


/* ============================================================
   HEADER / NAV
   ============================================================ */
.we-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-line);
  animation: we-fadeIn .35s ease both;
  transition: box-shadow .3s;
}
.we-nav.scrolled {
  box-shadow: var(--sh-sm);
}

.we-nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ── Logo ──────────────────────────────── */
.we-nav__logo {
  display: flex;
  align-items: center;
  gap: 0px;
  font-family: var(--font-body);
  font-weight: var(--fw-black);
  font-size: 17px;
  color: var(--color-ink);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.we-nav__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--color-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-black);
  font-size: 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 8px;
}
.we-nav__logo-icon img {
  width: 70%;
  height: auto;
  display: block;
}
.we-nav__logo em {
  font-style: normal;
  color: var(--color-base);
}


/* ── Menu links ─────────────────────────── */
.we-nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.we-nav__item {
  position: relative;
}

.we-nav__item > a,
.we-nav__item > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: var(--fw-medium);
  color: var(--color-ink-2);
  background: none;
  border: none;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  transition: var(--trans-fast);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}

/* Animated underline on hover */
.we-nav__item > a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 13px; right: 13px;
  height: 1.5px;
  background: var(--color-base);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.we-nav__item > a:hover         { color: var(--color-ink); }
.we-nav__item > a:hover::after  { transform: scaleX(1); }
.we-nav__item > a.active        { color: var(--color-ink); font-weight: var(--fw-semi); }
.we-nav__item > a.active::after { transform: scaleX(1); }
.we-nav__item > button:hover    { color: var(--color-ink); background: var(--color-bg-alt); }

/* Dropdown arrow */
.we-nav__arrow {
  width: 10px; height: 10px;
  stroke: currentColor; stroke-width: 2; fill: none;
  transition: transform .22s;
  flex-shrink: 0;
}
.we-nav__item.open > button .we-nav__arrow { transform: rotate(180deg); }

/* ── Dropdown ───────────────────────────── */
.we-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 256px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 300;
}
.we-nav__item.open .we-nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.we-nav__dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--color-ink-2);
  text-decoration: none;
  transition: var(--trans-fast);
}
.we-nav__dropdown a::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--color-base);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s;
}
.we-nav__dropdown a:hover {
  background: var(--color-bg-alt);
  color: var(--color-ink);
}
.we-nav__dropdown a:hover::before { opacity: 1; }


/* Invisible bridge that fills the gap */
.we-nav__item.open .we-nav__dropdown::before {
  content: '';
  position: absolute;
  top: -8px;       /* same as your gap value */
  left: 0;
  right: 0;
  height: 8px;
}

/* ── Search ─────────────────────────────── */
.we-nav__search {
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}
.we-nav__search-input {
  width: 0;
  padding: 0;
  opacity: 0;
  border: 1.5px solid var(--color-line);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-ink);
  background: var(--color-bg-alt);
  outline: none;
  transition: width .3s ease, padding .3s ease, opacity .3s ease;
}
.we-nav__search-input::placeholder { color: var(--color-ink-3); }
.we-nav__search-input:focus {
  border-color: color-mix(in srgb, var(--color-base) 40%, transparent);
  background: var(--color-white);
}
.we-nav__search.active .we-nav__search-input {
  width: 200px;
  padding: 7px 36px 7px 12px;
  opacity: 1;
}
.we-nav__search-btn {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-3);
  border-radius: var(--r-sm);
  transition: var(--trans-fast);
  flex-shrink: 0;
}
.we-nav__search-btn:hover {
  color: var(--color-base);
  background: var(--color-base-tint);
}
.we-nav__search-btn svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── CTA button in nav ──────────────────── */
.we-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-base);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-bold);
  padding: 9px 20px;
  border-radius: var(--r-md);
  transition: var(--trans-base);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1.5px solid var(--color-base);
}
.we-nav__cta:hover {
  background: var(--color-base-hover);
  border-color: var(--color-base-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220,74,26,.25);
}

/* ── Right group wrapper ─────────────────── */
.we-nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Hamburger ──────────────────────────── */
.we-nav__ham {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  transition: var(--trans-fast);
  flex-shrink: 0;
}
.we-nav__ham:hover { background: var(--color-bg-alt); }
.we-nav__ham span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}

/* Hamburger open state — becomes × */
.we-nav__ham.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.we-nav__ham.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.we-nav__ham.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Get a Free Website button — clean outline style */
.free-web-btn a {
  position: relative;
  display: inline-block;
  padding: 9px 18px;
  color: var(--color-ink);
  background: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--trans-base);
  z-index: 1;
  overflow: hidden;
}

/* Hover state */
.free-web-btn a:hover {
  border-color: var(--color-base);
  color: var(--color-base);
  background: var(--color-base-tint);
}

/* Existing hover line animation fix */
.free-web-btn > a:hover::after {
  transform: scaleX(0);
}

/* Active state */
.free-web-btn a.active {
  border-color: var(--color-base);
  color: var(--color-base);
}
.free-web-btn a.active::after {
    transform: scaleX(0);
}
/* Gradient border layer */
.free-web-btn a::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px; /* border thickness */
  border-radius: 8px;

  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--color-base) 15%, transparent),
    var(--color-base),
    color-mix(in srgb, var(--color-base) 15%, transparent)
  );

  background-size: 200% 100%;
  animation: borderFlow 4s linear infinite;

  /* Show gradient ONLY on border */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
  opacity: 0.75;
  transition: var(--trans-base);
}

/* Stronger border glow on hover */
.free-web-btn a:hover::before {
  opacity: 1;
}
.free-web-btn .active {
    background: var(--color-base-tint);
}

/* Smooth flowing gradient animation */
@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* ============================================================
   MOBILE NAV  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .we-nav__inner { padding: 0 20px; }

  /* Show hamburger */
  .we-nav__ham { display: flex; }

  /* Hide search expand on very small */
  .we-nav__search.active .we-nav__search-input { width: 130px; }

  /* Hide desktop CTA — shown inside mobile menu instead */
  .we-nav__cta { display: none; }

  /* ── Full-screen mobile overlay menu ── */
  .we-nav__menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px 32px;
    overflow-y: auto;
    gap: 2px;
    z-index: 199;
    height: calc(100dvh - 64px); 
    animation: we-fadeIn .2s ease;
  }
  .we-nav__menu.is-open { display: flex; }

  .we-nav__item { width: 100%; }

  .we-nav__item > a,
  .we-nav__item > button {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 16px;
    border-radius: var(--r-md);
    font-size: 15px;
    font-weight: var(--fw-medium);
  }
  /* Remove underline animation on mobile */
  .we-nav__item > a::after { display: none; }

  /* Dropdown in mobile — slides open */
  .we-nav__dropdown {
    position: static;
    transform: translate(0px, 10px) !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    min-width: unset;
    box-shadow: none;
    border: none;
    background: var(--color-bg-alt);
    border-radius: var(--r-md);
    padding: 4px 0;
    transition: opacity .2s ease, max-height .32s ease;
    margin-bottom: 4px;
  }
  .we-nav__item.open .we-nav__dropdown {
    opacity: 1;
    pointer-events: all;
    max-height: 600px;
  }
  .we-nav__dropdown a { padding: 11px 20px; font-size: 14px; }

  /* Mobile CTA block at bottom of menu */
  .we-nav__menu-cta {
    display: flex;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-line);
  }
  .we-nav__menu-cta a {
    flex: 1;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
    border-radius: var(--r-md);
  }
}

/* Keep menu visible on desktop */
@media (min-width: 769px) {
  .we-nav__menu-cta { display: none; }
}


/* ============================================================
   FOOTER
   ============================================================ */
.we-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 64px 0 0;
}

/* Footer grid row */
.we-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 52px;
}
.we-footer__brand { flex: 0 0 260px; }
.we-footer__col   { flex: 1 1 140px; min-width: 120px; }

/* Brand */
.we-footer__logo {
  display: flex;
  align-items: center;
  gap: 0px;
  font-family: var(--font-body);
  font-weight: var(--fw-black);
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 14px;
}

/* .we-footer__logo em {
  color: var(--color-base);
} */

.we-footer__logo em {
  color: var(--color-ink-4);
}



.we-footer__tagline {
  font-size: 13px;
  color: var(--color-footer-text);
  line-height: 1.7;
  max-width: 230px;
  margin-bottom: 22px;
}

/* Social icons */
.we-footer__socials {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.we-footer__soc {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: var(--trans-fast);
}
.we-footer__soc:hover {
  border-color: var(--color-base);
  color: var(--color-base);
}

/* Newsletter */
.we-footer__nl-label {
  display: block;
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.4);
  margin-bottom: 10px;
}
.we-footer__nl-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.we-footer__nl-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: var(--trans-fast);
}
.we-footer__nl-input::placeholder { color: rgba(255,255,255,.28); }
.we-footer__nl-input:focus {
  border-color: var(--color-base);
  background: rgba(255,255,255,.1);
}
.we-footer__nl-btn {
  padding: 10px 18px;
  background: var(--color-base);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-bold);
  border: 1px solid var(--color-ink-4);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--trans-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.we-footer__nl-btn:hover {
  background: var(--color-base-hover);
  transform: translateY(-1px);
}
.we-footer__nl-note {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.22);
  margin-top: 8px;
}

/* Column links */
.we-footer__col h5 {
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.we-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.we-footer__col a  { font-size: 13px; color: rgba(255,255,255,.32); transition: color .18s; }
.we-footer__col a:hover { color: rgba(255,255,255,.75); }

/* Footer bottom bar */
.we-footer__bottom {
  background: var(--color-footer-bottom-bg);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--color-footer-meta);
}
.we-footer__bottom a {
  color: var(--color-link);
  transition: color .18s;
}
.we-footer__bottom a:hover { color: var(--color-base-hover); }
.we-footer__bottom-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


/* ============================================================
   FOOTER RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .we-footer { padding: 48px 0 0; }
  .we-footer__brand { flex: 0 0 100%; }
  .we-footer__col   { flex: 1 1 140px; }
  .we-footer__nl-form { flex-direction: column; }
  .we-footer__nl-btn  { width: 100%; justify-content: center; }
  .we-footer__bottom {
    padding: 16px 20px;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .we-footer__col { flex: 0 0 calc(50% - 20px); }
}




/* ============================================================
   WORDPRESS ADMIN BAR — offset fixed header so it stays visible
   ============================================================ */
.admin-bar .we-nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .we-nav {
    top: 46px;
  }
}
