/*
 * Layout primitives.
 *
 * The homepage design system (style.css) supplies its own section shells, but
 * the listing, single, transfers and contact templates were built against a
 * container/grid/button layer that lived in the previous stylesheet. This
 * restores that layer on the current brand tokens.
 */

/* ---- Motion tokens ------------------------------------------------------
   One rhythm for the whole theme. Enter is unhurried, exit is ~68% of it so
   the interface still feels responsive when the pointer leaves. Elevation is
   a fixed three-step scale, not per-component guesswork. */

:root {
  --st-ease:      cubic-bezier(.22, .61, .36, 1);
  --st-ease-soft: cubic-bezier(.33, 1, .68, 1);

  --st-dur-in:  280ms;
  --st-dur-out: 190ms;
  --st-dur-slow: 460ms;

  /* Elevation scale — layered and low-opacity, never one heavy blur. */
  --st-elev-0: 0 1px 2px rgba(35, 31, 32, .04);
  --st-elev-1: 0 1px 2px rgba(35, 31, 32, .045),
               0 8px 20px -16px rgba(35, 31, 32, .20);
  --st-elev-2: 0 2px 4px rgba(35, 31, 32, .05),
               0 16px 34px -22px rgba(35, 31, 32, .24);
}

/* ---- Container & section ------------------------------------------------ */

.st-container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4.4vw, 60px);
}

.st-section { padding-block: clamp(48px, 6vw, 88px); }

/* ---- Grid --------------------------------------------------------------- */

.st-row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -14px;
}

.st-col {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 14px;
}

.st-col-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
.st-col-3  { flex: 0 0 25%;      max-width: 25%; }
.st-col-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.st-col-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
.st-col-6  { flex: 0 0 50%;      max-width: 50%; }
.st-col-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
.st-col-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
.st-col-9  { flex: 0 0 75%;      max-width: 75%; }
.st-col-12 { flex: 0 0 100%;     max-width: 100%; }

@media (max-width: 900px) {
  .st-col-2, .st-col-3, .st-col-4, .st-col-5,
  .st-col-6, .st-col-7, .st-col-8, .st-col-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ---- Buttons ------------------------------------------------------------ */

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}

.st-btn:focus-visible {
  outline: 2px solid var(--bronze, #b7833f);
  outline-offset: 2px;
}

.st-btn--primary { background: var(--key-black, #231f20); color: #fff; }
.st-btn--primary:hover { background: var(--bronze, #b7833f); color: #fff; transform: translateY(-1px); }

.st-btn--outline {
  background: transparent;
  color: var(--ink, #231f20);
  border-color: rgba(35, 31, 32, .28);
}
.st-btn--outline:hover { border-color: var(--bronze, #b7833f); color: var(--bronze, #b7833f); }

.st-btn--success { background: #3f7a34; color: #fff; }
.st-btn--success:hover { background: #35682c; color: #fff; transform: translateY(-1px); }

/* ---- Headings ----------------------------------------------------------- */

.st-heading {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 14px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.026em;
  color: var(--ink, #231f20);
}

.st-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 2px;
  background: var(--gold-sweep, linear-gradient(115deg, #a2702f, #b7833f 45%, #f7eb9b));
}

.st-heading--centred { text-align: center; }
.st-heading--centred::after { left: 50%; transform: translateX(-50%); }

/* ---- Figures / placeholders --------------------------------------------- */

.st-figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-2, #f4ecdd);
}

.st-figure--4x3  { aspect-ratio: 4 / 3; }
.st-figure--16x9 { aspect-ratio: 16 / 9; }

.st-figure::after {
  content: attr(data-st-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted, #7b6f64);
}

/* ---- Single listing layout ---------------------------------------------- */

.st-single__row { align-items: flex-start; }
.st-single__main { min-width: 0; }
.st-single__aside { min-width: 0; }

.st-price { margin: 0; }

.st-related { margin-top: 4px; }

.st-icon-phone {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  background: currentColor;
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11 10.2l-1.6 1.6a11 11 0 01-5.2-5.2L5.8 5 3.9 1H1a1 1 0 00-1 1 14 14 0 0014 14 1 1 0 001-1v-2.9L11 10.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11 10.2l-1.6 1.6a11 11 0 01-5.2-5.2L5.8 5 3.9 1H1a1 1 0 00-1 1 14 14 0 0014 14 1 1 0 001-1v-2.9L11 10.2z'/%3E%3C/svg%3E");
}

/* ---- Contact & wizard shells -------------------------------------------- */

.st-contact,
.st-wizard {
  background: var(--paper, #fbf8f1);
  padding-block: clamp(96px, 9vw, 132px) clamp(48px, 6vw, 84px);
}

.st-contact__row { margin-top: 30px; }

.st-contact__details {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--hairline, rgba(35, 31, 32, .12));
  border-radius: 18px;
}

.st-contact__form,
.st-wizard__form {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--hairline, rgba(35, 31, 32, .12));
  border-radius: 18px;
}

.st-contact__body { margin-top: 18px; }

.st-contact-list { list-style: none; margin: 0; padding: 0; }

.st-contact-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--muted, #7b6f64);
}

.st-contact-list strong { color: var(--ink, #231f20); font-weight: 700; }
.st-contact-list .st-meta { color: var(--muted, #7b6f64); font-size: .8rem; }

/* ---- Screen-reader helper (used by the wizard + newsletter) -------------- */

.screen-reader-text,
.st-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
