/* ==========================================================================
   Contact — page-specific design
   Scoped under .ct- namespace so it never leaks into the rest of the theme.
   Mobile-first: base rules target phone width, min-width queries layer on
   desktop. Uses the theme's existing tokens so it inherits light/dark mode.
   ========================================================================== */

.ct {
  --ct-rule: var(--clr-border-light);
  overflow-x: clip;
}

/* ---------- Hero : editorial masthead ---------- */
.ct-hero {
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--ct-rule);
}

.ct-hero__kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-text-faint);
  margin-bottom: var(--space-5);
}

.ct-hero__kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--clr-primary);
  flex-shrink: 0;
}

.ct-hero__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: end;
}

@media (min-width: 900px) {
  .ct-hero__row { grid-template-columns: 1.4fr 0.6fr; }
}

.ct-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--clr-white);
  margin: 0;
}

.ct-hero__title em {
  font-style: italic;
  color: var(--clr-primary);
}

.ct-hero__lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--clr-text-muted);
  max-width: 34ch;
  margin: 0;
}

/* ---------- Layout : form + reach-out rail ---------- */
.ct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

@media (min-width: 900px) {
  .ct-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: var(--space-16);
    align-items: start;
  }
}

.ct-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-out, ease), transform .6s var(--ease-out, ease);
}
.ct-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ct-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Form ---------- */
.ct-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.ct-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 560px) {
  .ct-field-row { grid-template-columns: 1fr 1fr; }
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
}

.ct-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text);
}

.ct-required {
  color: var(--clr-primary);
}

.ct-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  transition: border-color .2s var(--ease-out, ease), box-shadow .2s var(--ease-out, ease);
}

.ct-input::placeholder { color: var(--clr-text-faint); }

.ct-input:hover { border-color: var(--clr-border-light); }

.ct-input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-glow);
}

.ct-select-wrap { position: relative; }

.ct-select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.4rem;
}

.ct-select-icon {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-faint);
  pointer-events: none;
}

.ct-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}

.ct-char-count {
  align-self: flex-end;
  font-size: 0.75rem;
  color: var(--clr-text-faint);
  font-family: var(--font-mono);
}

.ct-form-msg {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
}

.ct-form-msg.is-visible { display: block; }

.ct-form-msg--error {
  color: var(--clr-danger);
  background: color-mix(in srgb, var(--clr-danger) 12%, transparent);
}

.ct-form-msg--success {
  color: var(--clr-success);
  background: color-mix(in srgb, var(--clr-success) 12%, transparent);
}

.ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a0a00;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.6rem;
  box-shadow: var(--shadow-glow);
  transition: transform .25s var(--ease-out, ease), box-shadow .25s var(--ease-out, ease), opacity .2s ease;
}

.ct-submit svg { transition: transform .25s var(--ease-out, ease); }

.ct-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,137,26,0.28);
}

.ct-submit:hover svg { transform: translateX(3px); }

.ct-submit:active { transform: translateY(0); }

.ct-submit:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

[data-theme="dark"] .ct-submit:hover {
  box-shadow: 0 8px 28px rgba(255,176,32,0.3);
}

/* ---------- Info rail ---------- */
.ct-info-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.ct-reach {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ct-reach__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--clr-white);
  margin: 0 0 var(--space-2);
}

.ct-reach-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-bg-card);
  transition: border-color .25s var(--ease-out, ease), transform .25s var(--ease-out, ease);
}

a.ct-reach-item:hover {
  border-color: var(--clr-primary);
  transform: translateX(3px);
}

.ct-reach-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--clr-primary-glow);
  color: var(--clr-primary);
}

.ct-reach-item__label {
  font-size: 0.75rem;
  color: var(--clr-text-faint);
  margin-bottom: 0.15rem;
}

.ct-reach-item__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-text);
  word-break: break-word;
}

.ct-reach-item__arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--clr-text-faint);
  transition: transform .25s var(--ease-out, ease), color .25s var(--ease-out, ease);
}

a.ct-reach-item:hover .ct-reach-item__arrow {
  transform: translateX(3px);
  color: var(--clr-primary);
}

.ct-reach-item--static { cursor: default; }

/* ---------- FAQ ---------- */
.ct-faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ct-faq__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--clr-white);
  margin: 0 0 var(--space-2);
}

.ct-faq-item {
  border-bottom: 1px solid var(--ct-rule);
  padding: var(--space-4) 0;
}

.ct-faq-item__q {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-text);
}

.ct-faq-item__q::-webkit-details-marker { display: none; }

.ct-faq-item__q::after {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--clr-text-faint);
  border-bottom: 1.6px solid var(--clr-text-faint);
  transform: rotate(45deg);
  transition: transform .25s var(--ease-out, ease);
}

.ct-faq-item[open] .ct-faq-item__q::after {
  transform: rotate(225deg);
}

.ct-faq-item__a {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--clr-text-muted);
  margin-top: var(--space-3);
}
