/* ============================================================
   AKTIRAK LAYOUT SYSTEM
   Mega-menu navigation, professional footer, page banner,
   auth modal, and enterprise home page styles.
   Loaded after brand.css — overrides are intentional.
   ============================================================ */

/* ============================================================
   TYPOGRAPHY — Inter via Google Fonts
   (font loaded via <link> in base.html <head>)
   ============================================================ */
:root {
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-body);
}

/* ============================================================
   TOP NAV — height & structure adjustments
   ============================================================ */
.top-nav {
  height: 64px !important;
  padding: 0 !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.top-nav .container {
  width: 100%;
}

.top-nav .nav-content {
  height: 64px;
  gap: 0;
}

.top-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0, 70, 101, 0.12);
}

.nav-left {
  height: 64px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

/* ============================================================
   PRIMARY NAV — mega-menu
   ============================================================ */
.nav-center {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  justify-content: flex-start;
  margin-left: 2rem;
  height: 64px;
}

.nav-primary {
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0;
  padding: 0;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  gap: 0;
}

.nav-item-dd {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

/* Top-level link */
.nav-item-link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.3rem;
  padding: 0 1rem;
  height: 64px;
  color: var(--brand-navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  border-top: 3px solid transparent; /* balance so text doesn't shift */
  -webkit-transition: color 0.18s ease, border-color 0.18s ease;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-item-link:hover,
.nav-item-dd:hover > .nav-item-link {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

/* Chevron arrow */
.nav-chevron {
  width: 9px;
  height: 6px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
  opacity: 0.5;
}

.nav-item-dd:hover > .nav-item-link .nav-chevron {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

/* ---- Dropdown panel ---- */
.nav-dropdown-panel {
  position: absolute;
  top: 64px;
  left: 0;
  background: var(--brand-white);
  border: 1px solid var(--brand-gray-200);
  border-top: 3px solid var(--brand-orange);
  border-radius: 0 0 10px 10px;
  -webkit-box-shadow: 0 8px 28px rgba(0, 70, 101, 0.14);
          box-shadow: 0 8px 28px rgba(0, 70, 101, 0.14);
  min-width: 230px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(-6px);
          transform: translateY(-6px);
  -webkit-transition: opacity 0.16s ease, -webkit-transform 0.16s ease, visibility 0.16s;
  transition: opacity 0.16s ease, -webkit-transform 0.16s ease, visibility 0.16s;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s, -webkit-transform 0.16s ease;
  z-index: 600;
}

.nav-item-dd:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

/* Standard dropdown link */
.dropdown-link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  color: var(--brand-gun);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 450;
  -webkit-transition: background 0.12s, color 0.12s;
  transition: background 0.12s, color 0.12s;
}

.dropdown-link:hover {
  background: rgba(0, 70, 101, 0.05);
  color: var(--brand-blue);
}

.dd-icon {
  width: 16px;
  height: 16px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  color: var(--brand-blue);
  opacity: 0.75;
}

.dd-icon svg {
  width: 15px;
  height: 15px;
}

.dropdown-divider {
  height: 1px;
  background: var(--brand-gray-50);
  margin: 0.4rem 0;
}

/* ---- Mega dropdown (Solutions) ---- */
.nav-dropdown-panel.mega {
  left: -80px;
  width: 640px;
  padding: 1.5rem 1.5rem 1rem;
}

.mega-cols {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1.5rem 1fr 1.5rem 1fr;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem 1.5rem;
}

.mega-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand-slate);
  margin: 0 0 0.4rem 0.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--brand-gray-50);
}

.mega-col .dropdown-link {
  padding: 0.4rem 0.4rem;
  border-radius: 6px;
}

/* ---- Customer Centre utility button ---- */
.nav-utility {
  gap: 0.75rem !important;
}

.nav-contact-link {
  color: var(--brand-slate);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0;
  white-space: nowrap;
  -webkit-transition: color 0.18s;
  transition: color 0.18s;
}

.nav-contact-link:hover {
  color: var(--brand-orange);
}

.btn-customer-centre {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  background: var(--brand-navy);
  color: var(--brand-white);
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  -webkit-transition: background 0.18s;
  transition: background 0.18s;
  font-family: var(--font-body);
}

.btn-customer-centre:hover {
  background: var(--brand-navy-2);
}

.cc-chevron {
  font-size: 0.65rem;
  opacity: 0.65;
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
}

/* Customer Centre unauthenticated dropdown */
.nav-cc-wrapper {
  position: relative;
}

.nav-cc-wrapper.open .cc-chevron {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

.nav-cc-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--brand-white);
  border: 1px solid var(--brand-gray-200);
  border-top: 3px solid var(--brand-orange);
  border-radius: 0 0 10px 10px;
  -webkit-box-shadow: 0 8px 28px rgba(0, 70, 101, 0.14);
          box-shadow: 0 8px 28px rgba(0, 70, 101, 0.14);
  padding: 0.5rem 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(-6px);
          transform: translateY(-6px);
  -webkit-transition: opacity 0.16s, -webkit-transform 0.16s, visibility 0.16s;
  transition: opacity 0.16s, -webkit-transform 0.16s, visibility 0.16s;
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s, -webkit-transform 0.16s;
  z-index: 600;
}

