/*
Theme Name: Authority of Ash
Theme URI: https://example.com
Author: Page Cle
Description: Custom theme for the Authority of Ash Cycle (Book + Game).
Version: 1.0.0
Text Domain: authority-of-ash
*/

/* =========================
   COMPONENTS
   (components.css — reusable UI pieces: buttons, cards, nav links, chips, forms, etc.)
   Layout rules should live in layout.css. Global resets/base live in base.css.
========================= */

/* =========================
   TYPOGRAPHY HELPERS
========================= */
.kicker{
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
}

.h1{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 42px;
  line-height: 1.06;
  margin: 10px 0 12px;
  letter-spacing: .03em;
  text-shadow: 0 0 12px rgba(123,210,255,.08);
}

.lede{
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px;
}

.small{
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   LINKS (component behavior)
========================= */
a{
  position: relative;
}

a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  height:1px;
  width:0%;
  background: var(--accent);
  transition: width .25s ease;
}

a:hover::after{
  width:100%;
}

/* =========================
   NAV LINKS (header + footer)
========================= */
.primary-nav a{
  padding: 10px 10px;
  border-radius: 12px;
}

.primary-nav a:hover{
  background: rgba(255,255,255,.06);
}

.footer-nav ul,
.footer-menu,
.site-footer ul.menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:18px;
}

.footer-menu li{
  margin:0;
  padding:0;
}

.footer-menu a{
  color: var(--muted);
  font-size: 13px;
  transition: color .2s ease, opacity .2s ease;
}

.footer-menu a:hover{
  color: var(--accent);
  opacity: .9;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--ink);
  transition:
    transform .15s ease,
    background .3s ease,
    box-shadow .3s ease;
}

.btn.primary{
  background: linear-gradient(180deg, rgba(123,210,255,.22), rgba(123,210,255,.06));
  border-color: rgba(123,210,255,.35);
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(123,210,255,.35);
}

/* =========================
   CARDS (generic)
========================= */
.card{
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.07),
    rgba(255,255,255,.015)
  );
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 40px rgba(0,0,0,.45),
    inset 0 0 50px rgba(255,255,255,.02);
  border-radius: var(--radius);
}

.card h3{
  margin:0 0 8px;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  letter-spacing: .03em;
  text-shadow: 0 0 12px rgba(123,210,255,.08);
}

.hero-card{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:26px;
  box-shadow: 0 0 30px rgba(0,0,0,.28);
}

/* =========================
   MEDIA / COVER
========================= */
.cover{
  border-radius: var(--radius);
  border:1px solid var(--line);
  overflow:hidden;
  background: rgba(0,0,0,.15);
  transform: translateZ(0);
}

.cover img{
  display:block;
  width:100%;
  height:auto;
  transform: translateY(0);
  transition: transform .8s ease;
}

.world-primer-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15%;
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,.35);
}

/* =========================
   PROGRESS BARS
========================= */
.progress{
  height:10px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  overflow:hidden;
  border:1px solid var(--line);
}

.progress > span{
  display:block;
  height:100%;
  width:45%;
  background: rgba(123,210,255,.45);
}

/* =========================
   SOCIAL MENU (ICONS)
========================= */
.social-menu{
  list-style:none;
  display:flex;
  gap:14px;
  margin:0;
  padding:0;
  align-items:center;
}

.social-menu li{
  margin:0;
  padding:0;
  display:flex;
}

.social-menu a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  transition: background .2s ease, transform .2s ease, color .2s ease, box-shadow .2s ease;
}

.social-menu a:hover{
  background: rgba(123,210,255,.15);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(123,210,255,.35);
}

.social-menu svg{
  display:block;
}

/* =========================
   REVEALS (JS-only)
========================= */
.js .card,
.js .hero-card{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}

.js .card.reveal,
.js .hero-card.reveal{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   BOOK PAGE COMPONENTS
========================= */
.book-hero-card{
  position: relative;
  overflow: hidden;
}

.book-hero-card::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(123,210,255,.14), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.07), transparent 60%);
  transform: rotate(-10deg);
  opacity: .65;
  pointer-events:none;
}

.book-panel{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 0 38px rgba(0,0,0,.45), inset 0 0 40px rgba(255,255,255,.02);
  overflow: hidden;
}

.book-panel::before{
  content:"";
  position:absolute;
  inset:-40%;
  pointer-events:none;
  background:
    radial-gradient(circle at 25% 20%, rgba(123,210,255,.14), transparent 55%),
    radial-gradient(circle at 75% 65%, rgba(255,255,255,.06), transparent 60%);
  opacity: .55;
  transform: rotate(-10deg);
}

