:root {
  --bg-header: #f4f4f5;
  --brand: #973030;
  --ink: #171717;
  --muted: #737373;
  --border: #e5e7eb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--bg-header);
  border-bottom: 1px solid transparent;
}

.navbar-inner {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button:hover {
  background: #ebebed;
}

.close-icon {
  display: none;
  font-size: 30px;
  line-height: 1;
}

.icon-button.is-open .menu-icon {
  display: none;
}

.icon-button.is-open .close-icon {
  display: block;
}

.brand {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.2px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  padding: 8px;
}

.phone-link:hover {
  background: #ebebed;
}

.phone-number {
  margin-left: 8px;
  font-weight: 500;
  display: none;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 141px;
  padding: 12px 10px;
  border-radius: 999px;
  background: #1a1a1a;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.cta-button:hover {
  background: #333333;
}

.dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.dropdown-mobile {
  display: block;
}

.mobile-group {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-toggle,
.mobile-sub-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-sub-toggle {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
  color: #404040;
}

.mobile-links {
  display: grid;
  gap: 4px;
  padding: 0 16px 12px;
}

.mobile-links a,
.mobile-nested a {
  text-decoration: none;
  color: #525252;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

.mobile-links a:hover,
.mobile-nested a:hover,
.mobile-sub-toggle:hover {
  background: #fafafa;
  color: var(--brand);
}

.mobile-nested {
  display: grid;
  gap: 4px;
  padding: 4px 0 0 14px;
}

.chevron {
  display: inline-block;
  transition: transform 0.2s ease;
}

.chevron.open {
  transform: rotate(180deg);
}

.dropdown-desktop {
  display: none;
}

.desktop-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  padding: 24px 32px;
}

.desktop-sections {
  width: 170px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.section-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

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

.section-btn.active {
  background: var(--brand);
  color: var(--white);
}

.section-btn .arrow {
  margin-left: auto;
  opacity: 0.65;
}

.section-btn.active .arrow {
  opacity: 1;
}

.desktop-content {
  flex: 1;
  min-height: 340px;
}

.panel-grid {
  height: 100%;
  overflow-y: auto;
  background: var(--brand);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 20px 40px;
}

.panel-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-grid a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
}

.panel-grid a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.more-wrap {
  display: flex;
  gap: 16px;
  height: 100%;
}

.more-categories {
  width: 280px;
  background: var(--brand);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.more-categories button,
.more-categories a {
  border: 0;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.more-categories button:hover,
.more-categories a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.more-categories button.active {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.more-children {
  flex: 1;
  border: 1px solid rgba(151, 48, 48, 0.2);
  border-radius: 16px;
  background: var(--white);
  padding: 24px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
}

.more-children a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.more-children a:hover {
  color: var(--brand);
}

.copyright {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #737373;
  padding: 0 16px 16px;
}

@media (min-width: 768px) {
  .dropdown-mobile {
    display: none;
  }

  .dropdown-desktop {
    display: block;
  }
}

@media (min-width: 1024px) {
  .phone-number {
    display: inline-block;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1023px) {
  .brand {
    font-size: 28px;
  }

  .cta-button {
    width: 132px;
    padding: 11px 8px;
  }
}

@media (max-width: 767px) {
  .brand {
    font-size: 24px;
  }

  .navbar-inner {
    gap: 8px;
  }

  .cta-button {
    width: auto;
    padding: 10px 12px;
  }
}
