
/* Allen Mind Lab — Global Navigation & Footer v2 */
:root{
  --aml-navy:#0d1b2a;
  --aml-navy2:#14263b;
  --aml-gold:#c7a76a;
  --aml-paper:#fffdf9;
  --aml-line:#e7e1d6;
}

.aml-skip-link{
  position:fixed;
  left:16px;
  top:-80px;
  z-index:10000;
  padding:10px 16px;
  border-radius:10px;
  background:#fff;
  color:#0d1b2a;
  font-weight:800;
  box-shadow:0 8px 24px rgba(0,0,0,.15);
}
.aml-skip-link:focus{top:12px}

.aml-global-nav{
  position:sticky !important;
  top:0 !important;
  left:auto !important;
  right:auto !important;
  z-index:9999 !important;
  width:100%;
  min-height:72px;
  height:auto !important;
  padding:0 6vw !important;
  background:rgba(8,22,38,.96) !important;
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
  color:white;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:24px;
}

.aml-global-nav .aml-brand{
  color:white;
  font-weight:800;
  letter-spacing:.12em;
  white-space:nowrap;
}

.aml-desktop-links{
  display:flex;
  align-items:center;
  gap:20px;
  font-size:.88rem;
}
.aml-desktop-links a{
  color:#e5e7eb;
  transition:.2s;
  white-space:nowrap;
}
.aml-desktop-links a:hover,
.aml-desktop-links a[aria-current="page"]{
  color:var(--aml-gold);
}

.aml-menu-toggle{
  display:none;
  appearance:none;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.04);
  color:white;
  width:44px;
  height:44px;
  border-radius:12px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:1.4rem;
  line-height:1;
}

.aml-mobile-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  right:0;
  padding:14px 6vw 22px;
  background:#0b1725;
  border-top:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 32px rgba(0,0,0,.18);
}
.aml-mobile-menu.is-open{display:block}
.aml-mobile-menu a{
  display:block;
  padding:12px 2px;
  color:#e5e7eb;
  border-bottom:1px solid rgba(255,255,255,.07);
  font-size:1rem;
}
.aml-mobile-menu a:last-child{border-bottom:0}
.aml-mobile-menu a[aria-current="page"]{color:var(--aml-gold)}

.aml-global-nav a:focus-visible,
.aml-menu-toggle:focus-visible,
.aml-global-footer a:focus-visible{
  outline:3px solid var(--aml-gold);
  outline-offset:3px;
  border-radius:4px;
}

/* Existing home hero used to compensate for a fixed nav; sticky nav no longer needs it */
.aml-global-nav + .hero{margin-top:0 !important}

.aml-global-footer{
  background:#101719 !important;
  color:#d7dde0 !important;
  padding:68px 8vw 30px !important;
  border-top:1px solid rgba(199,167,106,.22);
  display:block !important;
  font-size:.9rem;
}
.aml-footer-top{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:58px;
  align-items:start;
  padding-bottom:40px;
}
.aml-footer-brand{
  font-family:Georgia,"Times New Roman",serif;
  font-size:2rem;
  color:#fff;
  margin-bottom:7px;
}
.aml-footer-brand span{
  color:var(--aml-gold);
  font-size:1rem;
  margin-left:8px;
  font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;
}
.aml-footer-tagline{
  color:var(--aml-gold);
  font-weight:800;
  letter-spacing:.08em;
  margin-bottom:14px;
}
.aml-footer-copy{
  max-width:650px;
  color:#9eaaaf;
  line-height:1.8;
}
.aml-footer-links{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px 38px;
}
.aml-footer-group h4{
  margin:0 0 12px;
  color:var(--aml-gold);
  font-size:.78rem;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.aml-footer-group a{
  display:block;
  color:#c8d0d4;
  margin:7px 0;
  transition:.2s;
}
.aml-footer-group a:hover{color:var(--aml-gold)}
.aml-footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:22px;
  display:flex;
  justify-content:space-between;
  gap:22px;
  flex-wrap:wrap;
  color:#7f8b90;
  font-size:.84rem;
}
.aml-footer-mini-links{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}
.aml-footer-mini-links a{color:#9aa6ab}
.aml-footer-mini-links a:hover{color:var(--aml-gold)}

@media(max-width:980px){
  .aml-global-nav{padding:0 5vw !important}
  .aml-desktop-links{display:none !important}
  .aml-menu-toggle{display:flex}
  .aml-footer-top{grid-template-columns:1fr;gap:34px}
}
@media(max-width:620px){
  .aml-global-nav{min-height:64px}
  .aml-global-nav .aml-brand{font-size:.9rem}
  .aml-global-footer{padding:54px 6vw 26px !important}
  .aml-footer-links{grid-template-columns:1fr}
  .aml-footer-brand{font-size:1.7rem}
}
