/*
Theme Name: BJTiles Studio
Description: An English showroom for made-to-order mosaic panels.
Version: 1.4.4
Requires PHP: 8.0
Text Domain: bjtiles-studio
*/

:root {
  --paper: #faf9f6;
  --white: #fff;
  --line: #dedcd7;
  --ink: #262626;
  --muted: #575550;
  --soft: #efede9;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --shell: min(100% - 7vw, 1320px);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
button,
a,
input {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid #426351;
  outline-offset: 4px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font: 400 2.25rem/1.03 var(--serif);
  text-wrap: balance;
}
h1 {
  font-size: clamp(3rem, 6.7vw, 7rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(2.3rem, 4.3vw, 4.5rem);
  letter-spacing: -0.025em;
}
.shell {
  width: var(--shell);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 9;
  background: var(--white);
  padding: 1rem;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  min-height: 84px;
}
.wordmark {
  font: 400 2.5rem/0.9 var(--serif);
  letter-spacing: -0.07em;
  text-decoration: none;
  white-space: nowrap;
}
.top-nav,
.bottom-nav {
  display: flex;
  gap: clamp(0.7rem, 2.6vw, 2.7rem);
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.84rem;
}
.top-nav a,
.bottom-nav a {
  text-decoration: none;
}
.top-nav a:hover,
.bottom-nav a:hover {
  text-decoration: underline;
}
.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 46px;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}
.button:hover {
  background: #494741;
  border-color: #494741;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
}
.button.secondary:hover {
  background: var(--soft);
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: clamp(520px, 53vw, 690px);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(3rem, 5vw, 5.5rem) clamp(1.4rem, 4.5vw, 5rem)
    clamp(3rem, 5vw, 5.5rem) max(3.5vw, calc((100vw - 1320px) / 2));
  gap: 1.5rem;
}
.hero-copy h1 {
  font-size: clamp(3rem, 5.65vw, 6rem);
}
.hero-copy p:not(.eyebrow),
.section-heading p,
.lede {
  color: var(--muted);
  max-width: 44ch;
}
.hero-art {
  position: relative;
  background: var(--soft);
  min-height: 430px;
  overflow: hidden;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
}
.image-note {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  background: var(--paper);
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  color: var(--muted);
}
.intro,
.catalog-section,
.page-section {
  padding-block: clamp(3rem, 8vw, 7.5rem);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 2.1rem;
}
.section-heading .eyebrow,
.collection-kind {
  display: block;
  margin-bottom: 0.55rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2.6vw, 2rem);
}
.product-card {
  min-width: 0;
}
.product-card h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.65rem);
  margin-block: 0.45rem 0.7rem;
}
.product-card a {
  text-decoration: none;
}
.product-card h3 a:hover {
  text-decoration: underline;
}
.card-art {
  display: block;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--soft);
  margin-bottom: 1rem;
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card-art:hover img {
  transform: scale(1.025);
}
.image-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: repeating-linear-gradient(
    135deg,
    #efece5,
    #efece5 12px,
    #e8e5de 13px,
    #e8e5de 14px
  );
  color: #4c4945;
}
.price {
  font-size: 0.95rem;
  font-weight: 600;
}
.product-card .price {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.process {
  background: var(--soft);
}
.process .shell {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 8vw, 8rem);
}
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.process-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-top: 1px solid #d0cbc2;
}
.process-list p {
  color: var(--muted);
}
.process .button {
  margin-top: 1.5rem;
}
.process h2 {
  margin-top: 0.5rem;
}
.breadcrumb {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.single-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas: "gallery intro" "gallery details";
  grid-template-rows: auto 1fr;
  column-gap: clamp(1.6rem, 6vw, 6rem);
  row-gap: 2rem;
}
.product-intro {
  grid-area: intro;
}
.product-gallery {
  grid-area: gallery;
}
.product-details {
  grid-area: details;
}
.product-details h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}
.related-mosaics {
  margin-top: clamp(3rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 5vw, 4rem);
}
.product-photo {
  position: relative;
  background: var(--soft);
}
.product-photo img {
  width: 100%;
}
.product-photo figcaption {
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  color: var(--muted);
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.detail-gallery .product-photo img {
  aspect-ratio: 1;
  object-fit: cover;
}
.product-copy {
  display: grid;
  align-content: start;
  gap: 1.05rem;
}
.product-copy h1,
.page-section h1 {
  font-size: clamp(2.85rem, 5.7vw, 5.6rem);
}
.product-copy .price {
  font-size: 1.15rem;
}
.price-note,
.quote-note {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}
.price-note {
  margin-inline-start: 0.35rem;
  white-space: nowrap;
}
.quote-note {
  max-width: 46ch;
}
.product-copy .lede {
  max-width: 62ch;
}
.product-copy .button {
  justify-self: start;
}
.product-copy details {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}
.product-copy summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.89rem;
}
.product-copy details p,
.product-copy details ul {
  margin-top: 0.6rem;
  color: var(--muted);
}
.editorial {
  max-width: 770px;
}
.editorial h1 {
  margin-bottom: 1.4rem;
}
.editorial h2 {
  font-size: 2.5rem;
  margin-block: 2.1rem 0.65rem;
}
.editorial p,
.editorial ol,
.editorial ul {
  margin-block: 0.75rem;
}
.editorial .button {
  margin-top: 1rem;
}
.site-footer {
  border-top: 1px solid var(--line);
}
.site-footer .shell {
  padding-block: 2.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.site-footer .wordmark {
  font-size: 2.1rem;
}
.site-footer p {
  font-size: 0.74rem;
  color: var(--muted);
}
.chat-float {
  position: fixed;
  z-index: 3;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: 1rem;
  box-shadow: 0 2px 20px #0002;
  border-radius: 2rem;
  background: #254739;
  border-color: #254739;
  padding-inline: 1.15rem;
}
@media (max-width: 780px) {
  .site-header .shell {
    flex-wrap: wrap;
    padding-block: 1rem;
    gap: 0.7rem;
  }
  .top-nav {
    width: 100%;
    gap: 0.5rem 1.25rem;
  }
  .top-nav a {
    padding-block: 0.35rem;
  }
  .hero,
  .process .shell {
    grid-template-columns: 1fr;
  }
  .single-product-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "gallery" "details";
    grid-template-rows: auto;
  }
  .single-product main.page-section {
    padding-top: 1.8rem;
  }
  .single-product .breadcrumb {
    margin-bottom: 1.15rem;
  }
  .product-intro h1 {
    font-size: clamp(2.35rem, 8.5vw, 3.8rem);
  }
  .hero-copy {
    padding: 3.1rem 3.5vw;
  }
  .hero-art {
    min-height: 0;
    aspect-ratio: 1.14;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .site-footer .shell {
    padding-bottom: 5rem;
  }
}
@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .card-art {
    aspect-ratio: 5/4;
  }
  .product-card h3 {
    font-size: 2rem;
  }
  .chat-float {
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    right: 0.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
