/* ============================================================
   navigine-shared.css — shared header / nav / footer styles

   Usage in every page — add to <head>:
     <link rel="stylesheet" href="navigine-shared.css">
   ============================================================ */

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

:root {
  --blue-primary: #2a7de1;
  --blue-dark: #1a5cbf;
  --blue-deeper: #0f3d8a;
  --blue-light: #5ba3f0;
  --blue-pale: #d6e8fb;
  --bg-hero: #ddeef8;
  --bg-hero-end: #eaf4fc;
  --text-dark: #1a2540;
  --text-mid: #3c4b6e;
  --text-light: #6b7a9a;
  --white: #ffffff;
  --highlight-blue: #2478d4;
  --btn-primary-bg: #2a7de1;
  --btn-primary-hover: #1a5cbf;
  --btn-outline-border: #2a7de1;
  --nav-link: #2c3e6b;
  --border-light: #c8ddf0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 12px rgba(42,125,225,0.07);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: 36px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
}

.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}

.nav-links li a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-link);
  text-decoration: none;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.nav-links li a:hover {
  background: var(--blue-pale);
  color: var(--blue-primary);
}

.nav-links li a .chevron {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--nav-link);
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s;
}

.nav-lang:hover { border-color: var(--blue-primary); }

.btn-store {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue-primary);
  border: 1.5px solid var(--blue-primary);
  border-radius: 8px;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.btn-store:hover { background: var(--blue-pale); }

.btn-store svg { width: 16px; height: 16px; }

.btn-demo {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--btn-primary-bg);
  border: none;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(42,125,225,0.35);
}

.btn-demo:hover {
  background: var(--btn-primary-hover);
  box-shadow: 0 5px 20px rgba(42,125,225,0.45);
  transform: translateY(-1px);
}

/* ===== BUTTONS ===== */
.btn-primary {
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--blue-primary);
  border: 2px solid var(--blue-primary);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(42,125,225,0.38);
  font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(42,125,225,0.45);
}

.btn-secondary {
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-primary);
  background: transparent;
  border: 2px solid var(--blue-primary);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.18s;
  font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
  background: rgba(42,125,225,0.07);
  transform: translateY(-2px);
}

/* ===== MEGA DROPDOWN ===== */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.mega-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  transform: none;
  background: #ffffff;
  border: 1px solid #e0ecf8;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(26,37,64,0.14), 0 2px 8px rgba(26,37,64,0.06);
  z-index: 9999;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 28px 0 24px;
  animation: megaFadeIn 0.18s ease;
  overflow-x: auto;
}

.mega-dropdown::before { content: none; display: none; }

@keyframes megaFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-wrap:hover .mega-dropdown,
.mega-dropdown.open {
  display: block;
}

.nav-dropdown-wrap:hover .chevron,
.nav-dropdown-trigger.active .chevron,
.mega-dropdown.open ~ * .chevron {
  transform: rotate(180deg);
}

/* Invisible bridge fills the gap so hover doesn't flicker */
.nav-dropdown-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 10px;
}

.mega-inner {
  display: flex;
  gap: 0;
  padding: 0 8px;
}

.mega-col {
  flex: 1;
  padding: 0 20px;
}

.mega-col-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #8a9bbf;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  padding: 0 4px;
}

.mega-divider {
  width: 1px;
  background: #e8f0f8;
  margin: 4px 0;
  flex-shrink: 0;
}

.mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-item {
  margin: 0;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: #2d3a5c;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.mega-link:hover {
  background: #f0f6ff;
  color: #2a7de1;
}

.mega-link strong {
  font-weight: 600;
  color: #1a2540;
}

.mega-link:hover strong {
  color: #2a7de1;
}

.mega-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2a7de1;
}

.mega-icon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #fff;
  border-top: 1px solid #e8f0f8;
  padding: 20px 32px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-recaptcha {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #4a5568;
  margin: 0;
  line-height: 1.5;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #4a5568;
  margin: 0;
}

.footer-link {
  color: #2a7de1;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(42,125,225,0.5);
  transition: text-decoration-color 0.18s;
}

.footer-link:hover { text-decoration-color: #2a7de1; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2a7de1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.18s;
  flex-shrink: 0;
}

.footer-social-btn:hover {
  background: #1a5cbf;
  transform: translateY(-2px);
}

/* ===== INDUSTRIES MEGA DROPDOWN ===== */
.industries-dropdown {
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 24px 0 20px;
}

.industries-grid-layout {
  display: flex;
  gap: 0;
  padding: 0 8px;
}

.ind-col {
  flex: 1;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ind-divider {
  width: 1px;
  background: #e8f0f8;
  margin: 0;
  flex-shrink: 0;
  align-self: stretch;
}

.ind-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: background 0.16s, color 0.16s;
  min-height: 44px;
}

.ind-item:hover {
  background: var(--blue-pale);
}

.ind-item:hover .ind-label {
  color: var(--blue-primary);
}

.ind-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7ff;
  border-radius: 7px;
  border: 1px solid #ddeaf7;
  transition: background 0.16s, border-color 0.16s;
}

.ind-item:hover .ind-icon {
  background: #ddeeff;
  border-color: #b8d8f8;
}

.ind-icon svg {
  width: 18px;
  height: 18px;
}

.ind-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
  transition: color 0.16s;
}

