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

body {
  margin: 0;
  overflow-x: hidden;
}

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

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

.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;
  color: #ffffff;
  white-space: nowrap;
}

.whatsapp-link {
  gap: 6px;
}

.whatsapp-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

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

.nav-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand img {
  display: block;
  width: 90px;
  height: auto;
}

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

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

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

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

.primary-nav-cta {
  display: none;
}

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

body.nav-open {
  overflow: hidden;
}

.site-header.nav-open .nav-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

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

.site-header.nav-open .nav-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.contact-modal-open {
  overflow: hidden;
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 3000;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 36, 0.72);
  backdrop-filter: blur(4px);
}

.contact-modal__dialog {
  position: relative;
  width: min(100%, 760px);
  max-height: min(88vh, 640px);
  overflow: auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbff 0%, #e6eef7 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.contact-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(33, 77, 128, 0.12);
  color: #133454;
  font-size: 24px;
  cursor: pointer;
}

.contact-modal__content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.contact-modal__intro {
  padding: 30px;
  background:
    linear-gradient(160deg, rgba(33, 77, 128, 0.92), rgba(42, 120, 196, 0.86)),
    url("../images/g6.jpg") center/cover;
  color: #ffffff;
}

.contact-modal__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.contact-modal__intro h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.05;
}

.contact-modal__intro p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

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

.contact-modal__form label {
  color: #183a60;
  font-size: 13px;
  font-weight: 700;
}

.contact-modal__form input,
.contact-modal__form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c8d7e8;
  border-radius: 10px;
  background: #ffffff;
  color: #16314d;
  font: inherit;
  padding: 11px 13px;
}

.contact-modal__form textarea {
  min-height: 90px;
  resize: vertical;
}

.contact-modal__form input:focus,
.contact-modal__form textarea:focus {
  outline: 2px solid rgba(42, 120, 196, 0.28);
  border-color: #2a78c4;
}

.contact-modal__form button {
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #214d80, #2a78c4);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
}

.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;
  }

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

  .primary-nav a,
  .quote-btn {
    font-size: 15px;
  }

  .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;
  }

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

  .contact-modal__intro,
  .contact-modal__form {
    padding: 24px;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
  }

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

  .brand {
    margin-right: 0;
  }

  .quote-btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 14px 3%;
    background: rgba(19, 42, 67, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 30px rgba(8, 16, 28, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
  }

  .site-header.nav-open .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  .primary-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 12px 18px;
    border-radius: 10px;
    background: #2a78c4;
  }
}

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

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

  .brand img {
    width: 74px;
  }

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

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

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

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

  .contact-modal {
    padding: 14px;
  }

  .contact-modal__intro,
  .contact-modal__form {
    padding: 18px;
  }

  .contact-modal__intro h2 {
    font-size: 24px;
  }

  .contact-modal__close {
    top: 10px;
    right: 10px;
  }
}
