/* Kusnir Brick & Chimney: shared styles. Colors only through var(--…) from tokens.css. */

/* ---- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}
body {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
h1, h2, h3, .door__trade { text-wrap: balance; }
p, li, blockquote, figcaption { max-width: var(--measure); }
p { margin-bottom: var(--s-4); }
p:last-child { margin-bottom: 0; }
img { display: block; max-width: 100%; height: auto; }
a {
  color: var(--ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
  touch-action: manipulation;
  transition: color 150ms ease-out, border-color 150ms ease-out, background-color 150ms ease-out;
}
a:hover { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

h2 {
  font-family: Ultra, serif;
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.15;
  margin-bottom: var(--s-6);
}
h3 {
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.3;
  margin-bottom: var(--s-2);
}
.lead { font-size: var(--step-1); }
.tabular, .hic { font-variant-numeric: tabular-nums; }

/* ---- layout */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--s-16) 0; }
.section:not(.section-2) + .section:not(.section-2) { padding-top: 0; }
.section-2 { background: var(--paper-2); }
.two { display: grid; gap: var(--s-8); }
@media (min-width: 60rem) {
  .section { padding: var(--s-24) 0; }
  .two { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---- skip link */
.skip {
  position: absolute;
  top: 0;
  left: 0;
  padding: var(--s-3) var(--s-4);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-100%);
}
.skip:focus { transform: none; }

/* ---- header */
.top {
  position: relative;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
}
.wordmark {
  font-family: Ultra, serif;
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1;
  max-width: 9em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink-2); }
