/* ══════════════════════════════════════════════
   SHARED CSS — Zovintra Website
   Common styles for all pages: reset, variables,
   banner/nav, mega menu, footer, scroll-to-top,
   and responsive breakpoints for shared components.
══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #f9f9f9;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --purple: #6b4eff;
  --container: 1300px;
  --font-sans: 'Spline Sans', sans-serif;
  --font-serif: 'Instrument Serif', serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--black); background: var(--white); overflow-x: hidden; }

/* ════════════════════════════════════════
   BANNER / NAV
════════════════════════════════════════ */
.banner-wrap {
  padding: 16px 110px;
  position: sticky; top: 0; z-index: 1000;
}
.banner-ring {
  max-width: var(--container);
  margin: 0 auto;
  border-radius: 68px;
  position: relative;
  padding: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
.banner-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 68px;
  padding: 2px;
  background: linear-gradient(90deg, #4921FD 0%, #FF671F 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px;
  border-radius: 66px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
}

/* Left phone pill */
.banner-phone-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 100px;
  background: #ebebeb;
  border: 1px solid white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 4px 16px rgba(0,0,0,0.11);
  backdrop-filter: blur(17.5px);
  -webkit-backdrop-filter: blur(17.5px);
  flex-shrink: 0;
  text-decoration: none; cursor: pointer;
}
.banner-phone-circle {
  width: 40px; height: 40px; background: var(--black); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.banner-phone-circle svg { width: 18px; height: 18px; }
.banner-left-info { line-height: 1.3; }
.banner-left-info strong { font-size: 0.82rem; font-weight: 700; display: block; color: var(--black); }
.banner-left-info span {
  font-size: 0.76rem; color: var(--gray-500);
  display: flex; align-items: center; gap: 5px;
}
.dot-green { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; flex-shrink: 0; }

/* Center logo */
.banner-logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center;
  text-decoration: none;
}
.banner-logo img { height: 54px; width: auto; display: block; }

/* Right: menu button */
.banner-right { display: flex; align-items: center; flex-shrink: 0; }
.btn-menu {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px; border-radius: 63px;
  border: 1.5px solid rgba(0,0,0,0.16);
  background: rgba(235,235,235,0.45);
  font-size: 1rem; font-weight: 400; cursor: pointer;
  font-family: var(--font-sans); color: var(--black);
  transition: background 0.2s, border-color 0.2s;
}
.btn-menu:hover { background: rgba(235,235,235,0.72); border-color: rgba(0,0,0,0.22); }
.hamburger { display: flex; flex-direction: column; gap: 4px; transition: transform 0.2s; }
.hamburger i { display: block; width: 17px; height: 1.5px; background: var(--black); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.menu-open .hamburger i:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
.menu-open .hamburger i:nth-child(2) { transform: translateY(-2.75px) rotate(-45deg); }

/* ════════════════════════════════════════
   MEGA MENU
════════════════════════════════════════ */
.mega-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mega-menu.active { opacity: 1; pointer-events: auto; }

.mega-menu-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mega-menu-panel {
  position: relative; z-index: 1;
  width: calc(100% - 220px);
  max-width: var(--container);
  margin: 100px auto 0;
  border-radius: 24px;
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--gray-200);
  box-shadow: 0 32px 80px rgba(0,0,0,0.18);
  overflow: hidden;
  transform: translateY(-16px);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.mega-menu.active .mega-menu-panel { transform: translateY(0); }

.mega-menu-inner {
  display: grid;
  grid-template-columns: 200px 1.6fr 1fr;
  min-height: 0;
}
/* Services column */
.mega-col-services {
  display: block;
  border-left: 1px solid var(--gray-100);
}
.mega-col-services .mega-col-half {
  padding: 24px 28px;
}
/* Company col */
.mega-col-company {
  border-left: 1px solid var(--gray-100);
  padding: 24px 24px;
  display: flex; flex-direction: column; gap: 28px;
}
.mega-col-group-title {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-400);
  margin-bottom: 10px; display: block;
}

