:root {
  --ink: #101827;
  --muted: #667085;
  --teal: #0f9f9a;
  --coral: #f15b4a;
  --navy: #14213d;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand-logo {
  width: 174px;
  height: auto;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: grid;
  gap: 6px;
  padding: 8px 20px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.1);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 14px;
  color: #475569;
  font-size: 0.96rem;
  font-weight: 800;
}

.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  color: var(--ink);
  background: #f1f5f9;
}

.mobile-menu a.primary {
  justify-content: center;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 14px 28px rgba(241, 91, 74, 0.22);
}

.language-switcher,
.mobile-language {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
}

.language-switcher a,
.mobile-language a {
  display: grid;
  min-width: 36px;
  min-height: 32px;
  place-items: center;
  border-radius: 10px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.language-switcher a:hover,
.mobile-language a:hover {
  color: var(--ink);
  background: #f1f5f9;
}

.language-switcher a[aria-current="page"],
.mobile-language a[aria-current="page"] {
  color: #fff;
  background: var(--ink);
}

.mobile-language {
  justify-content: center;
  margin-top: 4px;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(16, 24, 39, 0.88) 0%, rgba(16, 24, 39, 0.68) 42%, rgba(16, 24, 39, 0.18) 100%),
    url("../images/hero-clinic-baer.png") center / cover no-repeat;
}

.clinic-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.92)),
    url("../images/clinic-day.png") center / cover no-repeat;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.signal-line {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: signal 4s ease-in-out infinite;
}

@keyframes signal {
  0% {
    stroke-dashoffset: 360;
  }

  52%,
  72% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -360;
  }
}

@media (min-width: 768px) {
  .mobile-menu,
  .menu-toggle {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .brand-logo {
    width: min(154px, 52vw);
  }

  .hero-bg {
    min-height: max(660px, calc(100svh - 77px));
    background:
      linear-gradient(180deg, rgba(16, 24, 39, 0.88) 0%, rgba(16, 24, 39, 0.72) 48%, rgba(16, 24, 39, 0.52) 100%),
      url("../images/hero-clinic-baer.png") 66% center / auto 100% no-repeat;
  }

  .hero-inner {
    min-height: max(660px, calc(100svh - 77px));
    align-items: end;
    padding-top: 84px;
    padding-bottom: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
