:root {
  --ink: #202624;
  --muted: #64706b;
  --line: #d9dfdc;
  --paper: #ffffff;
  --soft: #f4f6f5;
  --green: #176b4b;
  --green-dark: #0d4f36;
  --oak: #b7824d;
  --blue: #245c78;
  --red: #c8322b;
  --red-dark: #94251f;
  --warning: #9a5a1a;
  --shadow: 0 12px 30px rgba(28, 39, 34, 0.1);
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: 4.8rem;
  font-weight: 800;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: 2.7rem;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.utility-bar {
  color: white;
  background: var(--ink);
  font-size: 0.86rem;
}

.utility-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.utility-inner p {
  margin: 0;
}

.utility-inner a {
  font-weight: 700;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  padding: 0.7rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green);
}

.menu-button {
  display: none;
  min-width: 48px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font-weight: 700;
}

.button,
.button-secondary,
.button-quiet {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button {
  color: white;
  background: var(--green);
}

.button:hover {
  background: var(--green-dark);
}

.button-secondary {
  border-color: var(--ink);
  color: var(--ink);
  background: white;
}

.button-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.button-quiet {
  padding-inline: 0.25rem;
  color: var(--green);
  background: transparent;
}

.button-small {
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero {
  min-height: min(700px, calc(100svh - 165px));
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: white;
  background: #282c2b;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(14, 20, 18, 0.9) 0%, rgba(14, 20, 18, 0.64) 42%, rgba(14, 20, 18, 0.12) 72%),
    url("../images/showroom-hero.jpg") center 30% / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 710px;
  padding: clamp(4.5rem, 11vh, 8rem) 0 4rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: #d7eadf;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .lead {
  max-width: 58ch;
  margin-bottom: 1.5rem;
  color: #eef4f1;
  font-size: 1.14rem;
}

.offer-line {
  margin-bottom: 1.4rem;
  font-weight: 700;
}

.offer-line strong {
  color: #ffe2b8;
  font-size: 1.35rem;
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  min-height: 92px;
  display: grid;
  align-content: center;
  padding: 1rem 1.4rem;
  border-right: 1px solid var(--line);
}

.trust-item:first-child {
  border-left: 1px solid var(--line);
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: 4.5rem 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  color: white;
  background: var(--ink);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading-row .section-heading {
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--muted);
}

.section-dark .section-heading p {
  color: #cad1ce;
}

.coming-soon-section {
  color: white;
  background: var(--ink);
}

.coming-soon-section .eyebrow {
  color: #9dd7bf;
}

.coming-soon-section .section-heading p {
  color: #cad1ce;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.coming-soon-item {
  min-height: 220px;
  padding: 2rem;
  border: 1px solid #3a4642;
  border-radius: 8px;
  background: #202a27;
}

.coming-soon-item > span {
  display: block;
  margin-bottom: 1.25rem;
  color: #9dd7bf;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.coming-soon-item h3 {
  margin-bottom: 0.75rem;
  color: white;
}

.coming-soon-item p {
  max-width: 560px;
  color: #cad1ce;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.product-card[hidden] {
  display: none;
}

.product-image-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ebe9;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.product-card:hover img {
  transform: scale(1.025);
}

.favorite-heart-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-card > .favorite-heart-form {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
}

.favorite-heart {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  color: #111;
  background: transparent;
  cursor: pointer;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
  transition: transform 0.18s ease, color 0.18s ease;
}

.favorite-heart:hover,
.favorite-heart:focus-visible {
  transform: translateY(-1px);
  color: #b9342b;
}

.favorite-heart.is-saved {
  color: #b9342b;
  text-shadow: none;
}

.favorite-heart:disabled {
  cursor: progress;
  opacity: 0.7;
}

.visitor-saved-drawer {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  width: min(390px, calc(100vw - 2rem));
  pointer-events: none;
}

.visitor-saved-toggle,
.visitor-saved-panel {
  pointer-events: auto;
}

.visitor-saved-toggle {
  min-height: 48px;
  margin-left: auto;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--green);
  box-shadow: 0 14px 36px rgba(32, 38, 36, 0.22);
  cursor: pointer;
  font-weight: 900;
}

.visitor-saved-toggle span {
  min-width: 1.5rem;
  display: inline-grid;
  place-items: center;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  color: var(--green);
  background: white;
}

.visitor-saved-panel {
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 20px 50px rgba(32, 38, 36, 0.22);
}

.visitor-saved-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.visitor-saved-panel-header button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.visitor-saved-list {
  max-height: min(62vh, 520px);
  overflow-y: auto;
}

.visitor-saved-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.visitor-saved-item:last-child {
  border-bottom: 0;
}

.visitor-saved-item a {
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.visitor-saved-item img {
  width: 82px;
  height: 62px;
  object-fit: cover;
  border-radius: 5px;
  background: #e8ebe9;
}

.visitor-saved-item span {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.visitor-saved-item strong {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.2;
}

.visitor-saved-item small {
  color: var(--muted);
  font-weight: 700;
}

.visitor-saved-item button {
  border: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.product-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.product-card h3 {
  min-height: 2.35em;
  margin-bottom: 0.25rem;
  overflow-wrap: anywhere;
}

.product-card h3 a {
  text-decoration: none;
}

.product-card h3 a:hover {
  color: var(--green);
}

.product-brand {
  min-height: 3.1em;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.price-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.product-card-favorite {
  position: static;
  flex: 0 0 auto;
}

.product-card-favorite .favorite-heart {
  width: 26px;
  height: 26px;
  font-size: 1.45rem;
}

.price {
  color: var(--ink);
  font-size: 1.32rem;
  font-weight: 800;
}

.retail-price {
  display: grid;
  line-height: 1.15;
}

.retail-price small {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contractor-only {
  display: none;
}

body.contractor-authenticated .contractor-only {
  display: grid;
}

body.contractor-authenticated .contractor-guest {
  display: none;
}

body.contractor-authenticated .retail-price .price,
body.contractor-authenticated .product-price strong {
  color: #5f6763;
  text-decoration-line: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
}

.contractor-price {
  gap: 0.05rem;
  margin: -0.15rem 0 0.8rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #f0c6bf;
  border-left: 4px solid var(--red);
  background: #fff5f3;
  box-shadow: 0 6px 16px rgba(200, 50, 43, 0.08);
}

.contractor-price > span {
  color: var(--red-dark);
  font-size: 0.68rem;
  font-weight: 800;
}

.contractor-price small {
  color: var(--red-dark);
  font-size: 0.68rem;
  font-weight: 800;
}

.contractor-price strong {
  color: var(--green-dark);
  font-size: 1.15rem;
}

.contractor-login {
  margin: -0.1rem 0 0.8rem;
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.contractor-session-banner {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--green);
  color: var(--green-dark);
  background: #edf7f1;
}

.contractor-session-banner a {
  font-size: 0.8rem;
  font-weight: 800;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
}

.stock-badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.stock-badge.status-coming-soon,
.stock-badge.status-limited {
  color: var(--red-dark);
}

.stock-badge.status-coming-soon::before,
.stock-badge.status-limited::before {
  background: var(--red);
}

.stock-badge.status-out {
  color: var(--muted);
}

.stock-badge.status-out::before {
  background: var(--muted);
}

.spec-list {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.spec-list dt,
.spec-list dd {
  margin: 0;
}

.spec-list dd {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.card-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: auto;
}

.card-actions .button,
.card-actions .button-secondary {
  width: 100%;
}

.catalog-announcement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1.4rem 1.5rem;
  border-left: 5px solid var(--blue);
  background: #edf4f7;
}

.catalog-announcement .eyebrow {
  color: var(--blue);
}

.catalog-announcement h2 {
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
}

.catalog-announcement p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.catalog-announcement-status {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-category-section {
  margin-bottom: 1.5rem;
}

.shop-category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.shop-category-heading h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.shop-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.shop-category-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.shop-category-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  background: #e8ebe9;
}

.shop-category-card span,
.shop-category-card strong,
.shop-category-card small {
  display: block;
  padding-inline: 0.75rem;
}

.shop-category-card span {
  padding-top: 0.75rem;
  font-weight: 900;
  line-height: 1.15;
}

.shop-category-card strong {
  padding-top: 0.2rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.shop-category-card small {
  padding-top: 0.45rem;
  padding-bottom: 0.75rem;
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.shop-category-card:hover,
.shop-category-card:focus-visible,
.shop-category-card.is-active {
  border-color: #efb8b1;
  border-bottom-color: var(--red);
  outline: 0;
  transform: translateY(-1px);
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--soft);
}

.catalog-search input {
  min-height: 54px;
  padding-left: 1rem;
  border-color: #9fb2a9;
  font-size: 1rem;
}

.catalog-search input:focus {
  border-color: var(--green);
  outline-color: rgba(20, 117, 79, 0.22);
}

.search-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.filter-toggle {
  display: none;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--green);
  border-radius: 4px;
  color: white;
  background: var(--green);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-toggle span {
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  margin-left: 0.35rem;
  border-radius: 50%;
  color: var(--green);
  background: white;
  font-size: 0.7rem;
}

.catalog-layout {
  display: grid;
  grid-template-areas: "criteria results";
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.catalog-results {
  min-width: 0;
  grid-area: results;
}

.catalog-results .catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.criteria-panel {
  position: sticky;
  top: 132px;
  grid-area: criteria;
  max-height: calc(100dvh - 148px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  scrollbar-gutter: stable;
}

.criteria-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.criteria-heading .eyebrow {
  color: var(--green);
  font-size: 0.68rem;
}

.criteria-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}

.criteria-clear {
  padding: 0;
  border: 0;
  color: var(--green);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.criteria-list {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.criteria-list + .criteria-list {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.criteria-list legend {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.criteria-list label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.criteria-list label:last-child {
  border-bottom: 0;
}

.criteria-list label:has(input:disabled) {
  cursor: default;
  opacity: 0.62;
}

.criteria-list input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.criteria-list span {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.criteria-list small {
  color: var(--muted);
  font-size: 0.72rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label,
.field > span {
  font-size: 0.78rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #bfc8c3;
  border-radius: 4px;
  color: var(--ink);
  background: white;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(36, 92, 120, 0.2);
  border-color: var(--blue);
}

.results-line {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-results {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid #b7ddcb;
  border-left: 5px solid var(--green);
  color: var(--green-dark);
  background: #eef8f2;
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-item {
  padding: 1.3rem 0;
  border-top: 3px solid var(--oak);
}

.service-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.stair-service-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
}

.stair-service-media {
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.stair-service-media img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: center;
}

.stair-service-copy .eyebrow {
  color: var(--green);
}

.stair-service-copy ul {
  display: grid;
  gap: 0.45rem;
  margin: 1.2rem 0 1.5rem;
  padding-left: 1.2rem;
}

.stair-service-price {
  margin-bottom: 0.35rem;
  color: var(--green-dark);
  font-size: 1.25rem;
  font-weight: 800;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.location {
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
}

.location p {
  margin-bottom: 0.8rem;
  color: #d7dedb;
}

.location a {
  color: white;
  font-weight: 800;
}

.page-intro {
  padding: 4rem 0 2.7rem;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.page-intro h1 {
  max-width: 900px;
  margin-bottom: 0.8rem;
  font-size: 3.8rem;
}

.page-intro p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-intro .eyebrow {
  color: var(--green);
}

.breadcrumbs {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumbs a {
  color: var(--green);
}

.blog-list {
  max-width: 980px;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.blog-card-image {
  min-height: 390px;
  overflow: hidden;
  background: var(--soft);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-copy {
  display: grid;
  align-content: center;
  padding: 2.5rem;
}

.blog-card-copy h2 {
  font-size: 2.2rem;
}

.blog-card-copy h2 a {
  text-decoration: none;
}

.blog-card-copy .button-secondary {
  justify-self: start;
}

.blog-meta {
  margin-bottom: 0.8rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.article-header-inner {
  max-width: 900px;
}

.article-header h1 {
  max-width: 860px;
  margin-bottom: 1rem;
  font-size: 4rem;
}

.article-lead {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.article-layout {
  max-width: 900px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.article-figure {
  width: min(100%, 640px);
  margin: 0 auto 3.5rem;
}

.article-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 8px;
}

.article-figure figcaption {
  padding-top: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.article-content {
  max-width: 760px;
  margin-inline: auto;
}

.article-content h2 {
  margin-top: 2.5rem;
  font-size: 2rem;
}

.article-content h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.article-content p,
.article-content li {
  font-size: 1.05rem;
}

.article-content a {
  color: var(--green-dark);
  font-weight: 700;
}

.article-content li + li {
  margin-top: 0.65rem;
}

.article-summary {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-left: 5px solid var(--green);
  background: #edf7f1;
}

.article-summary .eyebrow {
  margin-bottom: 0.6rem;
  color: var(--green);
}

.article-summary h2 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
}

.article-summary ul,
.article-checklist ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.article-checklist {
  margin: 2rem 0;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-checklist h3 {
  margin-top: 0;
  color: var(--blue);
  font-size: 1.3rem;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-faq {
  padding-top: 0.5rem;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 3rem;
  align-items: start;
}

.product-gallery {
  min-width: 0;
}

.product-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.product-thumbnails {
  display: grid;
  grid-auto-columns: 104px;
  grid-auto-flow: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-bottom: 0.45rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.product-thumbnail {
  width: 104px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.product-thumbnail:hover,
.product-thumbnail:focus-visible {
  border-color: var(--blue);
}

.product-thumbnail.is-active {
  border-color: var(--green);
}

.product-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery-credit {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.product-summary .eyebrow {
  color: var(--green);
}

.product-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.product-detail-favorite {
  position: static;
  margin-top: 0.3rem;
}

.product-detail-favorite .favorite-heart {
  text-shadow: none;
}

.product-summary h1 {
  margin-bottom: 0.7rem;
  font-size: 3.4rem;
}

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

.product-price {
  margin: 1.2rem 0 0.1rem;
  font-size: 2rem;
  font-weight: 800;
}

.product-price > span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.product-price strong {
  display: block;
  color: inherit;
  font-size: inherit;
}

.product-contractor-price {
  gap: 0.1rem;
  max-width: 340px;
  margin: 0.8rem 0;
  padding: 0.8rem 1rem;
  border: 1px solid #f0c6bf;
  border-left: 5px solid var(--red);
  background: #fff5f3;
  box-shadow: 0 8px 20px rgba(200, 50, 43, 0.08);
}

.product-contractor-price > span {
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-contractor-price small {
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-contractor-price strong {
  color: var(--green-dark);
  font-size: 1.65rem;
}

.contractor-login-detail {
  margin: 0.55rem 0;
  color: var(--red-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.price-note {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.product-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.3rem 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-details div {
  min-width: 0;
  padding: 0.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-details dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.product-details dd {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.availability-box {
  margin: 1.2rem 0;
  padding: 1rem;
  border-left: 4px solid var(--green);
  background: #edf7f1;
}

.availability-box p:last-child {
  margin-bottom: 0;
}

.product-information {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.product-information-heading {
  max-width: 850px;
}

.product-information-heading h2 {
  margin: 0.35rem 0 1rem;
  font-size: 2.35rem;
}

.product-information-heading p {
  color: var(--muted);
}

.product-information-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 3rem;
  margin-top: 2.25rem;
}

.product-information h3 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.product-specification-table {
  margin: 0;
  border-top: 1px solid var(--line);
}

.product-specification-table > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.product-specification-table dt {
  color: var(--muted);
  font-weight: 700;
}

.product-specification-table dd {
  margin: 0;
  font-weight: 800;
}

.product-information-side {
  display: grid;
  align-content: start;
  gap: 2.25rem;
}

.product-warranty {
  padding-left: 1.25rem;
  border-left: 4px solid var(--green);
}

.product-warranty dl {
  margin: 0;
}

.product-warranty dl > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.product-warranty dt {
  color: var(--muted);
  font-weight: 700;
}

.product-warranty dd {
  margin: 0;
  font-weight: 800;
}

.product-warranty p,
.resource-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.product-resources ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.product-resources li {
  border-bottom: 1px solid var(--line);
}

.product-resources a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  color: var(--ink);
  text-decoration: none;
}

.product-resources a:hover strong,
.product-resources a:focus-visible strong {
  color: var(--green);
  text-decoration: underline;
}

.product-resources strong,
.product-resources small {
  display: block;
}

.product-resources small {
  margin-top: 0.2rem;
  color: var(--muted);
  line-height: 1.4;
}

.product-resources b {
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.notice {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--blue);
  background: #edf5f8;
}

.notice.is-success {
  border-color: var(--green);
  background: #edf7f1;
}

.notice.is-error {
  border-color: #a63c32;
  background: #fff0ee;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 3rem;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quote-form .field-wide,
.quote-form .form-actions {
  grid-column: 1 / -1;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.contact-aside {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.info-panel {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.portal-intro .eyebrow,
.portal-auth-panel .eyebrow,
.portal-panel .eyebrow,
.portal-welcome .eyebrow {
  margin-bottom: 0.55rem;
  color: var(--green);
}

.portal-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  align-items: start;
}

.portal-auth-panel,
.portal-panel {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 6px;
  background: white;
}

.portal-auth-panel h2 {
  font-size: 1.75rem;
}

.portal-form {
  display: grid;
  gap: 1rem;
}

.portal-mini-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.portal-mini-form h3 {
  margin: 0;
  font-size: 1rem;
}

.portal-mini-form p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.portal-form .button {
  width: 100%;
}

.portal-save-product-form {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.portal-save-product-form .button {
  min-height: 48px;
}

.portal-form small {
  color: var(--muted);
  font-weight: 400;
}

.portal-dashboard {
  display: grid;
  gap: 1.5rem;
}

.portal-welcome {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.portal-welcome h2 {
  margin-bottom: 0.35rem;
  font-size: 2.1rem;
}

.portal-welcome p {
  margin-bottom: 0;
  color: var(--muted);
}

.portal-app-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: white;
}

.portal-app-stats div {
  min-height: 94px;
  display: grid;
  align-content: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.portal-app-stats div:last-child {
  border-right: 0;
}

.portal-app-stats strong {
  color: var(--green);
  font-size: 1.9rem;
  line-height: 1;
}

.portal-app-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.portal-panel-wide {
  grid-column: 1 / -1;
}

.portal-panel h3 {
  font-size: 1.35rem;
}

.portal-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.portal-actions {
  display: grid;
  gap: 0.65rem;
}

.portal-product-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.portal-product-chip {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  background: var(--soft);
}

.portal-product-chip strong {
  font-size: 0.9rem;
}

.portal-product-chip span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.portal-saved-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.portal-saved-product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.portal-saved-product-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ebe9;
}

.portal-saved-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-saved-product-card > div {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
}

.portal-saved-product-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
}

.portal-saved-product-card h4 a {
  color: var(--ink);
  text-decoration: none;
}

.portal-saved-product-card p,
.portal-saved-product-card span {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.portal-saved-product-card strong {
  color: var(--green);
  font-size: 1.05rem;
}

.portal-saved-product-card form {
  padding: 0 0.85rem 0.85rem;
}

.portal-saved-product-card .button-small {
  width: 100%;
}

.portal-empty-board {
  display: grid;
  gap: 0.8rem;
  max-width: 560px;
}

.portal-saved-list,
.portal-request-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.portal-saved-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.portal-saved-list a {
  color: var(--green);
  font-weight: 800;
}

.portal-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.portal-activity-grid h4 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.portal-request-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.portal-request-list li > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.portal-request-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.portal-inline-form {
  margin: 0;
  flex: 0 0 auto;
}

.portal-details {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.portal-details div {
  display: grid;
  gap: 0.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.portal-details div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.portal-details dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.portal-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.portal-rewards-band {
  color: white;
  background: var(--ink);
}

.portal-rewards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-rewards-grid div {
  min-height: 116px;
  display: grid;
  align-content: center;
  padding: 1.25rem;
  border-right: 1px solid #43504b;
}

.portal-rewards-grid div:first-child {
  border-left: 1px solid #43504b;
}

.portal-rewards-grid strong,
.portal-rewards-grid span {
  display: block;
}

.portal-rewards-grid strong {
  color: white;
}

.portal-rewards-grid span {
  color: #c8d1cd;
  font-size: 0.82rem;
}

.consent-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.82rem;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin: 0.15rem 0 0;
  accent-color: var(--green);
}

.admin-intro .eyebrow,
.admin-auth-panel .eyebrow,
.admin-toolbar .eyebrow {
  color: var(--blue);
}

.admin-auth-panel {
  max-width: 580px;
  margin-inline: auto;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
}

.admin-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.admin-toolbar h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
}

.admin-stats div {
  min-height: 100px;
  display: grid;
  align-content: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.admin-stats div:last-child {
  border-right: 0;
}

.admin-stats strong,
.admin-stats span {
  display: block;
}

.admin-stats strong {
  color: var(--blue);
  font-size: 1.8rem;
}

.admin-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-controls {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--soft);
}

.admin-requests {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.admin-section-heading h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.admin-request-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-request-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.admin-request-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-request-card h4 {
  margin: 0.45rem 0 0.2rem;
  font-size: 1.05rem;
}

.admin-request-card header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-request-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px auto auto;
  gap: 0.75rem;
  align-items: end;
}

.admin-exports {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-contractor-list {
  display: grid;
  gap: 1rem;
}

.admin-contractor {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.admin-contractor > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.admin-contractor h3 {
  margin: 0.45rem 0 0.15rem;
  font-size: 1.35rem;
}

.admin-contractor header p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-contact-links {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-contractor-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.admin-contractor-details div {
  padding: 0 0.85rem;
  border-right: 1px solid var(--line);
}

.admin-contractor-details div:first-child {
  padding-left: 0;
}

.admin-contractor-details div:last-child {
  padding-right: 0;
  border-right: 0;
}

.admin-contractor-details dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-contractor-details dd {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-account-form {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
  padding-top: 1rem;
}

.admin-notes textarea {
  min-height: 82px;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pending {
  color: var(--warning);
}

.status-approved {
  color: var(--green);
}

.status-new,
.status-working {
  color: var(--blue);
}

.status-complete {
  color: var(--green);
}

.status-cancelled,
.status-declined,
.status-suspended {
  color: #91362e;
}

.cta-band {
  padding: 2.2rem 0;
  color: white;
  background: var(--blue);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-inner h2 {
  margin-bottom: 0.3rem;
  font-size: 1.7rem;
}

.cta-inner p {
  margin-bottom: 0;
  color: #e5f0f5;
}

.cta-inner .button {
  color: var(--ink);
  background: white;
}

.site-footer {
  padding: 3rem 0 1.5rem;
  color: #dce1df;
  background: #171c1a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-grid h2,
.footer-grid h3 {
  color: white;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
  color: #bac3bf;
  font-size: 0.88rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #3a423f;
  color: #96a09b;
  font-size: 0.8rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px solid var(--line);
  text-align: center;
  background: var(--soft);
}

@media (max-width: 980px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-results .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .product-layout,
  .product-information-grid,
  .contact-layout,
  .stair-service-grid,
  .portal-auth-layout {
    grid-template-columns: 1fr;
  }

  .portal-rewards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-rewards-grid div {
    border-bottom: 1px solid #43504b;
  }

  .admin-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-filters .field:first-child {
    grid-column: 1 / -1;
  }

  .admin-contractor-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 0;
  }

  .admin-account-form {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .admin-account-form .button {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .page-intro h1,
  .product-summary h1 {
    font-size: 2.65rem;
  }

  .utility-inner p:first-child {
    display: none;
  }

  .utility-inner {
    justify-content: center;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 112px 0 auto;
    display: none;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .button {
    margin-top: 0.5rem;
    color: white;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(14, 20, 18, 0.9) 0%, rgba(14, 20, 18, 0.68) 62%, rgba(14, 20, 18, 0.3) 100%),
      url("../images/showroom-hero.jpg") 58% center / cover no-repeat;
  }

  .hero-content {
    max-width: 88%;
    padding: 7rem 0 3rem;
  }

  .trust-grid,
  .service-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(odd) {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-heading-row,
  .cta-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-announcement {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .shop-category-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .shop-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-category-card img {
    height: 86px;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .catalog-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .catalog-controls .field:first-child {
    grid-column: 1 / -1;
  }

  .filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .catalog-layout {
    grid-template-areas:
      "criteria"
      "results";
    grid-template-columns: 1fr;
  }

  .criteria-panel {
    position: static;
    max-height: none;
    overflow: visible;
    display: none;
  }

  .criteria-panel.is-open {
    display: block;
  }

  .criteria-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
  }

  .quote-form .field-wide,
  .quote-form .form-actions {
    grid-column: auto;
  }

  .product-details {
    grid-template-columns: 1fr;
  }

  .product-specification-table > div,
  .product-warranty dl > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .portal-welcome {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-app-stats,
  .portal-product-strip,
  .portal-saved-products-grid,
  .portal-activity-grid,
  .admin-request-list {
    grid-template-columns: 1fr;
  }

  .portal-app-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portal-app-stats div:last-child {
    border-bottom: 0;
  }

  .portal-panel-wide {
    grid-column: auto;
  }

  .product-title-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-detail-favorite {
    margin-top: -0.5rem;
    margin-bottom: 0.35rem;
  }

  .admin-toolbar,
  .admin-contractor > header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-contact-links {
    justify-items: start;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stats div {
    border-bottom: 1px solid var(--line);
  }

  .admin-stats div:nth-child(even) {
    border-right: 0;
  }

  .admin-stats div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .admin-contractor-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-account-form,
  .admin-request-form {
    grid-template-columns: 1fr;
  }

  .admin-account-form .button,
  .admin-request-form .button {
    grid-column: auto;
  }

  .coming-soon-grid {
    grid-template-columns: 1fr;
  }

  .blog-card,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .blog-card-image {
    min-height: 420px;
    max-height: 620px;
  }

  .article-figure {
    position: static;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .page-intro h1,
  .product-summary h1 {
    font-size: 2.25rem;
  }

  .article-header {
    padding: 2.75rem 0 2.25rem;
  }

  .article-header h1 {
    font-size: 2.5rem;
  }

  .article-lead {
    font-size: 1.05rem;
  }

  .article-layout {
    gap: 2rem;
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .article-content h2 {
    font-size: 1.65rem;
  }

  .article-content p,
  .article-content li {
    font-size: 1rem;
  }

  .blog-card-image {
    min-height: 320px;
  }

  .blog-card-copy {
    padding: 1.25rem;
  }

  .blog-card-copy h2 {
    font-size: 1.65rem;
  }

  .container {
    width: min(calc(100% - 1rem), var(--content));
  }

  .visitor-saved-drawer {
    right: 0.5rem;
    bottom: 0.5rem;
    width: calc(100vw - 1rem);
  }

  .visitor-saved-item {
    grid-template-columns: 1fr;
  }

  .visitor-saved-item button {
    justify-self: start;
  }

  .brand-text span {
    display: none;
  }

  .section {
    padding: 2.75rem 0;
  }

  .portal-rewards-grid {
    grid-template-columns: 1fr;
  }

  .portal-rewards-grid div,
  .portal-rewards-grid div:first-child {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid #43504b;
  }

  .admin-filters,
  .admin-contractor-details {
    grid-template-columns: 1fr;
  }

  .admin-filters .field:first-child {
    grid-column: auto;
  }

  .admin-contractor-details div,
  .admin-contractor-details div:first-child,
  .admin-contractor-details div:last-child {
    padding: 0 0 0.65rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .catalog-controls {
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
  }

  .catalog-results .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .product-card-body {
    padding: 0.7rem;
  }

  .product-card h3 {
    min-height: 3.5em;
    font-size: 1rem;
    line-height: 1.18;
  }

  .product-brand {
    min-height: 4.65em;
    margin-bottom: 0.6rem;
    font-size: 0.72rem;
  }

  .price-row {
    align-items: start;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.65rem;
  }

  .price-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .price {
    font-size: 1.12rem;
  }

  .stock-badge {
    font-size: 0.68rem;
  }

  .spec-list {
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
  }

  .spec-list div {
    align-items: start;
    flex-direction: column;
    gap: 0.05rem;
  }

  .spec-list dd {
    text-align: left;
  }

  .card-actions {
    gap: 0.4rem;
  }

  .card-actions .button-small {
    min-height: 40px;
    padding: 0.45rem 0.3rem;
    font-size: 0.7rem;
  }

  .criteria-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions {
    display: grid;
  }

  .actions .button,
  .actions .button-secondary {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .shop-category-grid,
  .catalog-results .catalog-grid,
  .criteria-list {
    grid-template-columns: 1fr;
  }

  .product-card-body {
    padding: 0.9rem;
  }

  .product-card h3 {
    min-height: 0;
    font-size: 1.12rem;
  }

  .product-brand {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
