/* Custom site styles */

:root {
  --primary-color: #05255f;
  --secondary-color: #ff382f;
  --bs-primary: #05255f;
  --bs-primary-rgb: 5, 37, 95;
  --bs-secondary: #ff382f;
  --bs-secondary-rgb: 255, 56, 47;
}

body {
  font-family: "Saira Semi Condensed", Arial, sans-serif;
  color: #26354f;
}

.letter-spacing { letter-spacing: 0.12em; }
.section-label { color: var(--secondary-color); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.btn-brand { background: var(--secondary-color); border-color: var(--secondary-color); color: #fff; font-weight: 700; padding: 0.7rem 1.2rem; }
.btn-brand:hover, .btn-brand:focus { background: #dc251e; border-color: #dc251e; color: #fff; }
.text-link { color: var(--primary-color); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--secondary-color); }

/* Page preloader */
.preloader {
  position: fixed;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0; */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.preloader-logo {
  width: clamp(48px, 12vw, 120px);
  height: auto;
}

.navbar-brand,
.navbar-nav .nav-link,
.navbar-toggler {
  color: var(--primary-color);
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link {
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.navbar.sticky-top {
  background-color: #fff;
  box-shadow: 0 0.2rem 0.85rem rgb(5 37 95 / 0.1);
}

.navbar-brand:hover,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color);
}

.hero-banner {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: url("../img/hero.jpg") center / cover no-repeat;
}

.hero-banner::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-color: rgb(var(--bs-primary-rgb) / 0.8);
}

.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 37, 95, 0.85);
  z-index: 1;
  pointer-events: none;
}

.hero-banner .container {
  z-index: 1;
}

