/* ────────────────────────────────────────────────────────────────────
   CONTACT.CSS — Altida /contact/ page (ct-* system)

   A frontier contact page reskinned to Altida tokens: black/yellow,
   Lovelo (display ≥32px only) / Inter caps (structural) / Aller (body),
   --ease-mech motion. Loads AFTER tokens.css + components.css +
   homepage.css + projects.css + project-detail.css + service-detail.css.

   Reuses the chrome + .prj-hero/.sd-hero hero shell + .sd-* section
   primitives. Motion keys off the .is-revealed flag homepage.js adds to
   [data-section-reveal]. The inline form is the proven [data-cta-form]
   mailto bridge (wired by homepage.js) — it opens the visitor's mail
   client pre-addressed; no backend required.
   ──────────────────────────────────────────────────────────────────── */


/* ══ 1 · CONTACT GRID (form + direct methods · bone) ══════════════════ */

.ct-main { background: var(--altida-bone); color: var(--altida-black); padding: clamp(64px, 8vw, 120px) 0; }
.ct-main__inner {
  max-width: var(--container-wide, 1440px); margin: 0 auto; padding: 0 var(--gutter, 24px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start;
}
@media (min-width: 920px) {
  .ct-main__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 5vw, 80px); }
}

/* The form card — white, two-layer elevated shadow */
.ct-form {
  background: var(--altida-white); border-radius: 8px; padding: clamp(28px, 3.4vw, 48px);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05), 0 18px 40px -24px rgba(10, 10, 10, 0.22);
}
.ct-form__head { margin: 0 0 clamp(22px, 2.4vw, 32px); }
.ct-form__title {
  font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 40px);
  line-height: 1.04; letter-spacing: -0.01em; text-transform: uppercase;
  margin: 14px 0 0; color: var(--altida-black);
}
.ct-form__sub {
  font-family: var(--font-body); font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.6; color: rgba(10, 10, 10, 0.66); margin: 12px 0 0; max-width: 54ch;
}
.ct-field { margin: 0 0 clamp(16px, 1.8vw, 22px); }
.ct-field__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 1.8vw, 22px); margin: 0 0 clamp(16px, 1.8vw, 22px); }
@media (min-width: 560px) { .ct-field__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ct-label {
  display: block; margin: 0 0 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--altida-black);
}
.ct-input, .ct-select, .ct-textarea {
  width: 100%; display: block; font-family: var(--font-body); font-size: var(--fs-16);
  color: var(--altida-black); background: var(--altida-white);
  border: 1px solid var(--grey-300); border-radius: 6px;
  padding: 13px 15px; line-height: 1.4;
  transition: border-color var(--dur-base) var(--ease-mech), box-shadow var(--dur-base) var(--ease-mech);
}
.ct-textarea { resize: vertical; min-height: 132px; }
.ct-input:hover, .ct-select:hover, .ct-textarea:hover { border-color: var(--grey-500); }
.ct-input:focus, .ct-select:focus, .ct-textarea:focus {
  outline: none; border-color: var(--altida-black); box-shadow: var(--focus-ring);
}
.ct-select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230A0A0A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.ct-send {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--altida-black);
  background: var(--altida-yellow); border: 0; border-radius: 4px;
  padding: 16px 28px; margin-top: 4px;
  transition: transform var(--dur-fast) var(--ease-mech), box-shadow var(--dur-base) var(--ease-mech), background var(--dur-base) var(--ease-mech);
}
.ct-send:hover { background: var(--altida-yellow-warm); box-shadow: var(--shadow-yellow); transform: translateY(-2px); }
.ct-send:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-outline-offset); }
.ct-send__arrow { transition: transform var(--dur-fast) var(--ease-mech); }
.ct-send:hover .ct-send__arrow { transform: translateX(4px); }
.ct-status {
  margin: 16px 0 0; font-family: var(--font-body); font-size: 14.5px; line-height: 1.55;
  padding: 12px 16px; border-radius: 6px; border-left: 3px solid var(--grey-300);
  background: var(--altida-bone); color: rgba(10, 10, 10, 0.78);
}
.ct-status[data-state="error"] { border-left-color: var(--status-stop); }
.ct-status[data-state="success"] { border-left-color: var(--status-go); }

