/*
Theme Name: Astra AHK Child
Theme URI: https://ahkenterprises.com/
Description: Astra child theme with the global AHK Enterprises header.
Author: AHK Enterprises & Solutions
Template: astra
Version: 1.4.1
Text Domain: astra-ahk-child
*/

:root {
  --ahk-navy: #071a36;
  --ahk-blue: #1763ed;
  --ahk-ink: #14233b;
}

/* Replace Astra's header and the old homepage-only copy. */
#masthead,
.site-header,
.ahk-vip > .ahk-top,
.ahk-vip > .ahk-header,
#colophon,
.site-footer,
.ahk-vip > .ahk-footer {
  display: none !important;
}

.ahk-global-footer,
.ahk-global-footer * {
  box-sizing: border-box;
}

.ahk-global-footer {
  position: relative;
  z-index: 2;
  padding: 62px max(24px, calc((100% - 1180px) / 2)) 22px;
  color: #aebed4;
  background: linear-gradient(135deg, #020c1d, #041a38 62%, #05234a);
  border-top: 1px solid rgba(93, 177, 255, .18);
  font-family: "Segoe UI", Arial, sans-serif;
}

.ahk-global-footer a {
  color: #b9c8db;
  text-decoration: none;
  transition: color .2s ease;
}

.ahk-global-footer a:hover {
  color: #56baff;
}

.ahk-global-footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) 1fr 1fr;
  gap: 70px;
  padding-bottom: 44px;
}

.ahk-global-footer-about strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size:20px;
  font-weight: 750;
  letter-spacing: -.3px;
}

.ahk-global-footer-about p {
  max-width: 460px;
  margin: 0;
  color: #9eafc5;
  font-size:14px;
  line-height: 1.8;
}

.ahk-global-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.ahk-global-footer-links h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size:14px;
  font-weight: 750;
}

.ahk-global-footer-links a {
  font-size:13px;
  line-height: 1.5;
}

.ahk-global-footer-bottom {
  min-height: 52px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: #8193aa;
  font-size:11px;
}

.ahk-global-footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.ahk-global-footer-bottom a {
  color: #91a4bc;
}

@media (max-width: 760px) {
  .ahk-global-footer {
    padding: 48px 22px 20px;
  }
  .ahk-global-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
    padding-bottom: 34px;
  }
  .ahk-global-footer-about {
    grid-column: 1 / -1;
  }
  .ahk-global-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .ahk-global-footer-bottom nav {
    justify-content: flex-start;
    gap: 12px 18px;
  }
}

@media (max-width: 430px) {
  .ahk-global-footer-main {
    grid-template-columns: 1fr;
  }
  .ahk-global-footer-about {
    grid-column: auto;
  }
}

.ahk-global-shell,
.ahk-global-shell * {
  box-sizing: border-box;
}

.ahk-global-shell {
  position: sticky;
  top: 0;
  z-index: 99999;
}

body.admin-bar .ahk-global-shell {
  top: 32px;
}

.ahk-global-shell a {
  text-decoration: none;
}

.ahk-global-topbar {
  min-height: 38px;
  padding: 8px 20px;
  background: #0a2347;
  color: #cbd7e9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 500 12px/1.4 Arial, sans-serif;
}

.ahk-global-topbar a {
  color: #fff;
  font-weight: 800;
  margin-left: 9px;
}

.ahk-global-header {
  height: 82px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(110deg, rgba(248,251,255,.84), rgba(229,239,253,.74));
  border-bottom: 1px solid rgba(255,255,255,.8);
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 35px rgba(4,35,81,.12), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  font-family: Arial, sans-serif;
}

.ahk-global-logo {
  width: 212px;
  height: 64px;
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
}

.ahk-global-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  position: static;
  object-fit: contain;
  object-position: center;
}

.ahk-global-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.ahk-global-nav > a,
.ahk-global-more > button {
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #29405f;
  cursor: pointer;
  font: 750 13px/1.15 "Segoe UI", Arial, sans-serif;
  letter-spacing: -.1px;
  text-shadow: 0 1px 0 rgba(255,255,255,.75);
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .2s;
  white-space: nowrap;
}

.ahk-global-nav a:hover,
.ahk-global-more > button:hover,
.ahk-global-nav .current-menu-item {
  color: #075ee8;
  border-color: rgba(255,255,255,.92);
  background: linear-gradient(145deg,rgba(255,255,255,.86),rgba(217,234,255,.58));
  box-shadow: 0 9px 24px rgba(2,70,158,.13),inset 0 1px 0 #fff;
  transform: translateY(-1px);
}

.ahk-global-more {
  position: relative;
}

.ahk-global-more > button::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 3px 8px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease, margin .2s ease;
}

.ahk-global-more.open > button::after {
  margin-bottom: -1px;
  transform: rotate(225deg);
}

@media (min-width: 901px) {
  .ahk-global-more:hover > button::after,
  .ahk-global-more:focus-within > button::after {
    margin-bottom: -1px;
    transform: rotate(225deg);
  }
}

