/*
Theme Name: Servo Lighting (DOHO Lighting)
Theme URI: https://servolighting.com/
Author: Servo Lighting Team
Author URI: https://servolighting.com/
Description: Turnkey architectural lighting engineering ISP theme for Hangzhou DOHO Lighting Engineering Co., Ltd. (Servo Lighting).
Version: 1.3.0
Text Domain: servo
*/

@layer base {

  html,
  body {
    margin: 0;
    padding: 0;
    background-color: #0c0f14;
    color: #f4f4f0;
  }

  body {
    overscroll-behavior: none;
  }

  main> :first-child {
    margin-top: 0 !important;
  }

  main> :last-child {
    margin-bottom: 0 !important;
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0c0f14;
}

::-webkit-scrollbar-thumb {
  background: #272d38;
  border-radius: 3px;
}

.arch-panel {
  background: #131720;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.arch-panel-hover {
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-panel-hover:hover {
  background: #171c27;
  border-color: rgba(212, 163, 89, 0.4);
  transform: translateY(-2px);
}

.arch-btn-primary {
  background-color: #d4a359;
  color: #0c0f14;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.arch-btn-primary:hover {
  background-color: #e2b670;
  transform: translateY(-1px);
}

.arch-btn-ghost {
  background: rgba(19, 23, 32, 0.65);
  color: #f4f4f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.arch-btn-ghost:hover {
  border-color: #d4a359;
  color: #e2b670;
  background: rgba(25, 30, 42, 0.85);
}

/* Rich Content & Technical Specification Tables */
.servo-rich-content {
  overflow-x: auto;
}

.servo-rich-content h2,
.servo-rich-content h3,
.servo-rich-content h4 {
  color: #ffffff;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.servo-rich-content ul,
.servo-rich-content ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.servo-rich-content ul {
  list-style-type: disc;
}

.servo-rich-content ol {
  list-style-type: decimal;
}

.servo-rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 13.5px;
  background-color: #0f131b;
}

.servo-rich-content th,
.servo-rich-content td {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.servo-rich-content thead th,
.servo-rich-content th {
  background-color: #161c26;
  color: #d4a359;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.servo-rich-content tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.servo-rich-content tbody tr:hover {
  background-color: rgba(212, 163, 89, 0.06);
}

/* Header Primary Navigation Dropdowns */
.servo-primary-nav li.menu-item-has-children {
  position: relative;
}

.servo-primary-nav li.menu-item-has-children>a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.servo-primary-nav li.menu-item-has-children>a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.servo-primary-nav li.menu-item-has-children:hover>a::after {
  transform: rotate(225deg) translateY(-1px);
}

.servo-primary-nav ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 6px 0;
  margin: 12px 0 0 0;
  background-color: #131720;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}

.servo-primary-nav ul.sub-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.servo-primary-nav li.menu-item-has-children:hover>ul.sub-menu,
.servo-primary-nav li.menu-item-has-children:focus-within>ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.servo-primary-nav ul.sub-menu li {
  position: relative;
}

.servo-primary-nav ul.sub-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: #cbd5e1;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.servo-primary-nav ul.sub-menu li a:hover,
.servo-primary-nav ul.sub-menu li.current-menu-item>a {
  background-color: rgba(212, 163, 89, 0.12);
  color: #d4a359;
}

.servo-primary-nav ul.sub-menu ul.sub-menu {
  top: -6px;
  left: 100%;
  margin-top: 0;
  margin-left: 2px;
}

.servo-mobile-nav ul.sub-menu {
  list-style: none;
  padding-left: 14px;
  margin: 6px 0 2px 0;
  border-left: 1px solid rgba(212, 163, 89, 0.35);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Homepage Product Catalog Horizontal Slider (arrows only, hidden scrollbar) */
.servo-catalog-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.servo-catalog-track::-webkit-scrollbar {
  display: none;
}