/* Deep Breath — Contact page (child of Company)
   Builds on styles.css + shared company visual language */

.page-contact {
  background: var(--bg);
  color: var(--text);
}

.page-contact .nav a[aria-current="page"] {
  color: #fff;
}

/* ---------- Hero ---------- */
.ct-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding:
    calc(var(--header-h) + 3rem)
    clamp(1.25rem, 4vw, 2.75rem)
    3.5rem;
  overflow: hidden;
}

.ct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 40%, rgba(86, 204, 242, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 70% 70%, rgba(242, 86, 236, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.ct-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.ct-hero-inner {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
}

.ct-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}

.ct-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 1.15rem;
}

.ct-hero h1 .grad {
  background: linear-gradient(100deg, var(--cyan) 0%, #9b7cff 48%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ct-lead {
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 36rem;
}

/* ---------- Sections ---------- */
.ct-section {
  padding:
    clamp(3.5rem, 8vh, 5.5rem)
    clamp(1.25rem, 4vw, 2.75rem);
}

.ct-section--light {
  background: #f4f7fb;
  color: #0f172a;
}

.ct-section--dark {
  background: #000;
  color: #fff;
}

.ct-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.ct-section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.ct-section--light .ct-kicker {
  color: #2f80ed;
}

.ct-section-head h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.65rem 0 0.85rem;
}

.ct-body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}

/* ---------- Get in touch cards ---------- */
.ct-touch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ct-touch-card {
  padding: 1.5rem 1.35rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.ct-touch-card .ct-touch-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2f80ed;
  margin-bottom: 0.65rem;
}

.ct-touch-card a,
.ct-touch-card p {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  margin: 0;
  word-break: break-word;
}

.ct-touch-card a:hover {
  color: #2f80ed;
}

.ct-touch-card .ct-touch-hint {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: #64748b;
}

/* ---------- Form layout ---------- */
.ct-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.ct-form-intro h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.65rem 0 0.9rem;
  color: #0f172a;
}

.ct-form-intro .ct-body {
  margin-bottom: 1.5rem;
}

.ct-note {
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  background: rgba(47, 128, 237, 0.06);
  border: 1px solid rgba(47, 128, 237, 0.15);
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}

.ct-note strong {
  color: #0f172a;
  font-weight: 600;
}

/* ---------- Form ---------- */
.ct-form {
  padding: 1.75rem 1.6rem 1.85rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.ct-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

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

.ct-field--full {
  grid-column: 1 / -1;
}

.ct-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.ct-field label .req {
  color: #e11d8c;
  margin-left: 0.15rem;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.ct-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: #94a3b8;
}

.ct-field input:hover,
.ct-field select:hover,
.ct-field textarea:hover {
  border-color: rgba(47, 128, 237, 0.35);
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  background: #fff;
  border-color: #2f80ed;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.15);
}

.ct-field input.is-invalid,
.ct-field select.is-invalid,
.ct-field textarea.is-invalid {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.ct-form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.ct-form-actions .btn {
  min-width: 140px;
  border: 0;
  cursor: pointer;
  background-image:
    linear-gradient(#0a0a0a, #0a0a0a),
    linear-gradient(100deg, var(--cyan), var(--magenta));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;
  color: #fff;
}

.ct-form-actions .btn:hover {
  box-shadow: 0 0 24px rgba(86, 204, 242, 0.18);
}

.ct-form-status {
  font-size: 0.9rem;
  color: #64748b;
  min-height: 1.25rem;
}

.ct-form-status.is-error {
  color: #be123c;
}

.ct-form-status.is-ok {
  color: #0f766e;
  font-weight: 500;
}

.ct-form.is-sent {
  position: relative;
}

.ct-form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.ct-form.is-sent .ct-form-grid,
.ct-form.is-sent .ct-form-actions {
  display: none;
}

.ct-form.is-sent .ct-form-success {
  display: block;
}

.ct-form-success h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.6rem;
}

.ct-form-success p {
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.ct-success-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(86, 204, 242, 0.15), rgba(242, 86, 236, 0.12));
  color: #2f80ed;
  font-size: 1.4rem;
  font-weight: 700;
}

/* ---------- Closing note strip ---------- */
.ct-closing {
  padding: 1.75rem clamp(1.25rem, 4vw, 2.75rem) 0.5rem;
  background: #f4f7fb;
}

.ct-closing-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
}

.ct-closing-inner strong {
  color: #0f172a;
}

/* ---------- Reveal ---------- */
.ct-reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ct-reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ct-touch-grid {
    grid-template-columns: 1fr;
  }

  .ct-form-layout {
    grid-template-columns: 1fr;
  }

  .ct-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ct-form {
    padding: 1.35rem 1.15rem 1.5rem;
  }

  .ct-form-actions .btn {
    width: 100%;
  }
}

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