/* Left accent column */
.mega-menu-brand {
  padding: 28px 24px;
  background: var(--black);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px;
}
.mega-menu-brand-logo img { height: 28px; }
.mega-menu-brand-tagline {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.15rem; color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
.mega-menu-brand-cta {
  display: flex; align-items: center; justify-content: center;
  padding: 11px 18px; border-radius: 999px;
  background: linear-gradient(90deg, #4921FD 0%, #FF671F 100%);
  color: white; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; font-family: var(--font-sans);
}

/* Nav columns */
.mega-col {
  padding: 24px 24px;
  border-left: 1px solid var(--gray-100);
}
.mega-col-title {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-400);
  margin-bottom: 14px; display: block;
}
.mega-col-items { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mega-col-items li a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 8px;
  font-family: var(--font-sans); font-size: 0.92rem;
  color: var(--black); text-decoration: none;
  transition: background 0.15s;
}
.mega-col-items li a:hover { background: var(--gray-100); }
.mega-col-items li a .mi-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--gray-200);
}
.mega-col-items li a:hover .mi-dot { background: #FF671F; }
.mega-col-items li a .mi-label { flex: 1; }
.mega-col-items li a .mi-sub {
  font-size: 0.72rem; color: var(--gray-400); font-weight: 400;
}

/* Bottom strip */
.mega-menu-footer {
  padding: 16px 32px;
  border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gray-50);
}
.mega-footer-links { display: flex; gap: 24px; }
.mega-footer-links a {
  font-size: 0.78rem; color: var(--gray-500);
  text-decoration: none; font-family: var(--font-sans);
}
.mega-footer-links a:hover { color: var(--black); }
.mega-footer-right { font-size: 0.78rem; color: var(--gray-400); font-family: var(--font-sans); }

/* ════════════════════════════════════════
   FOOTER BOTTOM
════════════════════════════════════════ */
.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding: 20px 110px;
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--container); margin: 0 auto;
}
.footer-copy { font-size: 0.78rem; color: var(--gray-500); }
.footer-made { font-size: 0.78rem; color: var(--gray-400); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 0.78rem; color: var(--gray-500); text-decoration: none; }
.footer-links a:hover { color: var(--black); }

/* ════════════════════════════════════════
   SCROLL TO TOP
════════════════════════════════════════ */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--black); color: white;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;
  pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: #333; }
.scroll-top svg { width: 18px; height: 18px; }

/* ════════════════════════════════════════
   RESPONSIVE — Shared Components
════════════════════════════════════════ */

/* ── Tablet landscape (<=1100px) ── */
@media (max-width: 1100px) {
  .banner-wrap { padding: 14px 48px; }
  .mega-menu-panel { width: calc(100% - 96px); margin: 100px auto 0; }
  .footer-bottom { padding: 20px 48px; }
}

/* ── Tablet portrait / large mobile (<=768px) ── */
@media (max-width: 768px) {
  /* Nav */
  .banner-wrap { padding: 10px 12px; }
  .banner { padding: 6px; }
  .banner-logo { position: static; transform: none; flex: 1; justify-content: center; }
  .banner-logo img { height: 36px; }
  .banner-left-info { display: none; }
  .banner-phone-pill { padding: 6px; }
  .banner-phone-circle { width: 34px; height: 34px; }
  .btn-menu { height: 46px; padding: 0 12px; gap: 0; }
  .btn-menu-label { display: none; }

  /* Mega menu mobile */
  .mega-menu-panel { width: calc(100% - 32px); margin: 72px auto 0; border-radius: 20px; }
  .mega-menu-inner {
    grid-template-columns: 1fr;
    overflow-y: auto; max-height: calc(100vh - 100px);
    align-content: start;
  }
  .mega-menu-brand {
    flex-direction: row; align-items: center;
    justify-content: space-between;
    padding: 14px 20px; gap: 12px;
    border-radius: 20px 20px 0 0;
  }
  .mega-menu-brand-logo img { height: 22px; }
  .mega-menu-brand-tagline { display: none; }
  .mega-menu-brand-cta { font-size: 0.78rem; padding: 9px 14px; white-space: nowrap; }
  .mega-col { border-left: none; border-top: 1px solid var(--gray-100); padding: 16px 20px; }
  .mega-col-services { border-left: none; }
  .mega-col-company { padding: 16px 20px; }
  .mega-menu-footer { padding: 16px 20px; flex-direction: column; gap: 12px; align-items: flex-start; }

  /* Footer */
  .footer-bottom { padding: 16px 24px; flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }

  /* Scroll to top */
  .scroll-top { bottom: 20px; right: 16px; width: 42px; height: 42px; }
}
