/* =========================================================
   CALBRA SOURCING — sections
   Layouts adapted from the supplied references, rebuilt in
   the Calbra palette and the rounded UI-kit language.
   ========================================================= */

/* =========================================================
   HERO
   Left copy + CTA · right floating cards · stats row
   ========================================================= */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 0; }

.hero__grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em { font-style: normal; color: var(--clay); }
.hero .lead { margin-bottom: 2rem; }

.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__note { font-size: .86rem; color: var(--muted); margin-top: 1.1rem; }

/* hero visual — photographed property, framed like the UI-kit cards
   Photo: Samuel Regan-Asante on Unsplash (Highbury, London),
   free under the Unsplash License. Swap for a local file in
   assets/ before going live so the page has no external
   dependency. */
.hero__visual { position: relative; }

.blob {
  position: absolute; z-index: 0;
  top: -6%; right: -8%;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(201,162,95,.5), rgba(139,94,60,.24) 55%, transparent 72%);
  filter: blur(8px);
}
.blob--sm {
  width: 170px; height: 170px; top: auto; right: auto;
  bottom: -5%; left: -6%;
  background: radial-gradient(circle at 40% 40%, rgba(139,94,60,.42), rgba(201,162,95,.22) 60%, transparent 76%);
}

.hero__photo {
  position: relative; z-index: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: var(--alt);                 /* fallback while the image loads */
  box-shadow: var(--shadow-lg);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}

/* warm wash ties the photograph to the oxblood palette */
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(37,5,5,0) 42%, rgba(37,5,5,.62) 100%),
    linear-gradient(140deg, rgba(139,94,60,.16), rgba(37,5,5,.08));
  pointer-events: none;
}

/* one floating detail keeps the depth of the reference layout */
.hero__tag {
  position: absolute; z-index: 2;
  left: clamp(1rem, 3vw, 1.6rem); right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  display: flex; align-items: center; gap: .85rem;
  background: rgba(246,242,236,.92);
  backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  padding: .9rem 1.1rem;
  box-shadow: var(--shadow-md);
}
.hero__tag-ico {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--gold);
  display: grid; place-items: center; flex: 0 0 auto;
}
.hero__tag-l { font-size: .75rem; color: var(--muted); line-height: 1.3; }
.hero__tag-v { font-size: .95rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.hero__tag-pill {
  margin-left: auto; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--clay-tint); color: var(--clay-deep);
  border-radius: var(--r-pill); padding: .32rem .7rem;
  font-size: .74rem; font-weight: 500; white-space: nowrap;
}

/* stats row */
.hero__stats {
  margin-top: clamp(2.2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 3vw, 2.2rem);
  display: flex; gap: clamp(1.4rem, 6vw, 5rem); flex-wrap: wrap; justify-content: center;
}
.stat { display: flex; align-items: center; gap: .85rem; }
.stat__ico {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--gold);
  display: grid; place-items: center; flex: 0 0 auto;
}
.stat__n { font-size: 1.1rem; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.stat__l { font-size: .82rem; color: var(--muted); }

/* =========================================================
   PROCESS  (ref: How We Work)
   Rounded panel · centred title · centre spine · alternating rows
   ========================================================= */
.panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3.4rem);
  box-shadow: var(--shadow-md);
}
.panel__head { text-align: center; max-width: 56ch; margin: 0 auto clamp(2rem, 4vw, 3.2rem); }
.panel__head p { color: var(--muted); margin-top: 1rem; font-size: 1rem; }

.spine { position: relative; }
.spine::before {
  content: ""; position: absolute; left: 50%; top: 16px; bottom: 16px;
  width: 1px; background: var(--line); transform: translateX(-50%);
}

/* consistent markup on every row: media · node · copy */
.spine-row {
  display: grid; grid-template-columns: 1fr 42px 1fr;
  align-items: center; gap: clamp(.8rem, 3vw, 2.4rem);
  padding: 1.15rem clamp(.6rem, 2vw, 1.6rem);
  border-radius: var(--r-lg);
  transition: background .25s ease;
}
.spine-row:hover { background: var(--alt); }

/* every child is pinned to row 1 — without this, explicitly placing
   the media in column 3 on flipped rows pushes the copy onto a new
   grid row, because auto-placement only moves forward */
