/* ═══════════════════════════════════════════════════════════════
   HYPERNET NAVBAR — navbar-maxim.css
   Matches Figma: Frame 477/478 (desktop) & Frame 493/494 (mobile)
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --hn-teal:          #2BBFAD;
    --hn-teal-dark:     #229e8e;
    --hn-teal-card-bg:  rgba(0,0,0,0.10);
    --hn-white:         #FFFFFF;
    --hn-text-dark:     #1A1A1A;
    --hn-border:        #E8E8E8;
    --hn-nav-height:    72px;
    --hn-radius:        16px;
    --hn-radius-card:   10px;
    --hn-shadow:        0 16px 48px rgba(0, 0, 0, 0.18);
    --hn-transition:    0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --hn-font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hn-max-width:     1280px;
    --hn-side-pad:      32px;
}

/* ── Reset / Base ──────────────────────────────────────────── */
.hn-nav *,
.hn-nav *::before,
.hn-nav *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.hn-nav ul { list-style: none; }
.hn-nav a  { text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   NAVBAR SHELL
   position: relative is the anchor for the absolute mega panel
   ══════════════════════════════════════════════════════════════ */
.hn-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: var(--hn-white);
    border-bottom: 1px solid var(--hn-border);
    font-family: var(--hn-font);
}

body.admin-bar .hn-nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .hn-nav {
        top: 46px;
    }
}

.hn-nav + .site-content {
    padding-top: var(--hn-nav-height);
}

body.admin-bar .hn-nav__mega {
    top: calc(var(--hn-nav-height) + 32px);
}

body.admin-bar .hn-mobile {
    top: calc(var(--hn-nav-height) + 32px);
    max-height: calc(100vh - var(--hn-nav-height) - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .hn-nav__mega {
        top: calc(var(--hn-nav-height) + 46px);
    }
    body.admin-bar .hn-mobile {
        top: calc(var(--hn-nav-height) + 46px);
        max-height: calc(100vh - var(--hn-nav-height) - 46px);
    }
}

.hn-nav__inner {
    display: flex;
    align-items: center;
    max-width: var(--hn-max-width);
    margin: 0 auto;
    padding: 0 var(--hn-side-pad);
    height: var(--hn-nav-height);
}

/* ── Logo ──────────────────────────────────────────────────── */
.hn-nav__logo {
    flex-shrink: 0;
    margin-right: auto;
    display: flex;
    align-items: center;
}

.hn-nav__logo img,
.hn-nav__logo .custom-logo {
    height: 40px;
    width: auto;
}

.hn-nav__logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--hn-teal);
    letter-spacing: -0.5px;
}

/* ── Desktop Menu ──────────────────────────────────────────── */
.hn-nav__menu {
    display: flex;
    align-items: stretch;
    height: 100%;
}

/* Each nav item — position:relative so the mega panel is
   absolutely positioned relative to THIS item's left edge,
   then we override left/right to span full nav width */
.hn-nav__item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* ── Trigger button ──────────────────────────────────────── */
.hn-nav__trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--hn-font);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--hn-text-dark);
    transition: color var(--hn-transition);
    white-space: normal;
    text-align: left;
    line-height: 1.25;
    position: relative;
}

/* Bottom teal bar — active indicator */
.hn-nav__trigger::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    background: var(--hn-teal);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform var(--hn-transition);
    transform-origin: center;
}

.hn-nav__item--mega.is-open .hn-nav__trigger,
.hn-nav__trigger:hover {
    color: var(--hn-teal);
}

.hn-nav__item--mega.is-open .hn-nav__trigger::after {
    transform: scaleX(1);
}

/* Chevron */
.hn-nav__chevron {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform var(--hn-transition);
    color: currentColor;
}

.hn-nav__item--mega.is-open .hn-nav__chevron {
    transform: rotate(180deg);
}

/* ── Plain link items ────────────────────────────────────── */
.hn-nav__link {
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: 100%;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--hn-text-dark);
    transition: color var(--hn-transition);
    white-space: nowrap;
}

.hn-nav__link:hover { color: var(--hn-teal); }