/* The direct-methods aside */
.ct-aside { align-self: start; }
@media (min-width: 920px) { .ct-aside { position: sticky; top: 110px; } }
.ct-methods { list-style: none; margin: clamp(8px, 1.2vw, 18px) 0 0; padding: 0; }
.ct-method {
  display: block; padding: clamp(18px, 2vw, 24px) 0; border-top: 1px solid var(--grey-300);
  text-decoration: none; color: var(--altida-black);
}
.ct-method:first-of-type { border-top: 0; padding-top: clamp(4px, 0.6vw, 8px); }
.ct-method__key {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(10, 10, 10, 0.5); margin: 0 0 7px;
}
.ct-method__ico { flex: 0 0 auto; width: 15px; height: 15px; color: var(--altida-black); }
.ct-method__val {
  display: block; font-family: var(--font-body); font-weight: 700;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.3; color: var(--altida-black);
  font-feature-settings: 'tnum' 1;
}
a.ct-method .ct-method__val {
  background-image: linear-gradient(var(--altida-yellow), var(--altida-yellow));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px;
  padding-bottom: 2px; transition: background-size var(--dur-base) var(--ease-mech);
}
a.ct-method:hover .ct-method__val { background-size: 100% 2px; }
a.ct-method:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
.ct-method__note { display: block; margin: 5px 0 0; font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: rgba(10, 10, 10, 0.6); }


/* ══ 2 · WHAT HAPPENS NEXT (3-step rail, no numbers · white) ══════════ */

.ct-next { background: var(--altida-white); color: var(--altida-black); padding: clamp(72px, 9vw, 128px) 0; }
.ct-next__inner { max-width: var(--container-wide, 1440px); margin: 0 auto; padding: 0 var(--gutter, 24px); }
.ct-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (min-width: 760px) { .ct-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); } }
.ct-step { position: relative; padding: clamp(24px, 2.6vw, 34px); background: var(--altida-bone); border-radius: 8px; }
.ct-step::before { content: ""; position: absolute; top: 0; left: clamp(24px, 2.6vw, 34px); width: 34px; height: 4px; background: var(--altida-yellow); }
.ct-step__h {
  font-family: var(--font-sans); font-weight: 800; font-size: clamp(15px, 1.2vw, 17px);
  letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.25;
  margin: clamp(20px, 2vw, 28px) 0 10px; color: var(--altida-black);
}
.ct-step__b { font-family: var(--font-body); font-size: clamp(14.5px, 1.05vw, 16px); line-height: 1.6; color: rgba(10, 10, 10, 0.68); margin: 0; }


/* ══ 3 · WHERE WE ARE (location / coverage · dark) ════════════════════ */

.ct-where { background: var(--altida-black); color: var(--altida-white); padding: clamp(72px, 9vw, 128px) 0; }
.ct-where__inner {
  max-width: var(--container-wide, 1440px); margin: 0 auto; padding: 0 var(--gutter, 24px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: center;
}
@media (min-width: 920px) { .ct-where__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); } }
.ct-where__title {
  font-family: var(--font-display); font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.04; letter-spacing: -0.015em; text-transform: uppercase;
  margin: 16px 0 0; color: var(--altida-white);
}
.ct-where__p { font-family: var(--font-body); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, 0.72); margin: 20px 0 0; max-width: 52ch; }
.ct-card {
  background: var(--grey-900); border: 1px solid var(--grey-800); border-radius: 10px;
  padding: clamp(28px, 3vw, 44px); position: relative; overflow: hidden; isolation: isolate;
}
/* 2026-07-02: the 22% top-left triangle sat under the yellow eyebrow —
   yellow-on-yellow, unreadable. Replaced with the site-standard small
   bottom-left corner slash, clear of all text. */