.spine-media { display: flex; align-items: center; gap: 1rem; grid-column: 1; grid-row: 1; justify-content: flex-end; }
.spine-node {
  grid-column: 2; grid-row: 1;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line);
  margin: 0 auto; position: relative; z-index: 2;
  transition: background .25s ease, border-color .25s ease;
}
.spine-row:hover .spine-node { border-color: var(--clay); background: var(--clay); }
.spine-copy { grid-column: 3; grid-row: 1; text-align: left; }

/* flipped rows: copy on the left, media on the right */
.spine-row--flip .spine-media { grid-column: 3; grid-row: 1; justify-content: flex-start; }
.spine-row--flip .spine-copy  { grid-column: 1; grid-row: 1; text-align: right; }
.spine-row--flip .spine-copy p { margin-left: auto; }

.spine-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--alt); color: var(--ink);
  display: grid; place-items: center; flex: 0 0 auto;
  transition: background .25s ease, color .25s ease;
}
.spine-row:hover .spine-icon { background: var(--ink); color: var(--gold); }
.spine-no { font-size: .78rem; color: var(--muted); font-weight: 500; flex: 0 0 auto; }
.spine-copy h3 { margin-bottom: .25rem; }
.spine-copy p { font-size: .9rem; color: var(--muted); max-width: 34ch; }

/* =========================================================
   BENEFITS  (ref: When people do work with us)
   ========================================================= */
.benefits__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.benefits__head h2 { max-width: 18ch; }

.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 2.5vw, 2rem); }
.benefit {
  padding: 1.6rem 1.5rem; border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.benefit__ico { color: var(--clay); margin-bottom: 1rem; }
.benefit h3 { margin-bottom: .4rem; }
.benefit p { font-size: .9rem; color: var(--muted); }

/* =========================================================
   COVERAGE
   ========================================================= */
.coverage__head { max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.coverage__head p { color: var(--muted); margin-top: 1rem; }
.coverage-group + .coverage-group { margin-top: 2rem; }
.coverage-group h3 {
  font-size: .95rem; color: var(--clay); margin-bottom: .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.coverage-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  background: var(--alt); border: 0; border-radius: var(--r-pill);
  padding: .5rem 1rem; font-size: .86rem; color: var(--ink);
  font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background .2s ease, color .2s ease, transform .18s ease;
}
.chip::after {
  content: ""; width: 6px; height: 6px; flex: 0 0 auto;
  border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: 0; margin-left: -.4rem;
  transition: opacity .2s ease, margin-left .2s ease;
}
.chip:hover::after, .chip:focus-visible::after { opacity: .75; margin-left: 0; }
.chip:hover { transform: translateY(-1px); }
.chip:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.chip:hover { background: var(--clay); color: #fff; }
.chip--soft { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.chip--soft:hover { background: transparent; color: var(--ink); border-color: var(--clay); }

/* =========================================================
   ARRANGEMENT  (ref: Our Values)
   ========================================================= */
.values { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1.8rem, 5vw, 4.5rem); align-items: start; }
.values__head h2 { max-width: 9ch; font-size: clamp(2.1rem, 5vw, 3.9rem); }
.values__head p { margin-top: 1.4rem; }
.values__foot { margin-top: 2.2rem; font-size: .8rem; color: var(--muted); }

.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 2vw, 1.6rem); }
.value {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 1.5rem 1.5rem 1.3rem;
  display: flex; flex-direction: column; min-height: 250px;
  box-shadow: var(--shadow-sm);
}
.value__ico { color: var(--ink); margin-bottom: auto; }
.value p { font-size: .92rem; color: var(--ink); margin-bottom: 1rem; }
.value__rule { height: 1px; background: var(--clay); opacity: .35; margin-bottom: .8rem; }
.value h3 { font-size: 1rem; }

/* =========================================================
   FAQ  (ref: Common Questions)
   Button-driven so the drawer can animate open and shut
   ========================================================= */
.faq-zone {
  background: radial-gradient(90% 60% at 50% 0%, #43201a 0%, var(--ink) 45%, #170303 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.faq-panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--alt) 100%);
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 5vw, 3.6rem) clamp(1rem, 3.5vw, 3rem);
  box-shadow: var(--shadow-lg);
}
.faq-list { display: grid; gap: .8rem; max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--alt); border: 1px solid transparent;
  border-radius: var(--r-lg);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.faq-item.is-open {
  background: var(--surface); border-color: var(--clay-tint);
  box-shadow: var(--shadow-md);
}

.faq-head {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.2rem; text-align: left;
  font-size: .99rem; font-weight: 500; letter-spacing: -.01em;
  color: var(--ink); line-height: 1.35;
  border-radius: var(--r-lg);
}
.faq-head:focus-visible { outline: 2px solid var(--clay); outline-offset: -3px; }
.faq-no { font-size: .8rem; color: var(--muted); flex: 0 0 auto; width: 14px; }
.faq-q { flex: 1 1 auto; }
.faq-sign {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.faq-item.is-open .faq-sign { transform: rotate(45deg); background: var(--clay-tint); color: var(--clay-deep); }

/* smooth open / close */
.faq-drawer {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.4, 0, .2, 1);
}
.faq-item.is-open .faq-drawer { grid-template-rows: 1fr; }
.faq-drawer > div { overflow: hidden; }
.faq-body { padding: 0 3.2rem 1.3rem 2.2rem; }
.faq-body p { font-size: .92rem; color: var(--muted); }
.faq-body p + p { margin-top: .7rem; }

.faq-foot { text-align: center; margin-top: 2.2rem; font-size: .9rem; color: var(--muted); }
.faq-foot a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   FORM  (ref: Discuss your needs)
   ========================================================= */
.form-zone {
  background: var(--alt);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 5vw, 3.6rem) clamp(1.2rem, 4vw, 3.4rem);
}
.form-shell { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
.form-intro h2 { max-width: 13ch; }
.form-intro h2 b { color: var(--clay); font-weight: 600; }
.form-intro .lead { margin-top: 1.1rem; }

.contact-row { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; }
a.contact-row { transition: transform .2s ease; }
a.contact-row:hover { transform: translateX(3px); }
a.contact-row:hover .contact-row__v { color: var(--clay); }
.contact-row__ico {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--clay); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
/* spans are used inside the link variant, so force block flow */
.contact-row__l { display: block; font-size: .78rem; color: var(--muted); }
.contact-row__v { display: block; font-size: .95rem; font-weight: 500; word-break: break-word; transition: color .2s ease; }

.form-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md);
}
.form-card__step { font-size: .78rem; color: var(--muted); margin-bottom: 1.2rem; }
.form-card__step b { color: var(--clay); font-weight: 600; }
.form-card__sub { font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; }