/* ── CTA Button ──────────────────────────────────────────── */
.hn-nav__cta {
    flex-shrink: 0;
    margin-left: 20px;
    padding: 13px 28px;
    background: var(--hn-teal);
    color: var(--hn-white) !important;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background var(--hn-transition), transform var(--hn-transition), box-shadow var(--hn-transition);
}

.hn-nav__cta:hover {
    background: var(--hn-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(43, 191, 173, 0.35);
}

.hn-nav__cta:active { transform: translateY(0); }

/* Hamburger — hidden on desktop */
.hn-nav__hamburger { display: none; }

/* ══════════════════════════════════════════════════════════════
   MEGA DROPDOWN PANEL
   Strategy: position absolute on .hn-nav (sticky bar itself),
   so left:0/right:0 = full viewport width of the bar.
   The inner box is then constrained + centred with padding.
   ══════════════════════════════════════════════════════════════ */
.hn-nav__mega {
    /* Anchor to .hn-nav (fixed bar), not the li */
    position: fixed;
    top: var(--hn-nav-height);
    left: 0;
    right: 0;
    padding: 8px var(--hn-side-pad) 0; /* 8px gap + same side padding as inner */
    z-index: 1001;
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity var(--hn-transition),
        transform var(--hn-transition),
        visibility 0s var(--hn-transition);
}

/* Open state */
.hn-nav__item--mega.is-open .hn-nav__mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition:
        opacity var(--hn-transition),
        transform var(--hn-transition),
        visibility 0s;
}

/* The visible teal box */
.hn-nav__mega-inner {
    position: relative;
    display: flex;
    gap: 16px;
    max-width: max-content;
    margin: 0 auto;
    padding: 24px;
    background: var(--hn-teal);
    border-radius: var(--hn-radius);
    box-shadow: var(--hn-shadow);
}

/* Caret arrow pointing up */
.hn-nav__mega-inner::before {
    content: '';
    position: absolute;
    top: -9px;
    left: var(--caret-left, 180px);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left:  10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--hn-teal);
}

/* ── Left: Description Panel ─────────────────────────────── */
.hn-nav__mega-desc {
    flex: 0 0 240px;
    padding: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--hn-radius-card);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hn-nav__mega-desc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hn-white);
    line-height: 1;
}

.hn-nav__mega-desc-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
    flex: 1;
}

.hn-nav__mega-desc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--hn-white) !important;
    margin-top: auto;
    transition: opacity var(--hn-transition);
}

.hn-nav__mega-desc-link svg { transition: transform var(--hn-transition); }
.hn-nav__mega-desc-link:hover { opacity: 0.85; }
.hn-nav__mega-desc-link:hover svg { transform: translateX(3px); }

/* ── Right: Cards Grid ───────────────────────────────────── */
.hn-nav__mega-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    align-content: start;
}

.hn-nav__mega-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.hn-nav__mega-card-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--hn-radius-card);
    background: transparent;
    transition: background var(--hn-transition);
    max-width: 300px;
}

.hn-nav__mega-card-link:hover,
.hn-nav__mega-card-link:focus {
    background: var(--hn-teal-card-bg);
    outline: none;
}

.hn-nav__mega-card--active .hn-nav__mega-card-link {
    background: var(--hn-teal-card-bg);
}

/* Icon placeholder — white rounded square */
.hn-nav__mega-card-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    overflow: hidden;
}

.hn-nav__mega-card-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.hn-nav__mega-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hn-nav__mega-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hn-white);
    line-height: 1.3;
}

.hn-nav__mega-card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE MENU
   ══════════════════════════════════════════════════════════════ */

.hn-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 12px;
    flex-shrink: 0;
}

.hn-nav__hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--hn-text-dark);
    border-radius: 2px;
    transition: transform var(--hn-transition), opacity var(--hn-transition);
    transform-origin: center;
}

