/* =====================================================================
   layout.css — header, mobile menu, footer and the floating WhatsApp
   button. Same on every page.
   ===================================================================== */

/* ================= HEADER ================= */
.site-header {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  padding: 24px 0;
  transition: background .35s, padding .35s, box-shadow .35s;
}

/* js/main.js adds .is-sticky after scrolling down */
.site-header.is-sticky {
  position: fixed;
  padding: 12px 0;
  background: rgba(6, 20, 48, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(111, 196, 232, .15);
  animation: headerIn .4s var(--ease);
}
@keyframes headerIn { from { transform: translateY(-100%); } to { transform: none; } }

.header-inner { display: flex; align-items: center; gap: 30px; }

.brand img { height: 66px; width: auto; }
.site-header.is-sticky .brand img { height: 54px; }

.nav { display: flex; gap: 30px; margin-inline-start: 20px; font-size: 15px; font-weight: 500; }
.nav a { position: relative; color: rgba(255, 255, 255, .75); transition: color .25s; }
.nav a:hover { color: #ffffff; }
.nav a.is-active { color: #ffffff; font-weight: 700; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -6px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
}

.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; }

.header-call { display: flex; align-items: center; gap: 10px; }
.header-call__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(111, 196, 232, .4);
  border-radius: 50%;
  color: var(--sky-light);
}
.header-call__text { display: flex; flex-direction: column; line-height: 1.35; }
.header-call__text small { font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.header-call__text strong { font-size: 14.5px; }

.lang-btn {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 4px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
  transition: background .25s, color .25s;
}
.lang-btn:hover { background: #ffffff; color: var(--navy-900); }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid rgba(111, 196, 232, .4);
  border-radius: 4px;
  background: none;
  color: #ffffff;
  cursor: pointer;
  place-items: center;
}

/* ================= FOOTER ================= */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .62); font-size: 14.5px; }

.footer-top { border-bottom: 1px solid rgba(111, 196, 232, .12); }
.footer-top .container {
  padding: 56px 0;
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 30px;
  align-items: center;
}
.footer-top .brand img { height: 74px; }

.footer-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.footer-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(111, 196, 232, .18);
  background: rgba(255, 255, 255, .02);
  color: #ffffff;
  transition: border-color .3s, background .3s;
}
.footer-card:hover { border-color: var(--sky); background: rgba(32, 160, 210, .08); }
.footer-card__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(32, 160, 210, .14);
  color: var(--sky-light);
}
.footer-card__text { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.footer-card__text small { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.footer-card__text strong { font-size: 15px; overflow-wrap: anywhere; }

.footer-cols {
  padding: 56px 0;
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 2fr 2fr;
  gap: 30px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
  font-size: 16px; font-weight: 800; color: #ffffff;
}
.footer-col h3::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}
.footer-col p { line-height: 2; max-width: 360px; }
.footer-col a { transition: color .25s, padding .25s; }
.footer-col a:hover { color: #ffffff; padding-inline-start: 4px; }

.footer-address { display: flex; gap: 8px; align-items: flex-start; line-height: 1.9; }
.footer-address svg { flex-shrink: 0; margin-top: 4px; color: var(--red); }
.footer-address strong { color: #ffffff; }

.footer-social { display: flex; align-items: center; gap: 12px; }
.footer-social span {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(111, 196, 232, .3);
  color: var(--sky-light);
}

.footer-bottom { border-top: 1px solid rgba(111, 196, 232, .12); }
.footer-bottom .container {
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px;
}
.back-to-top { display: inline-flex; align-items: center; gap: 8px; }
.back-to-top span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--red); color: #ffffff; }

/* ================= FLOATING WHATSAPP ================= */
.wa-float {
  position: fixed;
  left: 26px;
  bottom: 26px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
}
.wa-float__btn {
  position: relative;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .3s;
}
.wa-float__btn:hover { transform: scale(1.07); }
.wa-float__btn::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  animation: waRing 2.2s infinite;
}
@keyframes waRing { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); } 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

.wa-float__tip {
  position: relative;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--navy-800);
  box-shadow: 0 14px 34px -12px rgba(6, 20, 48, .55);
}
.wa-float__tip::before {
  content: "";
  position: absolute;
  right: -6px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  background: #ffffff;
  transform: rotate(45deg);
}
/* js/main.js adds .is-open after the visitor scrolls */
.wa-float__tip.is-open { display: flex; animation: tipIn .45s var(--ease) both; }
@keyframes tipIn { from { opacity: 0; transform: translateX(-10px) scale(.96); } to { opacity: 1; transform: none; } }
.wa-float__tip a { display: flex; flex-direction: column; line-height: 1.45; }
.wa-float__tip strong { font-size: 14.5px; }
.wa-float__tip small { font-size: 12.5px; color: var(--muted-dark); }
.wa-float__close {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #EEF2F7;
  color: var(--muted-dark);
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
  .header-call { display: none; }
  .nav { gap: 22px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .brand img { height: 54px; }

  .nav {
    position: fixed;
    top: 0; bottom: 0;
    right: 0;
    width: min(320px, 85vw);
    margin: 0;
    padding: 100px 30px 30px;
    flex-direction: column;
    gap: 6px;
    font-size: 17px;
    background: var(--navy-950);
    border-left: 1px solid rgba(111, 196, 232, .2);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 70;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(111, 196, 232, .1); }
  .nav a.is-active::after { bottom: 10px; inset-inline-start: auto; inset-inline-end: 0; }
  .menu-toggle { position: relative; z-index: 80; }

  .footer-top .container { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-cards { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .wa-float { left: 16px; bottom: 16px; }
  .wa-float__tip { max-width: calc(100vw - 110px); }
}
