.site-header,
.site-footer,
body {
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.hf-container {
  width: min(1200px, 94%);
  margin: 0 auto;
}

body {
  margin: 0;
}

.site-header,
.site-footer {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.modal-open {
  overflow: hidden;
}

.site-header a,
.site-footer a {
  text-decoration: none;
}

.top-bar {
  background: #2f5a8f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.top-bar-inner {
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.top-bar-inner .top-link:first-child {
  justify-self: start;
}

.top-bar-inner .top-link:nth-child(2) {
  justify-self: center;
}

.top-bar-inner .top-text {
  justify-self: end;
}

.top-link,
.top-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  white-space: nowrap;
}

.whatsapp-link {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.whatsapp-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
  color: #25d366;
  flex-shrink: 0;
}

.main-nav {
  background: rgba(45, 75, 113, 0.9);
}

.nav-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  justify-content: space-between;
}

.brand {
  color: #ffffff;
  font-size: 34px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.3px;
  margin-right: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.quote-btn {
  margin-left: 6px;
  background: #2a78c4;
  color: #ffffff;
  border-radius: 5px;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 20px;
  white-space: nowrap;
}

.site-footer {
  background: #345d90;
  color: #ffffff;
}

.footer-top {
  padding: 58px 0 50px;
}

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

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.15;
}

.footer-col p {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.footer-col p + p {
  margin-top: 5px;
}

.footer-col a {
  color: #ffffff;
}

.footer-bottom {
  background: #214d80;
}

.footer-bottom-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p {
  margin: 0;
  font-size: 15px;
}

.footer-bottom nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-bottom nav a {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .top-bar-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 8px 0;
  }

  .top-bar-inner .top-link:first-child,
  .top-bar-inner .top-link:nth-child(2),
  .top-bar-inner .top-text {
    justify-self: center;
  }

  .nav-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
  }

  .brand {
    margin: 0;
    font-size: 30px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 18px 14px;
    border-top: 0;
    border-radius: 14px;
    background: rgba(22, 42, 69, 0.98);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .quote-btn {
    margin: 0;
    padding: 10px 16px;
    font-size: 14px;
    justify-self: center;
  }

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

  .footer-col h3 {
    font-size: 17px;
  }

  .footer-col p,
  .footer-bottom p,
  .footer-bottom nav a {
    font-size: 14px;
  }
}

@media (max-width: 680px) {
  .top-bar {
    font-size: 13px;
  }

  .whatsapp-link {
    padding: 5px 10px;
  }

  .hf-container {
    width: min(100%, calc(100% - 20px));
  }

  .nav-inner {
    grid-template-columns: auto auto;
  }

  .brand {
    max-width: 120px;
  }

  .quote-btn {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-top {
    padding: 34px 0;
  }

  .footer-bottom-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .footer-bottom nav {
    gap: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .top-bar-inner {
    gap: 8px;
  }

  .top-link,
  .top-text {
    white-space: normal;
    justify-content: center;
    text-align: center;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .primary-nav {
    top: calc(100% + 6px);
    padding: 8px 14px 12px;
  }
}

/* ---------- FLOATERS ---------- */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 54px;
    height: 54px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.3s;
    animation: pulse 2s infinite;
}

.wa-float:hover {
    transform: scale(1.1);
}

.wa-float i {
    color: #fff;
    font-size: 26px;
}

.toastify {
  z-index: 2000;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  line-height: 1.45;
}

.hero-form.is-submitting button,
.contact-page-form.is-submitting button,
.contact-modal__form.is-submitting button,
.hero-form button:disabled,
.contact-page-form button:disabled,
.contact-modal__form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.contact-modal.is-visible {
  display: flex;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 24, 0.72);
}

.contact-modal__dialog {
  position: relative;
  width: min(720px, calc(100% - 28px));
  margin: 0;
  background: linear-gradient(135deg, #d9ecfb 0%, #bcdaf3 100%);
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  max-height: calc(100vh - 32px);
}

.contact-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal__content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 440px;
}

.contact-modal__copy {
  padding: 34px 26px;
  background:
    linear-gradient(rgba(66, 118, 171, 0.28), rgba(52, 103, 156, 0.54)),
    url("../images/g5.jpg") center/cover no-repeat;
}

.contact-modal__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-modal__copy h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.05;
}

.contact-modal__copy p {
  margin: 0;
  max-width: 240px;
  font-size: 14px;
  line-height: 1.5;
  color: #eef7ff;
}

.contact-modal__form-wrap {
  padding: 30px 24px 24px;
  background: rgba(219, 237, 251, 0.96);
}

.contact-modal__alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.contact-modal__alert-success {
  background: rgba(46, 166, 89, 0.18);
  border: 1px solid rgba(90, 211, 132, 0.5);
}

.contact-modal__alert-error {
  background: rgba(156, 28, 28, 0.2);
  border: 1px solid rgba(255, 174, 174, 0.45);
}

.contact-modal__form {
  display: grid;
  gap: 8px;
}

.contact-modal__form label {
  font-size: 14px;
  font-weight: 700;
  color: #173b63;
}

.contact-modal__form input,
.contact-modal__form textarea {
  width: 100%;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  color: #223044;
  background: #f5f7fa;
  box-sizing: border-box;
}

.contact-modal__form input {
  height: 40px;
}

.contact-modal__form textarea {
  min-height: 84px;
  resize: vertical;
  font-family: inherit;
}

.contact-modal__error {
  display: block;
  margin-top: -2px;
  color: #ffd0d0;
  font-size: 12px;
  line-height: 1.35;
}

.contact-modal__form button {
  width: fit-content;
  margin-top: 6px;
  padding: 10px 18px;
  border: 0;
  background: #1d5f9c;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 820px) {
  .contact-modal__dialog {
    width: min(560px, calc(100% - 20px));
  }

  .contact-modal__content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contact-modal__copy {
    min-height: 180px;
    padding: 24px 20px;
  }

  .contact-modal__copy h2 {
    font-size: 28px;
  }

  .contact-modal__copy p,
  .contact-modal__form-wrap {
    max-width: none;
  }

  .contact-modal__form-wrap {
    padding: 22px 20px 20px;
  }

  .contact-modal__form button {
    font-size: 20px;
  }
}
