/* ==========================================================================
   Contactos — "a morada"
   The page a newcomer lands on when they have one question left. Two beats:
   who to write to, then the form itself. Parchment above, one ruled band
   below, no plate: the set-piece here is the form.
   ========================================================================== */

.ct {
}

/* Shared ---------------------------------------------------------------- */

.ct-h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--t-2xl), 3vw, var(--t-4xl));
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-5);
}

/* 1. Abertura ------------------------------------------------------------
   The opening is the shared .abertura--dupla (main.css): text left, the facts
   below right. This page only says that its opening runs deeper than the
   default, because the form band underneath it is a hard edge and the two
   should not touch. */

.ct .abertura { --abertura-pb: clamp(3rem, 8vw, 5.5rem); }

/* The practical facts, ruled rather than boxed. Label above, answer below,
   so a long answer never squeezes its own label. */
.ct-factos {
  margin: 0;
  border-top: 1px solid var(--c-border);
}

.ct-facto {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--c-border);
}

.ct-factos dt {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--s-2);
}

.ct-factos dd {
  margin: 0;
  font-size: var(--t-lg);
  line-height: 1.6;
  color: var(--c-text);
}

.ct-factos dd small {
  display: block;
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--c-text-muted);
  margin-top: var(--s-1);
}

/* The email is the one thing on this column that must be unmissable. */
.ct-email {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-mono);
  font-size: clamp(var(--t-base), 2vw, var(--t-xl));
  font-weight: 600;
  color: var(--c-primary);
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  word-break: break-word;
  transition: color var(--dur-fast) var(--ease);
}

.ct-email:hover { color: var(--c-primary-2); }

.ct-factos dd a:not(.ct-email) {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.ct-factos dd a:not(.ct-email):hover { color: var(--c-primary-2); }

/* 2. O formulário -------------------------------------------------------- */

.ct-escrever {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.ct-escrever-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.ct-escrever-dizer p {
  font-size: var(--t-lg);
  line-height: 1.85;
  color: var(--c-text-muted);
  max-width: 40ch;
  margin: 0 0 var(--s-4);
}

.ct-escrever-dizer p:last-child { margin-bottom: 0; }

/* The form is a genuinely distinct, actionable object, so it is one of the
   few things on the site that gets a surface. Nothing nests inside it. */
.ct-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: var(--s-5);
}

/* Name and e-mail are short and paired; the message is not. */
.ct-form-linha {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}

.ct-campo label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: var(--s-2);
}

/* main.css gives every input a bottom margin; the grid gap owns spacing here. */
.ct-campo input,
.ct-campo textarea { margin-bottom: 0; }

.ct-campo textarea { min-height: 11rem; }

.ct-nota {
  font-size: var(--t-sm);
  line-height: 1.7;
  color: var(--c-text-muted);
  margin: 0;
}

.ct-nota a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.ct-nota a:hover { color: var(--c-primary-2); }

/* The honeypot is never seen and never reached by keyboard or screen reader. */
.ct-armadilha {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ct-form-accao {
  display: flex;
  justify-content: flex-start;
}

.ct-form-accao button { min-height: 48px; }

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

@media (max-width: 900px) {
  .ct-escrever-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .ct-form-linha { grid-template-columns: 1fr; }
  .ct-form-accao button { width: 100%; }
}
