/* =========================================================
   HYDRON HEADER + FOOTER CSS
   Load this after the main/base CSS so design tokens like
   --ink, --paper, --line, --header-h, --serif are available.
   ========================================================= */

/* ================= HEADER ================= */

.hy-navlink {
  position: relative;
}

.hy-navlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--violet);
  transition: width .3s ease;
}

.hy-navlink:hover::after,
.hy-navlink[aria-current="page"]::after {
  width: 100%;
}

.hy-navlink[aria-current="page"] {
  color: var(--violet);
}


.hy-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h, 84px);
  display: flex;
  align-items: center;
  transition:
    background .45s var(--ease, ease),
    box-shadow .45s var(--ease, ease),
    backdrop-filter .45s var(--ease, ease);
}

.hy-bar {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hy-logo {
  font-family: var(--serif, Georgia, serif);
  font-size: 26px;
  color: var(--ink, #213A52);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hy-logo .dot {
  width: 11px;
  height: 11px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--lime, #B8D96E), var(--violet, #6C63C7));
}

.hy-logo img {
  height: 55px;
  width: auto;
  display: block;
}

.hy-nav {
  display: flex;
  gap: 34px;
}

.hy-navlink {
  font-size: 14px;
  font-weight: 600;
  color: rgba(33,58,82,.72);
  transition: color .3s ease;
}

.hy-navlink:hover {
  color: var(--ocean, #2E6E93);
}

.hy-header .btn {
  padding: 12px 24px;
  font-size: 14px;
}

.hy-header.scrolled {
  background: rgba(252,251,249,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line, rgba(33,58,82,.12));
}

/* Mobile menu button */
.hy-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 120;
}

.hy-menu-toggle span {
  width: 20px;
  height: 2px;
  background: #1C1842;
  border-radius: 99px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hy-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hy-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.hy-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================= FOOTER ================= */



/* ================= RESPONSIVE HEADER + FOOTER ================= */

@media (max-width: 1024px) {
  :root {
    --header-h: 74px;
  }

  .hy-bar {
    gap: 18px;
    padding: 0 24px;
  }

  .hy-logo img {
    height: 48px;
  }

  .hy-header .btn {
    padding: 10px 18px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .hy-bar {
    gap: 14px;
  }

  .hy-nav {
    position: fixed;
    top: var(--header-h, 74px);
    left: 16px;
    right: 16px;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    padding: 18px;
    border-radius: 22px;
    background: rgba(252, 251, 249, 0.96);
    border: 1px solid var(--line, rgba(33,58,82,.12));
    box-shadow: 0 24px 60px rgba(33, 58, 82, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 110;
  }

  .hy-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hy-navlink {
    padding: 14px 10px;
    font-size: 15px;
    border-bottom: 1px solid rgba(33, 58, 82, 0.08);
  }

  .hy-navlink:last-child {
    border-bottom: 0;
  }

  .hy-menu-toggle {
    display: inline-flex;
  }

  .hy-header-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }

  .hy-header {
    height: var(--header-h, 68px);
    background: rgba(252,251,249,.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line, rgba(33,58,82,.12));
  }

  .hy-bar {
    padding: 0 18px;
  }

  .hy-logo img {
    height: 42px;
  }

  .hy-header .btn {
    display: none;
  }

  .foot-grid {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
}

/* Performance patch for mobile */
@media (max-width: 768px) {
  .hy-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (max-width: 900px) {
  .hy-menu-toggle {
    display: inline-flex !important;
    position: relative;
    z-index: 999;
  }

  .hy-nav {
    position: fixed;
    top: var(--header-h);
    left: 16px;
    right: 16px;
    display: flex !important;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    z-index: 998;
  }

  .hy-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ================= FOOTER ================= */

.footer{
  background:#1C1842;
  color:#fff;
  padding:72px 0 34px;
  font-size:14px;
}

/* TOP 3-COLUMN LAYOUT */

.footer-top{
  display:grid;
  grid-template-columns:1.2fr .8fr 1fr;
  gap:clamp(40px,7vw,110px);
  align-items:start;
  padding-bottom:56px;
}

.footer-col{
  min-width:0;
}

/* LOGO COLUMN */

.footer-brand{
  display:flex;
  align-items:flex-start;
}

.footer-logo{
  display:inline-flex;
}

.footer-logo img{
  display:block;
  width:auto;
  height:62px;
}

/* COLUMN HEADINGS */

.footer-col-title{
  margin:0 0 20px;
  color:rgba(255,255,255,.52);
  font-size:11px;
  line-height:1;
  font-weight:700;
  letter-spacing:.2em;
  text-transform:uppercase;
}

/* MENU COLUMN */

.footer-nav{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}

.footer-nav a{
  color:rgba(255,255,255,.78);
  font-size:15px;
  line-height:1.5;
  transition:
    color .3s ease,
    transform .3s ease;
}

.footer-nav a:hover{
  color:#fff;
  transform:translateX(4px);
}

/* EMAIL COLUMN */

.footer-contact{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.footer-email{
  color:#fff;
  font-size:15px;
  font-weight:500;
  line-height:1.5;
  overflow-wrap:anywhere;
  text-decoration:none;
  text-decoration-color:rgba(255,255,255,.32);
  text-underline-offset:7px;
  transition:
    color .3s ease,
    text-decoration-color .3s ease;
}

.footer-email:hover{
  color:var(--aqua,#7FB8D9);
  text-decoration-color:var(--aqua,#7FB8D9);
}

/* BOTTOM ROW */

.footer-bottom{
  display:grid;
  grid-template-columns:minmax(0,780px) auto;
  gap:50px;
  align-items:end;
  padding-top:30px;
  border-top:1px solid rgba(255,255,255,.14);
}

.foot-note{
  margin:0;
  max-width:780px;
  color:rgba(255,255,255,.55);
  font-size:11.5px;
  line-height:1.75;
}

.footer-copyright{
  color:rgba(255,255,255,.72);
  font-size:12.5px;
  line-height:1.6;
  text-align:right;
  white-space:nowrap;
}

/* TABLET */

@media(max-width:900px){

  .footer-top{
    grid-template-columns:1fr 1fr;
    gap:45px;
  }

  .footer-brand{
    grid-column:1 / -1;
  }

  .footer-bottom{
    grid-template-columns:1fr;
    gap:20px;
  }

  .footer-copyright{
    text-align:left;
    white-space:normal;
  }
}

/* MOBILE */

@media(max-width:600px){

  .footer{
    padding:56px 0 28px;
  }

  .footer-top{
    grid-template-columns:1fr;
    gap:38px;
    padding-bottom:42px;
  }

  .footer-brand{
    grid-column:auto;
  }

  .footer-logo img{
    height:50px;
  }

  .footer-bottom{
    padding-top:25px;
  }
}