/* ===== TECHNOLOGY MEGA DROPDOWN ===== */
.technology-dropdown {
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 22px 0 18px;
}

.tech-grid-layout {
  display: flex;
  gap: 0;
  padding: 0 8px;
  align-items: flex-start;
}

.tech-col {
  flex: 1;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tech-divider {
  width: 1px;
  background: #e8f0f8;
  align-self: stretch;
  flex-shrink: 0;
  min-height: 200px;
}

.tech-col-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid #e8f0f8;
}

.tech-col-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7ff;
  border-radius: 8px;
  border: 1px solid #ddeaf7;
}

.tech-col-icon svg {
  width: 20px;
  height: 20px;
}

.tech-col-title {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

.tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.tech-list li a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid, #444e5c);
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.14s, color 0.14s;
}

.tech-list li a:hover {
  background: var(--blue-pale, #f0f7ff);
  color: var(--blue-primary, #2a9fd6);
}

/* ===== MOBILE HAMBURGER & MENU ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 8px;
  transition: background 0.18s;
  z-index: 10001;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--blue-pale); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark, #1a2540);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-hamburger.open { display: none; }

/* Backdrop overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10,20,50,0.45);
  backdrop-filter: blur(2px);
}
.nav-mobile-overlay.open { display: block; }

/* Each panel is its own fixed full-screen layer */
.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 10001;
  background: #fff;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-panel.active {
  display: flex;
  animation: nmSlideIn 0.28s cubic-bezier(0.22,0.61,0.36,1) both;
}
@keyframes nmSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Main panel header */
.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e8f0f8;
  flex-shrink: 0;
}
.nav-mobile-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark, #1a2540);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-mobile-logo-img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* Sub-panel header: blue gradient */
.nav-mobile-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #2a7de1 0%, #1a5cbf 100%);
  flex-shrink: 0;
}
.nav-mobile-back {
  background: none;
  border: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  line-height: 1;
}
.nav-mobile-back svg { width: 18px; height: 18px; flex-shrink: 0; }

.nav-mobile-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.15s;
}
.nav-mobile-close-btn:hover { background: rgba(255,255,255,0.28); }
.nav-mobile-close-btn.light {
  background: none;
  color: #6b7a9a;
}
.nav-mobile-close-btn.light:hover { background: #f0f6ff; color: #2a7de1; }

/* List rows */
.nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.nav-mobile-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1a2540;
  background: none;
  border: none;
  border-bottom: 1px solid #f0f5fb;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
  box-sizing: border-box;
}
.nav-mobile-list-item:hover { background: #f0f7ff; color: #2a7de1; }
.nav-mobile-list-item .nm-arrow {
  width: 16px; height: 16px;
  flex-shrink: 0;
  opacity: 0.4;
}

/* Section label inside sub-panel */
.nav-mobile-section-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #8a9bbf;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 14px 20px 5px;
}

/* Mobile menu footer */
.nav-mobile-footer {
  padding: 14px 20px 20px;
  border-top: 1px solid #e8f0f8;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.nav-mobile-store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1.5px solid #2a7de1;
  color: #2a7de1;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s;
}
.nav-mobile-store-btn:hover { background: #f0f7ff; }
.nav-mobile-store-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 10px;
  background: #2a7de1;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(42,125,225,0.35);
  transition: background 0.2s;
}
.nav-mobile-cta:hover { background: #1a5cbf; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-right { display: none; }
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-footer { padding: 20px 16px; }
}

@media (max-width: 600px) {
  nav { padding: 0 18px; }
  .btn-primary, .btn-secondary { padding: 11px 20px; font-size: 14px; }
}


/* ===== CTA / CONTACT FORM — RESPONSIVE =====
   These rules live in the shared stylesheet (loaded AFTER each page's inline
   CTA styles) so they override the inline base rules by source order and apply
   to every page that uses .cta-section — no per-file edits needed. */

/* Overflow safety: grid items default to min-width:auto, which lets the cards
   push past the viewport on narrow screens. */
.cta-form-card,
.cta-glass-card {
  box-sizing: border-box;
  min-width: 0;
}
.cta-input,
.cta-select,
.cta-send-btn {
  max-width: 100%;
}

/* Tablet / small laptop — stack into a single centered column. */
@media (max-width: 980px) {
  .cta-section { min-height: 0; }
  .cta-inner {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 20px;
    padding: 48px 24px;
  }
  .cta-form-card { padding: 36px 28px; }
  .cta-glass-card { padding: 36px 28px 28px; }
}

/* Mobile */
@media (max-width: 600px) {
  .cta-inner { padding: 32px 16px; gap: 16px; }
  .cta-form-card {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .cta-glass-card {
    padding: 28px 20px 22px;
    border-radius: 16px;
  }
  .cta-form-title { font-size: 22px; }
  .cta-glass-title { margin-bottom: 24px; }
  .cta-stats { gap: 6px; margin-bottom: 28px; }
  .cta-logo-track { gap: 36px; }
  .cta-logo-img { height: 26px; }
}

/* Small phones — stack the three stats vertically for readability. */
@media (max-width: 400px) {
  .cta-inner { padding: 28px 14px; }
  .cta-form-card { padding: 24px 18px; }
  .cta-glass-card { padding: 24px 18px 20px; }
  .cta-stats {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 24px;
  }
}
