/* ============================================================
   CONTACT
   ============================================================ */

@import url("./_variables.css");

/* ============================================================
   BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family: var(--font-body);
}

/* ============================================================
   CONTACT LAYOUT
   ============================================================ */

.contact-section {
  display: grid;

  grid-template-columns: 220px minmax(0, 1fr);

  gap: var(--space-6);

  width: 100%;
  max-width: var(--content-width);

  margin: var(--space-6) auto;
}

/* ============================================================
   SHARED CARD
   ============================================================ */

.card {
  padding: var(--space-5);

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-md);

  color: var(--text);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  display: flex;
  flex-direction: column;

  gap: var(--space-4);
}

/* ============================================================
   AVAILABILITY
   ============================================================ */

.status-badge {
  display: inline-flex;
  align-items: center;

  gap: var(--space-2);

  width: fit-content;

  padding: var(--space-1) var(--space-3);

  color: var(--accent);

  background: var(--accent-soft);

  border: 1px solid var(--border-accent);

  border-radius: var(--radius-full);

  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);

  line-height: 1;

  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;

  width: 6px;
  height: 6px;

  flex-shrink: 0;

  background: var(--accent);

  border-radius: var(--radius-full);
}

/* ============================================================
   SIDEBAR HEADING
   ============================================================ */

.sidebar h2 {
  margin: 0;

  color: var(--text);

  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--weight-regular);

  line-height: var(--leading-heading);
}

/* ============================================================
   META INFORMATION
   ============================================================ */

.meta-list {
  display: flex;
  flex-direction: column;

  gap: var(--space-3);

  margin-top: var(--space-1);
}

.meta-item {
  display: flex;
  align-items: center;

  gap: var(--space-2);

  color: var(--text-tertiary);

  font-family: var(--font-body);
  font-size: var(--text-xs);

  line-height: var(--leading-normal);
}

.meta-item svg {
  flex-shrink: 0;

  color: var(--text-tertiary);

  opacity: 0.8;
}

/* ============================================================
   SIDEBAR DIVIDER
   ============================================================ */

.sidebar hr {
  width: 100%;

  margin: 0;

  border: 0;
  border-top: 1px solid var(--border);
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */

.social-row {
  display: flex;

  gap: var(--space-2);

  margin-top: var(--space-1);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 1;

  height: var(--button-height-md);

  color: var(--text-secondary);

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-sm);

  text-decoration: none;

  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.icon-btn:hover {
  color: var(--text);

  background: var(--surface-hover);

  border-color: var(--border-strong);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--focus-ring);

  outline-offset: 2px;
}

/* ============================================================
   CV BUTTON
   ============================================================ */

.cv-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: var(--space-2);

  min-height: var(--button-height-md);

  padding-inline: var(--space-3);

  color: var(--text-secondary);

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-sm);

  text-decoration: none;

  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);

  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.cv-btn:hover {
  color: var(--text);

  background: var(--surface-hover);

  border-color: var(--border-strong);
}

.cv-btn:focus-visible {
  outline: 2px solid var(--focus-ring);

  outline-offset: 2px;
}

/* ============================================================
   FORM PANEL
   ============================================================ */

.form-panel h2 {
  margin: 0 0 var(--space-4);

  color: var(--text);

  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);

  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}

.form-sub {
  margin: 0 0 var(--space-6);

  color: var(--text-secondary);

  font-family: var(--font-body);
  font-size: var(--text-sm);

  line-height: var(--leading-normal);
}

.form-sub strong {
  color: var(--text);
  font-weight: var(--weight-medium);
}

/* ============================================================
   FORM FIELDS
   ============================================================ */

.field-group {
  margin-bottom: var(--space-5);
}

label.field-label {
  display: block;

  margin-bottom: var(--space-2);

  color: var(--text-tertiary);

  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);

  line-height: 1.2;

  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* ============================================================
   INPUT / TEXTAREA
   ============================================================ */

input[type="email"],
textarea {
  width: 100%;

  padding: var(--space-3) var(--space-4);

  color: var(--text);

  background: var(--field);

  border: 1px solid var(--border);

  border-radius: var(--radius-sm);

  font-family: var(--font-body);
  font-size: var(--text-sm);

  line-height: var(--leading-normal);

  resize: vertical;

  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

input[type="email"]::placeholder,
textarea::placeholder {
  color: var(--text-placeholder);
}

input[type="email"]:hover,
textarea:hover {
  border-color: var(--border-strong);
}

input[type="email"]:focus,
textarea:focus {
  outline: none;

  border-color: var(--accent);

  box-shadow: 0 0 0 3px var(--accent-soft);
}

input[type="email"]:focus-visible,
textarea:focus-visible {
  outline: none;
}

textarea {
  min-height: 120px;
}

/* ============================================================
   SEND BUTTON
   ============================================================ */

.send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: var(--space-2);

  min-height: var(--button-height-md);

  padding: var(--space-3) var(--space-5);

  color: var(--button-primary-text);

  background: var(--button-primary-bg);

  border: 1px solid var(--button-primary-bg);

  border-radius: var(--radius-sm);

  cursor: pointer;

  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);

  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.send-btn:hover {
  color: var(--button-primary-text);

  background: var(--button-primary-bg-hover);

  border-color: var(--button-primary-bg-hover);
}

.send-btn:active {
  background: var(--button-primary-bg-active);

  border-color: var(--button-primary-bg-active);

  transform: translateY(1px);
}

.send-btn:focus-visible {
  outline: 2px solid var(--focus-ring);

  outline-offset: 2px;
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
  margin-bottom: var(--space-5);

  padding: var(--space-3) var(--space-4);

  border-radius: var(--radius-sm);

  font-family: var(--font-body);
  font-size: var(--text-xs);

  line-height: var(--leading-normal);
}

.alert ul {
  margin: 0;

  padding-left: var(--space-5);
}

/* ============================================================
   SUCCESS
   ============================================================ */

.alert-success {
  color: var(--success);

  background: var(--success-soft);

  border: 1px solid var(--success-border);
}

/* ============================================================
   ERROR
   ============================================================ */

.alert-error {
  color: var(--error);

  background: var(--error-soft);

  border: 1px solid var(--error-border);
}

/* ============================================================
   HONEYPOT
   ============================================================ */

.honeypot {
  position: absolute;

  left: -9999px;

  width: 1px;
  height: 1px;

  overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .contact-section {
    grid-template-columns: 1fr;

    gap: var(--space-5);

    padding-inline: var(--space-4);
  }

  .card {
    padding: var(--space-4);
  }

  .sidebar {
    gap: var(--space-3);
  }

  .form-panel h1 {
    font-size: var(--text-h3);
  }
}
