.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--text);
}

.brand img,
.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  min-width: 0;
}

@media (max-width: 430px) {
  .brand-name {
    font-size: 0.88rem;
    letter-spacing: 0;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem 1.15rem;
}

.nav-desktop > a,
.nav-item > a {
  display: flex;
  align-items: center;
  height: 2.5rem;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.5rem;
}

.nav-item > a::after {
  content: "";
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-left: 0.28rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.5;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 10.5rem;
  padding: 0.55rem 0 0.4rem;
  display: none;
  z-index: 1100;
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-dropdown a:first-child {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-dropdown a:last-child {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.nav-dropdown a:only-child {
  border-radius: var(--radius-sm);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  display: block;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"],
.nav-item.is-current > a,
.menu-overlay nav a[aria-current="page"] {
  color: var(--primary-dark);
}

.nav-desktop a[aria-current="page"],
.nav-item.is-current > a {
  font-weight: 700;
}

.header-cta {
  display: none;
}

.header-cta.btn {
  display: none;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  flex-shrink: 0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 2000;
  background: var(--bg);
  display: none;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.menu-overlay.is-open {
  display: flex;
}

.menu-overlay__bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0.5rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.menu-close {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.menu-overlay nav {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 6rem;
  gap: 0.25rem;
}

.menu-overlay nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--border);
}

.menu-overlay nav a.menu-sub {
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.6rem 0.25rem 0.6rem 1.15rem;
  color: var(--muted);
}

.menu-overlay .btn {
  margin-top: 1.25rem;
  width: 100%;
  justify-content: center;
}

.site-footer {
  background: var(--primary-deep);
  color: #e7f6f8;
  padding: 3.5rem 0 6.5rem;
}

.site-footer a {
  color: #e7f6f8;
}

.site-footer a:hover {
  color: var(--primary);
}

.site-footer p {
  color: #c5dfe2;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand p {
  color: #c5dfe2;
  margin: 0.35rem 0 0;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-disclaimer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(78, 190, 194, 0.28);
  font-size: 0.88rem;
  color: #c5dfe2;
}

.sticky-wa {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(245, 250, 250, 0.96);
  border-top: 1px solid var(--border);
}

.sticky-wa .btn {
  width: 100%;
  justify-content: center;
}

.page-hero {
  padding: 2.5rem 0 1.25rem;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .nav-desktop,
  .header-cta.btn {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    gap: 0.2rem 0.7rem;
  }

  .sticky-wa {
    display: none;
  }

  .site-footer {
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .nav-desktop {
    gap: 0.15rem 1.15rem;
  }
}

@media (max-width: 1023px) {
  .site-footer {
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom));
  }

  #contact {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }
}
