/* Long's Upholstery theme — main stylesheet.
   Tokens and type come from the React site (src/styles.css @theme).
   theme-chrome.css loads after this file and owns header/notice internals. */

:root {
  --bg: #f5f2ec;
  --paper: #ffffff;
  --linen: #dfdad1;
  --ink: #000000;
  --muted: #363636;
  --accent: #000000;
  --accent-hover: #323232;
  --accent-fg: #ffffff;
  --line: #dfdad1;
  --ring: #000000;
  --display: "Fraunces", "Times New Roman", serif;
  --sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --radius-xs: 2px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --motion-quick: 150ms;
  --motion-fast: 250ms;
  --wrap: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

button,
a,
[role="button"],
summary {
  touch-action: manipulation;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.25;
}

h2 {
  font-size: 2.25rem;
  line-height: calc(2.5 / 2.25);
}

h3 {
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
}

p {
  margin: 0;
  text-wrap: pretty;
}

.prose p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--linen);
}

.site-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrap {
  width: min(100% - 2rem, 69rem);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .wrap {
    width: min(100% - 3rem, 69rem);
  }
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prose {
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.625;
}

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
}

@media (min-width: 640px) {
  .prose {
    width: min(100% - 3rem, 42rem);
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header and footer shells (internals live in theme-chrome.css) */

.chrome {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  padding-top: env(safe-area-inset-top, 0px);
}

.chrome--overlay {
  position: fixed;
  inset-inline: 0;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition:
    background-color 150ms var(--ease-out),
    color 150ms var(--ease-out),
    border-color 150ms var(--ease-out);
}

html[data-nav="hero"] .site-header {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--paper);
}

.logo {
  display: inline-flex;
  min-height: 2.75rem;
  min-width: 0;
  align-items: center;
  text-decoration: none;
}

.logo-mark {
  position: relative;
  display: inline-flex;
  height: 2rem;
  flex: none;
}

.logo img {
  width: auto;
  max-width: none;
  height: 100%;
}

.bar {
  width: min(100%, var(--wrap));
  height: 3.5rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
}

.header-actions {
  grid-column: 3;
}

@media (min-width: 640px) {
  .bar {
    height: 4rem;
  }
}

@media (min-width: 768px) {
  .bar {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .bar {
    height: 5rem;
    gap: 1.5rem;
  }
}

.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.footer-grid {
  display: grid;
  align-items: start;
  gap: 2.5rem 2rem;
  padding: 3.5rem 0;
}

.footer-logo {
  display: block;
  width: auto;
  height: 2.5rem;
}

.footer-note {
  max-width: 20rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}

.footer-hours {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  container-type: inline-size;
}

.footer-hours li {
  display: flex;
  flex-direction: column;
  color: var(--muted);
}

.footer-hours li.is-today {
  font-weight: 700;
  color: var(--ink);
}

.footer-hours-time {
  white-space: nowrap;
}

@container (min-width: 16rem) {
  .footer-hours li {
    flex-direction: row;
    gap: 0.75rem;
  }
}

.footer-phone-wrap {
  margin-top: 0.75rem;
}

.footer-phone,
.footer-email {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
}

.footer-phone {
  font-family: var(--sans);
  font-size: 1.125rem;
}

.footer-email-wrap {
  margin-top: 0.25rem;
}

.footer-email {
  font-size: 0.875rem;
}

.footer-phone:hover,
.footer-email:hover,
.site-footer .social:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    column-gap: 4rem;
  }
}

.contact-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.contact-fab-toggle {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--motion-quick) var(--ease-out), transform var(--motion-quick) var(--ease-out);
}

.contact-fab-toggle:hover {
  background: var(--accent-hover);
}

.contact-fab-toggle:active {
  transform: scale(0.98);
}

.contact-fab-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-fab-icon-close {
  display: none;
}

.contact-fab-toggle[aria-expanded="true"] .contact-fab-icon-open {
  display: none;
}

.contact-fab-toggle[aria-expanded="true"] .contact-fab-icon-close {
  display: block;
}

