/* ─── HEADER ────────────────────────────────────────────────── */

.header {
  background-color: #dfeaf4;
  padding: 10px 0 31px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.header__topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.header__phone {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #0d2136;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__phone-icon {
  width: 16px;
  height: 16px;
}

.header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  /* display: block; */
  max-width: 200px;
  width: 100%;
  object-fit: contain;
}

/* ─── NAV ───────────────────────────────────────────────────── */

.header__nav {
  /* flex: 1; */
  display: flex;
  justify-content: center;
  margin-right: 40px;
  margin-left: auto;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav__item {
  position: relative;
}

.nav__link {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: #2e76af;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav__link:hover,
.nav__item--dropdown:hover > .nav__link {
  color: #fd8e39;
}

/* ── Header Dropdown ── */

/* Parent li must be position relative */
.nav__item--dropdown {
  position: relative;
}

/* Dropdown panel — centered under MOVING */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(46, 118, 175, 0.3);
  z-index: 1000;
  padding: 12px 0;
  list-style: none;
  margin: 0;
}

.nav__item--dropdown:hover .dropdown {
  display: block;
}

/* Dropdown links */
.dropdown__link {
  display: block;
  text-align: center;
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #2e76af;
  padding: 10px 24px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.dropdown__link:hover {
  color: #fd8e39;
}

/* ─── CTA BUTTON ────────────────────────────────────────────── */

.header__btn {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background-color: #2e76af;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 15.5px;
  border-radius: 0;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.header__btn:hover {
  background-color: #245d8a;
}

/* ─── HAMBURGER — hidden on desktop ─────────────────────────── */

.header__burger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #0d2136;
  padding: 4px;
  line-height: 1;
}

/* ─── MOBILE ────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .header__burger {
    display: block;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #dfeaf4;
    padding: 20px;
    z-index: 999;
  }

  .header__nav.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
  }

  .dropdown {
    position: static;
    left: auto;
    transform: none;
    box-shadow: none;
    display: none;
    padding: 8px 0 0 12px;
    min-width: unset;
  }

  .nav__item--dropdown.is-open .dropdown {
    display: block;
  }

  .header__main {
    position: relative;
  }

  .header__btn {
    display: none;
  }
}

/* ─── FOOTER ────────────────────────────────────────────────── */

.footer {
  position: relative;
  background-color: #2e76af;
  padding: 45px 0 40px;
  overflow: hidden;
}

/* Decorative square — top-left corner */
.footer__square {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  background-color: #dfeaf4;
  pointer-events: none;
}

.footer__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Main row: links left, logo right */
.footer__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

/* ─── LINK COLUMNS ──────────────────────────────────────────── */

.footer__links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-title {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  color: #fd8e39;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 15px 0;
}

.footer__col a {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.25s;
}

.footer__col a:hover {
  color: #dfeaf4;
}

/* ─── SOCIAL ICONS ──────────────────────────────────────────── */

.footer__social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.25s;
}

.footer__social-link:hover {
  opacity: 1;
}

.footer__social-link img {
  height: 20px;
  width: auto;
  display: block;
}

/* ─── LOGO (right side) ─────────────────────────────────────── */

.footer__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.footer__logo img {
  max-width: 380px;
  width: 100%;
  height: auto;
  display: block;
}

/* ─── SUB-FOOTER ────────────────────────────────────────────── */

.sub-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.54);
  margin-top: 40px;
  padding: 8px 0;
}

.sub-footer__row {
  display: flex;
  justify-content: end;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-footer__row span {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

/* ─── FOOTER MOBILE ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .footer__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__logo {
    align-self: center;
    margin-top: 30px;
  }
}

@media (max-width: 600px) {
  .footer__links {
    gap: 36px;
  }

  .footer__logo img {
    width: 170px;
  }

  .sub-footer__row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.551);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #ffffff;
  padding: 48px 40px 40px;
  max-width: 640px;
  width: 90%;
  position: relative;
  box-sizing: border-box;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #fd8e39;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #d26612; }

.modal-step { display: none; }
.modal-step.active { display: block; }

.modal-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.modal-field input,
.modal-field select,
.modal-field textarea {
  width: 100%;
  padding: 17px 16px;
  border: 2px solid #2e76af;
  background: #ffffff;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: #2e76af;
  box-sizing: border-box;
  outline: none;
  appearance: none;
}
.modal-field input::placeholder,
.modal-field textarea::placeholder {
  color: #2e76af;
  opacity: 1;
}
.modal-field select { color: #2e76af; }
.modal-field textarea { resize: none; }
.modal-field-full { grid-column: 1 / -1; }

.modal-next-btn {
  width: 100%;
  padding: 18px;
  background: #fd8e39;
  border: none;
  color: #ffffff;
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 4px;
}
.modal-next-btn:hover { background: #d26612; }

@media (max-width: 768px) {
  .modal-fields-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 40px 20px 32px; }
}
