/* ============ Topbar ============ */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .82); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar__contacts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: inherit; transition: color .2s; }
a.topbar__item:hover { color: #fff; }
.topbar__promise { opacity: .75; }
.topbar__social { display: flex; gap: 12px; }
.topbar__social-link { display: inline-flex; color: rgba(255, 255, 255, .75); transition: color .2s, transform .2s; }
.topbar__social-link:hover { color: #fff; transform: translateY(-1px); }
@media (max-width: 720px) { .topbar__promise { display: none; } }
@media (max-width: 520px) { .topbar { display: none; } }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(25, 28, 84, .08); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 76px; transition: height .3s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { width: 46px; height: 41px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.06rem; letter-spacing: .06em; color: var(--navy-900); }
.brand__text small { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red-600); font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative; padding: 10px 13px; font-weight: 600; font-size: .93rem; color: var(--ink);
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--red-600); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--red-600); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--red-600); }
.nav__link.is-active::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav__cta { padding: .68em 1.4em; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); transition: transform .3s var(--ease), opacity .2s; }
.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); }
.mobile-menu { position: fixed; inset: 0; top: 64px; z-index: 55; background: rgba(255, 255, 255, .98); padding: 32px 6%; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu__nav .nav__link { font-size: 1.25rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu__cta { margin-top: 22px; justify-content: center; }
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
}

/* ============ Footer ============ */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .78); margin-top: 0; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr .8fr 1.1fr; gap: 48px;
  padding: clamp(48px, 6vw, 72px) 0 40px;
}
.brand--footer .brand__text strong { color: #fff; }
.site-footer__blurb { margin-top: 18px; font-size: .9rem; line-height: 1.7; max-width: 380px; }
.site-footer__social { display: flex; gap: 12px; margin-top: 18px; }
.site-footer__social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff;
  transition: background .25s, transform .25s var(--ease);
}
.site-footer__social-link:hover { background: var(--red-600); transform: translateY(-2px); }
.site-footer__title { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.site-footer__links a { opacity: .8; transition: opacity .2s, padding-left .25s var(--ease); }
.site-footer__links a:hover { opacity: 1; color: #fff; padding-left: 6px; }
.site-footer__contact { display: flex; flex-direction: column; gap: 12px; font-size: .9rem; }
.site-footer__contact li, .site-footer__contact a { display: inline-flex; gap: 10px; align-items: flex-start; }
.site-footer__contact svg { flex: none; margin-top: 4px; opacity: .7; }
.site-footer__contact a:hover { color: #fff; }
.site-footer__cta { margin-top: 22px; }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: .82rem; opacity: .65; }
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ============ Floating widgets ============ */
.float-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.float-whatsapp:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 32px rgba(37, 211, 102, .5); }
.back-top {
  position: fixed; right: 22px; bottom: 90px; z-index: 70;
  width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--navy-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.back-top__track { stroke: rgba(255, 255, 255, .18); }
.back-top__progress { stroke: var(--red-600); stroke-linecap: round; }

/* ============ Inquiry drawer ============ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 17, 45, .5); backdrop-filter: blur(3px);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81;
  width: min(440px, 100%); background: #fff;
  box-shadow: -18px 0 50px rgba(15, 17, 45, .2);
  transform: translateX(102%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 28px 28px 20px; border-bottom: 1px solid var(--line);
}
.drawer__title { font-size: 1.4rem; margin: 0 0 4px; }
.drawer__sub { margin: 0; color: var(--muted); font-size: .88rem; }
.drawer__close {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s;
}
.drawer__close:hover { background: var(--navy-900); color: #fff; }
.drawer__form { padding: 24px 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg-soft); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--navy-700); background: #fff; box-shadow: 0 0 0 3px rgba(36, 36, 122, .12);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.drawer__error { margin: 0; color: var(--red-600); font-size: .85rem; }
.drawer__submit { justify-content: center; }
.drawer__mailto { text-align: center; font-size: .86rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.drawer__mailto:hover { color: var(--navy-700); }

/* ============ Social hub (home) ============ */
.social-hub__icons { display: flex; justify-content: center; gap: 16px; }
.social-hub__link {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--navy-900); color: #fff;
  transition: transform .25s var(--ease), background .25s;
}
.social-hub__link:hover { background: var(--red-600); transform: translateY(-3px); }

/* ============ Carousel ============ */
.carousel { position: relative; overflow: hidden; padding-bottom: 2px; }
.carousel__viewport, .carousel [data-carousel-track] { touch-action: pan-y; }
.carousel__track, [data-carousel-track] {
  display: flex; gap: 24px;
  transition: transform .45s var(--ease);
  will-change: transform;
}
.carousel__slide { min-width: 0; }
.carousel__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy-900);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.carousel__btn:hover:not(:disabled) { background: var(--red-600); border-color: var(--red-600); color: #fff; transform: translateY(-2px); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.carousel__dot {
  width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0;
  background: var(--line); cursor: pointer;
  transition: width .3s var(--ease), background .3s;
}
.carousel__dot.is-active { width: 26px; background: var(--red-600); }
@media (prefers-reduced-motion: reduce) {
  .carousel__track, [data-carousel-track] { transition: none; }
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12, 14, 38, .88);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__img {
  max-width: min(90vw, 1100px); max-height: 86vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.lightbox__close {
  position: absolute; top: 20px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; transition: background .2s;
}
.lightbox__close:hover { background: var(--red-600); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.9rem; line-height: 1;
  cursor: pointer; transition: background .2s;
}
.lightbox__nav:hover { background: var(--red-600); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
