/* ============================================================
   CONTACT — page-specific section styles for contact.html.

   No new visual language: every rule composes existing tokens and
   conventions already used across sections.css/about.css/case-study.css
   — the contact grid reuses the homepage's own .principle-card box
   treatment (--color-surface white against the page background, no
   border stroke), and the closing statement reuses the hairline-divider
   convention (.about-bring__item, .cs-challenges__item). The only
   genuinely new component is the contact form's inputs — nothing like
   a form exists elsewhere in the project — styled as bottom-hairline
   fields rather than boxed inputs, consistent with the rest of the
   site's thin-border/hairline language.

   Mobile-first, same as the rest of the project — base rules here
   are the mobile layout; breakpoints below layer on tablet/desktop
   overrides at the project's established 768/1024 widths.
   ============================================================ */

/* ---- 01 — Contact Hero ---- */
.contact-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.contact-hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.contact-hero__headline {
  color: var(--color-ink);
  width: 100%;
  max-width: 1100px;
}

.contact-hero__statement {
  color: var(--color-ink);
  max-width: 640px;
}

/* Subtle status row — same 8px accent sizing as the header's own
   .header__contact-icon square, made circular here so it reads
   unambiguously as a status/availability indicator. */
.contact-availability {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 8px;
}

.contact-availability__dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  margin-top: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.contact-availability__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-availability__status {
  color: var(--color-ink);
}

.contact-availability__scope {
  color: var(--color-muted);
}

/* ---- 02 — Contact Grid ----
   Four boxes, same visual language as the homepage's .principle-card
   (Why Choose Me): --color-surface white against the page's off-white
   background, no border stroke — the surface-color contrast alone
   reads as a "box" here, exactly like that existing pattern. Each box
   is one full-bleed <a> for a large, unambiguous tap target. */
.contact-reach {
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-top: 1px solid var(--color-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

.contact-grid__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  background: var(--color-surface);
  padding: 32px;
  color: var(--color-ink);
  transition: transform var(--dur-fast) var(--ease-standard);
}

.contact-grid__item:hover {
  transform: translateY(-4px);
}

.contact-grid__label {
  color: var(--color-muted);
}

.contact-grid__value {
  font-weight: 700;
  word-break: break-word;
  padding-right: 28px;
}

.contact-grid__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 32px;
  right: 32px;
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
  transition: transform var(--dur-fast) var(--ease-standard);
}

.contact-grid__item:hover .contact-grid__arrow {
  transform: rotate(-90deg) translate(3px, -3px);
}

/* ---- 03 — Contact Form ----
   Underline-style fields (no boxed backgrounds), matching the site's
   thin-border/hairline-divider convention rather than introducing a
   boxed-input visual language the rest of the project doesn't use. */
.contact-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  border-top: 1px solid var(--color-border);
}

.contact-message__title {
  color: var(--color-ink);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 720px;
}

.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.contact-form__field label {
  color: var(--color-muted);
}

.contact-form__input {
  width: 100%;
  padding-block: 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  color: var(--color-ink);
  transition: border-color var(--dur-fast) var(--ease-standard);
}

.contact-form__input::placeholder {
  color: var(--color-muted);
}

.contact-form__input:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.contact-form__input--textarea {
  resize: vertical;
  min-height: 96px;
}

.contact-form__submit {
  align-self: flex-start;
}

.contact-form__note {
  color: var(--color-muted);
  margin-top: -16px;
}

/* ---- 03 — Design. Build. Ship. ---- */
.contact-closing {
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-top: 1px solid var(--color-border);
}

.contact-closing__list {
  display: flex;
  flex-direction: row;
  color: var(--color-ink);
}

.contact-closing__statement {
  color: var(--color-ink);
  max-width: 560px;
}

/* ---- Responsive ---- */

/* Tablet and up: 2×2 grid — holds at desktop too, no further override needed */
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form__row {
    flex-direction: row;
  }
}
