/* Shared site shell overrides for navigation and footer */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.nav-links a.is-active {
  color: #0f172a !important;
  font-weight: 600;
}

.footer-nav a[href="home.html"] {
  color: #57f0ff !important;
}

.footer-nav a.is-active {
  color: #fff !important;
}

footer {
  position: relative;
  overflow: hidden;
  margin: 0 16px 16px;
  border-radius: 72px;
  background: linear-gradient(180deg, #555b68 0%, #4c525f 100%);
  padding: 54px 56px 36px;
  color: #fff;
}

footer::before,
footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

footer::before {
  background:
    radial-gradient(circle at 11% 8%, rgba(255, 255, 255, 0.06) 0 178px, transparent 179px),
    radial-gradient(circle at 38% 84%, rgba(255, 255, 255, 0.06) 0 240px, transparent 241px),
    radial-gradient(circle at 88% 24%, rgba(255, 255, 255, 0.05) 0 200px, transparent 201px);
  opacity: 0.75;
}

footer::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 42%);
  opacity: 0.95;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
}

.footer-main-title {
  font-size: clamp(28px, 2.8vw, 46px);
  font-weight: 300;
  color: #fff;
  margin-bottom: 54px;
  letter-spacing: -1.6px;
  line-height: 1.08;
  text-align: center;
  white-space: nowrap;
}

.footer-main-title span {
  color: inherit;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.45fr) minmax(240px, 0.7fr);
  gap: 56px;
  margin-bottom: 58px;
  align-items: start;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: #fff;
}

.footer-brand-mark {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.98;
}

.footer-brand-wordmark {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.footer-brand-full {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 22px;
}

.footer-address-block {
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  max-width: 460px;
}

.footer-address-block .country {
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  font-size: 18px;
}

.footer-address-block p {
  margin-bottom: 18px;
}

.footer-address-block a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #69eaff;
  text-decoration: none;
  font-weight: 500;
}

.footer-address-block a::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2369eaff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-nav h4 {
  display: none;
}

.footer-nav a {
  display: block;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  color: #57f0ff;
  text-decoration: none;
  margin-bottom: 28px;
  line-height: 1.15;
  transition: color 0.2s, transform 0.2s;
}

.footer-nav a[href="home.html"] {
  color: #fff;
}

.footer-nav a:hover {
  color: #c6fbff;
  transform: translateX(2px);
}

.footer-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  justify-self: center;
  text-align: center;
}

.footer-logo-img {
  width: min(100%, 210px);
  height: auto;
  display: block;
  margin-left: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 860px) {
  .nav {
    top: 12px !important;
    width: calc(100% - 24px) !important;
    height: auto !important;
    padding: 14px 16px !important;
    border-radius: 28px !important;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-logo {
    gap: 10px !important;
  }

  .nav-logo-img {
    width: 32px !important;
    height: 28px !important;
  }

  .nav-logo-text {
    font-size: 22px !important;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none !important;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.96) 100%);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .nav.nav-open .nav-links {
    display: flex !important;
  }

  .nav-links a {
    font-size: 18px !important;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.94) !important;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    width: 100%;
  }

  .nav-links a.is-active {
    color: #69eaff !important;
    background: rgba(105, 234, 255, 0.12);
  }

  .nav-item-dropdown {
    width: 100%;
    display: block;
  }

  .nav-item-dropdown > a {
    width: 100%;
    display: block;
    padding: 12px 14px;
  }

  .dropdown-content {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    padding: 8px 0 0 10px !important;
    background: transparent !important;
    min-width: 0 !important;
    display: grid !important;
    gap: 8px;
  }

  .dropdown-content a {
    font-size: 15px !important;
    padding: 10px 12px !important;
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.82) !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
  }

  .hero h1,
  .about-hero-section h1,
  .hero-title,
  .section-title {
    font-size: clamp(28px, 7.5vw, 44px) !important;
    line-height: 1.08 !important;
  }

  .hero h1 .line2 {
    font-size: clamp(32px, 8.5vw, 50px) !important;
    margin-top: 10px !important;
    line-height: 1.06 !important;
  }

  .hero-sub,
  .hero-subtitle {
    width: calc(100% - 32px) !important;
    bottom: 28px !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    font-size: 13px !important;
    white-space: normal !important;
  }

  footer {
    margin: 0 10px 10px;
    border-radius: 40px;
    padding: 42px 20px 28px;
  }

  .footer-main-title {
    margin-bottom: 38px;
    font-size: clamp(28px, 7vw, 38px);
    white-space: normal;
  }

  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .footer-brand-row {
    gap: 12px;
    margin-bottom: 20px;
  }

  .footer-brand-mark {
    width: 42px;
    height: 42px;
  }

  .footer-brand-wordmark {
    font-size: 26px;
  }

  .footer-brand-full,
  .footer-address-block {
    font-size: 15px;
  }

  .footer-address-block .country {
    font-size: 15px;
  }

  .footer-nav a {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .footer-logo-container {
    align-items: flex-start;
    padding-top: 0;
    justify-self: start;
    text-align: left;
  }

  .footer-logo-img {
    width: 180px;
    margin-left: 0;
  }

  .evolution-card {
    min-height: auto !important;
    padding: 28px 20px 32px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
  }

  .evo-line,
  .evo-line.brand,
  .evo-brand-link,
  .evolution-desc {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    white-space: normal !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .evo-line {
    font-size: clamp(18px, 5vw, 24px) !important;
    line-height: 1.2 !important;
  }

  .evo-line.brand,
  .evo-brand-link {
    font-size: clamp(24px, 8vw, 36px) !important;
    line-height: 1.05 !important;
  }

  .evolution-desc {
    font-size: clamp(16px, 4.8vw, 20px) !important;
    line-height: 1.25 !important;
  }

  section,
  .solutions-section,
  .about-hero-section,
  .hero,
  .hatch-ai-section,
  .native-ai-section,
  .evolution-section,
  .footer-cta,
  .elevate-section {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}
