header {
  box-shadow: 0px 0px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
}

header.w3-top {
  position: sticky !important;
  top: 0;
  z-index: 100;
  margin-top: 0 !important;
}

header nav {
  background: var(--primary) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: 0;
}

header nav .w3-button {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 24px !important;
  transition: var(--transition);
  border-radius: 0;
  background: transparent !important;
  position: relative;
}

header nav .w3-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  transition: var(--transition);
}

header nav .w3-button:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
}

header nav .w3-button:hover::after {
  width: 60%;
}

.sticky {
  background: var(--bg-white) !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid var(--border-light);
}

.sticky h1 {
  font-family: "Faster One", system-ui;
  color: var(--primary) !important;
  text-shadow: none !important;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem) !important;
  margin: 8px 0;
  line-height: 1;
}

.sticky h1 sup {
  font-size: 0.5em;
}

.sticky .w3-large {
  color: var(--primary-dark) !important;
  font-size: clamp(0.9rem, 2vw, 1.2rem) !important;
}

header h1 {
  font-family: "Faster One", system-ui;
  color: var(--primary);
  font-size: 64px;
  line-height: 1;
  margin: 0;
  padding: 0;
}

header h2 {
  font-size: 14px;
  color: var(--accent);
  background-color: white;
  line-height: 1;
}

header aside {
  width: 100%;
  padding: 2px;
  background-color: var(--bg-white);
}

header aside h2 {
  color: var(--accent) !important;
  font-weight: 900;
  font-size: clamp(1rem, 2.5vw, 1.3rem) !important;
  text-shadow: none !important;
  text-align: center;
  padding: 12px 0 4px;
}

.services-container {
  overflow-x: auto;
  padding: 10px 0 !important;
  margin: 0 !important;
  text-align: center;
  color: var(--primary);
  width: 100% !important;
  background: var(--bg-muted);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.services-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  list-style-type: none;
  gap: 32px;
  padding: 8px 16px !important;
  animation: scroll 30s linear infinite alternate !important;
}

.services-list .service-item {
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--text-medium);
  font-weight: 500;
  transition: var(--transition);
}

.services-list .service-item i {
  color: var(--primary);
  margin-right: 6px;
}

.services-list .service-item:hover {
  color: var(--primary);
}

.services-list li::before {
  content: " ";
  margin: 2px;
  color: var(--accent);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% + 200px)); }
}

@media screen and (max-width: 375px) {
  header h1 {
    font-size: 32px;
  }
}

@media screen and (max-width: 768px) {
  header nav .w3-button {
    padding: 10px 14px !important;
    font-size: 0.75rem;
  }
  .sticky h1 {
    font-size: 1.2rem !important;
  }
}

@media screen and (max-width: 480px) {
  header nav {
    flex-wrap: wrap;
  }
  header nav .w3-button {
    padding: 8px 10px !important;
    font-size: 0.7rem;
    flex: 1;
  }
  .sticky h1 {
    font-size: 1rem !important;
  }
}
