/* ============================================================
   KAZI — CONTACT PAGE
   Accent canvas, cream text. Headline row: CONTACT ⟷ image
   montage ⟷ KAZI wordmark, split apart by the intro animation
   (contact.js). Hairline grid below, statement, shared footer.
   ============================================================ */
.contact-page { background: var(--color-accent); color: var(--color-bg); overflow-x: clip; }
.contact-page .nav { opacity: 1; }

.ct { padding-top: calc(var(--nav-h) + clamp(28px, 4.5vw, 72px)); }

/* ---------------- Headline row ---------------- */
.ct__hero {
  border-top: 1px solid rgba(255, 255, 240, 0.5);
  border-bottom: 1px solid rgba(255, 255, 240, 0.5);
}
.ct__headline {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(10px, 1.5vw, 24px);
  padding: clamp(14px, 2vw, 30px) clamp(16px, 2.2vw, 34px);
  min-height: clamp(90px, 11vw, 170px);
}
.ct__mask { overflow: hidden; flex: 0 0 auto; }
.ct__word { will-change: transform; }
.ct__word--contact, .ct__word--kazi {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1; /* full line box so the mask never crops the caps */
  font-size: clamp(56px, 9vw, 150px); color: var(--color-bg);
}

.ct__montage {
  display: flex; align-items: center; gap: clamp(6px, 0.6vw, 12px);
  flex: 0 1 auto; min-width: 0;
}
.ct__montage img {
  width: clamp(64px, 9.6vw, 160px); height: clamp(44px, 6.4vw, 106px);
  object-fit: cover; flex: 0 1 auto; min-width: 0;
}

/* ---------------- MAKE YOUR NEXT MOVE ----------------
   Once the four pillars beside it were removed there was nothing to sit in the
   second column, so this is a single column now rather than a two-column grid
   with one empty half. The cell rules and the hairlines that divided them went
   with the markup. */
.ct__grid {
  display: grid; grid-template-columns: 1fr;
  border-bottom: 1px solid rgba(255, 255, 240, 0.5);
}
/* One row, not a stacked list. Two items this short read as a pair rather
   than a list, and the bullets that used to mark them are doing the icons'
   job now. It still wraps rather than overflowing when the two lines cannot
   sit side by side. */
.ct__contacts {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(14px, 2.4vw, 40px);
  font-size: clamp(13px, 1.05vw, 16px); line-height: 1.6;
}
.ct__contacts a { display: inline-flex; align-items: center; gap: .6em; }
/* the label rolls on hover (see .lnk in style.css); the icon stays as it is */
/* Sized in em so the mark tracks the label at every breakpoint, and stroked
   in currentColor so it inherits the link's hover state with it. */
.ct__ico {
  flex: 0 0 auto;
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* the headline used to be vertically centred against the pillars' height;
   with nothing to measure against it sets its own, and the contact lines sit
   under it rather than beside it.

   Centred now that it has the full width to itself — left-aligned it read as
   the leftover half of the two-column grid it used to share. The contact list
   is centred as a block but keeps its own text left-aligned inside: bullets
   under centred text stagger, which is worse than a short centred column. */
.ct__move {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
  padding: clamp(44px, 6vw, 96px) clamp(28px, 4vw, 64px);
  text-align: center;
}
.ct__move h2 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 0.88;
  font-size: clamp(44px, 6.6vw, 108px); color: var(--color-bg);
}

/* ---------------- Statement ---------------- */
.ct__statement { padding: clamp(64px, 9vw, 150px) clamp(28px, 3.4vw, 52px) clamp(48px, 6vw, 80px); }
.ct__statement p {
  /* centred as a block AND as text: the measure is capped at 62ch, so without
     the auto margins the paragraph would sit hard against the left padding
     while its lines read centred — half-centred, which looks like a mistake */
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(17px, 1.9vw, 29px); line-height: 1.3;
}

/* ---------------- Contact Form ---------------- */
.ct__form-section {
  padding: 0 clamp(28px, 5vw, 80px) clamp(80px, 12vw, 180px);
  max-width: 960px;
  margin: 0 auto;
}
.ct__form-heading {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(18px, 1.8vw, 28px);
  color: var(--color-bg);
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.ct__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 100px);
  row-gap: clamp(36px, 5vw, 56px);
}