.nav-cc-wrapper.open .nav-cc-dropdown {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.nav-cc-header {
  padding: 0.6rem 1.25rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--brand-gray-50);
  margin-bottom: 0.25rem;
}

.nav-cc-dropdown .dropdown-link {
  padding-left: 2rem;
  gap: 0.6rem;
}

.nav-cc-dropdown .dd-icon {
  margin-right: 0.5rem;
}

/* Responsive nav */
@media (max-width: 1200px) {
  .nav-item-link {
    padding: 0 0.6rem;
    font-size: 0.8rem;
  }
}

/* Mobile nav menu panel — must sit above the overlay */
.mobile-nav-menu {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--brand-white);
  box-shadow: 0 8px 24px rgba(0, 70, 101, 0.15);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

@media (max-width: 1100px) {
  .nav-center { display: none; }
  .mobile-menu-toggle { display: -webkit-box !important; display: -ms-flexbox !important; display: flex !important; }
  .nav-contact-link { display: none; }
}

@media (max-width: 768px) {
  .nav-contact-link,
  .nav-cc-wrapper { display: none; }
}

/* ============================================================
   SITE FOOTER — Professional Enterprise
   ============================================================ */
.site-footer {
  background: var(--brand-gun);
  color: var(--brand-white);
  margin-top: auto;
  padding: 0;
}

.footer-accent {
  height: 3px;
  background: -webkit-gradient(linear, left top, right top, from(var(--brand-orange)), color-stop(50%, var(--brand-cyan)), to(var(--brand-orange)));
  background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-cyan) 50%, var(--brand-orange) 100%);
}

.footer-main {
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 2fr 1fr 1fr 1fr;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-brand-logo {
  height: 34px;
  width: auto;
  display: block;
  -webkit-filter: brightness(0) invert(1);
          filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 1rem;
}

.footer-brand-desc {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  max-width: 290px;
}

.footer-canadian {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 0.875rem;
  -webkit-transition: color 0.18s;
  transition: color 0.18s;
}

.footer-col a:hover {
  color: var(--brand-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  margin: 0;
}

.footer-legal-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  text-decoration: none;
  -webkit-transition: color 0.18s;
  transition: color 0.18s;
}

.footer-legal-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .footer-grid {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand-col {
    -ms-grid-column-span: 2;
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }

  .footer-brand-col {
    -ms-grid-column-span: 1;
    grid-column: span 1;
  }

  .footer-bottom-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    text-align: center;
  }

  .footer-legal-links {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 1rem;
  }
}

/* ============================================================
   PAGE BANNER — interior page header
   ============================================================ */
.page-banner {
  background: -webkit-gradient(linear, left top, right bottom, from(var(--brand-navy)), color-stop(60%, var(--brand-navy-2)), to(var(--brand-blue)));
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-2) 60%, var(--brand-blue) 100%);
  padding: 2.75rem 0 2.25rem;
  color: var(--brand-white);
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner-breadcrumb {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.6rem;
}

.page-banner-breadcrumb a {
  color: var(--brand-cyan);
  text-decoration: none;
  -webkit-transition: color 0.18s;
  transition: color 0.18s;
}

