/* Contact page: the studio's details beside an enquiry form, then what happens after you get in touch.
   Loaded after css/site.css, which holds the banner, section heads, reveals and footer. */

:root { --plaster-line: #dcd6ce; }

/* Underlined text links */
.ct-link {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: color .3s ease, background-size .6s var(--ease-out);
}
.ct-link:hover { color: var(--olive); }

/* ---------- Enquiry ---------- */
.ct-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 56px;
  align-items: start;
}
.ct-aside { grid-column: 1 / 6; }
.ct-form-wrap {
  grid-column: 7 / 13;
  padding: clamp(28px, 3.4vw, 48px);
  background: var(--plaster);
}

.ct-intro {
  margin: clamp(20px, 2.4vw, 28px) 0 0;
  max-width: 30rem;
  font-family: var(--serif);
  font-size: clamp(1.125rem, .5vw + .9rem, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.ct-details {
  max-width: 30rem;
  margin: clamp(40px, 4.4vw, 60px) 0 0;
  border-bottom: 1px solid var(--line);
}
.ct-details > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 16px;
  padding: 18px 0;
}
.ct-details dt {
  padding-top: 3px;
  font: 500 0.6875rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.ct-details dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}
.ct-details address { font-style: normal; }
.ct-social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Form ---------- */
.ct-form { display: grid; gap: 22px; }

.ct-choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.ct-choice legend,
.ct-field label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font: 500 0.71875rem/1.4 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
}
.ct-field label span {
  letter-spacing: 0;
  text-transform: none;
  opacity: .8;
}

/* Choice chips: real radio buttons, drawn as pills */
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { position: relative; }
.ct-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.ct-chip span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #cdc5ba;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--ink);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.ct-chip:hover span { border-color: var(--olive); }
.ct-chip input:checked + span { background: var(--olive); border-color: var(--olive); color: #fff; }
.ct-chip input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 3px; }

.ct-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d3cbc1;
  border-radius: 0;
  background: var(--paper);
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  appearance: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.ct-field textarea { min-height: 150px; resize: vertical; }
.ct-field select {
  padding-right: 42px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236f6862' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
  cursor: pointer;
}
.ct-field ::placeholder { color: #a39b93; }
.ct-field input:hover,
.ct-field select:hover,
.ct-field textarea:hover { border-color: #b9b0a5; }
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(79, 90, 58, .16);
}
/* Only after the visitor has tried: a missing or malformed answer is marked */
.ct-field input:user-invalid,
.ct-field textarea:user-invalid,
.ct-field [aria-invalid="true"] { border-color: #a5603c; }
/* The send button while the enquiry is on its way */
.ct-send[aria-busy="true"] { opacity: .6; cursor: progress; }
.ct-status.is-error { border-left-color: #a5603c; background: rgba(165, 96, 60, .1); }

.ct-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 4px;
}
.ct-send { gap: 14px; padding: 15px 26px; }
.ct-send svg {
  width: 26px;
  height: 10px;
  transition: transform .6s var(--ease-out);
}
.ct-send:hover svg,
.ct-send:focus-visible svg { transform: translateX(6px); }
.ct-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--stone);
}
.ct-status {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--olive);
  background: rgba(79, 90, 58, .1);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- What happens next ---------- */
.ct-next { background: var(--plaster); }
.ct-next .ruled::after { background: var(--plaster-line); }
.ct-next .section-intro .ct-link { color: var(--olive); }