.ahk-global-dropdown {
  display: none;
  position: absolute;
  top: 68px;
  right: 0;
  width: 230px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(226,238,255,.78));
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 12px;
  box-shadow: 0 22px 55px rgba(5,35,82,.2), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(145%);
}

/* Keep the desktop dropdown hovered while the pointer travels from More to the panel. */
@media (min-width: 901px) {
  .ahk-global-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -32px;
    height: 32px;
  }
}

.ahk-global-more:hover .ahk-global-dropdown,
.ahk-global-more:focus-within .ahk-global-dropdown,
.ahk-global-more.open .ahk-global-dropdown {
  display: block;
}

.ahk-global-dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 7px;
  color: #29405f;
  font: 750 12px/1.35 "Segoe UI",Arial,sans-serif;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

.ahk-global-dropdown a:hover {
  color: var(--ahk-blue);
  background: #f1f5fc;
}

.ahk-global-contact {
  padding: 12px 17px;
  border-radius: 8px;
  background: linear-gradient(135deg, #087cf4, #0754df 70%);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 12px 28px rgba(4,92,232,.3), inset 0 1px 0 rgba(255,255,255,.35);
  font-size:13px;
  font-weight: 800;
  white-space: nowrap;
}

.ahk-global-menu {
  display: none;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ahk-global-menu i {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px;
  background: #10284e;
}

.ahk-mobile-actions,
.ahk-mobile-brand,
.ahk-global-overlay {
  display: none;
}

@media (max-width: 1050px) {
  .ahk-global-header { gap: 18px; }
  .ahk-global-nav { gap: 6px; }
  .ahk-global-nav > a, .ahk-global-more > button { padding:10px 8px;font-size:13px; }
}

@media (max-width: 900px) {
  .ahk-global-header { height: 70px; padding: 0 20px; }
  .ahk-global-logo { width: 158px; height: 52px; }
  .ahk-global-logo img { width: 100%; }
  .ahk-global-contact { display: none; }
  .ahk-global-menu { display: block; margin-left: auto; }
  .ahk-global-nav {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    padding: 96px max(26px, 7vw) 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(145deg, rgba(7, 26, 54, .90), rgba(18, 56, 109, .82));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-18px) scale(1.02);
    transition: opacity .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1), visibility .4s;
    z-index: 5;
  }
  .ahk-global-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .ahk-mobile-brand {
    display: block;
    width: min(270px, 72vw);
    height: 88px;
    margin: -70px auto 18px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
  }
  .ahk-mobile-brand img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    position: static;
    object-fit: contain;
    object-position: center;
  }
  .ahk-global-nav > a,
  .ahk-global-more > button {
    display: block;
    width: 100%;
    padding: 13px 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-bottom-color: rgba(255, 255, 255, .12);
    border-radius: 10px;
    margin-bottom: 5px;
    background: rgba(255,255,255,.055);
    color: rgba(255, 255, 255, .9);
    text-align: center;
    font-size: clamp(15px, 4.3vw, 19px);
    text-shadow: 0 2px 8px rgba(0,0,0,.22);
  }
  .ahk-global-nav > a:hover,
  .ahk-global-nav > a.current-menu-item,
  .ahk-global-more > button:hover { color: #7fb0ff; }
  .ahk-global-dropdown {
    display: none;
    position: static;
    width: 100%;
    margin: 5px 0 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
    backdrop-filter: blur(12px);
  }
  .ahk-global-more:hover .ahk-global-dropdown,
  .ahk-global-more:focus-within .ahk-global-dropdown {
    display: none;
  }
  .ahk-global-more.open .ahk-global-dropdown {
    display: block;
  }
  .ahk-global-dropdown a {
    padding: 10px;
    color: rgba(255, 255, 255, .84);
    text-align: center;
  }
  .ahk-global-dropdown a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
  }
  .ahk-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
  }
  .ahk-mobile-actions a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size:13px;
    font-weight: 800;
    text-align: center;
  }
  .ahk-mobile-contact {
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
  }
  .ahk-mobile-book {
    color: #fff !important;
    background: var(--ahk-blue);
    box-shadow: 0 9px 22px rgba(23, 99, 237, .25);
  }
  .ahk-global-overlay { display: none; }
  body.ahk-menu-open .ahk-global-menu {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 7;
  }
  body.ahk-menu-open .ahk-global-menu i { background: #fff; }
  body.ahk-menu-open .ahk-global-menu i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.ahk-menu-open .ahk-global-menu i:nth-child(2) { opacity: 0; }
  body.ahk-menu-open .ahk-global-menu i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .ahk-global-menu i { transition: transform .25s ease, opacity .2s ease, background .2s ease; }
  body.ahk-menu-open { overflow: hidden; }
}

@media (max-width: 782px) {
  body.admin-bar .ahk-global-shell { top: 46px; }
  body.admin-bar.ahk-menu-open .ahk-global-menu { top: 64px; }
}
