/* TravelHub — custom overrides. Loaded after the template bundle. */

/* ---------- Desktop call button: header / topbar ---------- */
.header__brand,
.topbar__brand {
  font-weight: 800;
  font-size: 1.375em;
  letter-spacing: .2px;
  text-decoration: none;
}
.header-phone,
.topbar-phone {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  background-color: #00d396;
  color: #0b2b20 !important;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover,
.topbar-phone:hover,
.footer-call:hover,
.mobile-call-bar__btn:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

/* ---------- Subpage top bar ---------- */
.topbar {
  background-color: #1b2b3f;
  padding: 16px 0;
}
.topbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar__brand { color: #fff; }
.topbar__menu { display: flex; gap: 6px; }
.topbar__link {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 500;
}
.topbar__link:hover { background-color: rgba(255, 255, 255, .12); }

/* ---------- Hero ---------- */
.intro__sub {
  margin-bottom: 40px;
  max-width: 720px;
  font-size: 1.25em;
  line-height: 1.4em;
  color: #fff;
}
.intro__disclaimer {
  margin-top: 26px;
  max-width: 640px;
  font-size: .8125em;
  line-height: 1.5em;
  color: #fff;
  opacity: .78;
}
.intro__heading { color: #fff; }
.intro-list-item { color: #fff; }

/* sharper hero background: webp first, jpg fallback (declaration dropped if unsupported) */
.hero { background-image: url(../images/bg.jpg); }
.hero {
  background-image: image-set(
    url(../images/bg.webp) type("image/webp"),
    url(../images/bg.jpg) type("image/jpeg")
  );
}
.contacts { background-image: url(../images/contacts.jpg); }
.contacts {
  background-image: image-set(
    url(../images/contacts.webp) type("image/webp"),
    url(../images/contacts.jpg) type("image/jpeg")
  );
}

/* ---------- How It Works ---------- */
.steps {
  background-color: #f7f8fc;
  padding-top: 80px;
  padding-bottom: 80px;
}
.steps__heading {
  margin-bottom: 40px;
  font-size: 2.25em;
  font-weight: 800;
  line-height: 1.2em;
  text-align: center;
}
.steps__items {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}
.steps__item {
  width: 33.333%;
  padding-left: 12px;
  padding-right: 12px;
}
.steps-item {
  background: #fff;
  border-radius: 6px;
  padding: 28px 24px;
  height: 100%;
  box-shadow: 0 1px 3px rgba(22, 22, 22, .08);
}
.steps-item__num {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background-color: #00d396;
  color: #0b2b20;
  font-weight: 800;
  font-size: 1.125em;
  line-height: 40px;
  text-align: center;
}
.steps-item__heading {
  margin-bottom: 10px;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.25em;
}
.steps-item__text {
  font-size: 1em;
  line-height: 1.5em;
  color: #676767;
}

/* ---------- Contacts CTA ---------- */
.contacts { position: relative; }
.contacts__container { position: relative; z-index: 5; }
.contacts__note {
  margin-top: 20px;
  font-size: .875em;
  line-height: 1.4em;
  color: #676767;
}

/* ---------- Footer call CTA ---------- */
.footer__cta {
  display: flex;
  justify-content: center;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 4px;
  background-color: #00d396;
  color: #0b2b20 !important;
  font-size: 1.125em;
  font-weight: 800;
  text-decoration: none;
}
.footer-call__icon { display: inline-flex; }

/* keep the 6 footer links tidy */
.footer-menu { flex-wrap: wrap; justify-content: center; }
.footer-menu__item { margin-left: 10px; margin-right: 10px; }

/* ---------- Mobile sticky call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  background-color: #12202f;                /* dark surface = high contrast against light brand */
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .28);
}
.mobile-call-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 8px 16px;
  color: #ffffff;
  font-size: 1.0625em;
  font-weight: 800;
  letter-spacing: .2px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mobile-call-bar__icon {
  display: inline-flex;
  color: #00d396;
  animation: tth-ring 1.8s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes tth-ring {
  0%, 55%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-12deg); }
  20% { transform: rotate(12deg); }
  30% { transform: rotate(-9deg); }
  40% { transform: rotate(9deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-call-bar__icon { animation: none; }
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 991.98px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 75px; }
  .back-to-top { bottom: 80px !important; }
  .footer { padding-bottom: 34px; }
  .header-phone { padding: 9px 14px; font-size: .9375em; }
}
@media screen and (max-width: 860px) {
  .steps__item { width: 100%; margin-bottom: 16px; }
  .steps { padding-top: 56px; padding-bottom: 56px; }
  .steps-item { padding: 22px 20px; }
  .intro { padding-bottom: 150px; }          /* keep CTA clear of the fixed bar */
  .intro__sub { font-size: 1.0625em; margin-bottom: 28px; }
  .intro__disclaimer { margin-top: 20px; }
  .footer__cta { padding-bottom: 18px; margin-bottom: 18px; }
  .footer-call { width: 100%; justify-content: center; font-size: 1em; padding: 13px 18px; }
}
@media screen and (max-width: 640px) {
  .topbar__container { justify-content: center; text-align: center; }
  .topbar__menu { order: 3; width: 100%; justify-content: center; }
  .topbar__phone { order: 2; }
  .intro { padding-bottom: 132px; }
  .intro__heading { font-size: 1.75em; line-height: 1.3em; }
  .intro-list__item { padding-right: 0; width: 100%; }
  .contacts__heading { font-size: 1.75em; }
  /* footer stacks cleanly instead of squeezing */
  .footer__container { flex-direction: column; align-items: center; }
  .footer-menu { flex-direction: column; align-items: center; }
  .footer-menu__item { margin: 0 0 10px; }
  .footer__copyrights { line-height: 1.5em; }
}
@media screen and (max-width: 460px) {
  .mobile-call-bar__btn { font-size: .9375em; }
  .intro__heading { font-size: 1.5em; }
}