/* the card holds three panels: step 1, step 2, and the closing note */
.form-step { display: none; }
.form-step.is-active { display: block; }

/* confirmation that the lead is already safely captured, so step 2
   reads as optional rather than as another gate */
.form-note {
  display: flex; align-items: flex-start; gap: .6rem;
  background: var(--clay-tint); color: var(--clay-deep);
  border-radius: var(--r-sm); padding: .8rem .9rem;
  font-size: .86rem; line-height: 1.45; margin-bottom: 1.1rem;
}
.form-note__tick {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  background: var(--clay); color: #fff;
  display: grid; place-items: center; margin-top: .05rem;
}

.form-skip {
  display: block; width: 100%; margin-top: .9rem;
  background: none; border: 0; cursor: pointer;
  font-size: .82rem; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.form-skip:hover { color: var(--ink); }

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; padding: .88rem .95rem;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--alt); color: var(--ink);
  font: inherit; font-size: 16px;      /* 16px stops iOS zooming on focus */
  transition: border-color .18s ease, background .18s ease;
}
.field input::placeholder { color: #a89b8e; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--clay); background: var(--surface);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: .4rem 0 1.2rem; }
.consent input { margin-top: .25rem; flex: 0 0 auto; }
/* ---------- form validation & sending states ---------- */
.field.has-error input,
.field.has-error select {
  border-color: var(--error);
  background: #fdf6f4;
}
.field.has-error label { color: var(--error); }
.field__error {
  margin-top: .35rem;
  font-size: .78rem; line-height: 1.45;
  color: var(--error);
  display: flex; align-items: flex-start; gap: .35rem;
}
.field__error::before {
  content: "!";
  flex: 0 0 auto;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--error); color: #fff;
  font-size: .62rem; font-weight: 700; line-height: 14px;
  text-align: center; margin-top: .12rem;
}

