:root {
  --navy: #1a1a2e;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-800: #262626;
  --accent: #0369a1;
}

/* Header (solid by default) */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 60px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

/* Transparent variant (home/about hero). Implemented via `id="header"` + `scrolled` class. */
header#header {
  background: transparent;
  border-bottom-color: transparent;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
  padding: 20px 60px;
}

header#header .logo-main {
  font-size: 24px;
}

header#header .logo-main,
header#header nav > a {
  color: rgba(255, 255, 255, 0.92);
}

header#header nav > a:hover {
  color: var(--white);
}

header#header .lang-toggle {
  color: rgba(255, 255, 255, 0.75);
}

header#header .btn-quote {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.4);
  border-radius: 0;
}

header#header .btn-quote:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
  color: var(--navy);
}

header#header .mobile-menu-btn span {
  background: rgba(255, 255, 255, 0.92);
}

header#header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 12px 60px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--gray-200);
}

header#header.scrolled .logo-main,
header#header.scrolled nav > a,
header#header.scrolled .lang-toggle {
  color: var(--gray-600);
}

header#header.scrolled .btn-quote {
  color: var(--gray-800);
  border-color: var(--gray-300);
}

header#header.scrolled .btn-quote:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

header#header.scrolled .mobile-menu-btn span {
  background: var(--gray-800);
}

header .logo-sub {
  display: none;
}

header .logo-main {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-800);
  text-transform: uppercase;
}

header nav {
  display: flex;
  gap: 36px;
  position: relative;
}

header nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.3s;
  padding: 12px 0;
}

header nav a:hover {
  color: var(--accent);
}

header nav a.has-dropdown {
  position: relative;
  cursor: pointer;
}

header nav a.has-dropdown::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-500);
  cursor: pointer;
}

.lang-toggle svg {
  width: 15px;
  height: 15px;
}

.btn-quote {
  padding: 9px 20px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--gray-300);
  background: transparent;
  color: var(--gray-800);
  cursor: pointer;
  transition: all 0.25s;
}

.btn-quote:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

/* Products dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 14px 14px;
  display: none;
  z-index: 200;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 24px));
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.dropdown-menu.active {
  display: block;
}

.dropdown-inner {
  display: block;
}

.dropdown-group,
.dropdown-col {
  margin: 0 0 14px;
}

.dropdown-group h4,
.dropdown-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.dropdown-group h4 a,
.dropdown-col h4 a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

.dropdown-group h4 a:hover,
.dropdown-col h4 a:hover {
  color: var(--accent);
  transform: none;
}

.dropdown-list,
.dropdown-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-group li,
.dropdown-col li {
  margin-bottom: 2px;
}

.dropdown-group a,
.dropdown-col a {
  font-size: 12px;
  color: var(--gray-600);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
  line-height: 1.25;
}

.dropdown-group a:hover,
.dropdown-col a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

/* Products mega menu (Taiji-like) */
.dropdown-menu.dropdown-menu--products {
  width: clamp(760px, 72vw, 980px);
  max-width: min(980px, calc(100vw - 40px));
  min-height: 300px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 22px 26px;
}

.dropdown-menu.dropdown-menu--products .dropdown-inner {
  columns: 200px;
  column-gap: 24px;
  /* column-fill: auto; Removed to allow balancing or natural flow without fixed height */
}

.dropdown-menu.dropdown-menu--products .dropdown-group,
.dropdown-menu.dropdown-menu--products .dropdown-col {
  break-inside: avoid;
  margin: 0 0 14px;
}

.dropdown-menu.dropdown-menu--products .dropdown-group h4,
.dropdown-menu.dropdown-menu--products .dropdown-col h4 {
  font-size: 15px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-200);
}

.dropdown-menu.dropdown-menu--products .dropdown-group a,
.dropdown-menu.dropdown-menu--products .dropdown-col a {
  font-size: 13px;
  line-height: 1.3;
}

.dropdown-menu.dropdown-menu--products .dropdown-group li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 3px;
}

.dropdown-menu.dropdown-menu--products .dropdown-group li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gray-400);
}

/* About/other dropdown menus */
.dropdown-menu.dropdown-menu--compact {
  width: max-content;
  max-width: min(360px, calc(100vw - 24px));
  padding: 12px 14px;
}

.dropdown-inner.dropdown-inner--compact {
  display: block;
}

/* Mega menu */
.mega-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
  display: none;
  z-index: 90;
  max-height: calc(100vh - 70px);
  overflow: auto;
}

.mega-menu.active {
  display: block;
}

.mega-menu-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mega-menu-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.mega-menu-col h4 a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

.mega-menu-col h4 a:hover {
  color: var(--accent);
  transform: none;
}

.mega-menu-col ul {
  list-style: none;
}

.mega-menu-col li {
  margin-bottom: 4px;
}

.mega-menu-col a {
  font-size: 12px;
  color: var(--gray-600);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
  line-height: 1.25;
}

.mega-menu-col a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .dropdown-menu.dropdown-menu--products {
    width: calc(100vw - 24px);
    min-height: 0;
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding: 14px 14px;
  }

  .dropdown-menu.dropdown-menu--products .dropdown-inner {
    columns: 220px;
    column-gap: 20px;
  }
}

/* Mobile nav */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gray-800);
  margin: 4px 0;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 200;
  padding: 90px 24px 24px;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
}

.mobile-nav .close-btn {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 30px;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
}

/* Footer */
footer {
  background: var(--navy);
  color: var(--white);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 60px 24px;
}

.footer-brand .logo-main {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

@media (max-width: 980px) {
  header {
    padding: 14px 20px;
  }
  header#header {
    padding: 16px 20px;
  }
  header#header.scrolled {
    padding: 12px 20px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-inner {
    padding: 40px 20px 18px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .footer-inner {
    padding: 34px 16px 16px;
  }
  .footer-col a {
    font-size: 13px;
  }
}
