/* page/contact.css — page-scoped styling for contact.html only.
   Composes tokens from components/styles.css + home/home-flagship.css
   (R-04/R-05); no shared component is edited. Loads LAST. */

/* ---------------- Masthead ---------------- */
.ct-mast { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(32px, 5vw, 56px); }
.ct-mast__inner { max-width: var(--content); text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.ct-mast .kicker { justify-content: center; }
.ct-mast__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; color: var(--primary);
  margin: 9px 0 14px; text-wrap: balance;
}
.ct-mast__sub { font-size: clamp(14.5px, 1.5vw, 16.5px); line-height: 1.6; color: var(--text); max-width: 58ch; margin: 0 auto; }

/* ---------------- Routed contact options ---------------- */
.ct-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.ct-route {
  display: flex; flex-direction: column;
  padding: 28px 26px 26px; border: 1px solid var(--line); border-radius: var(--r-frame);
  background: var(--white);
}
/* the sales route is the page's primary action — set apart by weight, not by
   the gradient, which R-02 reserves for the primary CTA button itself */
.ct-route--primary { border-color: var(--primary); border-width: 1.5px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09); }
.ct-route__icon {
  width: 42px; height: 42px; border-radius: var(--r-card); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2, #f4f1f3); color: var(--primary); margin-bottom: 16px;
}
.ct-route__icon svg { width: 20px; height: 20px; }
.ct-route__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--primary); margin: 0 0 8px; }
.ct-route__body { font-size: 14.5px; line-height: 1.6; color: var(--text); margin: 0 0 20px; flex: 1; }
.ct-route__cta { width: 100%; justify-content: center; }
.ct-route__alt { font-size: 13px; line-height: 1.5; color: var(--text); margin: 12px 0 0; }
.ct-route__alt a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

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

/* ---------------- Form + details split ---------------- */
.ct-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 68px); align-items: start; }
@media (max-width: 900px) { .ct-split { grid-template-columns: 1fr; } }

.ct-h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; color: var(--primary); margin: 0 0 10px; }
.ct-sub { font-size: 14.5px; line-height: 1.6; color: var(--text); margin: 0 0 26px; max-width: 52ch; }
.ct-h3 { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--primary); margin: 30px 0 12px; }

/* ---------------- The form ---------------- */
.ct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.ct-field { display: flex; flex-direction: column; min-width: 0; }
.ct-field--full { grid-column: 1 / -1; }
.ct-field label { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 7px; }
.ct-field label span[aria-hidden] { color: var(--text); font-weight: 500; }
.ct-optional { font-weight: 500; color: var(--text); }

.ct-field input,
.ct-field select,
.ct-field textarea {
  font-family: var(--font-body); font-size: 14.5px; color: var(--primary);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--white); width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
/* placeholder must clear 4.5:1 on white like body text does (R-07) */
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: #6b6b6b; }
.ct-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.ct-field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230b0b0b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 11, 11, 0.08);
}
/* invalid state is marked by border AND the error text below — never colour alone (R-07) */
.ct-field.is-invalid input,
.ct-field.is-invalid textarea { border-color: #b3261e; }
.ct-error { font-size: 12.5px; line-height: 1.45; color: #b3261e; margin: 6px 0 0; }

.ct-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.ct-note { font-size: 12.5px; line-height: 1.5; color: var(--text); margin: 0; max-width: 40ch; }
.ct-note a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.ct-status {
  grid-column: 1 / -1; margin: 4px 0 0; padding: 13px 16px;
  border-radius: var(--r-card); font-size: 14px; line-height: 1.55;
  border: 1px solid var(--line); background: var(--surface-2, #f7f5f6); color: var(--primary);
}
.ct-status a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ct-status.is-error { border-color: #b3261e; color: #b3261e; background: #fdf3f2; }

@media (max-width: 560px) { .ct-form { grid-template-columns: 1fr; } }

/* ---------------- Company details ---------------- */
.ct-details { border: 1px solid var(--line); border-radius: var(--r-frame); padding: clamp(24px, 3vw, 32px); background: var(--white); }
.ct-dl { margin: 0; padding: 0; }
.ct-dl__row { padding: 14px 0; border-top: 1px solid var(--line); }
.ct-dl__row:first-child { border-top: 0; padding-top: 0; }
.ct-dl dt { font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text); margin: 0 0 5px; }
.ct-dl dd { font-size: 14.5px; line-height: 1.55; color: var(--primary); margin: 0; }
.ct-dl dd a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
/* the postal address is a 3-line link to the map; a full underline across all
   three lines reads as noise, so it resolves on hover/focus instead */
.ct-dl dd a[href*="maps"] { text-decoration: none; }
.ct-dl dd a[href*="maps"]:hover,
.ct-dl dd a[href*="maps"]:focus-visible { text-decoration: underline; }

.ct-links { list-style: none; margin: 0; padding: 0; }
.ct-links li + li { margin-top: 9px; }
.ct-links a { font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.ct-social { display: flex; gap: 10px; }
.ct-social a {
  width: 36px; height: 36px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--text);
  transition: color 0.16s ease, border-color 0.16s ease;
}
.ct-social a svg { width: 17px; height: 17px; }
.ct-social a:hover, .ct-social a:focus-visible { color: var(--primary); border-color: var(--primary); }

/* ---------------- Reveal (opacity + rise only; never clip-path — see T-0025) ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ct-field input, .ct-field select, .ct-field textarea, .ct-social a { transition: none; }
}
