/* =============================================
   TOPBAR
   ============================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(245, 248, 252, 0.84);
  border-bottom: 1px solid rgba(16, 37, 66, 0.06);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0;
}

.topbar__brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 0 0 auto;
}

.topbar__inner > .nav {
  flex: 1;
  justify-content: center;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* =============================================
   BRAND
   ============================================= */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.brand__name {
  display: none;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
}

.brand__name strong {
  font-family: "Outfit", "Trebuchet MS", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--blue-deep);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand__name span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand__logo {
  width: 128px;
  height: 85.29px;
  object-fit: contain;
}

/* =============================================
   DARK TOGGLE
   ============================================= */

.dark-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(21, 94, 239, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
  flex: 0 0 auto;
}

.dark-toggle:hover {
  transform: rotate(20deg);
}

.dark-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--blue-deep);
}

.dark-toggle__moon { display: none; }

/* =============================================
   HAMBURGER
   ============================================= */

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 94, 239, 0.14);
  cursor: pointer;
  flex: 0 0 auto;
}

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-deep);
  transition: transform 200ms ease, opacity 200ms ease;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   MOBILE MENU
   ============================================= */

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu {
  background: rgba(245, 248, 252, 0.98);
  border-top: 1px solid rgba(21, 94, 239, 0.08);
  backdrop-filter: blur(16px);
  animation: slideDown 200ms ease;
}

.mobile-menu__inner {
  display: grid;
  padding: 1rem 0 1.25rem;
  gap: 0.15rem;
}

.mobile-menu__link {
  display: block;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.mobile-menu__link:hover {
  background: rgba(21, 94, 239, 0.06);
  color: var(--blue-deep);
}

.mobile-menu__phone {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-deep), #155eef);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.mobile-menu__phone svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: #fff;
  flex: 0 0 auto;
}

/* =============================================
   NAV
   ============================================= */

.topbar__phone-inline {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue-deep);
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 160ms ease;
}

.topbar__phone-inline:hover,
.topbar__phone-inline:focus-visible {
  color: var(--red);
}

.topbar__phone-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a {
  white-space: nowrap;
  transition: color 160ms ease;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: width 200ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue-deep);
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(220, 234, 255, 0.3));
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 1.75rem;
  grid-template-columns: 1fr;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__heading {
  margin: 0 0 0.3rem;
  font-family: "Outfit", "Trebuchet MS", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-deep);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer__list a {
  color: var(--text-soft);
  font-weight: 600;
  transition: color 160ms ease;
}

.footer__list a:hover,
.footer__list a:focus-visible {
  color: var(--blue);
}

.footer__list--plain li {
  color: var(--text-soft);
}

.footer__list--plain a {
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 1.05rem;
}

.footer__tagline {
  margin: 0.5rem 0 0.25rem;
  color: var(--text-soft);
  font-size: 0.96rem;
  max-width: 22rem;
}

.footer__social {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 94, 239, 0.14);
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 0.86rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.footer__social a:hover,
.footer__social a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(16, 37, 66, 0.1);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(16, 37, 66, 0.08);
  color: var(--text-soft);
}

.footer__inner p {
  margin: 0;
}

.footer__small {
  font-size: 0.86rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-brand__logo {
  width: clamp(5.5rem, 26vw, 8rem);
  height: auto;
  object-fit: contain;
}
