:root {
  --en-blue: #0056b3;
  --en-navy: #00204a;
  --en-navy-dark: #001128;
  --en-gray-light: #f8f9fa;
  --en-white: #ffffff;
  --en-text-dark: #212529;
  --en-text-light: #f8f9fa;

  --bs-primary: var(--en-blue);
  --bs-secondary: var(--en-navy);

  --header-height: 90px;
  --header-height-scrolled: 70px;
  --header-transition: all 0.3s ease;
}

[data-bs-theme="dark"] {
  --bs-body-bg: #06101f;
  --bs-tertiary-bg: #0b1c36;
  --bs-body-color: var(--en-text-light);
  --bs-primary: #3385ff;
}

/* === THEME HELPERS === */
.d-theme-dark-block {
  display: none !important;
}

.d-theme-light-block {
  display: inline-block !important;
}

[data-bs-theme="dark"] .d-theme-dark-block {
  display: inline-block !important;
}

[data-bs-theme="dark"] .d-theme-light-block {
  display: none !important;
}

/* === GLOBAL === */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

/* === SCROLL & OFFSETS === */
html {
  scroll-padding-top: var(--header-height-scrolled);
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--en-navy);
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
  color: var(--en-white);
}

/* === HEADER === */
#header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--header-transition);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] #header {
  background-color: rgba(6, 16, 31, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#header.scrolled {
  height: var(--header-height-scrolled);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.brand-logo {
  max-height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: max-height 0.3s ease;
}

.scrolled .brand-logo {
  max-height: 35px;
}

footer .brand-logo {
  max-height: 40px;
}

#header .navbar-nav .nav-link.active,
[data-bs-theme="dark"] #header .navbar-nav .nav-link.active {
  background-color: transparent !important;
  color: var(--bs-primary) !important;
  font-weight: 700;
}

.header-tools {
  background-color: var(--bs-tertiary-bg);
  border-color: var(--bs-border-color);
}

/* === BUTTONS === */
.btn {
  transition: transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
}

.btn-primary:hover {
  background-color: #004494;
  border-color: #004494;
}

[data-bs-theme="dark"] .btn-primary:hover {
  background-color: #1a75ff;
  border-color: #1a75ff;
}

/* === ANIMATIONS === */

[data-bs-theme="dark"] .animate-on-scroll {
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(20px);
}

.animate-on-scroll.show {
  opacity: 1 !important;
  transform: translateY(0);
}

/* === HERO === */
#hero,
#pricing,
#coverage {
  background: linear-gradient(180deg, var(--bs-body-bg) 0%, var(--bs-tertiary-bg) 100%);
}

#hero {
  padding: 6rem 0;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}

@media (max-width: 991.98px) {
  #hero {
    padding: 4rem 0;
    text-align: center;
  }
}

/* === SECTION SYSTEM === */
.section-base {
  background: var(--bs-body-bg);
}

.section-network {
  background-color: var(--bs-tertiary-bg);
  position: relative;
  overflow: hidden;
}

.section-network::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/background-network-light.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

[data-bs-theme="dark"] .section-network::before {
  background-image: url('../images/background-network-dark.webp');
  opacity: 0.12;
  mix-blend-mode: screen;
}

.section-network>.container {
  position: relative;
  z-index: 1;
}

/* === Footer */
footer {
  font-size: 0.95rem;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--bs-border-color-translucent);
}

.footer-link {
  color: var(--en-text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--bs-primary);
}

[data-bs-theme="dark"] .footer-link {
  color: var(--en-text-light);
}

[data-bs-theme="dark"] .footer-link:hover {
  color: var(--bs-primary);
}

/* === COMPONENT SYSTEM === */

.card-enter {
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 56, 120, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-enter:hover {
  transform: translateY(-4px);
  border-color: var(--bs-primary) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="dark"] .card-enter {
  background-color: #0c1e38;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .card-enter:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 86, 179, 0.10);
  color: var(--bs-primary);
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
}

.d-flex>.icon-circle {
  margin-left: 0;
  margin-right: 0;
}

.icon-circle.icon-sm {
  width: 44px;
  height: 44px;
}

[data-bs-theme="dark"] .icon-circle {
  background-color: rgba(51, 133, 255, 0.12);
  color: var(--bs-primary);
}

/* ==========================================
   CONTACT
========================================== */

.contact-company-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bs-primary);
  line-height: 1.2;
}

.contact-company-owner {
  margin-top: .25rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-company-position {
  font-size: .9rem;
  color: var(--bs-secondary-color);
}

.contact-company-address {
  margin-top: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.contact-company-register {
  margin-top: .75rem;
  font-size: .9rem;
  color: var(--bs-secondary-color);
}

.contact-company-register div+div {
  margin-top: .15rem;
}

.contact-link {
  transition: opacity .2s ease, transform .2s ease;
}

.contact-link:hover {
  opacity: .8;
  transform: translateX(5px);
}

/* ==========================================
   CONTACT COPY BUTTON
========================================== */

.copy-btn {
  width: 30px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border-radius: .6rem;

  background: transparent;
  border: 1px solid var(--bs-border-color);

  color: var(--bs-primary);

  transition: all .2s ease;
}

.copy-btn:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;

  transform: translateY(-2px);
}

.copy-btn:focus-visible {
  box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

.copy-btn i {
  font-size: .95rem;
}

/* === UTILITY === */
.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

.toast-container {
  z-index: 1060;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* === ACCESSIBILITY === */
.visually-hidden-focusable:focus {
  background-color: var(--bs-primary);
  color: white;
  padding: 1rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1050;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
}

html.a11y-font-large {
  font-size: 120%;
}

html.a11y-high-contrast body {
  background-color: #000 !important;
  color: #fff !important;
}

html.a11y-high-contrast * {
  border-color: #fff !important;
}

html.a11y-high-contrast .bg-body,
html.a11y-high-contrast .bg-body-tertiary,
html.a11y-high-contrast .card,
html.a11y-high-contrast .card-enter {
  background-color: #111 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

html.a11y-high-contrast .text-body-secondary,
html.a11y-high-contrast .text-muted,
html.a11y-high-contrast .text-primary,
html.a11y-high-contrast .text-success,
html.a11y-high-contrast .text-info {
  color: #fff !important;
}

html.a11y-high-contrast .btn-primary {
  background-color: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* === MOBILE & SCROLLED SPECIFICS === */

.scrolled .header-tool-btn {
  padding: 0.375rem 0.75rem !important;
  /* same as .btn */
  font-size: 1rem !important;
}

.scrolled .header-cta-btn {
  padding-top: 0.375rem !important;
  padding-bottom: 0.375rem !important;
}

@media (max-width: 991.98px) {
  :root {
    --header-height: 70px;
    --header-height-scrolled: 60px;
  }

  .brand-logo {
    max-height: 45px;
  }

  #main-nav {
    background-color: var(--bs-body-bg);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--bs-border-color-translucent);
    z-index: 1040;
  }

  [data-bs-theme="dark"] #main-nav {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  }
}