/* Piana Surfaces */

:root {
  --ink: #0F0F0F;
  --muted: #5C5C5C;
  --line: #E6E6E6;
  --line-strong: #C9C9C9;
  --bg: #FFFFFF;
  --error: #9E1B1B;
  --wrap: 1200px;
  --gutter: 16px;
  --head: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

@media (min-width: 960px) {
  :root { --header-h: 88px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.375rem; font-weight: 400; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 8px 14px;
  font-size: 14px;
}

.skip-link:focus { left: 16px; }

.label {
  display: block;
  font-family: var(--head);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover { background: #333333; border-color: #333333; }

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

.btn-outline:hover { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.btn[disabled] { opacity: 0.6; cursor: progress; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 479px) {
  .actions .btn { width: 100%; }
}

.nw { white-space: nowrap; }

.text-link {
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

.text-link:hover { border-bottom-width: 2px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: block; flex: none; }
.brand img { height: 44px; width: auto; }

@media (min-width: 960px) {
  .brand img { height: 54px; }
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
}

.site-nav a {
  display: inline-block;
  font-family: var(--head);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

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

.nav-toggle { display: none; }

@media (max-width: 959px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-bars,
  .nav-bars::before,
  .nav-bars::after {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .nav-bars { position: relative; }
  .nav-bars::before,
  .nav-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-bars::before { top: -7px; }
  .nav-bars::after { top: 7px; }

  .nav-toggle[aria-expanded="true"] .nav-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .js .site-nav.open { display: block; }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 var(--gutter) 16px;
  }

  .js .site-nav li { border-top: 1px solid var(--line); }
  .js .site-nav li:first-child { border-top: 0; }

  .js .site-nav a {
    display: block;
    padding: 18px 0;
    font-size: 14px;
    border-bottom: 0;
  }

  .js .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

  .no-js .header-inner { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; }
  .no-js .site-nav ul { flex-wrap: wrap; gap: 4px 20px; }
}

/* Hero */

.hero { padding-top: 28px; padding-bottom: 32px; }

.hero-grid { display: grid; gap: 28px; }

@media (min-width: 960px) {
  .hero { padding-top: 36px; padding-bottom: 40px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
  }
}

.hero .label { margin-bottom: 0; }

.hero h1 {
  font-size: clamp(2.75rem, 5.4vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 14px;
}

.hero-lead {
  margin: 16px 0 0;
  font-family: var(--head);
  font-weight: 300;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 24px 0 0;
  font-family: var(--head);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.hero-tag::before {
  content: "";
  flex: 0 0 56px;
  height: 1px;
  background: var(--ink);
}

@media (max-width: 640px) {
  .hero-tag { gap: 12px; font-size: 11px; letter-spacing: 0.2em; }
  .hero-tag::before { flex-basis: 28px; }
}

.hero-sub {
  max-width: 32em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero .actions { margin-top: 26px; }

.hero-media { margin: 0; }

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 550;
  object-fit: cover;
}

@media (min-width: 641px) and (max-width: 959px) {
  .hero-media img { aspect-ratio: 3 / 1; }
}

@media (min-width: 960px) {
  .hero-media img { aspect-ratio: 2 / 1; }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; }
  .hero-tag { letter-spacing: 0.24em; }
}

.hero-media figcaption {
  padding-top: 10px;
  font-family: var(--head);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}


/* Sections */

.section { padding: 72px 0; }

@media (min-width: 960px) {
  .section { padding: 112px 0; }
}

.section-line { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 40px;
}

/* Facts */

.facts {
  display: grid;
  grid-template-columns: 1fr;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}

.fact {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.fact dd { margin: 0; }

.fact-value {
  font-family: var(--head);
  font-weight: 300;
  font-size: clamp(1.75rem, 2.8vw, 2.375rem);
  line-height: 1.15;
}

.fact-sub {
  margin-top: 6px !important;
  font-size: 15px;
  color: var(--muted);
}

.fact-list {
  font-family: var(--head);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.45;
}

@media (min-width: 560px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(odd) { padding-right: 24px; }
  .fact:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}

@media (min-width: 1024px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .fact { padding: 36px 28px; border-bottom: 0; border-left: 1px solid var(--line); }
  .fact:nth-child(odd), .fact:nth-child(even) { padding-left: 28px; padding-right: 28px; }
  .fact:first-child { padding-left: 0; border-left: 0; }
}

/* Steps */

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.steps li {
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}

.steps h3 { margin-bottom: 12px; }
.steps p { color: var(--muted); max-width: 30em; }

.step-n {
  display: block;
  margin-bottom: 20px;
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .steps li { border-top-color: var(--ink); }
}

/* Grids and cards */

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 24px;
}

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

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; }
}

.tile { display: block; text-decoration: none; }

.tile img,
.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tile-media,
.card-media {
  display: block;
  overflow: hidden;
  box-shadow: none;
}

.tile:hover img,
.card-media:hover img { transform: scale(1.02); }

.tile-name {
  display: block;
  margin-top: 16px;
  font-family: var(--head);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.2;
}

.tile-meta {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.supply-note {
  margin: 56px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.card { scroll-margin-top: calc(var(--header-h) + 24px); }

.card-media {
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg);
  cursor: zoom-in;
}

.card-body { padding-top: 18px; }

.slab-name {
  font-family: var(--head);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 6px;
}

.slab-finish {
  font-family: var(--head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.slab-look { margin: 0 0 8px; font-size: 15px; }

.slab-suits,
.slab-size,
.slab-thick {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.slab-suits { margin-bottom: 8px; }

.card-body .text-link,
.swatch-item .text-link {
  display: inline-block;
  margin-top: 16px;
}

/* Collection page */

.page-head { padding: 56px 0 40px; }

@media (min-width: 960px) {
  .page-head { padding: 88px 0 56px; }
}

.lede {
  margin: 16px 0 0;
  max-width: 36em;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink);
}

.page-meta {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.filters {
  display: none;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding: 20px 0;
  margin-bottom: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.js .filters { display: flex; }

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-group .label {
  margin: 0 8px 0 0;
  min-width: 52px;
}

.chip {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.chip:hover { border-color: var(--ink); }

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.collection-wrap { padding-bottom: 96px; }

.filter-empty {
  padding: 32px 0;
  color: var(--muted);
}

.more {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.more h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.more-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.swatches {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 720px) {
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}

.swatch-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.swatch-img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  box-shadow: none;
}

@media (min-width: 720px) {
  .swatch-item { grid-template-columns: 140px minmax(0, 1fr); gap: 24px; }
  .swatch-img { width: 140px; height: 140px; }
}

.swatch-item .card-body { padding-top: 0; }
.swatch-item .slab-name { font-size: 1.375rem; }

[hidden] { display: none !important; }

/* Lightbox */

.lightbox {
  width: calc(100vw - 32px);
  max-width: 1200px;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  overflow: auto;
}

.lightbox::backdrop { background: rgba(255, 255, 255, 0.94); }

.lightbox-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}

.lb-media { position: relative; }

.lb-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.lb-details { padding: 24px 20px 28px; }
.lb-details .btn { margin-top: 20px; }

@media (min-width: 960px) {
  .lightbox-inner { grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr); align-items: center; }
  .lb-details { padding: 40px 36px; }
}

.lb-close,
.lb-arrow {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--head);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lb-close { top: 10px; right: 10px; }

.lb-arrow { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

.lb-close:hover,
.lb-arrow:hover { border-color: var(--ink); }

/* CTA band */

.cta {
  border-top: 1px solid var(--line);
  padding: 72px 0;
}

@media (min-width: 960px) {
  .cta { padding: 96px 0; }
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 48px;
}

.cta h2 { margin-bottom: 12px; }
.cta p { margin: 0; color: var(--muted); max-width: 34em; }
.cta .actions { margin-top: 24px; }

/* Split layout for form pages */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 96px;
}

@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 80px; }
}

.aside { font-size: 15px; }
.aside .label { margin-top: 32px; margin-bottom: 10px; }
.aside .label:first-child { margin-top: 0; }
.aside .supply-note { margin-top: 32px; }

.plain-list {
  margin: 0 0 1em;
  padding-left: 1.1em;
}

.plain-list li { margin-bottom: 6px; }

@media (max-width: 959px) {
  .split > .aside { order: 2; }
}

/* Forms */

.form {
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.form-hint,
.form-consent {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.field { min-width: 0; }
.field:empty { display: none; }

@media (min-width: 720px) {
  .field:empty { display: block; }
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.field > label:not(.dropzone),
.field-label,
legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}

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

.field-help {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230F0F0F' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

textarea { min-height: 140px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 0;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 16px;
  border: 1px solid var(--line);
}

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

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.check-solo { font-size: 15px; }

.dropzone {
  display: block;
  padding: 32px 20px;
  border: 1px dashed var(--line-strong);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.dropzone:hover,
.dropzone.is-drag { border-color: var(--ink); }

.dropzone:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.dropzone-title {
  display: block;
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dropzone-help {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

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

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.file-name { overflow-wrap: anywhere; }
.file-size { color: var(--muted); white-space: nowrap; }

.file-remove {
  flex: none;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.file-total {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.file-total.is-over,
.form-status.is-error { color: var(--error); }

.form-status { font-size: 15px; }
.form-status:empty { display: none; }

.notice {
  margin-bottom: 24px;
  padding: 16px 20px;
  border: 1px solid var(--ink);
  font-size: 15px;
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Prose (privacy policy) */

.prose {
  max-width: 720px;
  padding-bottom: 96px;
  font-size: 16px;
}

.prose h2 {
  margin: 48px 0 14px;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
}

.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }

/* Thanks */

.thanks { padding-bottom: 120px; }
.thanks .lede { color: var(--muted); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

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

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 48px; }
}

.footer-grid .label { margin-bottom: 10px; }
.footer-grid p { margin: 0; }

.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-base p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.fab-option {
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin: 8px 0 4px;
}
.fab-help {
  margin: 8px 0 0 28px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* Slab picker tiles */
.checks:has(.check-slab) { gap: 12px; }
@media (min-width: 720px) {
  .checks:has(.check-slab) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.check-slab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 6px 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--bg);
  transition: border-color .15s ease;
}
.check-slab:hover { border-color: var(--line-strong); }
.check-slab:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.check-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1.3;
}
.check-row input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}
.check-pop { display: none; }
@media (hover: hover) and (min-width: 960px) {
  .check-slab:hover .check-pop {
    display: block;
    position: absolute;
    z-index: 30;
    bottom: calc(100% + 8px);
    left: 0;
    width: 380px;
    padding: 6px;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    pointer-events: none;
  }
  .check-slab:nth-child(3n) .check-pop { left: auto; right: 0; }
  .check-slab:hover .check-pop-small { width: 200px; }
  .check-pop img { display: block; width: 100%; height: auto; }
}

/* Home collection */

.home-collection {
  padding: 32px 0 72px;
  border-top: 1px solid var(--line);
}

@media (min-width: 960px) {
  .home-collection { padding: 40px 0 112px; }
}

.home-collection .section-head { margin-bottom: 20px; gap: 8px 32px; }

.section-sub {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.home-collection .filters { margin-bottom: 32px; }

@media (min-width: 640px) {
  .home-collection .filters { padding: 14px 0; }
}

@media (max-width: 639px) {
  .js .filters { gap: 10px; padding: 12px 0; margin-bottom: 32px; }
  .filter-group {
    flex: 1 1 100%;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-group::-webkit-scrollbar { display: none; }
  .filter-group .label,
  .filter-group .chip { flex: none; }
}

/* Cards: links and low-res swatch cards */

a.card-media { cursor: pointer; }

.card-media.card-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--bg);
}

.card-media .swatch-thumb {
  width: 38%;
  max-width: 150px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: none;
}

.slab-name a { text-decoration: none; }
.slab-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 16px 0 0;
}

.card-body .card-links .text-link { margin-top: 0; }

.lb-more { margin: 20px 0 0; }

/* Service area line */

.cta .service-area {
  flex: 1 1 100%;
  max-width: none;
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* Slab pages */

.slab-head { padding: 28px 0 28px; }

@media (min-width: 960px) {
  .slab-head { padding: 44px 0 36px; }
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--head);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }

.slab-figure { margin: 0; }

.slab-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  box-shadow: none;
}

.slab-swatch { margin: 0; }

.slab-swatch img {
  width: 220px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: none;
}

.slab-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: 40px 0 72px;
}

@media (min-width: 960px) {
  .slab-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    padding: 56px 0 96px;
  }
  .slab-page.is-lowres {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }
  .slab-page.is-lowres .slab-body { padding-top: 0; gap: 56px; }
}

.spec-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.spec-list div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  padding-top: 3px;
  font-family: var(--head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-list dd { margin: 0; font-size: 16px; }

.slab-reserve {
  margin: 0;
  font-family: var(--head);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.3;
}

.slab-cta .actions { margin-top: 20px; }
.slab-back { margin: 28px 0 0; }
.slab-cta .supply-note { margin-top: 32px; }

@media (min-width: 1024px) {
  .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
}
