/* Shine Bright Taxes & Services — the directory.
   Tokens per design/DESIGN.md §4. One accent (brass, two
   values by ground), two grounds, one family. */

:root {
  --board: #171310;
  --paper: #FAF6EF;
  --cream: #F5EDDC;
  --brass-bright: #E3C566;
  --board-2: #B8A88E;
  --ink: #20180F;
  --ink-2: #6E5F49;
  --brass-dark: #7A5E14;
  --hair-board: rgba(227, 197, 102, 0.28);
  --hair-paper: rgba(32, 24, 15, 0.14);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: var(--brass-dark); }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--brass-dark);
  outline-offset: 3px;
}
.board a:focus-visible, .board .btn:focus-visible {
  outline-color: var(--brass-bright);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 40;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 12px; color: var(--cream); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--hair-paper);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
.wordmark {
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  padding: 10px 0;
}
.header-nav a:hover { text-decoration: underline; }
.header-nav .header-call {
  background: var(--brass-dark);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.15s ease-out, color 0.15s ease-out;
}
.header-nav .header-call:hover { text-decoration: none; }
body.covered .header-nav .header-call {
  background: transparent;
  color: var(--brass-dark);
  text-decoration: underline;
}
.header-directions { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.1s ease-out, background 0.15s ease-out;
}
.btn:active { transform: scale(0.98); }
.btn-brass { background: var(--brass-bright); color: var(--board); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--cream);
}
.btn-dark { background: var(--brass-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* The board */
.board {
  background: var(--board);
  color: var(--cream);
}
.board-in { padding: 64px 0 72px; }
.board .board-in { animation: settle 0.45s ease-out both; }
@keyframes settle {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.board-label {
  margin: 0 0 24px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass-bright);
}
.suite { margin: 0; }
.suite-word {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--board-2);
  margin-bottom: 4px;
}
.suite-num {
  display: block;
  font-size: clamp(88px, 19vw, 172px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--brass-bright);
}
.shop-name {
  margin: 28px 0 0;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.trade {
  margin: 12px 0 0;
  font-size: 17px;
  color: var(--board-2);
}
.lead {
  margin: 16px 0 0;
  font-size: 19px;
  line-height: 1.55;
  max-width: 34em;
  color: var(--cream);
}
.board-actions {
  margin: 32px 0 0;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.board-email {
  color: var(--cream);
  font-weight: 600;
  padding: 10px 0;
}
.board-photo { margin-top: 44px; }
.board-photo img { border-radius: 4px; width: 100%; }

/* The work */
.work { padding: 72px 0; }
.work h2, .doors h2 {
  margin: 0 0 28px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.own-words {
  margin: 0;
  max-width: 38em;
  padding-left: 24px;
  border-left: 3px solid var(--brass-dark);
}
.own-words p {
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
}
.own-words-intro {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.work-photo { margin-top: 44px; }
.work-photo img { border-radius: 4px; width: 100%; }

/* The doors */
.doors { padding: 8px 0 80px; }
.door-rows { border-bottom: 1px solid var(--hair-paper); }
.door {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--hair-paper);
  text-decoration: none;
  color: var(--ink);
}
a.door:hover .door-value { text-decoration: underline; }
.door-label {
  flex: 0 0 110px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass-dark);
  padding-top: 6px;
}
.door-value {
  font-size: clamp(21px, 2.8vw, 29px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.door-email {
  font-size: clamp(18px, 5.4vw, 29px);
  white-space: nowrap;
}
.door-directions {
  font-weight: 600;
  padding: 10px 0;
  white-space: nowrap;
}

/* The close */
.close .board-in { padding: 72px 0; animation: none; }
.close-addr {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.close-addr .brass { color: var(--brass-bright); }

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.site-footer p { margin: 0 0 6px; }
.site-footer .footer-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.site-footer a { color: var(--ink-2); }

/* Phone bar */
.phonebar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--paper);
  border-top: 1px solid var(--hair-paper);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 12px;
  transition: transform 0.2s ease-out;
}
.phonebar .btn { flex: 1; padding: 12px 10px; font-size: 16px; }
body.covered .phonebar { transform: translateY(110%); }

/* Desktop composition: the width is spent. The board sets
   its register beside the suite's lit window; the work sets
   the words beside the room; the close sets the address
   beside its actions. */
@media (min-width: 1024px) {
  #top .board-in {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: 56px;
    align-items: stretch;
  }
  .board-photo { margin-top: 0; }
  .board-photo img {
    height: 100%;
    object-fit: cover;
    object-position: 25% 50%;
  }
  .work .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
  .work h2 { grid-column: 1 / -1; }
  .work-photo { margin-top: 0; }
  .work-photo img {
    height: 100%;
    object-fit: cover;
  }
  #visit .board-in {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    column-gap: 56px;
    align-items: center;
  }
  #visit .board-label { grid-column: 1 / -1; }
  #visit .board-actions {
    margin-top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 719px) {
  .wrap { width: calc(100% - 32px); }
  .header-nav { display: none; }
  .header-directions {
    display: inline-block;
    font-weight: 600;
    padding: 10px 0;
  }
  .board-in { padding: 44px 0 52px; }
  .close .board-in { padding: 52px 0; }
  .work { padding: 52px 0; }
  .doors { padding-bottom: 60px; }
  .door { gap: 6px 16px; padding: 24px 0; }
  .door-label { flex-basis: 100%; padding-top: 0; }
  .door-directions { margin-left: 0; }
  .board-actions { gap: 16px 24px; }
  .phonebar { display: flex; }
  .site-footer { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .board .board-in { animation: none; }
  .btn, .phonebar { transition: none; }
}
