body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: #f8fafc;
  color: #0f172a;
  scroll-behavior: smooth;
}

:root {
  color-scheme: light dark;
}

img {
  max-width: 100%;
  display: block;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-links a {
  color: #dbeafe;
  text-decoration: none;
}

.top-info-bar {
  background: #07152c;
  color: #f8fbff;
  font-size: 0.95rem;
}

.compact-icons-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-link {
  color: #dbeafe;
  text-decoration: none;
}

.top-social-link {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #e0f2fe;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.top-social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.emergency-bar {
  position: relative;
  z-index: 1100;
}

.emergency-bar .container {
  min-height: 2.8rem;
}

.emergency-text {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
}

.emergency-text span {
  display: inline-block;
  font-weight: 700;
}

.emergency-text.is-scrolling span {
  animation: emergencyTicker 20s linear infinite;
}

.emergency-dismiss {
  border-radius: 999px;
  font-weight: 700;
}

.top-link:hover {
  color: #ffffff;
}

.site-header {
  position: relative;
  z-index: 1200;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 12px 34px rgba(13, 44, 90, 0.08);
}

.navbar-brand {
  letter-spacing: 0.04em;
}

.navbar-nav {
  align-items: center;
  gap: 0.1rem;
}

.navbar-nav .nav-link {
  color: #0f172a;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.72rem 1rem;
  margin: 0 0.15rem;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #0d6efd;
  background: #eff6ff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.nav-icon {
  font-size: 1.05rem;
}

.nav-label {
  line-height: 1;
}

.home-login-cta-shell {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

.home-login-cta {
  text-decoration: none;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.68rem 1rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 60%, #1d4ed8 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  transform-origin: center;
}

.home-login-cta-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.home-login-cta-spacer {
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 1.05rem;
  visibility: hidden;
}

.home-login-cta-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.home-login-cta:hover,
.home-login-cta:focus-visible {
  color: #ffffff;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 36px rgba(29, 78, 216, 0.34);
  filter: saturate(1.05);
}

.home-login-tooltip {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(280px, 80vw);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.8rem;
  padding: 0.6rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.35;
  box-shadow: 0 18px 30px rgba(2, 6, 23, 0.35);
  z-index: 15;
}

.home-login-cta-shell:hover .home-login-tooltip,
.home-login-cta-shell:focus-within .home-login-tooltip,
.home-login-cta-shell.is-tooltip-visible .home-login-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.home-login-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: rgba(15, 23, 42, 0.95);
  border-left: 1px solid rgba(148, 163, 184, 0.28);
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  transform: rotate(45deg);
}

.site-main {
  min-height: 70vh;
}

.section-badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #e8f2ff;
  color: #0d6efd;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(1.8rem, 2.7vw, 2.4rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.section-heading p,
.page-hero p {
  color: #4b5563;
  max-width: 720px;
  margin: 0 auto;
}

.site-footer {
  background: #07111f;
  color: #f8fafc;
}

@keyframes emergencyTicker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@media (prefers-color-scheme: dark) {
  body {
    background: #0b1220;
    color: #e2e8f0;
  }

  .site-header {
    background: #0f172a;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .navbar-nav .nav-link {
    color: #e2e8f0;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.12);
  }
}

@media (max-width: 991.98px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
  }

  .navbar {
    position: relative;
    z-index: 2100;
  }

  .navbar .container {
    position: relative;
  }

  .navbar-toggler {
    width: 3rem;
    height: 3rem;
    padding: 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.025);
    position: relative;
    z-index: 2200;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
  }

  .navbar-collapse {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: auto;
    width: min(22rem, calc(100vw - 1.25rem));
    max-height: min(68vh, 26rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 0;
    border-radius: 1rem;
    background: rgba(7, 17, 31, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.36);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    padding: 0.6rem;
    z-index: 2300;
  }

  .navbar-collapse.show {
    display: block;
    opacity: 1;
  }

  .navbar-nav {
    align-items: stretch;
    width: 100%;
    gap: 0.2rem;
    padding-top: 0.2rem;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 0.8rem;
    padding: 0.8rem 0.9rem;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background: rgba(59, 130, 246, 0.16);
    color: #ffffff;
  }

  .home-login-cta-shell {
    width: 100%;
    align-items: stretch;
  }

  .home-login-cta {
    justify-content: center;
    width: 100%;
  }
}

.site-footer h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.site-footer p,
.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a:hover,
.footer-bottom-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.floating-actions {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
}

.floating-btn {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-btn:hover {
  transform: translateY(-2px);
}

.whatsapp-btn {
  background: #25d366;
}

.top-btn {
  background: #0f172a;
}

@media (max-width: 991.98px) {
  .navbar-nav {
    gap: 0.2rem;
    padding-top: 0.5rem;
  }

  .home-login-cta-shell {
    align-items: stretch;
    margin-top: 0.6rem;
  }

  .home-login-cta {
    border-radius: 1rem;
    width: 100%;
    padding: 0.7rem 0.95rem;
  }

  .home-login-cta-subtitle {
    font-size: 0.72rem;
  }

  .home-login-tooltip {
    right: auto;
    left: 0;
    width: min(320px, calc(100vw - 2rem));
  }

  .home-login-tooltip::before {
    right: auto;
    left: 18px;
  }
}
