/* ============================================
   COMPONENTS.CSS - Drawer, Shared Components
   ============================================ */

/* ============================================
   MOBILE DRAWER OVERLAY
   ============================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(var(--navy-rgb), .5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all .35s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   MOBILE DRAWER
   ============================================ */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(90vw, 400px);
  background: var(--navy);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.drawer.open {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-brand-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -.01em;
}

.drawer-brand-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .45);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: all var(--transition);
}

.drawer-close:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
}

/* Drawer Quick Actions */
.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  flex-shrink: 0;
}

.drawer-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 500;
  transition: all var(--transition);
}

.drawer-action:hover {
  background: rgba(var(--gold-rgb), .1);
  border-color: rgba(var(--gold-rgb), .3);
}

.drawer-action svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* Drawer Menu */
.drawer-menu {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.drawer-menu-item:last-child {
  border-bottom: none;
}

.drawer-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  transition: all var(--transition);
}

.drawer-menu-link:hover {
  background: rgba(255, 255, 255, .03);
  color: var(--gold);
}

.drawer-menu-link svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, .3);
  fill: none;
  stroke-width: 2.5;
  transition: all var(--transition);
  flex-shrink: 0;
}

.drawer-menu-item.open .drawer-menu-link svg {
  transform: rotate(180deg);
  stroke: var(--gold);
}

/* Drawer Submenu */
.drawer-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding: 0 20px;
}

.drawer-menu-item.open .drawer-submenu {
  max-height: 500px;
  padding: 0 20px 12px;
}

.drawer-submenu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-submenu a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition);
  line-height: 1.3;
}

.drawer-submenu a:hover {
  background: rgba(var(--gold-rgb), .08);
  border-color: rgba(var(--gold-rgb), .2);
  color: var(--white);
}

/* Drawer Footer */
.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  flex-shrink: 0;
  background: rgba(0, 0, 0, .15);
}

.drawer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

.drawer-contact a {
  color: var(--gold);
  font-weight: 500;
  font-size: 15px;
}

.drawer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.drawer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .5);
  transition: all var(--transition);
}

.drawer-social a:hover {
  background: rgba(var(--gold-rgb), .1);
  border-color: rgba(var(--gold-rgb), .3);
  color: var(--gold);
}

.drawer-social a svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   BUTTONS GROUP
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Gold Button - Solid */
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

/* Gray Button - Hover Gold */
.btn-gray {
  background: var(--gray-100);
  color: var(--text);
  border-color: var(--gray-200);
}

.btn-gray:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* Ghost Button - No border */
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(var(--gold-rgb), .1);
}

/* Navy Button - Dark bg */
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

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

/* Button Sizes */
.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 10px 24px;
  font-size: 14px;
}