.page-banner-breadcrumb a:hover {
  color: var(--brand-white);
}

.page-banner-breadcrumb .sep {
  color: rgba(255, 255, 255, 0.25);
}

.page-banner h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  color: var(--brand-white);
  letter-spacing: -0.02em;
}

.page-banner-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 580px;
  line-height: 1.55;
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 25, 40, 0.72);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 9000;
  display: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 1rem;
}

.auth-modal-overlay.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.auth-modal {
  background: var(--brand-white);
  border-radius: 16px;
  width: 440px;
  max-width: 100%;
  -webkit-box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
          box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  -webkit-animation: authModalIn 0.22s ease;
          animation: authModalIn 0.22s ease;
}

@-webkit-keyframes authModalIn {
  from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
  to   { opacity: 1; -webkit-transform: translateY(0);    transform: translateY(0);    }
}

@keyframes authModalIn {
  from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
  to   { opacity: 1; -webkit-transform: translateY(0);    transform: translateY(0);    }
}

.auth-modal-header {
  background: -webkit-gradient(linear, left top, right bottom, from(var(--brand-navy)), to(var(--brand-navy-2)));
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  padding: 1.5rem 1.75rem 1.25rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: flex-start;
      -ms-flex-align: flex-start;
          align-items: flex-start;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.auth-modal-title {
  color: var(--brand-white);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.auth-modal-subtitle {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  margin: 0;
}

.auth-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  color: var(--brand-white);
  font-size: 1.1rem;
  line-height: 1;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-transition: background 0.18s;
  transition: background 0.18s;
  margin-left: 1rem;
  font-family: inherit;
}

.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.auth-modal-body {
  padding: 1.75rem;
}

.auth-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border-bottom: 1px solid var(--brand-gray-50);
  margin: -1.75rem -1.75rem 1.5rem;
  padding: 0 1.75rem;
}

.auth-tab {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-slate);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  -webkit-transition: color 0.18s, border-color 0.18s;
  transition: color 0.18s, border-color 0.18s;
  font-family: var(--font-body);
}

.auth-tab.active {
  color: var(--brand-navy);
  border-bottom-color: var(--brand-orange);
}

.auth-tab-panel {
  display: none;
}

.auth-tab-panel.active {
  display: block;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 1.25rem 0;
  font-size: 0.78rem;
  color: var(--brand-slate);
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--brand-gray-50);
}

.auth-divider span {
  position: relative;
  background: var(--brand-white);
  padding: 0 0.75rem;
}

.btn-sso-popup {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem;
  background: var(--brand-gray-50);
  border: 1px solid var(--brand-gray-200);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  text-decoration: none;
  -webkit-transition: background 0.18s, border-color 0.18s;
  transition: background 0.18s, border-color 0.18s;
  font-family: var(--font-body);
}

.btn-sso-popup:hover {
  background: rgba(0, 70, 101, 0.06);
  border-color: var(--brand-blue);
}

.auth-footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--brand-slate);
  margin-top: 1.25rem;
}

.auth-footer-note a {
  color: var(--brand-blue);
  text-decoration: none;
}

.auth-modal-error {
  background: rgba(212, 72, 53, 0.07);
  border: 1px solid var(--brand-red);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--brand-navy);
  margin-bottom: 1rem;
  display: none;
}

.auth-modal-error.visible {
  display: block;
}

/* ============================================================
   HOME PAGE — enterprise hero
   ============================================================ */