.ct-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-step { padding-top: 28px; }
.ct-step-num {
  display: block;
  font: 500 0.75rem/1.4 var(--sans);
  letter-spacing: .14em;
  color: var(--olive);
  font-variant-numeric: tabular-nums;
}
.ct-step-title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1vw + 1rem, 2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.ct-step-text {
  margin: 12px 0 0;
  max-width: 32ch;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ct-aside,
  .ct-form-wrap { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .ct-steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .ct-row { grid-template-columns: minmax(0, 1fr); }
  .ct-form-wrap { padding: 24px 18px; }
  .ct-details > div { grid-template-columns: 80px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ct-link,
  .ct-chip span,
  .ct-field input,
  .ct-field select,
  .ct-field textarea,
  .ct-send svg { transition: none; }
}

/* ---------- Thank-you popup after the form is sent (26 Nov) ----------
   A centred card over a dimmed, softly blurred page: an olive tick that draws itself, the message from the
   dashboard in the serif, and a Close button. Esc, Close or a click outside closes it. */
.ct-thanks {
  width: min(92vw, 440px);
  margin: auto;
  padding: clamp(36px, 5vw, 52px) clamp(28px, 4vw, 44px) clamp(30px, 4vw, 40px);
  border: 0;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 30px 80px rgba(20, 16, 14, .28);
}
.ct-thanks[open] { animation: ct-thanks-in .5s var(--ease-out) both; }
.ct-thanks::backdrop {
  background: rgba(31, 33, 28, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ct-thanks[open]::backdrop { animation: ct-fade .4s ease both; }
.ct-thanks-icon { display: block; width: 64px; height: 64px; margin: 0 auto; color: var(--olive); }
.ct-thanks-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ct-thanks-icon circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: ct-draw .7s var(--ease-out) .15s forwards; opacity: .45; }
.ct-thanks-icon path { stroke-width: 2.2; stroke-dasharray: 36; stroke-dashoffset: 36; animation: ct-draw .45s var(--ease-out) .6s forwards; }
.ct-thanks-text {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.ct-thanks-close { margin-top: clamp(26px, 3vw, 32px); padding: 13px 34px; }
.ct-thanks-close:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

@keyframes ct-thanks-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ct-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ct-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ct-thanks[open], .ct-thanks[open]::backdrop { animation: none; }
  .ct-thanks-icon circle, .ct-thanks-icon path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Contact details with icons (26 Nov) ----------
   Each detail gets an olive line icon in a circle on the left; the small label sits above the detail. */
.ct-details > .ct-item {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 20px 0 20px 64px;
}
.ct-item dt { padding-top: 0; }
.ct-item dd { margin-top: 6px; }
.ct-icon {
  position: absolute;
  left: 0;
  top: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--olive);
  background: var(--paper);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.ct-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .ct-item:hover .ct-icon { background: var(--olive); border-color: var(--olive); color: #fff; }
}
@media (max-width: 960px) {
  .ct-details > .ct-item { padding-left: 58px; }
  .ct-icon { width: 40px; height: 40px; top: 19px; }
}

/* ---------- Frequently asked questions ---------- */
.ct-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: 32px;
  align-items: start;
}
.ct-faq-head { position: sticky; top: calc(var(--header-h) + 24px); }
.ct-faq-head .section-title { margin-top: 0; }
.ct-faq-list { border-top: 1px solid var(--line); }
.ct-faq-item { border-bottom: 1px solid var(--line); }
.ct-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.ct-faq-q::-webkit-details-marker { display: none; }
.ct-faq-q h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1875rem, .6vw + 1rem, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .3s var(--ease-out);
}
.ct-faq-icon {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.ct-faq-icon::before,
.ct-faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--olive);
  transition: transform .4s var(--ease-out), background-color .3s var(--ease-out);
}
.ct-faq-icon::after { transform: rotate(90deg); }
.ct-faq-item[open] .ct-faq-icon { background: var(--olive); border-color: var(--olive); }
.ct-faq-item[open] .ct-faq-icon::before,
.ct-faq-item[open] .ct-faq-icon::after { background: #fff; }
.ct-faq-item[open] .ct-faq-icon::after { transform: rotate(0deg); }
.ct-faq-q:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
@media (hover: hover) {
  .ct-faq-q:hover h3 { color: var(--olive); }
  .ct-faq-q:hover .ct-faq-icon { border-color: var(--olive); }
}
.ct-faq-a { padding: 0 60px 28px 0; }
.ct-faq-a p {
  margin: 0;
  max-width: 62ch;
  font-size: 0.96875rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.ct-faq-a .ct-link { color: var(--olive); }
.ct-faq-item[open] .ct-faq-a { animation: ct-faq-in .5s var(--ease-out); }
@keyframes ct-faq-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 960px) {
  .ct-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-faq-head { position: static; }
}
@media (max-width: 640px) {
  .ct-faq-q { padding: 20px 0; gap: 16px; }
  .ct-faq-icon { flex-basis: 32px; width: 32px; height: 32px; }
  .ct-faq-a { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-faq-item[open] .ct-faq-a { animation: none; }
}
