/**
 * With Love NAIJA — Astra Child
 * Brand: Orange #D36127 | Navy #0F3B68 | Teal #008B94 | Cream #F9F6F0
 */

/* --- Global / WooCommerce-friendly base --- */
body.wln-child-theme,
body.wln-child-theme .site,
body.wln-child-theme button,
body.wln-child-theme input,
body.wln-child-theme select,
body.wln-child-theme textarea {
  font-family: var(--wln-font-sans, "Everyday Sans", system-ui, -apple-system, sans-serif);
}

body.wln-child-theme {
  background-color: var(--wln-cream);
  color: var(--wln-navy);
}

body.wln-child-theme .site-content {
  background-color: var(--wln-cream);
}

/* --- Promo bar (top row inside header) --- */
.wln-promo-bar--header {
  background: var(--wln-navy);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.4;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wln-promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.55rem 1rem;
  position: relative;
}

/* Header is one block: promo (navy) + main bar (cream, matches logo) */
body.wln-child-theme #masthead,
body.wln-child-theme .site-header {
  background-color: var(--wln-cream);
  margin-bottom: 0 !important;
  padding-bottom: 0;
}

body.wln-child-theme #ast-desktop-header,
body.wln-child-theme .ast-desktop-header {
  margin-bottom: 0 !important;
}

body.wln-has-promo-bar .main-header-bar,
body.wln-has-promo-bar .ast-primary-header-bar {
  border-top: none;
}

.wln-promo-bar__text {
  margin: 0;
  text-align: center;
}

.wln-promo-bar__text strong {
  color: var(--wln-orange);
  font-weight: 700;
}

.wln-promo-bar__link {
  color: var(--wln-teal);
  margin-left: 0.35rem;
  text-decoration: underline;
  font-weight: 600;
}

.wln-promo-bar__link:hover {
  color: #fff;
}

/* --- Main header row (below promo) — same cream as logo --- */
body.wln-child-theme .main-header-bar,
body.wln-child-theme .ast-primary-header-bar,
body.wln-child-theme .ast-primary-header,
body.wln-child-theme .ast-builder-layout-element.ast-header-row,
body.wln-child-theme .site-header-primary-section-wrap,
body.wln-child-theme .ast-builder-grid-row-container {
  background-color: var(--wln-cream) !important;
}

body.wln-child-theme .main-header-bar,
body.wln-child-theme .ast-primary-header-bar {
  border-bottom: 1px solid rgba(16, 52, 94, 0.1);
}

/* Logo — always visible when using URL logo */
body.wln-use-url-logo .wln-logo-link {
  display: inline-flex !important;
  align-items: center;
  max-width: 200px;
}

body.wln-use-url-logo .wln-logo-img {
  display: block !important;
  max-height: 72px;
  width: auto;
  height: auto;
  max-width: 100%;
}

/* Hide duplicate text site title when URL logo shows */
body.wln-use-url-logo .site-title,
body.wln-use-url-logo .site-description,
body.wln-use-url-logo .ast-site-identity .site-title,
body.wln-use-url-logo .ast-site-identity .site-description,
body.wln-use-url-logo .site-branding .site-title {
  clip: rect(0, 0, 0, 0);
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wln-logo-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.wln-logo-img,
.custom-logo img,
.custom-logo.wln-logo-img {
  max-height: 72px;
  width: auto;
  height: auto;
}

/* Astra header builder logo slot */
.ast-site-identity .wln-logo-link {
  margin: 0;
}

@media (max-width: 921px) {
  body.wln-use-url-logo .wln-logo-img,
  .wln-logo-img,
  .custom-logo img {
    max-height: 52px;
    max-width: 160px;
  }
}

/* Primary menu */
body.wln-child-theme .main-header-menu a,
body.wln-child-theme .ast-builder-menu .menu-item > a {
  color: var(--wln-navy);
  font-weight: 600;
  font-size: 0.9rem;
}

body.wln-child-theme .main-header-menu a:hover,
body.wln-child-theme .ast-builder-menu .menu-item > a:hover {
  color: var(--wln-orange);
}

/* Cart / header buttons */
body.wln-child-theme .ast-header-woo-cart .ast-cart-menu-wrap,
body.wln-child-theme .ast-site-header-cart .ast-addon-cart-wrap {
  color: var(--wln-navy);
}

/* Buttons accent — theme/WooCommerce only (not Elementor widgets) */
body.wln-child-theme .ast-button,
body.wln-child-theme .woocommerce .button,
body.wln-child-theme .woocommerce a.button,
body.wln-child-theme .woocommerce button.button {
  background-color: var(--wln-orange);
  border-color: var(--wln-orange);
  color: #fff;
}

body.wln-child-theme .ast-button:hover,
body.wln-child-theme .woocommerce .button:hover,
body.wln-child-theme .woocommerce a.button:hover {
  background-color: var(--wln-orange-hover);
  border-color: var(--wln-orange-hover);
  color: #fff;
}

/* --- Custom footer: cream main area, navy copyright bar only --- */
.wln-footer {
  background: var(--wln-cream);
  color: var(--wln-navy);
  margin-top: 0;
}

.wln-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem 0 2rem;
  align-items: start;
  background: var(--wln-cream);
}

.wln-footer__logo-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  line-height: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.wln-footer__logo {
  max-width: 130px;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

.wln-footer__tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(16, 52, 94, 0.75);
  max-width: 28ch;
}

.wln-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wln-footer__menu a {
  color: var(--wln-navy);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.wln-footer__menu a:hover {
  color: var(--wln-orange);
}

.wln-footer__email {
  color: var(--wln-teal);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.wln-footer__email:hover {
  color: var(--wln-navy);
}

/* Copyright strip — full-width navy only */
.wln-footer__bottom {
  background: var(--wln-navy);
  border-top: none;
  width: 100%;
}

.wln-footer__bottom-inner {
  padding: 1rem 0 1.25rem;
  text-align: center;
}

.wln-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Hide default Astra footer rows when our footer is active */
body.wln-custom-footer .site-footer .site-above-footer-wrap,
body.wln-custom-footer .site-footer .site-primary-footer-wrap,
body.wln-custom-footer .site-footer .site-below-footer-wrap,
body.wln-custom-footer .site-footer .ast-builder-grid-row-container,
body.wln-custom-footer .site-below-footer-wrap,
body.wln-custom-footer .ast-small-footer,
body.wln-custom-footer #colophon .ast-footer-copyright,
body.wln-custom-footer #colophon .site-footer-section {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

body.wln-custom-footer .site-footer,
body.wln-custom-footer #colophon {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
  border: none;
  min-height: 0;
}

/* No theme gap between main content and footer */
body.wln-custom-footer .site-content,
body.wln-custom-footer .site-content > .ast-container,
body.wln-custom-footer #primary,
body.wln-custom-footer #primary > .ast-container,
body.wln-custom-footer .site-main,
body.wln-custom-footer #content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.wln-custom-footer.ast-separate-container #primary,
body.wln-custom-footer.ast-separate-container .site-content,
body.wln-custom-footer.ast-plain-container .site-content > .ast-container {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Footer must stay visible */
body.wln-custom-footer .wln-footer {
  display: block !important;
  visibility: visible !important;
}

/* Logo must stay visible in header */
body.wln-use-url-logo .custom-logo-link,
body.wln-use-url-logo .wln-logo-link,
body.wln-use-url-logo .ast-site-identity .custom-logo-link {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .wln-promo-bar__inner {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .wln-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .wln-footer__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .wln-footer__menu {
    align-items: center;
  }
}
