/* ============================================================
   VINOVE — Contact Page
   §1  Top — split: message (left) + form card (right)
   §2  Routing — services/software links + careers
   ============================================================ */

/* ╔═══════════════════════════════════════════════════════╗
   §1  TOP — SPLIT HERO + FORM
   ╚═══════════════════════════════════════════════════════╝ */

#contact-top {
  background: var(--ink);
  padding: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem)) var(--gutter) clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

/* Ambient terra glow, top-left */
#contact-top::before {
  content: '';
  position: absolute;
  top: -10%; left: -5%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,85,61,.12) 0%, transparent 65%);
  pointer-events: none;
}

.ct-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

@media (max-width: 860px) {
  .ct-inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── Left: intro ── */
.ct-title {
  font-family: var(--font);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: #fff;
  margin: 0 0 1.25rem;
}

.ct-lead {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
  color: rgba(255,255,255,.72);
  max-width: 42ch;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.ct-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.ct-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.ct-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

.ct-meta-value {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  text-align: right;
}

/* ── Right: form card ── */
.ct-form-wrap {
  background: var(--surface-1);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ct-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}
@media (max-width: 460px) {
  .ct-field-row { grid-template-columns: 1fr; }
}

.ct-field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-strong);
}
.ct-field label span { color: var(--terra); }

.ct-field input,
.ct-field textarea,
.ct-select select {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-strong);
  background: var(--surface-2);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--dur-fast), background var(--dur-fast);
  -webkit-appearance: none;
  appearance: none;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: var(--text-muted);
}

.ct-field input:focus,
.ct-field textarea:focus,
.ct-select select:focus {
  outline: none;
  border-color: var(--terra);
  background: #fff;
}

.ct-field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}

/* Select with chevron */
.ct-select {
  position: relative;
}
.ct-select select {
  cursor: pointer;
  padding-right: 40px;
}
.ct-select svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  color: var(--text-muted);
  pointer-events: none;
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast);
}
/* Flip the chevron while the select is active/open (native selects expose no
   open state, so focus-within is the reliable cross-browser signal) */
.ct-select:focus-within svg {
  transform: translateY(-50%) rotate(180deg);
  color: var(--terra);
}

/* Submit */
.ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.5rem;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--terra);
  border: none;
  border-radius: var(--r-full);
  padding: 15px 28px;
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-base) var(--ease-back), box-shadow var(--dur-base);
}
.ct-submit:hover {
  background: var(--terra-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200,85,61,.42);
}
.ct-submit svg {
  width: 16px; height: 16px;
  transition: transform var(--dur-base) var(--ease);
}
.ct-submit:hover svg { transform: translateX(3px); }


/* ╔═══════════════════════════════════════════════════════╗
   §2  ROUTING
   ╚═══════════════════════════════════════════════════════╝ */

#contact-routing {
  background: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
}

.cr2-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.cr2-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 56ch;
}

.cr2-title {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text-strong);
  margin: 0 0 0.75rem;
}

.cr2-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

.cr2-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 760px) {
  .cr2-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.cr2-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

/* Services link list */
.cr2-links {
  display: flex;
  flex-direction: column;
}

.cr2-links li {
  border-bottom: 1px solid var(--border-subtle);
}
.cr2-links li:first-child { border-top: 1px solid var(--border-subtle); }

.cr2-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  transition: padding-left var(--dur-base) var(--ease), color var(--dur-fast);
}
.cr2-links a:hover {
  padding-left: 12px;
  color: var(--terra-hover);
}

.cr2-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cr2-tag {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: auto;
}

.cr2-links a svg {
  width: 11px; height: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--dur-fast), transform var(--dur-base) var(--ease);
}
.cr2-links a:hover svg {
  color: var(--terra);
  transform: translate(2px, -2px);
}

/* Careers column */
.cr2-col--careers {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.cr2-col--careers .cr2-col-title {
  color: rgba(255,255,255,.45);
}

.cr2-careers-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
  margin: 0 0 1.75rem;
}

.cr2-careers-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--terra);
  border-radius: var(--r-full);
  padding: 11px 22px;
  transition: background var(--dur-fast), transform var(--dur-base) var(--ease-back);
}
.cr2-careers-cta:hover {
  background: var(--terra-hover);
  transform: translateY(-2px);
}
.cr2-careers-cta svg { width: 14px; height: 14px; }

.cr2-careers-link {
  display: inline-block;
  margin-left: 1.25rem;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  transition: color var(--dur-fast);
}
.cr2-careers-link:hover { color: rgba(255,255,255,.85); }

/* ── Honeypot (hidden from humans) ── */
.ct-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── Form status messages ── */
.ct-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-lg);
  font-size: 14px;
  line-height: 1.55;
}
/* [hidden] must win over display:flex */
.ct-status[hidden] { display: none; }
.ct-status p { margin: 0; }

.ct-status--success {
  background: rgba(70,167,88,.1);
  border: 1px solid rgba(70,167,88,.3);
  color: #2A7E3B;
}
.ct-status--success svg {
  width: 22px; height: 22px;
  color: #46A758;
  flex-shrink: 0;
}

.ct-status--error {
  background: rgba(229,72,77,.08);
  border: 1px solid rgba(229,72,77,.28);
  color: #CE2C31;
}
.ct-status--error a { color: inherit; text-decoration: underline; font-weight: 600; }

.ct-submit:disabled { opacity: .7; cursor: wait; transform: none; }