.book-panel::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(circle at 50% 30%, transparent 45%, rgba(3,28,36,.35) 100%);
  opacity: .65;
}

.book-panel > *{
  position: relative;
  z-index: 1;
}

.book-title{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 44px;
  line-height: 1.06;
  margin: 0 0 12px;
  letter-spacing: .03em;
}

.book-sub{
  color: var(--muted);
  font-size: 16px;
  margin: 0 auto 18px;
  max-width: 58ch;
}

.book-note{
  margin: 0 auto;
  max-width: 62ch;
  color: rgba(234,246,255,.86);
}

.book-chip{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(123,210,255,.25);
  background: rgba(123,210,255,.08);
  color: rgba(234,246,255,.92);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
  margin-right: 8px;
}

.book-kicker{
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
  text-align: center;
}

.book-h2{
  margin: 0 0 12px;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  letter-spacing: .03em;
  text-align: center;
}

.book-lines{
  color: rgba(234,246,255,.90);
  margin: 14px 0;
}

.book-label{
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 10px;
}

.book-bullets{
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
}

.book-bullets li{
  position: relative;
  padding-left: 20px;
  margin: 10px 0;
  color: var(--muted);
}

.book-bullets li::before{
  content:"◆";
  position:absolute;
  left:0;
  top:0;
  color: rgba(123,210,255,.35);
}

.book-divider{
  height: 1px;
  width: min(520px, 100%);
  margin: 30px auto;
  background: linear-gradient(90deg, transparent, rgba(123,210,255,.25), transparent);
  opacity: .9;
}

.book-sting{
  margin-top: 18px;
  color: rgba(234,246,255,.92);
  font-weight: 500;
}

.book1-page .card{
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:
    0 0 36px rgba(0,0,0,.45),
    inset 0 0 40px rgba(255,255,255,.02);
  position: relative;
  overflow: hidden;
}

.book1-page .card::before{
  content:"";
  position:absolute;
  inset:-40%;
  pointer-events:none;
  background:
    radial-gradient(circle at 25% 20%, rgba(123,210,255,.12), transparent 55%),
    radial-gradient(circle at 75% 65%, rgba(255,255,255,.06), transparent 60%);
  opacity:.55;
  transform: rotate(-8deg);
}

.book1-page .card > *{
  position:relative;
  z-index:1;
}

.book1-h2{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  margin: 28px 0 14px;
  letter-spacing: .03em;
}

.book1-stanza{
  color: rgba(234,246,255,.90);
  margin: 18px 0;
}

.book1-sting{
  margin-top: 20px;
  font-weight: 500;
  color: rgba(234,246,255,.95);
}

.book1-small{
  color: var(--muted);
  margin-top: 16px;
}

.book1-factions{
  list-style:none;
  padding:0;
  margin: 10px 0 18px;
}

.book1-factions li{
  position:relative;
  padding-left:18px;
  margin:8px 0;
}

.book1-factions li::before{
  content:"◆";
  position:absolute;
  left:0;
  color: rgba(123,210,255,.35);
}

/* =========================
   STATIC PAGE HERO COMPONENTS
========================= */
.page-title{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: .04em;
  margin: 0;
  position: relative;
}

.page-title::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:-12px;
  width: min(480px, 80%);
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(123,210,255,.35), transparent);
  opacity:.8;
}

@media (max-width: 900px){
  .page-title{ font-size: 40px; }
}

@media (max-width: 520px){
  .page-title{ font-size: 32px; }
  .h1{ font-size: 36px; }
  .book-title{ font-size: 32px; }
}