.topnav { display: none; }
.menu { position: static; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu__list {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: var(--s-4);
  padding: var(--s-4) var(--gutter) var(--s-6);
  background: var(--paper);
  border-bottom: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.menu__list a {
  display: block;
  padding: var(--s-3) 0;
  font-weight: 600;
  text-decoration: none;
}
@media (min-width: 60rem) {
  .wordmark { max-width: none; }
  .menu { display: none; }
  .topnav { display: flex; align-items: center; gap: var(--s-6); }
  .topnav a { font-weight: 600; text-decoration: none; }
}

/* ---- buttons: two styles only */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: var(--s-3) var(--s-6);
  font-family: Archivo, sans-serif;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.3;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  touch-action: manipulation;
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.btn-primary { background: var(--shade); border-color: var(--shade); color: var(--letter); }
.btn-primary:hover, .btn-primary:active { background: var(--shade-2); border-color: var(--shade-2); color: var(--letter); }
.btn-secondary { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover, .btn-secondary:active { border-color: var(--ink-2); color: var(--ink-2); }
.door .btn-secondary { background: transparent; border-color: var(--letter); color: var(--letter); }
.door .btn-secondary:hover, .door .btn-secondary:active { border-color: var(--letter-2); color: var(--letter-2); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.actions .btn { flex: 1 1 100%; }
main .btn[href^="tel:"], main .btn[href^="sms:"] { display: none; }
@media (min-width: 40rem) {
  .actions .btn { flex: 0 0 auto; }
}
@media (min-width: 60rem) {
  main .btn[href^="tel:"], main .btn[href^="sms:"] { display: inline-flex; }
}

/* ---- the door band (hero and contact band) */
.door {
  --ring: var(--letter);
  background: var(--door);
  color: var(--letter);
  padding: var(--s-12) 0;
}
.door h2 { color: var(--letter); }
.door__name {
  font-family: Ultra, serif;
  font-weight: 400;
  font-size: var(--step-5);
  line-height: 1;
  margin-bottom: var(--s-4);
  text-shadow: 0.06em 0.06em 0 var(--shade);
}
.door__trade {
  font-weight: 600;
  font-stretch: 75%;
  font-size: var(--step-3);
  line-height: 1.15;
  margin-bottom: var(--s-6);
}
.door__phone { margin-bottom: var(--s-4); }
.door__phone a {
  font-family: Ultra, serif;
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1;
  color: var(--letter);
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.door__phone a:hover { color: var(--letter-2); }
@media (max-width: 22.5rem) {
  .door__phone a { font-size: var(--step-3); }
}
.door__area { color: var(--letter-2); margin-bottom: var(--s-2); }
.hic { font-weight: 600; font-size: var(--step--1); }
.door .hic { color: var(--letter-2); margin-bottom: 0; }
.door--contact { padding: var(--s-16) 0; }
@media (min-width: 60rem) {
  .door { padding: var(--s-16) 0; }
  .door--contact { padding: var(--s-24) 0; }
  .door .hic { margin-bottom: var(--s-8); }
  .door .hic:last-child { margin-bottom: 0; }
}

/* the one scroll moment: the drop shade slides out as the lockup scrolls away (home page only) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .door__name {
      animation: shade-slide linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}
@keyframes shade-slide {
  to { text-shadow: 0.16em 0.12em 0 var(--shade); }
}

/* ---- contact band */
.contact__phone { margin-bottom: var(--s-2); }
.contact__phone a {
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--letter);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.contact__phone a:hover { color: var(--letter-2); }
.contact__text { margin-bottom: var(--s-6); }
.contact__text a { color: var(--letter); }
.contact__text a:hover { color: var(--letter-2); }
.contact__meta { color: var(--letter-2); margin-bottom: var(--s-4); font-variant-numeric: tabular-nums; }
.contact__meta:last-child { margin-bottom: 0; }

/* ---- reviews */
.rating { margin-bottom: var(--s-8); }
.review { margin-bottom: var(--s-8); }
.review:last-child { margin-bottom: 0; }
.review figcaption {
  margin-top: var(--s-2);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* ---- services on the home page */
.service { margin-bottom: var(--s-8); }
.service:last-child { margin-bottom: 0; }
@media (min-width: 60rem) {
  .two .service { margin-bottom: 0; }
}

/* ---- work grid */
.work { display: grid; gap: var(--s-8); margin-bottom: var(--s-8); }
.work figcaption { margin-top: var(--s-2); font-size: var(--step--1); color: var(--ink-2); }
@media (min-width: 60rem) {
  .work { grid-template-columns: 1fr 1fr; }
}

/* ---- slots: where the real owner's photo, truck, crew and PA number go */
.slot {
  display: flex;
  flex-direction: column;
  padding: var(--s-4);
  border: 2px dashed var(--slot-frame);
  border-radius: var(--radius);
  background: var(--paper);
}
.slot--portrait { aspect-ratio: 4 / 5; max-width: 24rem; }
.slot--wide { aspect-ratio: 3 / 2; }
.slot--photo { aspect-ratio: 4 / 3; }
.slot__sign {
  font-family: Ultra, serif;
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--ink);
}
.slot__tag { font-weight: 600; font-size: var(--step--1); color: var(--ink-2); }
.slot__label { margin-top: auto; margin-bottom: 0; font-size: var(--step--1); color: var(--ink-2); }
.slot--split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; aspect-ratio: 4 / 3; }
.slot__half { display: flex; flex-direction: column; padding: var(--s-4); }
.slot__half + .slot__half { border-left: 2px dashed var(--slot-frame); }
@media (min-width: 60rem) {
  .slot--split { aspect-ratio: 3 / 1; }
}

/* ---- numbered sequence on service pages (a real sequence) */
.steps { padding-left: var(--s-6); }
.steps li { margin-bottom: var(--s-3); }
.steps li:last-child { margin-bottom: 0; }

/* ---- footer */
.foot {
  background: var(--paper-2);
  border-top: 2px solid var(--line);
  padding: var(--s-12) 0 calc(var(--s-12) + var(--s-24) + env(safe-area-inset-bottom));
  font-size: var(--step--1);
}
.foot__links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-6);
  margin-bottom: var(--s-8);
}
.foot__links a { display: inline-block; padding: var(--s-3) 0; font-weight: 600; text-decoration: none; }
.foot p { color: var(--ink-2); margin-bottom: var(--s-2); }
.foot p:last-child { margin-bottom: 0; }
.foot .hic { color: var(--ink-2); }
@media (min-width: 60rem) {
  .foot { padding-bottom: var(--s-12); }
}

/* ---- fixed call/text bar on phones */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 2px solid var(--line);
  text-align: center;
}
.callbar .btn { padding-left: var(--s-3); padding-right: var(--s-3); }
@media (min-width: 60rem) {
  .callbar { display: none; }
}

/* ---- inner pages */
.page-h1 {
  font-family: Ultra, serif;
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.15;
  margin-bottom: var(--s-4);
}
.lead { margin-bottom: var(--s-8); }
.signs { padding-left: var(--s-6); }
.signs li { margin-bottom: var(--s-3); }
.signs li:last-child { margin-bottom: 0; }
.steps li { padding-left: var(--s-2); }
.door .page-h1 { color: var(--letter); }
.section .actions { margin-top: var(--s-8); }
