/* ============================================================
   Akin Complete Furniture — Request Pricing (restructured)
   Brand assets pulled from the live buyakin-sass theme:
   Caslon Graphique display, Bariol body, Akin red #E23B3F
   ============================================================ */

@font-face {
  font-family: 'Bariol';
  src: url('assets/fonts/Bariol-Regular.woff2') format('woff2'),
       url('assets/fonts/Bariol-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'CaslonGrad';
  src: url('assets/fonts/CaslonGrad.woff2') format('woff2'),
       url('assets/fonts/CaslonGraD.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --font-display: 'CaslonGrad', 'Playfair Display', Georgia, serif;
  --font-body: 'Bariol', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --red: #e23b3f;
  --red-dark: #c82d31;
  --red-tint: #fdf1f1;
  --ink: #2b2b2b;
  --ink-strong: #0a0a0a;
  --muted: #6d6d6d;
  --faint: #9a9a9a;
  --bg: #f4f2f0;
  --surface: #ffffff;
  --surface-2: #faf8f7;
  --line: #e2ddd9;
  --line-strong: #cfc8c2;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem; --s10: 2.5rem;
  --s12: 3rem; --s16: 4rem; --s20: 5rem;

  --r-sm: 3px; --r-md: 5px; --r-lg: 8px;
  --tr: 170ms cubic-bezier(.16,1,.3,1);
  --shadow: 0 1px 2px rgba(20,14,10,.04), 0 8px 24px rgba(20,14,10,.06);
  --shadow-lg: 0 2px 4px rgba(20,14,10,.05), 0 18px 48px rgba(20,14,10,.10);
  --wrap: 1180px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-size-adjust: none; scroll-behavior: smooth; scroll-padding-top: 90px;
}
body {
  font-family: var(--font-body); font-size: var(--text-base);
  line-height: 1.6; color: var(--ink); background: var(--bg);
  min-height: 100dvh;
}
img, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }
h1,h2,h3 { line-height: 1.12; text-wrap: balance; font-weight: 400; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: var(--r-sm); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink-strong); color: #fff; padding: var(--s3) var(--s5);
}
.skip:focus { left: var(--s4); top: var(--s4); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s6); }

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}

/* ---------------- header ---------------- */
.utility { background: var(--red); color: #fff; }
.utility__in {
  display: flex; align-items: center; gap: var(--s5);
  min-height: 34px; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: .1em;
}
.utility__item { color: #fff; display: inline-flex; align-items: center; gap: var(--s2); }
.utility__item:hover { color: #fff; opacity: .78; text-decoration: none; }
.utility__sep { flex: 1; }
.utility img { border: 1px solid rgba(255,255,255,.5); }

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: var(--s8); min-height: 76px; }
.nav__logo { margin-right: auto; }
.nav__logo img { width: 120px; height: auto; }
.nav__links { display: flex; gap: var(--s6); }
.nav__links a {
  color: var(--ink); font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: .12em; padding-block: var(--s2);
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--red); text-decoration: none; }
.nav__links a.is-current { color: var(--red); border-bottom-color: var(--red); }
.nav__cta { flex: none; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; padding: var(--s4) var(--s8);
  font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .12em;
  border-radius: var(--r-sm); transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}
.btn:hover { background: var(--red-dark); color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(226,59,63,.28); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: var(--s2) var(--s4); font-size: var(--text-xs); }
.linkish {
  color: var(--muted); font-size: var(--text-sm); text-decoration: underline;
  text-underline-offset: 3px; padding: var(--s2) 0;
}
.linkish:hover { color: var(--ink-strong); }

/* ---------------- hero ---------------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero__in { padding-block: clamp(var(--s12), 7vw, var(--s20)) var(--s12); max-width: 900px; }
.eyebrow {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .18em;
  color: var(--red); margin-bottom: var(--s5);
}
.hero__h1 { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--ink-strong); }
.hero__sub {
  margin-top: var(--s6); font-size: var(--text-lg); color: var(--muted);
  max-width: 62ch; line-height: 1.5;
}
.hero__facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s8);
  margin-top: var(--s10); padding-top: var(--s6); border-top: 1px solid var(--line);
  font-size: var(--text-sm); color: var(--muted);
}
.hero__facts strong { color: var(--ink-strong); font-weight: 400; }
.hero__facts li { display: flex; gap: var(--s2); }

/* ---------------- intent cards ---------------- */
.intent { padding-block: var(--s12); }
.intent__grid {
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.card--intent {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2);
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s6);
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.card--intent:hover {
  border-color: var(--red); transform: translateY(-3px);
  box-shadow: var(--shadow); text-decoration: none;
}
.card__title {
  font-family: var(--font-display); font-size: var(--text-lg);
  color: var(--ink-strong);
}
.card__body { font-size: var(--text-sm); color: var(--muted); line-height: 1.5; }
.card__go {
  margin-top: auto; padding-top: var(--s4); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: .12em; color: var(--red);
}
.card--intent:hover .card__go span { display: inline-block; transform: translateX(3px); transition: transform var(--tr); }

/* ---------------- layout ---------------- */
.main { padding-bottom: var(--s20); }
.main__grid {
  display: grid; gap: var(--s8);
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
}
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: clamp(var(--s6), 3vw, var(--s10));
}
.panel--form { box-shadow: var(--shadow-lg); }
.panel__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s6); padding-bottom: var(--s6); margin-bottom: var(--s8);
  border-bottom: 1px solid var(--line);
}
.panel__title { font-family: var(--font-display); font-size: var(--text-xl); color: var(--ink-strong); }
.panel__title--sm { font-size: var(--text-lg); }
.panel__sub { margin-top: var(--s2); font-size: var(--text-sm); color: var(--muted); }