.form-alert {
  background: #fdf1ee;
  border-left: 3px solid var(--error);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  font-size: .86rem; line-height: 1.55; color: #7c3324;
}
.form-alert a { color: var(--error); text-decoration: underline; text-underline-offset: 2px; }

.btn.is-busy { opacity: .72; cursor: progress; }
.btn:disabled { pointer-events: none; }

.form-fine { font-size: .76rem; color: var(--muted); margin-top: .9rem; }
.form-fine a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }

.form-done { text-align: center; padding: 1.2rem .5rem; }
.form-done__tick {
  width: 56px; height: 56px; margin: 0 auto 1.1rem; border-radius: 50%;
  background: var(--clay); color: #fff; display: grid; place-items: center;
}
.form-done h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.form-done p { font-size: .92rem; color: var(--muted); margin-bottom: 1.4rem; }

/* =========================================================
   RESPONSIVE — consolidated
   ========================================================= */

/* tablet */
@media (max-width: 980px) {
  .values { grid-template-columns: 1fr; }
  .values__head h2 { max-width: none; }
  .form-shell { grid-template-columns: 1fr; }
  .form-intro h2 { max-width: none; }
}

/* hero collapses to a single column.
   On a narrow screen the caption card covered most of the
   photograph, so it drops out of the frame and tucks under the
   bottom edge instead — the picture stays a picture. */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: 2; max-width: 560px; width: 100%; }

  .hero__photo {
    aspect-ratio: auto;
    overflow: visible;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding-bottom: 2.4rem;      /* room for the card to sit into */
  }
  .hero__photo img {
    height: clamp(260px, 46vh, 400px);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    object-position: center 45%;
  }
  .hero__photo::after { display: none; }

  .hero__tag {
    position: static;
    margin: -3.2rem 1.1rem 0;
    left: auto; right: auto; bottom: auto;
  }

  .blob { display: none; }
  .hero__stats { justify-content: flex-start; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* spine becomes a single left-aligned column */
@media (max-width: 820px) {
  .spine::before { left: 25px; transform: none; }
  .spine-row {
    grid-template-columns: 52px 1fr;
    gap: 1rem; padding: 1rem .4rem;
    align-items: flex-start;
  }
  .spine-media,
  .spine-row--flip .spine-media { grid-column: 1; grid-row: 1; justify-content: flex-start; gap: .5rem; }
  .spine-copy,
  .spine-row--flip .spine-copy { grid-column: 2; grid-row: 1; text-align: left; }
  .spine-row--flip .spine-copy p { margin-left: 0; }
  .spine-copy p { max-width: none; }
  .spine-node { display: none; }
  .spine-no { display: none; }
  .spine-icon { width: 50px; height: 50px; }
}

@media (max-width: 760px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit { padding: 1.3rem 1.2rem; }
  .benefits__head { align-items: flex-start; }
  .benefits__head h2 { max-width: none; }
  .benefits__head .btn { width: 100%; }
}

@media (max-width: 620px) {
  .value-grid { grid-template-columns: 1fr; }
  .value { min-height: 0; padding: 1.3rem 1.3rem 1.2rem; }
  .faq-head { padding: 1rem .95rem; gap: .7rem; font-size: .94rem; }
  .faq-body { padding: 0 1.1rem 1.2rem 1.9rem; }
  .faq-sign { width: 30px; height: 30px; }
  .hero__stats { flex-direction: column; gap: 1.1rem; align-items: flex-start; }
  .stat { width: 100%; }
}

@media (max-width: 460px) {
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__photo img { height: clamp(230px, 38vh, 320px); }
  .hero__tag { padding: .85rem .9rem; gap: .7rem; margin: -2.8rem .8rem 0; }
  .chips { gap: .4rem; }
  .chip { padding: .45rem .85rem; font-size: .82rem; }
  .form-done h3 { font-size: 1.15rem; }
}

/* ---------- reviews ----------
   The section hides itself until there is data; these are live. */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.9rem, 2vw, 1.4rem); margin-top: 1.8rem; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.4rem; display: flex; flex-direction: column; }
.review__stars { color: var(--gold); margin-bottom: .8rem; }
.review p { font-size: .94rem; color: var(--ink); line-height: 1.6; }
.review__who { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.review__stars svg { vertical-align: -2px; }
@media (max-width: 880px) { .reviews-grid { grid-template-columns: 1fr; } }