.ct__field { display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 18px); }
.ct__field--full { grid-column: 1 / -1; }

.ct__label {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(11px, 0.9vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-bg);
}

.ct__input {
  appearance: none; -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 240, 0.5);
  border-radius: 0;
  padding: 8px 0 12px;
  font-family: var(--font-body); font-size: clamp(14px, 1.1vw, 17px);
  color: var(--color-bg);
  outline: none;
  transition: border-color 0.25s ease;
  width: 100%;
}
.ct__input:focus { border-bottom-color: var(--color-bg); }
.ct__input::placeholder { color: rgba(255, 255, 240, 0.45); }

/* Select dropdown */
.ct__select {
  cursor: pointer;
  padding-right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23FFFFF0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 12px;
}
/* Placeholder state for select */
.ct__select:invalid,
.ct__select option[value=""][disabled] { color: rgba(255, 255, 240, 0.45); }
.ct__select option { color: var(--color-dark); background: var(--color-bg); }

/* Textarea */
.ct__textarea {
  resize: vertical;
  min-height: clamp(80px, 10vw, 120px);
  line-height: 1.5;
}

/* Submit button — minimal text CTA like the Figma */
.ct__submit-row { display: flex; justify-content: flex-end; }
.ct__submit {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(16px, 1.6vw, 24px);
  letter-spacing: 0.02em;
  color: var(--color-bg);
  padding: 0;
}

/* Field errors and the sent state (js/lead.js) */
.ct__input.is-wrong { border-bottom-color: var(--color-bg); border-bottom-width: 2px; }
.ct__error {
  margin-top: -4px;
  font-family: var(--font-body); font-size: clamp(12px, 0.95vw, 14px); line-height: 1.4;
  color: var(--color-bg);
}
.ct__error[hidden] { display: none; }
.ct__submit:disabled { opacity: .6; cursor: default; }
.ct__thanks { text-align: center; color: var(--color-bg); padding: clamp(12px, 3vw, 40px) 0; }
.ct__thanks:focus { outline: none; }
.ct__thanks-h {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 56px); line-height: .95; letter-spacing: -0.02em;
}
.ct__thanks-p {
  margin-top: 14px;
  font-family: var(--font-body); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5;
}

/* ---------------- Intro animation states (set by contact.js) ----------------
   Pre-hidden only when JS tags the page as animating, so no-JS still renders. */
.ct--animate .ct__word { transform: translateY(110%); }
.ct--animate .ct__montage img { opacity: 0; }
.ct--animate .ct__reveal { opacity: 0; transform: translateY(28px); }

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
  .ct { padding-top: calc(var(--nav-h) + clamp(20px, 4vw, 40px)); }
  .ct__headline { flex-wrap: wrap; justify-content: center; row-gap: 18px; }
  .ct__word--contact, .ct__word--kazi { font-size: clamp(40px, 11vw, 80px); }
  .ct__montage { order: 3; width: 100%; justify-content: center; }
  .ct__montage img { width: clamp(50px, 14vw, 100px); height: clamp(36px, 10vw, 70px); }
  .ct__move { padding: clamp(32px, 7vw, 56px) 20px; }
  .ct__move h2 { font-size: clamp(36px, 10vw, 60px); }
  .ct__statement { padding-bottom: clamp(40px, 8vw, 64px); }
  .ct__statement p { font-size: clamp(15px, 4.5vw, 20px); }

  /* Form: single column on mobile */
  .ct__form-section { padding-left: clamp(20px, 5vw, 36px); padding-right: clamp(20px, 5vw, 36px); }
  .ct__form { grid-template-columns: 1fr; row-gap: clamp(28px, 6vw, 40px); }
  .ct__form-heading { margin-bottom: clamp(32px, 8vw, 52px); }
}

@media (max-width: 480px) {
  .ct__word--contact, .ct__word--kazi { font-size: clamp(28px, 12vw, 54px); }
  .ct__move h2 { font-size: clamp(30px, 11vw, 50px); }
  .ct__form-heading { font-size: clamp(16px, 5vw, 22px); }
  .ct__submit { font-size: clamp(15px, 5vw, 20px); }
}