.steps { display: flex; align-items: center; gap: var(--s2); flex: none; }
.steps__dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--faint); font-size: var(--text-xs);
  transition: all var(--tr);
}
.steps__dot.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.steps__line { width: 26px; height: 1px; background: var(--line-strong); }

/* ---------------- form ---------------- */
.step { display: none; }
.step.is-active { display: block; animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step__note {
  font-size: var(--text-sm); color: var(--muted); background: var(--surface-2);
  border-left: 2px solid var(--red); padding: var(--s4) var(--s5);
  margin-bottom: var(--s8); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.field { border: 0; margin-bottom: var(--s6); }
.row--2 { display: grid; gap: var(--s5); grid-template-columns: 1fr 1fr; }
.label {
  display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap;
  font-size: var(--text-sm); color: var(--ink-strong); margin-bottom: var(--s2);
}
.req, .opt {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em;
}
.req { color: var(--red); }
.opt { color: var(--faint); }
.hint { font-size: var(--text-xs); color: var(--faint); margin-top: var(--s2); }

input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=month], select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: var(--s3) var(--s4); font-size: var(--text-base);
  color: var(--ink-strong); transition: border-color var(--tr), box-shadow var(--tr);
}
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(226,59,63,.13);
}
textarea { resize: vertical; min-height: 96px; }
select {
  appearance: none; padding-right: var(--s10);
  background-image: url("data:image/svg+xml;charset=utf-8,%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' stroke='%236d6d6d' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s4) center;
}
.err {
  display: none; font-size: var(--text-xs); color: var(--red); margin-top: var(--s2);
}
.field.is-bad .err { display: block; }
.field.is-bad input, .field.is-bad select { border-color: var(--red); background: var(--red-tint); }
.field.is-bad .chip span { border-color: var(--red); background: var(--red-tint); }

/* segmented radio cards */
.segs { display: grid; gap: var(--s4); grid-template-columns: 1fr 1fr; }
.seg {
  position: relative; display: flex; flex-direction: column; gap: var(--s1);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: var(--s5); cursor: pointer;
  transition: border-color var(--tr), background var(--tr), box-shadow var(--tr);
}
.seg:hover { border-color: var(--faint); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__title { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink-strong); }
.seg__body { font-size: var(--text-xs); color: var(--muted); line-height: 1.45; }
.seg:has(input:checked) {
  border-color: var(--red); background: var(--red-tint);
  box-shadow: 0 0 0 1px var(--red) inset;
}
.seg:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; border: 1px solid var(--line-strong); border-radius: 100px;
  padding: var(--s2) var(--s5); font-size: var(--text-sm); color: var(--muted);
  transition: all var(--tr);
}
.chip:hover span { border-color: var(--faint); color: var(--ink); }
.chip input:checked + span {
  background: var(--ink-strong); border-color: var(--ink-strong); color: #fff;
}
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

