/* ============================================================
   Techwine — Header & Footer (shared partials, injected by JS)
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(0, 51, 52, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(0, 51, 52, 0.35);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo: wordmark + yellow dot moment */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-off-white);
}

.logo:hover {
  color: var(--color-off-white);
}

.logo__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-yellow);
  flex: none;
}

.logo span {
  color: var(--color-yellow);
}

/* Main nav */
.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-teal-muted);
}

.main-nav a:hover {
  color: var(--color-off-white);
  background: rgba(246, 246, 246, 0.08);
}

.main-nav a.is-active {
  color: var(--color-teal-dark);
  background: var(--color-yellow);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-off-white);
  background: rgba(246, 246, 246, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  background: var(--color-yellow);
  color: var(--color-teal-dark);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

/* Language switcher: pill toggle */
.lang-switcher {
  display: flex;
  align-items: center;
  flex: none;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(246, 246, 246, 0.08);
  gap: 2px;
}

.lang-switcher button {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switcher button:hover {
  color: var(--color-off-white);
}

.lang-switcher button.is-active {
  background: var(--color-yellow);
  color: var(--color-teal-dark);
}

.header-callback {
  display: none;
}

/* Burger (mobile) */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: rgba(246, 246, 246, 0.08);
  color: var(--color-off-white);
  place-items: center;
}

.burger svg {
  width: 20px;
  height: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-teal-dark);
  color: var(--color-teal-muted);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--dotgrid-dark);
  background-size: var(--dotgrid-size);
  opacity: 0.5;
  pointer-events: none;
}

.site-footer > * {
  position: relative;
}

.site-footer__top {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 48px;
}

.site-footer .logo {
  margin-bottom: 18px;
}

.site-footer__about {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--color-teal-muted);
  font-size: 14px;
  font-weight: 500;
}

.footer-col a:hover {
  color: var(--color-yellow);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}

.footer-contact__office {
  font-weight: 700;
  color: var(--color-off-white);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-contact a {
  color: var(--color-teal-muted);
}

.footer-contact a:hover {
  color: var(--color-yellow);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(246, 246, 246, 0.08);
  color: var(--color-off-white);
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: var(--color-yellow);
  color: var(--color-teal-dark);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(246, 246, 246, 0.10);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

/* Footer language switcher (same component, reused) */
.site-footer .lang-switcher {
  background: rgba(246, 246, 246, 0.06);
}

/* ---------- Responsive header ---------- */
@media (min-width: 1024px) {
  .header-callback {
    display: inline-flex;
  }
}

@media (max-width: 1023px) {
  .burger {
    display: grid;
    order: -1;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-teal-dark);
    border-top: 1px solid rgba(246, 246, 246, 0.10);
    padding: 18px 24px 26px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .main-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav a {
    padding: 14px 18px;
    font-size: 14px;
  }

  .site-header__inner {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    gap: 10px;
  }
  .logo {
    font-size: 17px;
    gap: 7px;
  }
  .logo__dot {
    width: 9px;
    height: 9px;
  }
  .icon-btn,
  .burger {
    width: 40px;
    height: 40px;
  }
  .header-actions {
    gap: 10px;
  }
  .lang-switcher {
    padding: 3px;
  }
  .lang-switcher button {
    padding: 6px 9px;
    font-size: 10px;
  }
}

/* ---------- Responsive footer ---------- */
@media (max-width: 1023px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
