/* 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;
  }
}

/* Header */
.wa-header {
  background: linear-gradient(135deg, #09e85e 0%, #25d366 100%);
  color: #ffffff;
  padding: 20px;
  display: flex;
  align-items: center;
  position: relative;
}

.wa-avatar-container {
  position: relative;
  margin-right: 12px;
  width: 48px;
  height: 48px;
}

.wa-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 4px;
}

.wa-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background-color: #4cd964;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.wa-header-info {
  flex-grow: 1;
}

.wa-header-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.wa-header-status {
  font-size: 12px;
  opacity: 0.9;
  margin: 2px 0 0 0;
}

.wa-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.wa-close-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Body */
.wa-body {
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 0), radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 0);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  padding: 16px;
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

/* Custom Sleek Scrollbar for Chat Body */
.wa-body::-webkit-scrollbar {
  width: 6px;
}

.wa-body::-webkit-scrollbar-track {
  background: transparent;
}

.wa-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.wa-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

.wa-msg-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.wa-msg-bubble {
  background-color: #ffffff;
  padding: 10px 14px;
  border-radius: 4px 16px 16px 16px;
  max-width: 85%;
  font-size: 13.5px;
  line-height: 1.45;
  color: #111b21;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  position: relative;
  align-self: flex-start;
  word-wrap: break-word;
}

.wa-msg-bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent #ffffff transparent transparent;
}

/* User Message Styling */
.wa-msg-bubble.user {
  background-color: #d9fdd3;
  border-radius: 16px 4px 16px 16px;
  align-self: flex-end;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wa-msg-bubble.user::before {
  content: "";
  position: absolute;
  right: -8px;
  left: auto;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent transparent #d9fdd3;
}

.wa-msg-time {
  font-size: 10px;
  color: #8b929a;
  text-align: right;
  margin-top: 4px;
}

/* Quick Action Chips */
.wa-quick-replies {
  background-color: #efeae2;
  padding: 8px 12px 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.wa-quick-replies::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar for clean aesthetic */
}

.wa-chip {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
  outline: none;
}

.wa-chip:hover {
  border-color: #25d366;
  color: #128c7e;
  background-color: #f7fff9;
  transform: translateY(-1px);
}

.wa-chip:active {
  transform: scale(0.95);
}

/* Footer & Input Styles */
.wa-footer {
  background-color: #f0f2f5;
  padding: 10px 14px;
  border-top: 1px solid #e9edef;
  display: flex;
  align-items: center;
}

.wa-chat-input-container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  background-color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e9edef;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.wa-chat-input {
  flex-grow: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 14px;
  padding: 4px 0;
  color: #111b21;
  font-family: inherit;
}

.wa-chat-input::placeholder {
  color: #8696a0;
  font-size: 14px;
}

.wa-send-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.2s ease;
}

.wa-send-btn svg {
  width: 20px;
  height: 20px;
  fill: #8696a0;
  transition: fill 0.2s, transform 0.2s;
}

.wa-send-btn:hover svg {
  fill: #00a884;
  transform: scale(1.08);
}

.wa-send-btn:active {
  transform: scale(0.92);
}

/* Typing Indicator Animation */
.wa-typing-bubble {
  background-color: #ffffff;
  padding: 10px 14px;
  border-radius: 4px 16px 16px 16px;
  align-self: flex-start;
  min-width: 52px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.wa-typing-bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent #ffffff transparent transparent;
}

.wa-typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.wa-typing-dots span {
  width: 6px;
  height: 6px;
  background-color: #8696a0;
  border-radius: 50%;
  display: inline-block;
  animation: waTypingBounce 1.4s infinite ease-in-out both;
}

.wa-typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.wa-typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes waTypingBounce {

  0%,
  80%,
  100% {
    transform: scale(0.4);
    opacity: 0.5;
  }

  40% {
    transform: scale(1.0);
    opacity: 1;
  }
}

/* Mobile responsive styling */
@media (max-width: 480px) {
  .wa-widget-container {
    bottom: 20px;
    right: 20px;
  }

  .wa-popup {
    width: calc(100vw - 40px);
    bottom: 75px;
    right: 0;
  }

  .wa-tooltip {
    display: none;
    /* Hide tooltip on small mobile screens to prevent clutter */
  }
}