.hero-enterprise {
  background: -webkit-gradient(linear, left top, right bottom, from(var(--brand-gun)), to(var(--brand-navy)));
  background: linear-gradient(135deg, var(--brand-gun) 0%, var(--brand-navy) 100%);
  color: var(--brand-white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-enterprise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-enterprise .container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 4rem 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {}

.hero-label {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(232, 151, 67, 0.14);
  border: 1px solid rgba(232, 151, 67, 0.32);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.25rem;
}

.hero-enterprise h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  color: var(--brand-white);
  letter-spacing: -0.025em;
}

.hero-enterprise h1 em {
  font-style: normal;
  color: var(--brand-orange);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 480px;
}

.hero-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

/* Hero CTA buttons */
.btn-hero-primary {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.4rem;
  padding: 0.875rem 1.75rem;
  background: var(--brand-orange);
  color: var(--brand-white);
  border: 2px solid var(--brand-orange);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.btn-hero-primary:hover {
  background: transparent;
  color: var(--brand-orange);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.btn-hero-outline {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.4rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.btn-hero-outline:hover {
  border-color: var(--brand-white);
  color: var(--brand-white);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

/* Hero right: stats grid */
.hero-right {}

.hero-stats-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1rem 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.hero-stat-card .stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-orange);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.hero-stat-card .stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

/* Stats bar */
.stats-bar {
  background: var(--brand-navy);
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-bar-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: repeat(4, 1fr);
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 1rem;
}

.stats-bar-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-orange);
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.stats-bar-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
}

/* Features section */
.features-section {
  padding: 5rem 0;
  background: var(--brand-white);
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-orange);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--brand-slate);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 560px;
  margin: 0;
}

.section-header {
  margin-bottom: 3rem;
}

.features-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: repeat(3, 1fr);
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  border: 1px solid var(--brand-gray-50);
  border-radius: 12px;
  padding: 2rem;
  -webkit-transition: -webkit-box-shadow 0.2s, -webkit-transform 0.2s;
  transition: -webkit-box-shadow 0.2s, -webkit-transform 0.2s;
  transition: box-shadow 0.2s, transform 0.2s;
  transition: box-shadow 0.2s, transform 0.2s, -webkit-box-shadow 0.2s, -webkit-transform 0.2s;
  position: relative;
}

.feature-card:hover {
  -webkit-box-shadow: 0 8px 28px rgba(0, 70, 101, 0.1);
          box-shadow: 0 8px 28px rgba(0, 70, 101, 0.1);
  -webkit-transform: translateY(-3px);
          transform: translateY(-3px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background: var(--brand-orange);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 70, 101, 0.07);
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--brand-navy);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--brand-slate);
  line-height: 1.65;
  margin: 0;
}

.feature-link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
  margin-top: 0.75rem;
  -webkit-transition: gap 0.18s;
  transition: gap 0.18s;
}

.feature-link:hover {
  gap: 0.55rem;
}

/* Testimonials */
.testimonials-section {
  padding: 5rem 0;
  background: var(--brand-gray-50);
}

.testimonials-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: repeat(3, 1fr);
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: var(--brand-white);
  border-radius: 12px;
  padding: 1.75rem;
  -webkit-box-shadow: 0 2px 12px rgba(0, 70, 101, 0.06);
          box-shadow: 0 2px 12px rgba(0, 70, 101, 0.06);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.75rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--brand-orange);
  opacity: 0.18;
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  pointer-events: none;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--brand-slate);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  padding-top: 0.75rem;
}

.testimonial-author strong {
  display: block;
  font-weight: 700;
  color: var(--brand-navy);
  font-size: 0.9rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--brand-slate);
}

.testimonial-rating {
  color: var(--brand-orange);
  margin-top: 0.75rem;
}

.testimonial-rating svg {
  width: 72px;
  height: 13px;
}

/* Final CTA */
.cta-final {
  background: -webkit-gradient(linear, left top, right bottom, from(var(--brand-navy)), to(var(--brand-navy-2)));
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  padding: 5rem 0;
  text-align: center;
  color: var(--brand-white);
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: -webkit-gradient(linear, left top, right top, from(var(--brand-orange)), color-stop(50%, var(--brand-cyan)), to(var(--brand-orange)));
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-cyan), var(--brand-orange));
}

.cta-final h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--brand-white);
}

.cta-final p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin: 0 auto 2.5rem;
  max-width: 520px;
  line-height: 1.6;
}

.cta-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE — home page
   ============================================================ */
@media (max-width: 900px) {
  .hero-enterprise .container {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-enterprise h1 {
    font-size: 2.25rem;
  }

  .features-grid,
  .testimonials-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }

  .stats-bar-grid {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .cta-final h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 600px) {
  .hero-stats-grid {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
  }

  .hero-enterprise h1 {
    font-size: 1.9rem;
  }

  .hero-enterprise {
    padding: 3.5rem 0 3rem;
  }
}