/* =========================
   BLOG SIDEBAR “LINK CARD”
========================= */
.blog-lede{
  max-width: 64ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.blog-side-link{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.blog-side-link:hover{
  background: rgba(123,210,255,.10);
  border-color: rgba(123,210,255,.25);
}

.blog-side-title{
  color: rgba(234,246,255,.92);
  font-size: 14px;
}

.blog-side-date{
  color: rgba(234,246,255,.55);
  font-size: 12px;
  white-space: nowrap;
}

/* =========================
   CONTACT FORM 7 — COMPONENT STYLING
========================= */
.wpcf7 form{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 0 36px rgba(0,0,0,.45), inset 0 0 40px rgba(255,255,255,.02);
}

.wpcf7 form::before{
  content:"";
  position:absolute;
  inset:-40%;
  pointer-events:none;
  background:
    radial-gradient(circle at 25% 20%, rgba(123,210,255,.12), transparent 55%),
    radial-gradient(circle at 75% 65%, rgba(255,255,255,.06), transparent 60%);
  opacity:.55;
  transform: rotate(-8deg);
}

.wpcf7 label{
  display:block;
  color: rgba(234,246,255,.88);
  letter-spacing: .02em;
  font-size: 14px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select{
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(3,28,36,.55);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease, background .2s ease;
}

.wpcf7 textarea{
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.wpcf7 ::placeholder{
  color: rgba(234,246,255,.45);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus{
  border-color: rgba(123,210,255,.40);
  box-shadow:
    0 0 0 3px rgba(123,210,255,.10),
    0 0 12px rgba(123,210,255,.22);
  background: rgba(3,28,36,.65);
}

.wpcf7 input[type="submit"],
.wpcf7 button,
.wpcf7 .wpcf7-submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(123,210,255,.35);
  background: linear-gradient(180deg, rgba(123,210,255,.22), rgba(123,210,255,.06));
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.wpcf7 input[type="submit"]:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(123,210,255,.28);
}

.wpcf7 .wpcf7-spinner{
  margin-left: 10px;
  vertical-align: middle;
  opacity: .75;
}

.wpcf7 .wpcf7-not-valid-tip{
  margin-top: 8px;
  color: rgba(255,170,170,.95);
  font-size: 13px;
}

.wpcf7 .wpcf7-response-output{
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: rgba(234,246,255,.85);
}

.wpcf7 form.sent .wpcf7-response-output{
  border-color: rgba(110,255,170,.30);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output{
  border-color: rgba(255,170,170,.30);
}

/* =========================
   GLOBAL HERO IMAGE — IMAGE SOURCE
========================= */
.site-hero-inner{
  background-image: url("../garza-hero.PNG");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* =========================
   FOOTER HERO IMAGE (TEXT OVER IMAGE)
========================= */
.site-footer.footer-hero{
  position: relative;
  color: var(--ink);
  background: transparent;
  padding: 0;
  overflow: visible;
  isolation: isolate;
}

.footer-hero-inner,
.footer-inner,
.footer-nav,
.footer-menu,
.footer-menu li{
  overflow: visible;
}

/* actual footer image layer with real top fade */
.site-footer.footer-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("../garza-hero-1950X450-bottomweighted.JPG");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  z-index: 0;
  pointer-events: none;

	-webkit-mask-image: linear-gradient(
	  to bottom,
	  transparent 0%,
	  rgba(0,0,0,.08) 4%,
	  rgba(0,0,0,.22) 10%,
	  rgba(0,0,0,.45) 18%,
	  rgba(0,0,0,.70) 28%,
	  rgba(0,0,0,.90) 40%,
	  rgba(0,0,0,1) 54%
	);

	mask-image: linear-gradient(
	  to bottom,
	  transparent 0%,
	  rgba(0,0,0,.08) 4%,
	  rgba(0,0,0,.22) 10%,
	  rgba(0,0,0,.45) 18%,
	  rgba(0,0,0,.70) 28%,
	  rgba(0,0,0,.90) 40%,
	  rgba(0,0,0,1) 54%
	);
}

/* readability / atmosphere veil only */
.site-footer.footer-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index: 1;
  pointer-events:none;
  background:
    linear-gradient(
      to bottom,
      rgba(3,28,36,.28) 0%,
      rgba(3,28,36,.14) 18%,
      rgba(3,28,36,.08) 36%,
      rgba(3,28,36,.22) 100%
    );
}

.footer-hero-inner{
  position: relative;
  z-index: 2;
  padding: 26px 0;
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
}

/* Safari seam guard */
@media (max-width: 768px){
  .site-footer.footer-hero{
    margin-top: -1px !important;
    background: transparent !important;
  }

  .site-footer.footer-hero::before,
  .site-footer.footer-hero::after{
    top: -1px !important;
  }
}

/* =========================
   FOOTER META + LEGAL LINKS
========================= */

.footer-copyright,
.footer-legal{
  font-size: 13px;
}

.footer-copyright a,
.footer-legal a{
  color: var(--muted);
  transition: color .2s ease, opacity .2s ease;
}

.footer-copyright a:hover,
.footer-legal a:hover{
  color: var(--accent);
  opacity: .9;
}

.footer-legal{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0;
}

.footer-legal a{
  position: relative;
}

.footer-legal a:not(:last-child)::after{
  content: "|";
  margin-left: 18px;
  color: var(--line);
}

.footer-legal a:not(:last-child){
  margin-right: 18px;
}

/* =========================
   HERO TITLE OVERLAY (all pages)
========================= */
.site-hero{
  position: relative;
}

.site-hero-inner{
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.home .site-hero .site-hero-inner{
  z-index: 0;
  position: absolute;
  inset: 0;
}

.site-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index: 1;
  pointer-events:none;
  background: radial-gradient(900px 420px at 50% 48%, rgba(0,0,0,.18), rgba(0,0,0,0) 62%);
}

.site-hero-title{
  position: absolute;
  left: 50%;
  top: calc(34% + 75px);
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 66vw;
  max-width: 1100px;
  text-align: center;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: clamp(46px, 7.2vw, 120px);
  line-height: 0.92;
  letter-spacing: 0.06em;
  color: rgba(234,246,255,.95);
  text-shadow:
    0 14px 38px rgba(0,0,0,.60),
    0 2px 14px rgba(0,0,0,.50);
  pointer-events: none;
}

@media (max-width: 700px){
  .site-hero-title{
    width: 92vw;
    font-size: clamp(38px, 10vw, 76px);
    letter-spacing: 0.045em;
    top: calc(30% + 110px);
  }
}

/* =========================
   HEADER + FOOTER DROPDOWNS
========================= */

/* resets */
.primary-menu,
.primary-menu ul,
.footer-menu,
.footer-menu ul{
  list-style:none;
  margin:0;
  padding:0;
}

/* keep navs horizontal on all devices */
.primary-menu,
.footer-menu{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:18px;
}

.primary-menu > li,
.footer-menu > li{
  position:relative;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
}

/* remove underline animation from nav items only */
.primary-menu a::after,
.footer-menu a::after{
  content:none !important;
}

/* arrows always visible */
.primary-menu > li.menu-item-has-children > a,
.footer-menu > li.menu-item-has-children > a{
  display:inline-flex;
  align-items:center;
}

.primary-menu > li.menu-item-has-children > a::before,
.footer-menu > li.menu-item-has-children > a::before{
  content:none !important;
}

.primary-menu > li.menu-item-has-children > a::after,
.footer-menu > li.menu-item-has-children > a::after{
  content:" ▾" !important;
  position:static !important;
  width:auto !important;
  height:auto !important;
  background:none !important;
  color:currentColor !important;
  opacity:.85;
  margin-left:6px;
  display:inline-block !important;
}

/* submenus */
.primary-menu .sub-menu,
.footer-menu .sub-menu{
  display:none;
  min-width:220px;
  z-index:60;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(9,44,56,.97), rgba(5,28,36,.97));
  box-shadow:0 14px 36px rgba(0,0,0,.45);
  padding:10px;
  transform: translateZ(0);
}

.primary-menu .sub-menu li,
.footer-menu .sub-menu li{
  width:100%;
  display:block;
  z-index:60;
}

.primary-menu .sub-menu a,
.footer-menu .sub-menu a{
  display:block;
  width:100%;
  padding:8px 12px;
  border-radius:10px;
  color:var(--ink);
  z-index:60;
}

.primary-menu .sub-menu a:hover,
.footer-menu .sub-menu a:hover{
  background:rgba(255,255,255,.06);
}

/* desktop */
@media (min-width: 901px){
  .primary-menu .sub-menu{
    position:absolute;
    top:100%;
    left:0;
    z-index:60;
  }

  .footer-menu .sub-menu{
    position:absolute;
    bottom:100%;
    left:0;
    z-index:60;
  }

  .primary-menu > li.menu-item-has-children::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:100%;
    height:12px;
  }

  .footer-menu > li.menu-item-has-children::before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:100%;
    height:12px;
  }

  .primary-menu li.menu-item-has-children:hover > .sub-menu,
  .primary-menu li.menu-item-has-children:focus-within > .sub-menu,
  .footer-menu li.menu-item-has-children:hover > .sub-menu,
  .footer-menu li.menu-item-has-children:focus-within > .sub-menu{
    display:block;
  }
}

/* mobile: keep horizontal footer; header submenu can still open below */
@media (max-width: 900px){
  .primary-menu{
    gap:12px;
  }

  .footer-menu{
    gap:14px;
    justify-content:flex-start;
  }

  .primary-menu .sub-menu{
    position:absolute;
    top:calc(100% + 8px);
    left:0;
  }

  .footer-menu .sub-menu{
    position:absolute;
    bottom:calc(100% + 8px);
    left:0;
  }
}

.primary-menu li.menu-item-has-children.is-open > .sub-menu,
.footer-menu li.menu-item-has-children.is-open > .sub-menu{
  display:block;
}

/* =========================
   DROPDOWN STACKING FIX
========================= */
.site-footer{
  z-index: 50;
}

.site-footer .footer-nav{
  position: relative;
  z-index: 200;
}

.site-footer .footer-menu > li{
  position: relative;
}

.site-footer .footer-menu .sub-menu{
  z-index: 9999;
}