/* Header + Footer — clone souce_code_mau.html */

.happycar-theme #site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hc-border);
  transition: var(--hc-transition);
}

.happycar-theme #site-header.scrolled {
  box-shadow: 0 4px 32px rgba(229, 57, 53, 0.1);
}

.happycar-theme #site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
}

.happycar-theme #site-header .site-title a {
  color: var(--hc-red) !important;
  font-weight: 900;
  font-size: 1.35rem;
}

.happycar-theme #site-header .site-navigation ul {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.happycar-theme #site-header .site-navigation a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hc-text-muted);
  text-decoration: none;
  transition: var(--hc-transition);
}

.happycar-theme #site-header .site-navigation a:hover,
.happycar-theme #site-header .current-menu-item > a,
.happycar-theme #site-header .current_page_item > a {
  color: var(--hc-red);
  background: var(--hc-red-light);
}

.hc-header-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: var(--hc-red) !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 100px !important;
  font-size: 0.88rem !important;
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.35);
}

.hc-header-cta:hover {
  background: var(--hc-red-dark) !important;
  transform: translateY(-1px);
}

.hc-menu-cta { list-style: none; margin-left: 8px; }

/* Footer */
.happycar-theme #site-footer.hc-demo-footer {
  background: #111;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.hc-demo-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hc-demo-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.hc-demo-footer .logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.hc-demo-footer .logo span { color: var(--hc-yellow-dark); }

.hc-demo-footer .footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.hc-demo-footer .footer-socials { display: flex; gap: 10px; }

.hc-demo-footer .footer-social {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  transition: var(--hc-transition);
}

.hc-demo-footer .footer-social:hover {
  background: var(--hc-red);
  color: #fff;
}

.hc-demo-footer .footer-col h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.hc-demo-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hc-demo-footer .footer-links a {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--hc-transition);
}

.hc-demo-footer .footer-links a:hover {
  color: var(--hc-yellow);
  padding-left: 4px;
}

.hc-demo-footer .footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.87rem;
}

.hc-demo-footer .footer-contact-item i {
  color: var(--hc-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.hc-demo-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

.hc-demo-footer .footer-bottom-links {
  display: flex;
  gap: 20px;
}

.hc-demo-footer .footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.hc-demo-footer .footer-bottom-links a:hover { color: var(--hc-yellow); }

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--hc-red);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.4);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: var(--hc-transition);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hc-demo-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hc-demo-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}