.ct-card::before { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 30px; background: var(--altida-yellow); clip-path: polygon(0 100%, 0 35%, 100% 100%); z-index: 0; }
.ct-card__body { position: relative; z-index: 1; }
.ct-card__addr-key {
  font-family: var(--font-sans); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--altida-yellow); margin: 0 0 12px;
}
.ct-card__addr {
  font-family: var(--font-body); font-style: normal; font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55; color: var(--altida-white); margin: 0 0 22px;
}
.ct-card__row { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 18px; border-top: 1px solid var(--grey-800); }
.ct-card__line { display: inline-flex; flex-direction: column; gap: 2px; }
.ct-card__line-key { font-family: var(--font-sans); font-weight: 700; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.ct-card__line-val { font-family: var(--font-body); font-weight: 700; font-size: clamp(15px, 1.2vw, 17px); color: var(--altida-white); text-decoration: none; font-feature-settings: 'tnum' 1; }
a.ct-card__line-val:hover { color: var(--altida-yellow); }


/* ══ SCROLL REVEALS (key off .is-revealed from homepage.js) ═══════════ */

[data-section-reveal] .ct-form,
[data-section-reveal] .ct-method,
[data-section-reveal] .ct-step,
[data-section-reveal] .ct-where__copy,
[data-section-reveal] .ct-card {
  opacity: 0; transform: translateY(16px);
  transition: opacity 560ms var(--ease-mech), transform 560ms var(--ease-mech);
}
.is-revealed .ct-form,
.is-revealed .ct-method,
.is-revealed .ct-step,
.is-revealed .ct-where__copy,
.is-revealed .ct-card { opacity: 1; transform: none; }
.is-revealed .ct-method:nth-child(2),  .is-revealed .ct-step:nth-child(2) { transition-delay: 80ms; }
.is-revealed .ct-method:nth-child(3),  .is-revealed .ct-step:nth-child(3) { transition-delay: 160ms; }
.is-revealed .ct-method:nth-child(4) { transition-delay: 240ms; }
.is-revealed .ct-method:nth-child(5) { transition-delay: 320ms; }


/* ══ REDUCED MOTION ═══════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .ct-input, .ct-select, .ct-textarea, .ct-send, .ct-send__arrow, .ct-method__val { transition: none !important; }
  [data-section-reveal] .ct-form,
  [data-section-reveal] .ct-method,
  [data-section-reveal] .ct-step,
  [data-section-reveal] .ct-where__copy,
  [data-section-reveal] .ct-card { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   2026-07-01 ELEVATION LAYER — the site standard applied to Contact.
   ════════════════════════════════════════════════════════════════════ */
.ct-form{border-radius:16px}
.ct-card{border-radius:12px;border:1px solid rgba(10,10,10,.08);
  box-shadow:0 22px 48px -26px rgba(10,10,10,.24),0 5px 14px -8px rgba(10,10,10,.08)}
.ct-method{border-radius:10px;transition:background .3s var(--ease-mech)}
.ct-method:hover{background:rgba(255,255,255,.8)}
/* steps → floated cards with slash markers */
.ct-step{position:relative;background:var(--altida-white);border:1px solid rgba(10,10,10,.08);
  border-radius:10px;padding:clamp(1.3rem,1.8vw,1.7rem) clamp(1.3rem,1.8vw,1.7rem) clamp(1.3rem,1.8vw,1.7rem) 3rem;
  box-shadow:0 20px 44px -26px rgba(10,10,10,.22)}
.ct-step::before{content:"";position:absolute;left:1.35rem;top:calc(clamp(1.3rem,1.8vw,1.7rem) + .25em);
  width:14px;height:14px;background:var(--altida-yellow);
  clip-path:polygon(0 0,68% 0,100% 100%,32% 100%);filter:drop-shadow(0 3px 5px rgba(10,10,10,.14))}
.ct-step__b{color:rgba(10,10,10,.72)}
/* where we are: flat black -> warm charcoal + faint warmth (no black wall) */
.ct-where{background:radial-gradient(120% 90% at 85% -10%,rgba(255,236,0,.05),transparent 55%),#1B1A17}
.ct-where__p{color:rgba(255,255,255,.82)}

/* 2026-07-02 contrast floor */
.ct-method__key{color:rgba(10,10,10,.66)}

/* 2026-07-02 hover refinements (operator):
   1 · the value's animated underline spanned the full row (display:block
       link value) — shrink to the text so only the content underlines;
   2 · the hover wash touched the content edge-to-edge — the row gains
       horizontal padding with matching negative margins, so resting
       alignment is unchanged and the hover box has proper breathing room. */
a.ct-method .ct-method__val{display:inline-block}
.ct-method{padding-left:16px;padding-right:16px;margin-left:-16px;margin-right:-16px}

/* 2026-07-02 — the hover box, properly considered:
   · every item gets EVEN padding (the first row's 4-8px top made its
     hover box hug the text);
   · the adjacent hairlines fade while the box is up (they were cutting
     straight through its top and bottom edges);
   · the box lifts with a soft shadow — a surface, not a wash;
   · only actual links wash (affordance stays honest). */
.ct-method{padding:clamp(16px,1.6vw,20px) 16px;
  transition:background .3s var(--ease-mech),border-color .3s var(--ease-mech),box-shadow .3s var(--ease-mech)}
.ct-method:first-of-type{padding-top:clamp(16px,1.6vw,20px)}
.ct-methods{margin-top:clamp(2px,.4vw,6px)}
.ct-method:hover{background:transparent}
a.ct-method:hover{background:rgba(255,255,255,.92);
  box-shadow:0 12px 28px -16px rgba(10,10,10,.16),0 2px 8px -4px rgba(10,10,10,.06);
  border-top-color:transparent}
a.ct-method:hover + .ct-method{border-top-color:transparent}

/* 2026-07-02 mobile polish.
   · Aller draws no-break spaces at zero width — the CALL value and the
     postcode (S43&nbsp;2BP) read as unbroken strings. word-spacing
     applies to no-break spaces and restores the visible gap.
   · The address card's key labels sat at 10px — half a point below the
     site's 10.5px micro-label system; aligned for consistency.
   · Touch hit-areas for the card's contact lines. */
.ct-method__val, .ct-method__note, .ct-card__addr { word-spacing: 0.24em; }
.ct-card__line-key { font-size: 10.5px; }
@media (pointer: coarse) {
  a.ct-card__line-val { display: inline-block; padding-block: 5px; margin-block: -5px; }
}
