/* ─────────────────────────────────────────
   CONTACT DRAWER — right-side slide-out
   ───────────────────────────────────────── */

.contact-drawer {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
}

.contact-drawer[aria-hidden="false"] {
  pointer-events: auto;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-drawer[aria-hidden="false"] .drawer-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(320px, 30vw, 480px);
  max-width: 100vw;
  background: var(--cream);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.contact-drawer[aria-hidden="false"] .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 2vw, 32px) clamp(24px, 2.5vw, 40px);
  padding-bottom: 0;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.15;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.18s ease;
  flex-shrink: 0;
}

.drawer-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.drawer-close svg {
  width: 18px;
  height: 18px;
  color: var(--dark);
}

.drawer-body {
  flex: 1;
  padding: clamp(24px, 2.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.5vw, 40px);
}

.drawer-form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.5vw, 24px);
}

.drawer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-label {
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.85vw, 13px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.drawer-input,
.drawer-textarea {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 400;
  color: var(--dark);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  outline: none;
  transition: border-color 0.18s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.drawer-input:focus,
.drawer-textarea:focus {
  border-bottom-color: var(--blue);
}

.drawer-input::placeholder,
.drawer-textarea::placeholder {
  color: var(--gray-600);
  opacity: 0.6;
}

.drawer-textarea {
  resize: vertical;
  min-height: 80px;
}

.drawer-submit {
  align-self: flex-start;
  margin-top: clamp(4px, 0.5vw, 8px);
}

.drawer-info {
  margin-top: auto;
  padding-top: clamp(16px, 1.5vw, 24px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-info a {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 400;
  color: var(--dark);
  transition: opacity 0.18s ease;
}

.drawer-info a:hover {
  opacity: 0.5;
}

.drawer-info span {
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.9vw, 14px);
  font-weight: 400;
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .drawer-panel {
    width: clamp(320px, 80vw, 440px);
  }
}

@media (max-width: 480px) {
  .drawer-panel {
    width: 100vw;
  }

  .drawer-header {
    padding: 16px 16px 0;
  }

  .drawer-body {
    padding: 20px 16px;
  }

  .drawer-title {
    font-size: clamp(20px, 5vw, 28px);
  }
}
