/* ============================
   Logo
============================ */
/* Sticky header setup */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg-primary);
  z-index: 999;
  border-bottom: 1px solid var(--border-soft);
}

/* Container */
.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, nav right */
  height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 5px; /* updated gap */
}

.logo img {
  height: 85px; /* desktop size */
  display: block;
}

.logo span {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px; /* space between links */
}

.main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent-primary);
}

/* Button styling */
.main-nav a.btn {
  background: var(--accent-primary);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.main-nav a.btn:hover {
  background: var(--accent-hover);
}

/* Small button adjustment */
.main-nav a.btn.small {
  font-size: 0.9rem;
  padding: 5px 12px;
}

/* Responsive (mobile) */
@media (max-width: 768px) {
  /* Container: row layout */
  .site-header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 10px 15px;
  }

  /* Logo smaller and site title hidden */
  .logo img {
    height: 47px; /* 55% of 85px */
  }

  .logo span {
    display: none; /* hide title */
  }

  /* Nav stretches to fill remaining width */
  .main-nav {
    flex: 1; /* take remaining width */
    display: flex;
    justify-content: space-between; /* evenly space links + button */
    justify-content: flex-end;
    gap: 5px;
    margin-left: 10px;
  }

  /* Nav links stretch and center text */
  .main-nav a {
    flex: 1; /* each link/button takes equal width */
    text-align: center;
    font-size: 0.85rem;
  }

  /* Button stretches like links */
  .main-nav a.btn {
    flex: 1;
    padding: 5px 0;
    max-width: 150px;
  }

  /* Show only "Consult" on mobile */
  .main-nav a.btn.small::after {
    content: "Consult Now";
    display: inline-block;
  }

  .main-nav a.btn.small {
    /* hide original text */
    font-size: 0.85rem;
  }

  /* Remove any extra text from "Consult faster" */
  .main-nav a.btn.small span, .main-nav .no-button {
    display: none;
  }
}


/*===========================
   SERVICES SVG 
   ==================*/
   
   .service-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-primary); /* brand blue */
  margin-bottom: 12px;
  flex-shrink: 0;
  transition: color 0.3s ease;
  display: inline-flex;
  padding: 10px; 
  border-radius: 12px; 
  background-color: rgba(3, 76, 120, 0.2);
}

/* On hover over card, icon slightly brightens */
.ux-service-card:hover .service-icon {
  color: var(--accent-hover);
}

/* ==============================
   SOLUTION CARD
================================ */

.solution-card {
  background: var(--card-bg);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.solution-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.solution-card a {
  margin-top: auto;
  color: var(--brand-blue);
  font-weight: 600;
}

/*EXIT-INTENT COMPONENT CORE */
/* ============================
   EXIT INTENT OVERLAY
============================ */
.exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
   opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease; /* fade duration */
}

.exit-overlay.is-active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* ============================
   EXIT CARD
============================ */
.exit-card {
  width: min(92%, 520px);
  background: var(--bg-primary);
  border: 2px solid #dedede;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}

/* ============================
   TEXT STYLES
============================ */
.exit-kicker {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.6rem;
}

.exit-title {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.exit-text {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 1.8rem;
}

/* Accent gradient reuse */
.accent-gradient {
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    #1e3a8a
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================
   CTA BUTTON
============================ */
.exit-whatsapp-btn {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.exit-whatsapp-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* ============================
   DECLINE & CLOSE
============================ */
.exit-decline {
  margin-top: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.exit-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
}


/*Back to Top*/
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: var(--bg-primary); /* Dark icon on light blue */
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  
  /* Initial State */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Subtle Pulse Glow */
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
  animation: pulse-glow 2s infinite;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--accent-hover);
  transform: scale(1.1);
}

/* Pulse Animation */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(56, 189, 248, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

/*==================
FOOTER 
================*/
/* Footer */
.site-footer {
  background-color: #010414; /* darker than main bg (#020617) */
  color: var(--text-body);
  padding: 25px 20px;
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Paragraph text */
.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Mail link styling */
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0d3c5e; /* darker accent */
  color: var(--accent-primary); /* brand blue */
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

/* SVG color inherits link color */
.footer-mail svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  /* fill handled inside SVG paths now */

}

/* Hover effect */
.footer-mail:hover {
  background-color: #085ea0; /* slightly lighter accent bg */
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer .container {
    gap: 8px;
  }

  .footer-mail {
    padding: 5px 10px;
    font-size: 0.85rem;
  }
}

