/* ========================================================
   ARKAIC SHARED LAYOUT STYLES (NAVBAR, MEGA MENU, MOBILE MENU, FOOTER)
   ======================================================== */

:root {
  --verdigris: #0FA4AF;
  --verdigris-soft: #1AE0EF;
}
@media (prefers-color-scheme: light) {
  :root {
    --verdigris: #0A747C;
    --verdigris-soft: #0FA4AF;
  }
}

/* Teal Selection Styling */
*::selection {
  background-color: #0FA4AF !important;
  background: #0FA4AF !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}
::selection {
  background-color: #0FA4AF !important;
  background: #0FA4AF !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}
p::selection, span::selection, div::selection, strong::selection, a::selection, h1::selection, h2::selection, h3::selection, h4::selection, h5::selection, h6::selection, li::selection, time::selection, body::selection, html::selection, section::selection, main::selection, header::selection, footer::selection {
  background-color: #0FA4AF !important;
  background: #0FA4AF !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}
*::-moz-selection {
  background-color: #0FA4AF !important;
  background: #0FA4AF !important;
  color: #ffffff !important;
  text-shadow: none !important;
}
::-moz-selection {
  background-color: #0FA4AF !important;
  background: #0FA4AF !important;
  color: #ffffff !important;
  text-shadow: none !important;
}
p::-moz-selection, span::-moz-selection, div::-moz-selection, strong::-moz-selection, a::-moz-selection, h1::-moz-selection, h2::-moz-selection, h3::-moz-selection, h4::-moz-selection, h5::-moz-selection, h6::-moz-selection, li::-moz-selection, time::-moz-selection, body::-moz-selection, html::-moz-selection, section::-moz-selection, main::-moz-selection, header::-moz-selection, footer::-moz-selection {
  background-color: #0FA4AF !important;
  background: #0FA4AF !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

/* ========================================================
   BOXY GLASSMORPHISM HEADER
   ======================================================== */
.boxy-glass-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1240px;
  height: 54px;
  z-index: 999999;
  background: rgba(6, 9, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  border-radius: 4px;
}

.boxy-glass-header.scrolled {
  background: rgba(6, 9, 14, 0.95) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(15, 164, 175, 0.3) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(15, 164, 175, 0.15) !important;
}

.boxy-header-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
}

/* Explore Button & Dropdown Container */
.boxy-explore-wrap {
  display: flex;
  align-items: center;
  position: relative;
}
.boxy-explore-btn {
  font-family: 'Product Sans', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.boxy-explore-btn:hover {
  opacity: 0.85;
  color: #1AE0EF;
}
.boxy-explore-arrow {
  font-size: 9px;
  transition: transform 0.25s ease;
}
.boxy-explore-wrap.open .boxy-explore-arrow {
  transform: rotate(180deg);
}

/* Mega Menu Dropdown */
.boxy-explore-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  background: rgba(6, 9, 14, 0.96) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 6px !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85) !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1000000;
}
.boxy-explore-wrap.open .boxy-explore-dropdown,
.boxy-explore-wrap:hover .boxy-explore-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 280px 1.4fr 320px;
  width: 100%;
  min-height: 420px;
}

/* Mega Menu Col 1: Navigation List */
.mega-col-nav {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.mega-nav-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.mega-nav-item:hover,
.mega-nav-item.active {
  background: rgba(15, 164, 175, 0.12);
  border: 1px solid rgba(15, 164, 175, 0.3);
}
.mega-nav-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mega-nav-title {
  font-family: 'Product Sans', 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #ffffff;
}
.mega-nav-arrow {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mega-nav-item:hover .mega-nav-arrow,
.mega-nav-item.active .mega-nav-arrow {
  opacity: 1;
  color: #1AE0EF;
}
.mega-nav-desc {
  font-family: 'Product Sans', 'Inter', sans-serif;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  line-height: 1.45;
}

/* Mega Menu Col 2: Dynamic Preview Panels */
.mega-col-preview {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  position: relative;
}
.mega-preview-panel {
  display: none;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mega-preview-panel.active {
  display: flex;
  opacity: 1;
}
.mega-preview-label {
  font-family: 'Product Sans', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #0FA4AF;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.mega-preview-heading {
  font-family: 'TT Mussels', 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.mega-preview-text {
  font-family: 'Product Sans', 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 28px;
}
.mega-preview-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 26px;
}
.mega-action-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Product Sans', 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.mega-action-link:hover {
  color: #1AE0EF;
  transform: translateX(3px);
}
.mega-cta-card {
  background: rgba(15, 164, 175, 0.08);
  border: 1px solid rgba(15, 164, 175, 0.25);
  border-radius: 6px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
}
.mega-cta-title {
  font-family: 'TT Mussels', 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}
.mega-cta-desc {
  font-family: 'Product Sans', 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
}
.mega-cta-btn {
  background: #0FA4AF;
  color: #ffffff;
  font-family: 'Product Sans', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mega-cta-btn:hover {
  background: #1AE0EF;
  color: #050811;
}

/* Mega Menu Col 3: Blank Box */
.mega-col-blank {
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center Brand Logo */
.boxy-brand-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.boxy-brand-logo {
  font-family: 'Deltha', 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}

/* Right Contact Link */
.boxy-contact-right .boxy-contact-btn {
  font-family: 'Product Sans', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(15, 164, 175, 0.14);
  border: 1px solid rgba(15, 164, 175, 0.4);
  transition: all 0.2s ease;
}
.boxy-contact-right .boxy-contact-btn:hover {
  background: rgba(15, 164, 175, 0.3);
  border-color: #0FA4AF;
  color: #1AE0EF;
}

/* Mobile Visibility Utilities */
.desktop-only { display: flex !important; }
.mobile-only { display: none !important; }

@media only screen and (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  .boxy-contact-right { display: none !important; }
  .boxy-glass-header {
    width: calc(100% - 24px) !important;
    top: 12px !important;
    height: 52px !important;
  }
  .boxy-header-inner {
    padding: 0 16px !important;
  }
  .boxy-hamburger-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .boxy-hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }
  .boxy-hamburger-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .boxy-hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .boxy-hamburger-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .boxy-brand-logo {
    font-size: 20px !important;
    letter-spacing: 0.16em !important;
  }
  .mega-menu-container {
    display: none !important;
  }
}

/* ========================================================
   MOBILE FULL SCREEN DRAWER MENU (SLIDES FROM RIGHT)
   ======================================================== */
.mobile-menu-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(6, 9, 14, 0.98) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  z-index: 999999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-100%) !important;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding-top: 76px !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.mobile-menu-drawer.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(14px, 3.5vw, 24px);
  box-sizing: border-box;
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 12px 18px;
  margin-bottom: clamp(14px, 3vh, 28px);
  background: rgba(255, 255, 255, 0.03);
}
.mobile-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-logo {
  font-family: 'Deltha', 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-transform: uppercase;
}

/* Mobile Nav Items */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  gap: clamp(6px, 1.5vh, 16px);
  margin: clamp(10px, 2vh, 20px) 0;
}
.mobile-nav-item {
  display: block;
  text-decoration: none;
  padding: clamp(10px, 2vh, 18px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.2s ease;
}
.mobile-nav-item:active,
.mobile-nav-item:hover {
  opacity: 0.8;
}
.mobile-nav-title {
  font-family: 'TT Mussels', 'Space Grotesk', sans-serif;
  font-size: clamp(2.3rem, 9.8vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.05;
}
.mobile-nav-subtitle {
  font-family: 'Product Sans', 'Inter', sans-serif;
  font-size: clamp(0.85rem, 3.2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 5px;
}

/* Mobile Footer */
.mobile-menu-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 10px;
}
.mobile-callback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 164, 175, 0.14);
  border: 1px solid rgba(15, 164, 175, 0.4);
  color: #ffffff;
  font-family: 'Product Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.mobile-callback-btn:hover {
  background: rgba(15, 164, 175, 0.3);
  color: #1AE0EF;
}
.mobile-socials-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}
.mobile-socials-row a {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Product Sans', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ========================================================
   ARKAIC FOOTER
   ======================================================== */
.arkaic-footer {
  background-color: #06090e;
  color: #ffffff;
  padding: 70px 40px 30px 40px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10;
  font-family: 'Inter', sans-serif;
}
@media (max-width: 900px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
  }
}
@media (max-width: 600px) {
  .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .arkaic-footer {
    padding: 50px 20px 24px 20px !important;
  }
}
