/* ==========================================================================
   PRC — Contact page (Figma 162:9 desktop, 320:367 mobile, motion 194:6711)
   ========================================================================== */

.contact-page {
  --forest-600: #407844;
  --lime-400: #abdd78;
  --grow-bg: #0f0f0f;
  --error: #b42318;
}
.contact-page main { background: var(--neutral-100); }

/* Light-top page: dark CTA with lime arrow (Figma 162:25); mobile menu button is white with a short second bar (320:378). */
.contact-page .site-nav .menu-btn { background: var(--base-white); border-color: rgba(15, 31, 16, 0.2); }

/* --------------------------------------------------------------------------
   Entrance reveal (Figma "Reveal" 194:6728): a circle grows from the
   "Contact us" button, 2px → 3140px, 1.6s ease-expo after 250ms.
   -------------------------------------------------------------------------- */
html.reveal-pending,
html.reveal-pending body,
html.is-revealing,
html.is-revealing body { background: var(--forest-950); }
html.reveal-pending .page-reveal { clip-path: circle(0px at 50% 0px); }
.page-reveal.is-revealing { will-change: clip-path; }

/* Rise + fade used for in-view reveals timed from section arrival (same contract as [data-reveal]) */
.c-rise {
  opacity: 0;
  transform: translateY(var(--ry, 24px));
  transition:
    opacity var(--rdur, 0.8s) var(--ease-expo) var(--rdelay, 0s),
    transform var(--rdur, 0.8s) var(--ease-expo) var(--rdelay, 0s);
}
.c-rise.is-in { opacity: 1; transform: none; }
.no-js .c-rise { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   01 Header
   -------------------------------------------------------------------------- */
.c-hero {
  padding: 200px 0 140px;
  background: var(--neutral-100);
  overflow: clip; /* contact steps slide in from beyond the right edge */
}
.c-hero__eyebrow { color: var(--forest-600); }
.c-hero__title {
  margin-top: 20px;
  font-weight: 600;
  font-size: clamp(46px, 7.2222vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--forest-950);
}
.c-hero__title .line,
.c-hero__title .muted { display: block; }
.c-hero__title .muted { color: var(--neutral-500); }
.c-hero__lede {
  margin-top: 40px;
  max-width: 949px;
  font-size: 18px;
  line-height: 28px;
  color: var(--neutral-600);
}

/* Stepped contact details — four overlapping blocks, each inset 160 / 80 */
.c-steps {
  position: relative;
  margin-top: 76px;
  height: 320px;
  --step-x: 12.5%;
  --step-y: 80px;
}
.c-step {
  position: absolute;
  top: calc(var(--i) * var(--step-y));
  left: calc(var(--i) * var(--step-x));
  right: 0; bottom: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 40px auto 1fr;
  align-items: start;
  align-content: start;
  padding: 22px 24px 0;
  color: var(--forest-950);
  white-space: nowrap;
}
.c-step--1 { --i: 0; background: var(--lime-200); }
.c-step--2 { --i: 1; background: var(--lime-400); }
.c-step--3 { --i: 2; background: var(--forest-600); color: var(--base-white); }
.c-step--4 { --i: 3; background: var(--forest-900); color: var(--base-white); }
.c-step__num {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.c-step__title {
  font-weight: 600; font-size: 36px; line-height: 1; letter-spacing: -0.02em;
}
.c-step__value {
  justify-self: end;
  margin-top: 8px;
  font-weight: 500; font-size: 16px; line-height: 24px;
}

/* Slide-in from the right edge (Figma 194:6786…6807): x → 0, 1.4s ease-expo, 200ms stagger */
html:not(.no-js) .c-steps.is-armed .c-step { transform: translateX(var(--sx, 110vw)); }
html:not(.no-js) .c-steps.is-armed .c-step.is-in {
  transform: none;
  transition: transform 1.4s var(--ease-expo) var(--sdelay, 0s);
}

/* --------------------------------------------------------------------------
   02 Enquiry form
   -------------------------------------------------------------------------- */
.c-enquiry { padding: 100px 0 140px; }
.c-enquiry__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.c-enquiry__intro { display: flex; flex-direction: column; gap: 28px; flex: none; }
.c-enquiry__title { font-size: 64px; white-space: nowrap; }
.c-enquiry__lede { width: 400px; max-width: 100%; color: var(--neutral-600); }

.c-card {
  flex: 0 1 660px;
  min-width: 0;
  background: var(--base-white);
  border-radius: 20px;
  padding: 40px;
}
.c-form { display: flex; flex-direction: column; gap: 28px; }
.c-form[hidden] { display: none; }

/* Interest chips — a single-choice radio group styled as pills */
.c-chips { margin: 0; padding: 0; border: 0; min-width: 0; }
.c-chips__legend { padding: 0; color: var(--neutral-500); }
.c-chips__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.c-chip { position: relative; display: inline-flex; cursor: pointer; }
.c-chip input {
  position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer;
}
.c-chip span {
  display: block;
  padding: 10px 16px;
  border: 1px solid var(--forest-950);
  border-radius: 999px;
  background-color: rgba(15, 31, 16, 0);
  color: var(--forest-950);
  font-weight: 500; font-size: 14px; line-height: 20px; white-space: nowrap;
  /* Figma 194:6833/6841: selection swaps fill + label colour, 0.3s ease-expo */
  transition: background-color 0.3s var(--ease-expo), color 0.3s var(--ease-expo), border-color 0.3s var(--ease-expo);
}
.c-chip:hover span { background-color: rgba(15, 31, 16, 0.06); }
.c-chip input:checked + span { background-color: var(--forest-950); color: var(--base-white); }
.c-chip input:focus-visible + span { outline: 2px solid var(--forest-950); outline-offset: 3px; }

/* Fields */
.c-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 14px;
}
.c-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.c-field--full { grid-column: 1 / -1; }
.c-field__label {
  font-weight: 500; font-size: 10.45px; line-height: 13.435px;
  letter-spacing: -0.02em; text-transform: capitalize;
  color: rgba(15, 31, 16, 0.85);
}
.c-field__control {
  display: block; width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 11px;
  background: #f9f9f9;
  border: 1px solid #ebebeb;
  border-radius: 7.464px;
  font: inherit;
  font-size: 11.943px; line-height: 14.331px; letter-spacing: -0.02em;
  color: var(--forest-950);
  transition: border-color 0.25s var(--ease-expo), box-shadow 0.25s var(--ease-expo), background-color 0.25s;
  -webkit-appearance: none; appearance: none;
}
.c-field__control::placeholder { color: rgba(15, 31, 16, 0.4); text-transform: capitalize; opacity: 1; }
.c-field__control--area { height: 164.21px; padding-top: 11.2px; padding-bottom: 11.2px; resize: vertical; min-height: 120px; }
.c-field__control:hover { border-color: #d9dbd4; }
.c-field__control:focus { outline: none; border-color: var(--forest-950); background: var(--base-white); box-shadow: 0 0 0 3px rgba(198, 241, 157, 0.75); }
.c-field.is-invalid .c-field__control { border-color: var(--error); background: #fdf6f5; }
.c-field.is-invalid .c-field__control:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18); }
.c-field__error {
  margin-top: -2px;
  font-size: 12px; line-height: 16px; color: var(--error);
}

/* Submit row */
.c-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.c-submit__note { color: var(--neutral-500); }
.c-submit__btn { border: 0; } /* Figma 162:83 is 44px tall: no border */
.c-submit__btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* Success state — replaces the form inside the card after a valid submit */
.c-success {
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 556px;
  justify-content: center;
  animation: c-success-in 0.8s var(--ease-expo) both;
}
.c-success[hidden] { display: none; }
@keyframes c-success-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.c-success__mark {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--lime-300);
}
.c-success__eyebrow { margin-top: 28px; color: var(--forest-600); }
.c-success__title {
  margin-top: 12px;
  font-weight: 600; font-size: 36px; line-height: 1.05; letter-spacing: -0.02em;
}
.c-success__title:focus { outline: none; }
.c-success__text { margin-top: 16px; max-width: 440px; color: var(--neutral-600); }
.c-success__text strong { font-weight: 500; color: var(--forest-950); }
.c-success__again { margin-top: 32px; }