.hn-nav__hamburger.is-open .hn-nav__hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hn-nav__hamburger.is-open .hn-nav__hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hn-nav__hamburger.is-open .hn-nav__hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hn-mobile {
    display: none;
    flex-direction: column;
    background: var(--hn-white);
    border-top: 1px solid var(--hn-border);
    max-height: calc(100vh - var(--hn-nav-height));
    overflow-y: auto;
    padding: 16px 20px 24px;
}

.hn-mobile.is-open { display: flex; }

.hn-mobile__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hn-mobile__item {
    border-bottom: 1px solid var(--hn-border);
}
.hn-mobile__item:last-child { border-bottom: none; }

.hn-mobile__link {
    display: block;
    padding: 16px 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--hn-text-dark);
}

.hn-mobile__accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--hn-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--hn-text-dark);
    text-align: left;
    transition: color var(--hn-transition);
}

.hn-mobile__item--accordion.is-open .hn-mobile__accordion-trigger {
    color: var(--hn-teal);
}

.hn-mobile__chevron {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform var(--hn-transition);
    color: var(--hn-teal);
}

.hn-mobile__item--accordion.is-open .hn-mobile__chevron {
    transform: rotate(180deg);
}

.hn-mobile__accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hn-mobile__item--accordion.is-open .hn-mobile__accordion-panel {
    max-height: 1200px;
}

.hn-mobile__desc-card {
    background: var(--hn-teal);
    border-radius: var(--hn-radius-card);
    padding: 16px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hn-mobile__desc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--hn-white);
}

.hn-mobile__desc-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.hn-mobile__desc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hn-white);
    align-self: flex-start;
    transition: opacity var(--hn-transition);
}
.hn-mobile__desc-link:hover { opacity: 0.8; }

.hn-mobile__subitems {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 12px;
}

.hn-mobile__subitem-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--hn-teal);
    border-radius: var(--hn-radius-card);
    transition: background var(--hn-transition);
}

.hn-mobile__subitem-link:hover { background: var(--hn-teal-dark); }

.hn-mobile__subitem-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    overflow: hidden;
}

.hn-mobile__subitem-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.hn-mobile__subitem-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hn-mobile__subitem-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--hn-white);
    line-height: 1.3;
}

.hn-mobile__subitem-desc {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.hn-mobile__cta {
    display: block;
    margin-top: 20px;
    padding: 16px;
    background: var(--hn-teal);
    color: var(--hn-white);
    border-radius: 50px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background var(--hn-transition);
}
.hn-mobile__cta:hover { background: var(--hn-teal-dark); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hn-nav__menu      { display: none; }
    .hn-nav__cta       { display: none; }
    .hn-nav__hamburger { display: flex; }
}

@media (max-width: 480px) {
    :root { --hn-side-pad: 16px; }
    .hn-nav__logo img,
    .hn-nav__logo .custom-logo { height: 34px; }
}

/* ═══════════════════════════════════════════════════════════════
   HYPERNET FOOTER — Maxim Layout
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
  background-color: #17B89E;
  color: #ffffff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  padding: 60px 20px 40px 20px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-sizing: border-box;
}

.site-footer *, .site-footer *::before, .site-footer *::after {
  box-sizing: border-box;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-logo {
  background-color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  display: block;
  max-width: 100%;
  width: 180px;
  height: auto;
}

.footer-office-section h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #ffffff;
}

.footer-office-section p {
  margin: 0 0 6px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.footer-office-section .office-contact {
  margin-top: 10px;
  font-weight: 500;
}

.footer-main-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 20px;
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 0;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  padding: 4px 14px;
  margin-left: -14px;
  border-radius: 20px;
  background-color: transparent;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
  background-color: #0d8370;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
}

.footer-social-inner {
  background-color: #0d8a73;
  padding: 12px 24px;
  border-radius: 24px;
  display: flex;
  gap: 16px;
  width: max-content;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.footer-social-link:hover {
  transform: scale(1.08);
}

.footer-social-link img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-bottom {
  max-width: 1140px;
  margin: 50px auto 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 992px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-sidebar {
    width: 320px;
    flex-shrink: 0;
  }

  .footer-main-content {
    flex: 1;
    margin-left: 60px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}
#main-content {width:unset}