/* ==========================================================
   Heeiz Components
   Buttons, cards, badges, utilities
   ========================================================== */
.site-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 248, 248, 0.9));
  border-bottom: 1px solid rgba(16, 100, 107, 0.12);
  backdrop-filter: blur(10px) saturate(150%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

.site-header.nav-scrolled {
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(3, 24, 26, 0.12);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.site-header.nav-scrolled .nav-shell {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 36px rgba(3, 24, 26, 0.14);
}

.site-header:not(.nav-scrolled) .brand-text {
  color: #0b2f33;
}

.site-header:not(.nav-scrolled) .brand-tag {
  color: rgba(11, 47, 51, 0.6);
}

.site-header:not(.nav-scrolled) .navbar-toggler {
  border-color: rgba(16, 100, 107, 0.3);
}

.site-header:not(.nav-scrolled) .navbar-toggler-icon {
  filter: invert(0);
}

.heeiz-navbar {
  padding: 18px 0;
}

.nav-shell {
  padding-top: 14px;
  padding-bottom: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 100, 107, 0.14);
  box-shadow: 0 16px 34px rgba(3, 24, 26, 0.12);
  backdrop-filter: blur(12px) saturate(160%);
}

.heeiz-navbar .navbar-brand {
  position: relative;
  z-index: 2;
  gap: 10px;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text {
  font-weight: 800;
  color: #0b2f33;
  font-size: clamp(1.05rem, 0.7vw + 0.8rem, 1.25rem);
}

.brand-tag {
  font-size: 0.7rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(11, 47, 51, 0.65);
}

.site-header .navbar .nav-link {
  font-weight: 700;
  color: #0b2f33;
  opacity: 0.85;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 2;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
}

.site-header .navbar .nav-link::after {
  content: "";
  position: absolute;
  right: 14px;
  left: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(1, 105, 143, 0.8), rgba(0, 145, 138, 0.6));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.site-header:not(.nav-scrolled) .navbar .nav-link {
  color: #0b2f33;
  opacity: 0.9;
}

.site-header:not(.nav-scrolled) .navbar .nav-link:hover,
.site-header:not(.nav-scrolled) .navbar .nav-link:focus,
.site-header:not(.nav-scrolled) .navbar .nav-link.active {
  background: rgba(16, 100, 107, 0.08);
  color: #0b2f33;
}

.nav-links {
  gap: 14px;
}

.site-header .navbar .nav-link:hover,
.site-header .navbar .nav-link:focus,
.site-header .navbar .nav-link.active {
  color: #01698f;
  opacity: 1;
  background: rgba(1, 105, 143, 0.08);
  transform: translateY(-1px);
}

.site-header .navbar .nav-link:hover::after,
.site-header .navbar .nav-link:focus::after,
.site-header .navbar .nav-link.active::after {
  opacity: 1;
}

.site-header .navbar-toggler {
  border: 1px solid rgba(11, 47, 51, 0.2);
  border-radius: 12px;
  padding: 6px 10px;
}

.site-header .navbar-toggler-icon {
  filter: invert(0);
}

.nav-cta {
  position: relative;
  z-index: 2;
}

.nav-login {
  color: #0b2f33;
  border-color: rgba(1, 105, 143, 0.2);
  font-weight: 700;
  padding: 8px 16px;
  min-width: 120px;
  text-align: center;
  font-size: 0.95rem;
}

.nav-start {
  background: linear-gradient(90deg, #01698f, #00918a);
  border: none;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(1, 105, 143, 0.22);
  padding: 8px 18px;
  min-width: 130px;
  text-align: center;
  font-size: 0.95rem;
}

.nav-start:hover {
  opacity: 0.95;
}

.brand-logo-img {
  height: 44px;
  display: block;
}

.nav-start,
.nav-login {
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dropdown-menu {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(260px 160px at 10% 0%, rgba(1, 105, 143, 0.08), transparent 60%),
    radial-gradient(220px 140px at 90% 10%, rgba(242, 182, 62, 0.12), transparent 60%),
    #ffffff;
  box-shadow: 0 18px 42px rgba(2, 44, 44, 0.14);
  border-radius: 22px;
  padding: 16px;
  position: absolute;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 50%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  transform: translateX(50%) rotate(45deg);
}

.mega-menu {
  width: 340px;
  max-width: min(80vw, 800px);
  min-width: 320px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 54px rgba(2, 44, 44, 0.16);
  right: 50%;
  left: auto;
  transform: translateX(50%) translateY(8px);
  overflow: hidden;
  max-height: min(70vh, 560px);
  overflow-y: auto;
}

.mega-menu.show {
  transform: translateX(50%) translateY(0);
}

.mega-menu::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 105, 143, 0.07), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(0, 145, 138, 0.04) 60%, transparent 100%);
  opacity: 0.7;
  pointer-events: none;
}

.mega-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(1, 105, 143, 0.06);
  border: 1px dashed rgba(1, 105, 143, 0.18);
  position: relative;
  z-index: 1;
}

.mega-header h6 {
  font-weight: 800;
  margin: 0 0 4px;
  color: #0b2f33;
}

.mega-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.mega-cta {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(90deg, #01698f, #00918a);
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.mega-cta.ghost {
  background: rgba(1, 105, 143, 0.08);
  color: #01698f;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  position: relative;
  z-index: 1;
}

.mega-grid::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.12), transparent);
}