/* live routing callout */
.routed {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4);
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm); padding: var(--s4) var(--s5); margin-bottom: var(--s6);
  animation: fade .3s ease both;
}
.routed__tag {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .12em; color: var(--red);
}
.routed__name { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink-strong); }
.routed__terr { font-size: var(--text-xs); color: var(--muted); }

.assure {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: var(--s5); margin-bottom: var(--s6);
}
.assure p { font-size: var(--text-sm); color: var(--muted); line-height: 1.55; }
.assure strong { color: var(--ink-strong); font-weight: 400; }

.actions { display: flex; align-items: center; gap: var(--s6); flex-wrap: wrap; }

/* success */
.done { text-align: center; padding-block: var(--s6) var(--s4); animation: fade .35s ease both; }
.done__mark {
  width: 54px; height: 54px; margin: 0 auto var(--s6); border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center;
}
.done__mark svg { width: 26px; height: 26px; }
.done__h { font-family: var(--font-display); font-size: var(--text-xl); color: var(--ink-strong); }
.done__p { margin: var(--s4) auto 0; max-width: 46ch; color: var(--muted); font-size: var(--text-sm); }
.done__rep {
  margin: var(--s8) auto; max-width: 420px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5);
  background: var(--surface-2);
}

/* ---------------- rep finder ---------------- */
.side { display: grid; gap: var(--s4); position: sticky; top: 100px; }
.panel--rep .field:last-of-type { margin-bottom: var(--s5); }
.repout { border-top: 1px solid var(--line); padding-top: var(--s5); }
.repout__empty { font-size: var(--text-sm); color: var(--faint); }
.repcard { display: flex; gap: var(--s4); animation: fade .3s ease both; }
.repcard + .repcard { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px dashed var(--line); }
.repcard__ini {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink-strong); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-size: var(--text-sm);
}
.repcard__name { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink-strong); }
.repcard__meta { font-size: var(--text-xs); color: var(--faint); margin-top: 2px; }
.repcard__lines { margin-top: var(--s3); display: grid; gap: 2px; font-size: var(--text-sm); }
.repcard__lines a { overflow-wrap: anywhere; }
.repcard__ask {
  margin-top: var(--s3); font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: .1em; color: var(--red); text-decoration: underline;
  text-underline-offset: 3px; padding: var(--s1) 0; text-align: left;
}
.repcard__ask:hover { color: var(--red-dark); }
.repnote { font-size: var(--text-xs); color: var(--faint); margin-bottom: var(--s4); }

.panel--now { background: var(--ink-strong); border-color: var(--ink-strong); }
.panel--now .panel__title { color: #fff; }
.contactlist { list-style: none; margin-top: var(--s5); display: grid; gap: var(--s3); }
.contactlist li {
  display: grid; grid-template-columns: 96px 1fr; gap: var(--s3);
  font-size: var(--text-sm); color: #e8e4e1;
  padding-bottom: var(--s3); border-bottom: 1px solid rgba(255,255,255,.1);
}
.contactlist li:last-child { border-bottom: 0; padding-bottom: 0; }
.contactlist__k {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5); padding-top: 3px;
}
.contactlist a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contactlist a:hover { color: var(--red); }