.hero-banner { min-height: min(760px, 100vh); }
.hero-title { max-width: 850px; margin: 1rem 0 1.25rem; font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 700; line-height: .98; }
.hero-copy { max-width: 660px; margin-bottom: 2rem; color: rgb(255 255 255 / .85); font-size: clamp(1.15rem, 2vw, 1.4rem); }
.hero-kicker { display: inline-flex; gap: .55rem; align-items: center; color: #fff; font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-kicker i { color: var(--secondary-color); }
.btn-hero-outline { border: 1px solid rgb(255 255 255 / .75); color: #fff; font-weight: 700; padding: .7rem 1.2rem; }
.btn-hero-outline:hover { border-color: #fff; background: #fff; color: var(--primary-color); }
.hero-insight { padding: 2rem; border: 1px solid rgb(255 255 255 / .25); border-radius: .75rem; background: rgb(255 255 255 / .1); backdrop-filter: blur(7px); }
.hero-insight-icon { display: inline-grid; width: 3rem; height: 3rem; place-items: center; margin-bottom: 1.5rem; border-radius: 50%; background: var(--secondary-color); font-size: 1.15rem; }
.hero-text-link { color: #fff; font-weight: 700; text-decoration: none; }
.hero-text-link:hover { color: #fff; text-decoration: underline; }
.proof-strip { position: relative; z-index: 2; margin-top: -3rem; }
.proof-strip .container { border-radius: .75rem; background: #fff; box-shadow: 0 .5rem 2rem rgb(5 37 95 / .14); }
.proof-item { display: flex; flex-direction: column; gap: .15rem; padding: 1.25rem 1rem; color: #64748b; }
.proof-item:not(:last-child) { border-right: 1px solid #e3e8f0; }
.proof-item strong { color: var(--primary-color); font-size: 1.15rem; }

.page-banner { background: linear-gradient(rgb(5 37 95 / .9), rgb(5 37 95 / .9)), url("../img/hero.jpg") center / cover; padding: clamp(5rem, 12vw, 8rem) 0; }
.page-banner h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 700; max-width: 800px; }
.breadcrumb-link { color: #fff; font-weight: 600; text-decoration: none; }
.service-detail-label { display: block; margin-top: 2rem; color: rgb(255 255 255 / .7); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.content-image { width: 100%; min-height: 320px; border-radius: .75rem; object-fit: cover; box-shadow: 0 .75rem 2rem rgb(5 37 95 / .15); }
.detail-image-wrap { position: relative; }
.detail-image-badge { position: absolute; right: 1.25rem; bottom: 1.25rem; padding: .7rem 1rem; border-radius: .5rem; background: #fff; box-shadow: 0 .5rem 1.25rem rgb(5 37 95 / .18); color: var(--primary-color); font-weight: 700; }
.detail-image-badge i { margin-right: .4rem; color: var(--secondary-color); }
.feature-list-detailed { margin: 1.5rem 0 0; }
.feature-list-detailed li { align-items: flex-start; margin-bottom: 1rem; }
.feature-list-detailed li i { display: inline-grid; width: 1.45rem; height: 1.45rem; flex: 0 0 auto; place-items: center; margin: 0; border-radius: 50%; background: #fff0ef; font-size: .7rem; }
.detail-process-section { background: #f3f6fb; }
.detail-step { position: relative; height: 100%; padding: 2rem; overflow: hidden; border-radius: .75rem; background: #fff; }
.detail-step > span { position: absolute; top: 1rem; right: 1.25rem; color: #e0e7f1; font-size: 2.2rem; font-weight: 700; }
.detail-step > i { display: inline-grid; width: 2.8rem; height: 2.8rem; place-items: center; margin-bottom: 1.25rem; border-radius: .6rem; background: var(--primary-color); color: #fff; }
.detail-step h3 { color: var(--primary-color); font-size: 1.4rem; font-weight: 700; }
.detail-step p { margin: 0; color: #64748b; }
.detail-contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.75rem, 4vw, 3.25rem); border-radius: .75rem; background: linear-gradient(120deg, var(--secondary-color), #ed5d47); color: #fff; }
.detail-contact-panel h2 { margin: .3rem 0 .5rem; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 700; }
.detail-contact-panel p { color: rgb(255 255 255 / .82); }
.related-services-section { background: #fff; }
.related-service-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.related-service-links a { display: inline-flex; align-items: center; gap: .65rem; padding: .75rem 1rem; border: 1px solid #dbe3ef; border-radius: .5rem; color: var(--primary-color); font-weight: 700; text-decoration: none; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.related-service-links a:hover { border-color: var(--secondary-color); background: #fff0ef; color: var(--secondary-color); }
.related-service-links i { font-size: .75rem; }

.service-card {
  display: block;
  overflow: hidden;
  height: 100%;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgb(5 37 95 / 0.08);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover {
  color: inherit;
  transform: translateY(-0.35rem);
  box-shadow: 0 0.75rem 1.5rem rgb(5 37 95 / 0.16);
}

.service-card:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-intro { margin-top: -2rem; padding: 2rem 0; background: var(--secondary-color); color: #fff; }
.service-intro h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
.service-intro p { color: rgb(255 255 255 / .85); font-size: 1.1rem; }
.eyebrow-light { color: rgb(255 255 255 / .8) !important; font-size: .85rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.service-card-featured { border: 1px solid transparent; }
.service-card-featured:hover { border-color: rgb(255 56 47 / .3); }
.service-image-wrap { position: relative; overflow: hidden; }
.service-card-featured img { transition: transform .35s ease; }
.service-card-featured:hover img { transform: scale(1.07); }
.service-icon { position: absolute; right: 1.25rem; bottom: -1.45rem; display: inline-grid; width: 3rem; height: 3rem; place-items: center; border: 3px solid #fff; border-radius: .7rem; background: var(--secondary-color); color: #fff; box-shadow: 0 .35rem .9rem rgb(5 37 95 / .16); }
.service-number { display: block; margin-bottom: .5rem; color: #b8c5d9; font-size: .85rem; font-weight: 700; letter-spacing: .1em; }
.services-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: .75rem; background: var(--primary-color); color: #fff; }
.services-cta h2 { margin: .3rem 0 .5rem; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
.services-cta p { color: rgb(255 255 255 / .75); }

.service-card h3 {
  color: var(--primary-color);
}

.service-card h2 { color: var(--primary-color); }

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 700;
}

.service-card-link i {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.service-card:hover .service-card-link i,
.service-card:focus-visible .service-card-link i {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateX(0.2rem);
}

.services-carousel .owl-nav button.owl-next,
.services-carousel .owl-nav button.owl-prev {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0 0.25rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.services-carousel .owl-nav button.owl-next:hover,
.services-carousel .owl-nav button.owl-prev:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

.approach-section { background: #f3f6fb; }
.process-card { position: relative; height: 100%; padding: 2rem; overflow: hidden; border-radius: .75rem; background: #fff; box-shadow: 0 .25rem 1rem rgb(5 37 95 / .06); }
.process-card > span { position: absolute; top: 1rem; right: 1.4rem; color: #dae2ef; font-size: 2.4rem; font-weight: 700; line-height: 1; }
.process-card > i { display: inline-grid; width: 3rem; height: 3rem; place-items: center; margin-bottom: 1.5rem; border-radius: .6rem; background: #fff0ef; color: var(--secondary-color); font-size: 1.25rem; }
.process-card h3 { color: var(--primary-color); font-size: 1.5rem; font-weight: 700; }
.process-card p { margin-bottom: 0; color: #64748b; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border-radius: .9rem; background: linear-gradient(120deg, var(--primary-color), #0b3a87); }
.cta-panel h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; }
.cta-panel p { color: rgb(255 255 255 / .75); }

.value-card { height: 100%; padding: 2rem; background: #fff; border-radius: .75rem; box-shadow: 0 .25rem 1rem rgb(5 37 95 / .08); }
.value-card > i, .contact-detail > i { color: var(--secondary-color); font-size: 1.6rem; margin-bottom: 1rem; }
.feature-list { padding: 0; list-style: none; }
.feature-list li { display: flex; gap: .75rem; margin-bottom: .7rem; font-weight: 500; }
.feature-list i { color: var(--secondary-color); margin-top: .25rem; }
.contact-form { padding: 2rem; border-radius: .75rem; background: #f8f9fa; }
.form-control { border-color: #d5dbe5; padding: .7rem .85rem; }
.form-select { border-color: #d5dbe5; padding: .7rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 .2rem rgb(255 56 47 / .15); }
.contact-detail { display: flex; gap: 1rem; margin-top: 2rem; align-items: flex-start; }
.contact-detail > i { margin: .2rem 0 0; }
.contact-detail a { display: block; color: var(--primary-color); text-decoration: none; }
.social-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .55rem; }
.contact-detail .social-links a { display: inline-grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 50%; background: #fff0ef; color: var(--secondary-color); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.contact-detail .social-links a:hover, .contact-detail .social-links a:focus-visible { background: var(--secondary-color); color: #fff; transform: translateY(-2px); }
.site-footer { background: var(--primary-color); color: #c8d3e9; }
.footer-brand { color: #fff; font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.site-footer a:not(.footer-brand) { color: #fff; margin-left: 1.25rem; text-decoration: none; }
.site-footer a:hover { color: var(--secondary-color); }

/* Footer links. Flex + gap rather than the inherited margin-left above, which
   would push the row off-centre once it is centred on small screens. Centred
   while the columns are stacked; right-aligned from lg, where the brand sits
   beside it. */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; }
.site-footer .footer-links a { margin-left: 0; }
@media (min-width: 992px) { .footer-links { justify-content: flex-end; } }

/* ---------------------------------------------------------------
   HTML sitemap (/sitemap)
   Thousands of links, so the styling is about scanning: generous
   hit areas, clear grouping, and links that wrap into a flow
   rather than a single very long column.
   --------------------------------------------------------------- */
.sitemap-block { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid #e6ebf3; }
.sitemap-block:last-of-type { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }

.sitemap-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.sitemap-links a {
  padding: .35rem .85rem;
  border: 1px solid #dce4f0;
  border-radius: 2rem;
  background: #fbfcfe;
  color: var(--primary-color);
  font-size: .95rem;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sitemap-links a:hover,
.sitemap-links a:focus-visible { border-color: var(--primary-color); background: var(--primary-color); color: #fff; }

.sitemap-service-card {
  display: flex;
  gap: .85rem;
  align-items: center;
  height: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid #dce4f0;
  border-radius: .75rem;
  background: #fbfcfe;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sitemap-service-card i { color: var(--secondary-color); font-size: 1.15rem; }
.sitemap-service-card:hover,
.sitemap-service-card:focus-visible {
  border-color: var(--primary-color);
  box-shadow: 0 .5rem 1.25rem rgba(5, 37, 95, .1);
  transform: translateY(-2px);
  color: var(--primary-color);
}

.sitemap-accordion .accordion-item { border: 1px solid #dce4f0; border-radius: .75rem !important; margin-bottom: .75rem; overflow: hidden; }
.sitemap-accordion .accordion-button { padding: 1rem 1.25rem; font-weight: 600; color: var(--primary-color); background: #fbfcfe; }
.sitemap-accordion .accordion-button:not(.collapsed) { background: var(--primary-color); color: #fff; box-shadow: none; }
.sitemap-accordion .accordion-button:not(.collapsed) i { color: #fff; }
.sitemap-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(5, 37, 95, .15); }
.sitemap-accordion .accordion-button i { color: var(--secondary-color); }
.sitemap-count { margin-right: .75rem; color: #64748b; font-size: .8rem; font-weight: 500; white-space: nowrap; }
.sitemap-accordion .accordion-button:not(.collapsed) .sitemap-count { color: rgba(255, 255, 255, .75); }

.sitemap-state + .sitemap-state { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #eef2f7; }
.sitemap-state-name { margin-bottom: .75rem; color: #64748b; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 575.98px) {
  .sitemap-count { display: none; }
  .sitemap-links a { font-size: .9rem; }
}
.legal-section { background: #fff; }
.legal-card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #dce4f0; border-radius: .75rem; background: #fbfcfe; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
.legal-grid > div { padding-bottom: 1rem; border-bottom: 1px solid #e6ebf3; }
.legal-grid-wide { grid-column: 1 / -1; }
.legal-grid dt { margin-bottom: .25rem; color: #64748b; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.legal-grid dd { margin: 0; color: var(--primary-color); font-size: 1.1rem; font-weight: 600; }
.legal-note { margin-top: 1rem; color: #64748b; font-size: .9rem; }

/* Fixed WhatsApp contact button */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  display: inline-grid;
  width: 3.75rem;
  height: 3.75rem;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0.5rem 1.25rem rgb(0 0 0 / 0.22);
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.whatsapp-float::before {
  position: absolute;
  inset: -0.35rem;
  border: 2px solid #25d366;
  border-radius: inherit;
  content: "";
  opacity: 0;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float::after {
  position: absolute;
  right: calc(100% + 0.75rem);
  padding: 0.4rem 0.65rem;
  border-radius: 0.3rem;
  background: #1f2937;
  color: #fff;
  content: attr(data-tooltip);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0.25rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-0.2rem) scale(1.04);
}

.whatsapp-float:hover::after,
.whatsapp-float:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

@keyframes whatsapp-pulse {
  0%,
  40% {
    opacity: 0.7;
    transform: scale(0.9);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

@media (max-width: 575.98px) {
  .hero-banner { min-height: 700px; }
  .hero-title { font-size: 3rem; }
  .proof-strip { margin-top: 0; }
  .proof-strip .container { border-radius: 0; box-shadow: none; }
  .proof-item:not(:last-child) { border-right: 0; border-bottom: 1px solid #e3e8f0; }
  .cta-panel { align-items: flex-start; flex-direction: column; }
  .services-cta { align-items: flex-start; flex-direction: column; }
  .detail-contact-panel { align-items: flex-start; flex-direction: column; }
  .detail-image-badge { right: .75rem; bottom: .75rem; }
  .legal-grid { grid-template-columns: 1fr; gap: 1rem; }
  .legal-grid-wide { grid-column: auto; }
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 3.4rem;
    height: 3.4rem;
    font-size: 2rem;
  }

  .whatsapp-float::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float::after {
    transition: none;
  }

  .whatsapp-float::before {
    animation: none;
  }
}