.mega-link {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 3px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: #0b2f33;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  min-height: 56px;
}

.mega-link i {
  color: #01698f;
  font-size: 0.95rem;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(1, 105, 143, 0.08);
  grid-row: span 2;
}

.mega-link span {
  font-weight: 700;
}

.mega-link small {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
}

.mega-link:hover,
.mega-link:focus {
  background: linear-gradient(90deg, rgba(1, 105, 143, 0.12), rgba(0, 145, 138, 0.06));
  color: #01698f;
}

.heeiz-offcanvas {
  background: #ffffff;
  width: min(90vw, 420px);
  height: 100vh;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.heeiz-offcanvas .offcanvas-body {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
}

.heeiz-offcanvas .heeiz-accordion {
  flex: 1 1 auto;
}

.offcanvas-cta-top {
  margin-bottom: 16px;
}

.offcanvas-cta-top .btn,
.offcanvas-cta .btn {
  height: 44px;
  font-weight: 700;
}

.heeiz-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.heeiz-accordion .accordion-button {
  font-weight: 700;
  padding: 12px 0;
}

.heeiz-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: #01698f;
}

.heeiz-accordion .accordion-body {
  display: grid;
  gap: 10px;
  padding: 0 0 14px 0;
}

.heeiz-accordion .accordion-body a {
  color: #0b2f33;
  text-decoration: none;
  font-weight: 600;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.heeiz-accordion .accordion-body a:hover {
  color: #01698f;
}

.offcanvas-cta {
  margin-top: auto;
}

@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateX(50%) translateY(0);
  }

  .dropdown-menu.show {
    opacity: 1;
    transform: translateX(50%) translateY(0);
  }

  .navbar-expand-lg .navbar-nav .mega-menu {
    width: 600px;
  }
}

@media (max-width: 991px) {
  .heeiz-navbar {
    padding: 26px 0 18px;
    min-height: 78px;
  }

  .brand-tag {
    display: none;
  }

  .mega-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dropdown-menu,
  .mega-menu {
    opacity: 1;
    transform: none;
    transition: none;
    position: static;
    width: 100%;
    max-width: none;
    right: auto;
    left: auto;
    max-height: none;
  }

  .nav-start,
  .nav-login {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .heeiz-navbar {
    min-height: 86px;
  }
}

@media (max-width: 1199px) {
  .site-header .navbar .nav-link {
    padding: 6px 10px;
    font-size: 0.92rem;
  }

  .nav-login,
  .nav-start {
    padding: 7px 14px;
    font-size: 0.9rem;
  }
}

@media (min-width: 1280px) {
  .mega-menu {
    width: min(84vw, 1040px);
    max-width: 84vw;
  }
}

@media (min-width: 1440px) {
  .mega-menu {
    width: min(80vw, 1160px);
    max-width: 80vw;
  }

  .nav-links {
    gap: 10px;
  }
}

@media (max-width: 575px) {
  .brand-text {
    font-size: 1rem;
  }

  .brand-logo-img {
    height: 40px;
  }

  .nav-start,
  .nav-login {
    height: 42px;
  }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e7f6ff;
  font-weight: 700;
}

.btn-heeiz-dark {
  background: #0b2f33;
  border: none;
  font-weight: 900;
}

.btn-heeiz-dark:hover {
  background: #0a2830;
}

.btn-primary {
  background: linear-gradient(90deg, #0f6b6d, #1aa39a);
  border: none;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.btn-primary:hover {
  opacity: 0.95;
}

.card-elevated,
.feature-box,
.feature-card,
.stat-box,
.api-box,
.app-box,
.plan-card,
.card,
.video-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 100, 107, 0.12);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card-elevated:hover,
.feature-box:hover,
.feature-card:hover,
.stat-box:hover,
.api-box:hover,
.app-box:hover,
.plan-card:hover,
.card:hover,
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-elevated {
  padding: 28px 22px;
  text-align: center;
}

.icon-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(26, 163, 154, 0.2), rgba(242, 182, 62, 0.18));
  border: 1px solid rgba(26, 163, 154, 0.22);
  color: var(--heeiz);
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.video-card {
  overflow: hidden;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top right, rgba(0, 0, 0, 0.35), transparent);
  pointer-events: none;
}

.partner-logo img {
  max-height: 170px;
  max-width: 170px;
  border-radius: 16px;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: 0.3s ease-in-out;
}

.partner-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.app-box {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.app-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.whatsapp-btn {
  display: block;
  text-align: center;
  background-color: var(--heeiz);
  color: white;
  padding: 12px 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  margin-top: 20px;
  transition: background-color 0.3s;
  width: 100%;
  font-size: 16px;
}

.whatsapp-btn:hover {
  background-color: #0d5058;
}

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  background-color: #25d366;
  color: white;
  font-size: 28px;
  line-height: 66px;
  width: 66px;
  height: 66px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebd5a;
}

.footer {
  background: #0b2f33;
  color: #fff;
  padding: 80px 0 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(1, 105, 143, 0.12), rgba(0, 145, 138, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 32px;
}

.footer-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #e7f6ff;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0 0 8px;
}

.footer-subtitle {
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand h5 {
  margin: 0;
  font-weight: 800;
}

.footer-brand span {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: #ffffff;
  transform: translateY(-4px);
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .nav-shell {
    padding: 12px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 991px) {
  .col-lg-2-5 {
    width: 50%;
  }
}