/* ---------------- footer ---------------- */
.foot { background: var(--red); color: #fff; padding-block: var(--s12) var(--s6); }
.foot__in {
  display: grid; gap: var(--s8);
  grid-template-columns: auto 1fr auto; align-items: start;
}
.foot__logo { width: 160px; filter: brightness(0) invert(1); }
.foot__nav { display: grid; gap: var(--s2); }
.foot__nav a, .foot__addr a { color: #fff; font-size: var(--text-sm); }
.foot__nav a:hover, .foot__addr a:hover { opacity: .8; color: #fff; }
.foot__addr { font-size: var(--text-sm); display: grid; gap: var(--s4); text-align: right; }
.foot__legal {
  max-width: var(--wrap); margin: var(--s10) auto 0; padding: var(--s5) var(--s6) 0;
  border-top: 1px solid rgba(255,255,255,.25); font-size: var(--text-xs); color: rgba(255,255,255,.75);
}

/* ---------------- mobile sticky ---------------- */
.mbar { display: none; }

/* ---------------- review notes ---------------- */
.notesbtn {
  position: fixed; right: var(--s5); bottom: var(--s5); z-index: 60;
  background: var(--ink-strong); color: #fff; border-radius: 100px;
  padding: var(--s3) var(--s6); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: .12em; box-shadow: var(--shadow-lg);
}
.notesbtn { opacity: .82; transition: opacity .2s ease, background .2s ease; }
.notesbtn:hover, .notesbtn:focus-visible { background: var(--red); opacity: 1; }
.notes {
  position: fixed; right: var(--s5); bottom: calc(var(--s5) + 52px); z-index: 61;
  width: min(430px, calc(100vw - 2.5rem)); max-height: min(70vh, 640px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: var(--s6);
}
.notes__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.notes__head h2 { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink-strong); }
.notes__head button { font-size: 1.5rem; line-height: 1; color: var(--faint); }
.notes__head button:hover { color: var(--ink-strong); }
.notes__list { display: grid; gap: var(--s4); padding-left: var(--s5); font-size: var(--text-sm); color: var(--muted); }
.notes__list strong { color: var(--ink-strong); font-weight: 400; }
.notes__list li::marker { color: var(--red); }
.notes__foot {
  margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line);
  font-size: var(--text-xs); color: var(--faint);
}

/* ============ responsive ============ */
@media (max-width: 1060px) {
  .intent__grid { grid-template-columns: 1fr 1fr; }
  .main__grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .nav__links { display: none; }
}
@media (max-width: 720px) {
  .utility__in { min-height: 30px; gap: var(--s4); overflow-x: auto; }
  .utility__item:nth-child(n+4) { display: none; }
  .nav__in { min-height: 62px; }
  .hero__in { padding-block: var(--s10) var(--s8); }
  .hero__facts { gap: var(--s2) var(--s5); margin-top: var(--s6); }
  .intent { padding-block: var(--s8); }
  .intent__grid { grid-template-columns: 1fr; }
  .card--intent { padding: var(--s5); }
  .card__go { padding-top: var(--s2); }
  .panel { padding: var(--s5); }
  .panel__head { flex-direction: column-reverse; align-items: flex-start; gap: var(--s4); }
  .row--2, .segs { grid-template-columns: 1fr; }
  .main { padding-bottom: 96px; }
  .actions { flex-direction: column; align-items: stretch; gap: var(--s3); }
  .actions .btn { width: 100%; }
  .actions .linkish { text-align: center; }
  .foot { padding-bottom: 84px; }
  .foot__in { grid-template-columns: 1fr; gap: var(--s6); }
  .foot__addr { text-align: left; }
  .contactlist li { grid-template-columns: 1fr; gap: 2px; }
  .notesbtn { bottom: 76px; right: var(--s4); padding: var(--s2) var(--s4); letter-spacing: .08em; }
  .notes { bottom: calc(76px + 52px); right: var(--s4); }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; inset: auto 0 0 0; z-index: 50;
    background: var(--line-strong); border-top: 1px solid var(--line-strong);
  }
  .mbar__call, .mbar__cta {
    padding: var(--s4); text-align: center; font-size: var(--text-xs);
    text-transform: uppercase; letter-spacing: .1em;
  }
  .mbar__call { background: var(--ink-strong); color: #fff; }
  .mbar__call:hover { color: #fff; text-decoration: none; }
  .mbar__cta { background: var(--red); color: #fff; }
}