.contact-fab-panel {
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(38rem, calc(100dvh - 6.5rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.contact-fab-panel[hidden] {
  display: none;
}

.contact-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.contact-fab-title {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.25;
}

.contact-chat-status {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.contact-chat-call {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  color: var(--ink);
}

.contact-chat-call:hover {
  background: var(--linen);
}

.contact-chat-call svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.contact-chat-msg {
  max-width: 88%;
  border-radius: 1rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-chat-msg.is-shop {
  align-self: flex-start;
  border-bottom-left-radius: 0.25rem;
  background: var(--linen);
}

.contact-chat-msg.is-user {
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
  background: var(--ink);
  color: var(--paper);
}

.contact-chat-form {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding: 1rem 1.25rem 1.25rem;
}

.contact-chat-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.contact-chat-form input:not([type="file"]),
.contact-chat-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0 0.75rem;
}

.contact-chat-form input:not([type="file"]) {
  height: 2.75rem;
}

.contact-chat-form textarea {
  min-height: 5rem;
  padding-block: 0.5rem;
  resize: vertical;
}

.contact-chat-form ::placeholder {
  color: var(--muted);
  opacity: 1;
}

.contact-chat-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.contact-chat-photo {
  position: relative;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.contact-chat-photo input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.contact-chat-send {
  min-width: 6rem;
}

.contact-chat-note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .contact-fab-toggle:active {
    transform: none;
  }
}

.legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  margin: 0;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.legal-socials {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-left: 1px solid var(--line);
  padding-left: 0.75rem;
}

.legal .social {
  width: 2.75rem;
  justify-content: center;
}

.phone-lg {
  font-family: var(--display);
  font-size: 1.5rem;
  text-decoration: none;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--line);
}

/* Page scaffolding */

.page-main {
  display: block;
}

.site-main {
  display: block;
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  padding: 3rem 0;
}

.page-intro {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: 3.5rem 1rem 2.5rem;
}

.page-intro > * {
  max-width: 48rem;
}

.page-intro .kicker {
  margin-bottom: 0.75rem;
}

.page-intro .muted {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .page-intro {
    padding: 5rem 1.5rem 2.5rem;
  }

  .page-intro h1 {
    font-size: 3rem;
    line-height: 1;
  }
}

.band {
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .band {
    padding: 5rem 0;
  }
}

.band-paper {
  background: var(--paper);
}

.band-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.band-head p {
  margin-top: 0.75rem;
  max-width: 36rem;
}

.inline-icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.locations-home {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

.locations-lede {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 1.5rem;
  line-height: 1.375;
}

.locations-link {
  margin-top: 1.5rem;
}

.service-area-map {
  display: block;
  width: 100%;
  max-width: 32rem;
  aspect-ratio: 640 / 511;
  height: auto;
  margin-inline: auto;
  background: transparent;
}

.service-area-map img {
  object-fit: contain;
}

@media (min-width: 640px) {
  .locations-lede {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .locations-home {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.15fr);
    gap: 4rem;
  }

  .service-area-map {
    max-width: none;
    margin-inline: 0;
  }
}

.pt-0 {
  padding-top: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.hero-copy .kicker-paper {
  color: rgba(255, 255, 255, 0.8);
}

/* Hero (front page) */

.hero {
  position: relative;
  height: 36rem;
  background: var(--ink);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background: rgba(0, 0, 0, 0.25);
}

.hero::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.45), transparent);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  align-items: flex-end;
  padding-top: 8rem;
  padding-bottom: 2rem;
  color: var(--paper);
}

.hero-copy-inner {
  max-width: 48rem;
}

.hero-copy .kicker {
  margin: 0;
}

.hero-copy h1 {
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0.5rem 0 0;
}

.hero-copy .lede-paper {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hero {
    height: 100lvh;
  }

  .hero-media img {
    object-position: center;
  }

  .hero-copy {
    padding-bottom: 5rem;
  }

  .hero-copy h1 {
    font-size: 3.75rem;
    margin-top: 1rem;
  }

  .hero-copy .lede-paper {
    margin-top: 1.5rem;
  }

  .hero-actions {
    margin-top: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-copy h1 {
    font-size: 4.5rem;
  }
}

/* Service cards, feature, quotes, work grid */

.feature {
  display: block;
  text-decoration: none;
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  gap: 2.5rem 1.5rem;
  margin-top: 2.5rem;
}

.cards a {
  display: block;
  text-decoration: none;
}

.cards .site-image,
.work-grid .site-image {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.cards h3 {
  margin-top: 1rem;
}

.cards a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cards p {
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.testimonials-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.testimonials-head h2 {
  font-size: 1.875rem;
  line-height: calc(2.25 / 1.875);
}

.testimonial-controls {
  display: flex;
}

.testimonial-controls button {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.testimonial-controls svg {
  width: 1rem;
  height: 1rem;
}

.testimonial-frame {
  margin-top: 2rem;
  overflow: hidden;
}

.quotes {
  display: flex;
  align-items: stretch;
  gap: 16px;
  transition: transform var(--motion-fast) var(--ease-out);
}

.quotes.no-animate {
  transition: none;
}

.quotes > li {
  display: flex;
  flex: none;
}

.quotes figure {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  margin: 0;
  padding-right: 2rem;
}

.quotes blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.375;
}

.quotes figcaption {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.closing-actions {
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .testimonials-head h2 {
    font-size: 2.25rem;
    line-height: calc(2.5 / 2.25);
  }

  .quotes blockquote {
    font-size: 1.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quotes {
    transition: none;
  }
}

.testimonial-photo {
  display: block;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.25rem;
  border-radius: 9999px;
  background: var(--linen);
  object-fit: cover;
}

.testimonial-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.7);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.work-grid {
  display: grid;
  gap: 2.5rem 1.5rem;
}

.work-grid p {
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wide-photo {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-lg);
}

.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-bottom: 1rem;
}

/* Buttons and links (base .btn lives in theme-chrome.css) */

.btn-paper {
  background: var(--paper);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-outline-paper {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.btn-outline-paper:hover {
  background: rgba(255, 255, 255, 0.1);
}

.text-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link,
.phone-lg,
.site-footer p > a,
.split .prose p > a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Inner page layouts */
.notfound-actions {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: 0 1rem 6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .notfound-actions { padding-inline: 1.5rem; }
}
.page-actions {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
  padding: 0 1rem 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .page-actions { padding-inline: 1.5rem; }
}
.about-photo {
  aspect-ratio: 21 / 9;
  width: 100%;
  border-radius: var(--radius-lg);
}
.about-copy {
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.625;
}
.team-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  text-align: center;
}
.team-photo {
  width: 8rem;
  height: 8rem;
  margin-inline: auto;
  border-radius: 9999px;
}
.team-name {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 1.5rem;
}
@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.services-wrap { padding-bottom: 5rem; }
.service-rows {
  display: grid;
  gap: 2rem;
}
.service-row {
  display: grid;
  text-decoration: none;
}
.service-row .site-image {
  aspect-ratio: 4 / 3;
  width: 100%;
}
.service-row-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 1.5rem;
}
.service-row-copy h2 { font-size: 1.875rem; }
.service-row-copy p { margin-top: 0.75rem; }
.read-more {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-underline-offset: 4px;
}
.service-row:hover .read-more { text-decoration: underline; }
@media (min-width: 768px) {
  .service-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
  .service-row-copy { padding-block: 0; }
  .service-row-image-alt { order: 2; }
}
.locations-page { padding-top: 2.5rem; }
.locations-page-grid {
  display: grid;
  max-width: 48rem;
  align-items: start;
  gap: 1.5rem;
}
.old-shop-photo {
  aspect-ratio: 1120 / 802;
  width: 13rem;
  background: transparent;
}
.locations-copy {
  display: grid;
  gap: 0.75rem;
}
.locations-lead {
  font-size: 1.125rem;
  line-height: 1.375;
}
.locations-actions { padding-top: 0.25rem; }
@media (min-width: 640px) {
  .locations-page { padding-top: 3.5rem; }
  .locations-page-grid { grid-template-columns: auto 1fr; gap: 2.5rem; }
  .old-shop-photo { width: 15rem; }
}
.split-center { align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.how-copy {
  display: grid;
  gap: 1rem;
  font-size: 1.125rem;
  line-height: 1.625;
}
.how-copy .hero-actions { margin-top: 0; }
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
.step-n {
  font-family: var(--display);
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  letter-spacing: 0.1em;
  color: var(--muted);
}
.steps h3 { margin-top: 0.5rem; }
.steps p:last-child {
  margin-top: 0.5rem;
  line-height: 1.625;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.other {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}
.other a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--bg);
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  text-decoration: none;
}
.other a:hover { background: var(--linen); }
@media (min-width: 640px) {
  .other { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.contact-grid {
  display: grid;
  gap: 3rem;
}
.contact-side {
  display: block;
}
.contact-row {
  display: flex;
  min-height: 2.75rem;
  align-items: flex-start;
  gap: 0.75rem;
  padding-block: 0.75rem;
  text-decoration: none;
}
.contact-row svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  flex: none;
}
.contact-row > span > span { display: block; }
.contact-phone {
  font-family: var(--display);
  font-size: 1.5rem;
}
.contact-email { font-size: 1.125rem; }
.contact-hours { margin-top: 2rem; }
.contact-hours h2 { font-size: 1.5rem; }
.contact-hours .hours { margin-top: 1rem; }
.contact-hours .hours li {
  padding-block: 0.5rem;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .contact-form-col { order: 2; grid-column: span 3; }
  .contact-side { order: 1; grid-column: span 2; }
}
.questions-title { font-size: 1.875rem; }
.faq-list {
  max-width: 48rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq-item { padding-block: 1rem; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  min-height: 2.75rem;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span {
  color: var(--muted);
  transition: transform 200ms var(--ease-out);
}
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--motion-quick) var(--ease-out);
}
.faq-item[open] .faq-panel {
  grid-template-rows: 1fr;
  transition-duration: 200ms;
}
.faq-panel > div {
  min-height: 0;
  overflow: hidden;
}
.faq-panel p {
  max-width: 42rem;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .faq-panel { transition: none; }
}

.portfolio-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--linen);
}
.portfolio-copy { font-size: 1.125rem; }
.portfolio-terms a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-underline-offset: 4px;
}
.portfolio-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 4rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.portfolio-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-underline-offset: 4px;
}
.portfolio-nav a:hover { text-decoration: underline; }
.pagination {
  margin-top: 2.5rem;
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.page-numbers {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.page-numbers:hover {
  background: var(--linen);
}
.page-numbers.current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.page-numbers.dots {
  min-width: auto;
  border: 0;
  background: transparent;
  padding-inline: 0.25rem;
}
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.search-form input[type="search"] {
  flex: 1 1 14rem;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0 0.875rem;
}
.prose .search-results {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
}
.prose .search-results li {
  border-top: 1px solid var(--line);
}
.prose .search-results a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.5rem 0;
  text-underline-offset: 4px;
}
.portfolio-archive { padding-bottom: 5rem; }
.portfolio-card {
  display: block;
  text-decoration: none;
}
.portfolio-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: var(--linen);
}
.portfolio-card h2 {
  margin-top: 1rem;
  font-size: 1.5rem;
}
.portfolio-card:hover h2 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Quote form */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.form-title {
  font-family: var(--display);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.form-error {
  color: #8c1d18;
  font-weight: 600;
}

.fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .fields {
    grid-template-columns: 1fr 1fr;
  }
}

.fields .full {
  grid-column: 1 / -1;
}

.fields label {
  display: grid;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.fields input:not([type="file"]),
.fields select,
.fields textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 0.875rem;
  height: 2.75rem;
  min-height: 2.75rem;
}

.fields textarea {
  min-height: 8rem;
  padding-block: 0.5rem;
}

.fields ::placeholder {
  color: var(--muted);
  opacity: 1;
}

.fields textarea {
  min-height: 8rem;
  resize: vertical;
}

.fields input:focus-visible,
.fields select:focus-visible,
.fields textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}

.field-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.fields .muted.small {
  margin-bottom: 0.5rem;
}

.drop {
  position: relative;
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color var(--motion-quick) var(--ease-out);
}

.drop:hover {
  background: var(--linen);
}

.drop:focus-within {
  box-shadow: 0 0 0 2px var(--ring);
}

.drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.drop-label {
  pointer-events: none;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.thumbs img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.thumb-remove {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  text-underline-offset: 4px;
}

.thumb-remove:hover {
  text-decoration: underline;
}

.notice-success {
  background: var(--linen);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

/* Responsive helpers used by templates */

.show-sm {
  display: none;
}

@media (max-width: 639px) {
  .hide-sm {
    display: none;
  }

  .show-sm {
    display: inline-flex;
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep opacity/color transitions that aid comprehension;
     this sheet animates no transform, so nothing moves. */
  .site-header {
    transition-property: opacity, color, background-color, border-color !important;
  }
}