/* --------------------------------------------------------------------------
   03 Grow together
   -------------------------------------------------------------------------- */
.c-grow {
  position: relative;
  background: var(--grow-bg);
  padding-bottom: 120px;
  overflow: hidden;
}
.c-grow__media { position: relative; height: 640px; overflow: hidden; }
.c-grow__zoom { position: absolute; inset: 0; }
.c-grow__zoom img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  clip-path: inset(0 0 4px 0); /* bottom rows sit under the solid fade; trimming them avoids a compositor seam */
}
.c-grow__zoom::after {
  content: ""; position: absolute; inset: -1px -1px -2px; /* overhang hides the photo's sub-pixel edge */
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.9) 0%, rgba(15, 15, 15, 0.4) 22%, rgba(15, 15, 15, 0.4) 23.514%, #0f0f0f 88.716%);
}
/* Figma 194:6877/6881: photo + fade settle from 1.18 → 1, 3.4s ease-out */
html:not(.no-js) .c-grow__zoom { transform: scale(1.18); transition: transform 3.4s var(--ease-text); }
html:not(.no-js) .c-grow.is-in .c-grow__zoom { transform: none; }

.c-grow__content {
  position: relative; z-index: 1;
  margin-top: -40px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.c-grow__title {
  font-weight: 600; font-size: clamp(34px, 4.4444vw, 64px); line-height: 1; letter-spacing: -0.03em;
  color: var(--lime-300);
}
.c-grow__title .line, .c-grow__title .muted { display: block; white-space: nowrap; }
.c-grow__title .muted { color: rgba(247, 247, 247, 0.8); }
.c-grow__title.is-in .split-char { opacity: 1; transform: none; }
.c-grow__right { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.c-grow__eyebrow { color: rgba(247, 247, 247, 0.8); }
.c-grow__text { color: var(--base-white); white-space: nowrap; }
.c-grow__link { color: var(--base-white); }
.c-arrow-mob { display: none !important; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .c-step__title { font-size: clamp(26px, 2.5vw, 36px); margin-top: 2px; }
  .c-step__value { font-size: 15px; }
  .c-enquiry__inner { flex-direction: column; gap: 48px; }
  .c-card { flex: none; width: 100%; max-width: 760px; }
  .c-success { min-height: 0; padding: 40px 0; }
}

@media (max-width: 900px) {

  /* Header (320:368) */
  .c-hero { padding: 140px 0 64px; }
  .c-hero__eyebrow { font-size: 11px; line-height: normal; letter-spacing: 0.04em; }
  .c-hero__title { line-height: 0.96; }
  .c-hero__lede { margin-top: 20px; font-size: 15px; line-height: 1.55; }

  .c-steps { margin-top: 56px; height: 312px; --step-x: 22px; --step-y: 78px; }
  .c-step { grid-template-columns: 26px 1fr; padding: 11px 16px 0; }
  .c-step__num { margin-top: 6px; font-size: 11px; line-height: 14px; letter-spacing: 0; opacity: 0.7; }
  .c-step--3 .c-step__num, .c-step--4 .c-step__num { opacity: 0.75; }
  .c-step__title { font-size: 22px; line-height: 29px; letter-spacing: -0.02em; }
  .c-step__value { margin-top: 4px; font-weight: 400; font-size: 13px; line-height: 17px; opacity: 0.7; }
  .c-step--3 .c-step__value, .c-step--4 .c-step__value { opacity: 0.75; }

  /* Enquiry form (320:403) */
  .c-enquiry { padding: 24px 0 72px; }
  .c-enquiry__inner { gap: 20px; }
  .c-enquiry__intro { gap: 20px; }
  .c-enquiry__title { font-size: 36px; line-height: 1.05; white-space: normal; }
  .c-enquiry__title .muted { line-height: 1.05; }
  .c-enquiry__lede { width: auto; font-size: 15px; line-height: 1.55; }
  .c-card { border-radius: 16px; padding: 24px 20px; }
  .c-form { gap: 20px; }
  .c-chips__legend { font-size: 11px; line-height: normal; letter-spacing: 0.03em; }
  .c-chips__list { margin-top: 20px; }
  .c-chip span { padding: 9px 14px; font-size: 13px; line-height: 17px; border-color: rgba(15, 31, 16, 0.25); }
  .c-chip input:checked + span { border-color: var(--forest-950); }
  .c-fields { grid-template-columns: 1fr; gap: 20px; }
  .c-field { gap: 8px; }
  .c-field__label {
    font-size: 13px; line-height: 17px; letter-spacing: 0; text-transform: none;
    color: var(--forest-950);
  }
  .c-field__control {
    padding: 0 14px;
    background: var(--neutral-50);
    border-color: #e1e2dc;
    border-radius: 10px;
    font-size: 16px; line-height: 18px; letter-spacing: 0;
  }
  .c-field__control::placeholder { color: var(--neutral-400); text-transform: none; font-size: 14px; }
  .c-field__control--area { height: 140px; padding-top: 14px; padding-bottom: 14px; }
  .c-submit { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .c-submit__btn { justify-content: space-between; padding: 5px 5px 5px 18px; line-height: 18px; }
  .c-success { padding: 16px 0; }
  .c-success__title { font-size: 28px; }

  /* Grow together (320:439) */
  .c-grow { padding-bottom: 64px; }
  .c-grow__media { height: 400px; }
  .c-grow__zoom img { object-position: center; }
  .c-grow__zoom::after { background: linear-gradient(180deg, rgba(15, 15, 15, 0.35) 0%, rgba(15, 15, 15, 0.2) 45%, #0f0f0f 100%); }
  .c-grow__content { margin-top: -80px; flex-direction: column; align-items: flex-start; gap: 24px; }
  /* Figma sets each phrase on one line at 34px/393; scale down on narrower phones so it still fits */
  .c-grow__title { font-size: min(34px, 8.65vw); line-height: 1.05; }
  .c-grow__title .muted { color: rgba(255, 255, 255, 0.85); }
  .c-grow__right { gap: 12px; }
  .c-grow__eyebrow { font-size: 11px; line-height: normal; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.6); }
  .c-grow__text { line-height: normal; white-space: normal; }
  .c-grow__link { gap: 10px; line-height: normal; }
  .c-arrow-desk { display: none !important; }
  .c-arrow-mob { display: block !important; }
}

/* Reduced motion: resting states, no reveal wipe */
@media (prefers-reduced-motion: reduce) {
  .c-rise { opacity: 1 !important; transform: none !important; }
  html:not(.no-js) .c-steps.is-armed .c-step,
  html:not(.no-js) .c-grow__zoom { transform: none !important; }
  .page-reveal { clip-path: none !important; }
}
