/*
Theme Name: Masara
Theme URI: http://localhost/masara/
Author: Masara
Description: Premium block theme for Masara, a Romanian solid oak furniture manufacturer. Architectural restraint, warm ember accents, and full-bleed parallax photography.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: masara
*/

/* ---------- Base ---------- */

.wp-site-blocks > footer {
  margin-block-start: 0;
}

.wp-block-group.section-flat {
  margin-top: 0 !important;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(21, 18, 14, 0.92);
  border-bottom: 1px solid rgba(243, 236, 224, 0.08);
}

/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   makes it a containing block, which collapsed the fixed mobile menu overlay
   to the height of the header. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.site-header .wp-block-navigation-item > a {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}

.site-header .wp-block-navigation-item > a:hover {
  color: #ffffff;
}

/* The header nav is right-justified; inside the overlay that pushed items off
   the right edge, so the open menu re-centres and enlarges them for touch. */
.site-header .wp-block-navigation__responsive-container.is-menu-open {
  padding: 5.5rem 1.75rem 2.5rem;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.brand-mark {
  height: 32px;
  width: auto;
}

.brand-mark img {
  height: 32px;
  width: auto;
}

/* The wordmark ships as near-black artwork, so it needs inverting on the dark bar only. */
.site-header .brand-mark img {
  filter: invert(1) brightness(1.6);
}

.site-footer .brand-mark img {
  height: 44px;
}

/* ==========================================================================
   Editorial homepage system
   ========================================================================== */

.ar-hero {
  position: relative;
  min-height: calc(100vh - 73px);
  min-height: calc(100svh - 73px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(1.5rem, 6vw, 5rem);
  overflow: hidden;
  background: #f4f3f1;
}

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

.ar-hero .ar-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ar-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.35) 0%, rgba(16, 16, 16, 0.55) 100%);
}

/* The home hero stays centred; inner pages lead left. */
.ar-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  text-align: center;
}

.ar-eyebrow {
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.1rem;
}

.ar-hero .wp-block-buttons {
  justify-content: center;
}

.ar-hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
}

.ar-hero-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75;
  margin: 1.5rem auto 2.25rem;
  max-width: 42ch;
}

.ar-hero .wp-block-button__link {
  border-color: #ffffff;
  color: #ffffff;
}

.ar-hero .wp-block-button__link:hover {
  background: #ffffff;
  color: #1f1e1d;
}

/* --- Sections --- */

.ar-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  padding-inline: clamp(1.5rem, 8vw, 7.5rem);
}

.ar-section-title {
  font-family: "Montserrat", sans-serif;
  font-size: var(--t-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--le-ink);
  margin: 0 0 2.5rem;
}

/* --- Product grid --- */

.ar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 16px;
}

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

/* Core's generated layout CSS sets a block-gap margin on every non-first child,
   which knocks grid rows out of alignment. Its selector outranks ours, so the
   override needs !important rather than more specificity. */
.ar-grid > *,
.ar-card > *,
.ar-mosaic > *,
.ar-col-grid > *,
.ar-col-card > *,
.ar-col-caption > *,
.le-stage > *,
.ar-enquiry > *,
.pr-grid > *,
.pr-item > *,
.pr-text > *,
.page-template-products main > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* The anchor inside a figure is inline, so it adds descender space below images. */
.ar-card figure a {
  display: block;
}

.ar-card {
  display: block;
  text-decoration: none;
  color: inherit;
  align-self: start;
}

.ar-card figure,
.ar-card .wp-block-image {
  margin: 0;
  overflow: hidden;
  background: #eef0f2;
}

.ar-card a {
  text-decoration: none;
  color: inherit;
}

.ar-card-name a:hover {
  color: #c1653a;
}

.ar-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eeece8;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.ar-grid.is-1 .ar-card img {
  aspect-ratio: 21 / 9;
}

.ar-card:hover img {
  transform: scale(1.035);
}

.ar-card-name {
  font-family: "Montserrat", sans-serif;
  font-size: var(--t-item);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--le-ink);
  margin: 12px 0 2px !important;
}

.ar-card-cat {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111111;
  opacity: 0.55;
  margin: 0;
}

/* --- Staggered reveal (armed by JS so content stays visible without it) --- */

.ar-grid.is-armed .ar-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.ar-grid.is-armed .ar-card.is-visible {
  opacity: 1;
  transform: none;
}

.ar-grid.is-armed .ar-card:nth-child(1) { transition-delay: 0ms; }
.ar-grid.is-armed .ar-card:nth-child(2) { transition-delay: 70ms; }
.ar-grid.is-armed .ar-card:nth-child(3) { transition-delay: 140ms; }
.ar-grid.is-armed .ar-card:nth-child(4) { transition-delay: 210ms; }
.ar-grid.is-armed .ar-card:nth-child(5) { transition-delay: 60ms; }
.ar-grid.is-armed .ar-card:nth-child(6) { transition-delay: 130ms; }
.ar-grid.is-armed .ar-card:nth-child(7) { transition-delay: 200ms; }
.ar-grid.is-armed .ar-card:nth-child(8) { transition-delay: 270ms; }

.ar-actions {
  margin-top: 2.75rem;
}

/* --- Editorial mosaic --- */

.ar-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(220px, 29vw, 420px);
  gap: 0;
  align-items: stretch;
  padding-block: clamp(2rem, 3.5vw, 3.5rem);
}

.ar-mosaic > * {
  margin: 0;
}

.ar-mosaic-cell {
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  height: 100%;
}

/* One cell spans a 2x2 block, so the grid reads as a composition, not a checkerboard. */
.ar-mosaic-cell.is-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.ar-mosaic-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ar-phrase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: var(--t-feature);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--le-ink);
}

/* Left-to-right reveal: an opaque panel wipes off to the right while the
   image behind it settles back from a 1.3 zoom. Armed by JS. */
.ar-mosaic.is-armed .ar-mosaic-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 15;
  background: #ffffff;
  transform: translate3d(0, 0, 0);
  transition: transform 0.75s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.ar-mosaic.is-armed .ar-mosaic-cell.is-revealed::after {
  transform: translate3d(101%, 0, 0);
}

.ar-mosaic.is-armed .ar-mosaic-cell img {
  transform: scale(1.3);
  transition: transform 0.9s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.ar-mosaic.is-armed .ar-mosaic-cell.is-revealed img {
  transform: scale(1);
}

/* A cell spanning 2 columns forces an implicit extra column in a narrower
   grid, so the span has to be unwound at each breakdown, not just the count. */
@media (max-width: 1023px) {
  .ar-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: clamp(200px, 26vw, 300px);
  }
  /* Two rows keeps it a feature rather than a letterbox strip. */
  .ar-mosaic-cell.is-feature {
    grid-column: span 2;
    grid-row: span 2;
  }
  /* Keeps the trailing image from leaving a dangling empty cell. */
  .ar-mosaic-cell:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .ar-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .ar-mosaic-cell,
  .ar-mosaic-cell.is-feature,
  .ar-mosaic-cell:last-child {
    grid-column: span 1;
    grid-row: span 1;
    height: auto;
  }
  .ar-mosaic-cell img {
    aspect-ratio: 4 / 3;
    height: auto;
  }
  .ar-phrase {
    padding-block: clamp(2.5rem, 13vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ar-mosaic.is-armed .ar-mosaic-cell::after { display: none; }
  .ar-mosaic.is-armed .ar-mosaic-cell img { transform: none; }
}

.editor-styles-wrapper .ar-mosaic-cell::after { display: none; }
.editor-styles-wrapper .ar-mosaic-cell img { transform: none; }

/* --- Enquiry band --- */

.ar-enquiry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.ar-enquiry-eyebrow {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(65, 64, 66, 0.5);
  margin: 0 0 1.25rem !important;
}

.ar-enquiry-title {
  font-family: "Montserrat", sans-serif;
  font-size: var(--t-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--le-ink);
  margin: 0 0 1.25rem !important;
}

.ar-enquiry-lede {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.8;
  color: rgba(65, 64, 66, 0.78);
  max-width: 40ch;
  margin: 0 !important;
}

.ar-enquiry .ar-actions {
  margin-top: 2.25rem;
}

.ar-enquiry-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(65, 64, 66, 0.45);
  margin: 0 0 0.85rem !important;
}

.ar-enquiry-label-spaced {
  margin-top: 2.5rem !important;
}

.ar-enquiry .ar-contact-line {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(65, 64, 66, 0.9);
  margin: 0 0 0.35rem !important;
}

.ar-enquiry .ar-contact-muted {
  color: rgba(65, 64, 66, 0.6);
}

.ar-enquiry .ar-contact-strong a {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--le-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(65, 64, 66, 0.22);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ar-enquiry .ar-contact-strong a:hover {
  color: #c1653a;
  border-bottom-color: #c1653a;
}

.ar-contact-note {
  margin-top: 2.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(65, 64, 66, 0.14);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(65, 64, 66, 0.55);
}

@media (max-width: 1100px) {
  .ar-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .ar-grid,
  .ar-grid.is-3 { grid-template-columns: repeat(2, 1fr); }
  .ar-enquiry { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ar-grid,
  .ar-grid.is-3,
  .ar-grid.is-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ar-grid.is-armed .ar-card {
    opacity: 1;
    transform: none;
  }
}

.editor-styles-wrapper .ar-card {
  opacity: 1 !important;
  transform: none !important;
}

/* ==========================================================================
   Limited edition — pinned product gallery
   Studio-neutral panels that stack and wipe over one another on scroll.
   ========================================================================== */

/* Shared with the products page, which uses the same studio language. */
:root {
  --le-ink: #14171a;
  --le-studio-top: #d6dbe1;
  --le-studio-mid: #dadfe6;
  --le-studio-bottom: #dfe4ea;

  /* One type scale for every page. Headings are sentence case throughout;
     uppercase is reserved for eyebrows, labels, nav and buttons. */
  --t-display: clamp(2.6rem, 6vw, 5rem);
  --t-heading: clamp(1.65rem, 2.8vw, 2.5rem);
  --t-feature: clamp(1.75rem, 3.2vw, 3rem);
  --t-item-lg: clamp(1.5rem, 2.4vw, 2rem);
  --t-item: clamp(1.1rem, 1.5vw, 1.35rem);
}

.page-template-limited-edition .wp-site-blocks {
  overflow: visible;
}

/* --- Hero --- */

.le-hero {
  position: relative;
  min-height: calc(100vh - 73px);
  min-height: calc(100svh - 73px);
  display: flex;
  align-items: flex-start;
  padding-top: clamp(3rem, 11vh, 7rem);
  overflow: hidden;
  background: #f4f4f3;
}

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

.le-hero .le-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.le-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.le-hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--le-ink);
  margin: 0;
}

.le-hero-sub {
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(20, 23, 26, 0.82);
  margin-top: 1.25rem;
}

.le-hero-caption {
  position: absolute;
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: 2.5rem;
  z-index: 2;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: rgba(20, 23, 26, 0.8);
  margin: 0;
}

.le-scroll-cue {
  position: absolute;
  left: clamp(1.5rem, 5vw, 5rem);
  bottom: 2.25rem;
  z-index: 2;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(20, 23, 26, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--le-ink);
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  animation: le-cue 2.6s ease-in-out infinite;
}

.le-scroll-cue:hover {
  background: rgba(20, 23, 26, 0.06);
  border-color: rgba(20, 23, 26, 0.6);
  color: var(--le-ink);
}

@keyframes le-cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* --- Pinned panel stack --- */

.le-stage {
  position: relative;
  overflow: visible;
}

.le-panel {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 clamp(1.5rem, 5vw, 5rem) clamp(2rem, 6vh, 4rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--le-studio-mid);
}

.le-shot {
  position: absolute;
  inset: 0;
  margin: 0;
}

.le-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  will-change: transform;
}

/* Anchored bottom-right. Fully visible as each panel arrives; the next panel
   then rises over it, so this corner reads during the panel's own moment. */
.le-name {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  max-width: min(90vw, 30ch);
  font-family: "Montserrat", sans-serif;
  font-size: var(--t-item-lg);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: right;
  color: var(--le-ink);
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.5);
}

.le-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.le-name a:hover {
  color: inherit;
  border-bottom-color: currentColor;
}

/* --- Closing split band --- */

.le-outro {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  background: #24272b;
}

.le-outro .le-outro-media {
  margin: 0;
  height: 100%;
}

.le-outro .le-outro-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.04);
}

.le-outro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #f3ece0;
}

.le-outro-text .wp-block-heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.le-outro-text .wp-block-heading a {
  color: inherit;
  text-decoration: none;
}

.le-outro-text .wp-block-heading a:hover {
  color: #c1653a;
}

.le-outro-text p {
  font-family: "Montserrat", sans-serif;
  color: rgba(243, 236, 224, 0.72);
  max-width: 22ch;
  margin: 0;
}

@media (max-width: 781px) {
  .le-outro {
    grid-template-columns: 1fr;
  }
  .le-shot img {
    max-width: 96vw;
    max-height: 72vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .le-scroll-cue {
    animation: none;
  }
  .le-shot img {
    transform: none !important;
  }
}

/* Editor: sticky panels would otherwise collapse on top of each other */
.editor-styles-wrapper .le-panel {
  position: relative;
}

/* ==========================================================================
   Products — studio language borrowed from the limited-edition page
   ========================================================================== */

.pr-intro {
  background: linear-gradient(
    180deg,
    var(--le-studio-top) 0%,
    var(--le-studio-mid) 60%,
    var(--le-studio-bottom) 100%
  );
  padding: clamp(4rem, 9vh, 7rem) clamp(1.5rem, 8vw, 7.5rem) clamp(3rem, 6vh, 5rem);
}

.pr-eyebrow {
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(20, 23, 26, 0.55);
  margin: 0 0 1.1rem !important;
}

.ct-form-title {
  font-family: "Montserrat", sans-serif;
  font-size: var(--t-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--le-ink);
  margin: 0 0 0.75rem !important;
}

.pr-title {
  font-family: "Montserrat", sans-serif;
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--le-ink);
  margin: 0 0 1.5rem !important;
}

.pr-lede {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75;
  color: rgba(20, 23, 26, 0.72);
  max-width: 46ch;
  margin: 0 !important;
}

.pr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.6vw, 2.5rem) clamp(1rem, 1.8vw, 1.75rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 8vw, 7.5rem) clamp(3rem, 6vw, 5rem);
  background: #ffffff;
}

.pr-item {
  background: var(--le-studio-bottom);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(20, 23, 26, 0.07);
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.4s ease;
}

.pr-item:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 23, 26, 0.16);
  box-shadow: 0 14px 32px rgba(20, 23, 26, 0.08);
}

.pr-item > a,
.pr-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Full-bleed media: contained renders showed their own backdrop as a visible
   box against the tile, so the image covers the tile width instead. */
.pr-item figure,
.pr-item .wp-block-image {
  margin: 0 !important;
  overflow: hidden;
}

.pr-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.pr-item:hover img {
  transform: scale(1.04);
}

.pr-text {
  padding: clamp(1.1rem, 1.8vw, 1.5rem) clamp(1.1rem, 1.8vw, 1.5rem) clamp(1.4rem, 2.2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pr-cta {
  margin-top: auto !important;
  padding-top: 1rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--le-ink);
}

.pr-item:hover .pr-cta {
  color: #c1653a;
}

.pr-name {
  font-family: "Montserrat", sans-serif;
  font-size: var(--t-item);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--le-ink);
  margin: 0 0 0.5rem !important;
}

.pr-name a {
  color: inherit;
  text-decoration: none;
}

.pr-name a:hover {
  color: #c1653a;
}

.pr-meta {
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20, 23, 26, 0.55);
  margin: 0 !important;
}

.pr-note {
  background: var(--le-studio-bottom);
  padding: clamp(2.5rem, 5vh, 4rem) clamp(1.5rem, 8vw, 7.5rem);
  font-size: 0.95rem;
  color: rgba(20, 23, 26, 0.7);
}

.pr-cta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 23, 26, 0.25);
  padding-bottom: 2px;
}

.pr-cta a:hover {
  color: #c1653a;
  border-bottom-color: #c1653a;
}

@media (max-width: 1023px) {
  .pr-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .pr-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Single product
   ========================================================================== */

.pd-wrap {
  padding-inline: clamp(1.5rem, 4vw, 3.6rem);
}

.pd-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 7.5rem) clamp(1.5rem, 3vw, 2rem);
  max-width: 1325px;
  margin-inline: auto;
}

.pd-kicker {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(65, 64, 66, 0.7);
  margin: 0 0 0.9rem !important;
}

.pd-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.1rem, 3.9vw, 3.4rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--le-ink);
  margin: 0 0 1.5rem !important;
}

.pd-lede {
  font-size: 1.05rem;
  line-height: 1.62;
  color: rgba(65, 64, 66, 0.85);
  margin: 0 0 1.6rem !important;
  max-width: 46ch;
}

.pd-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin: 1.75rem 0 0 !important;
}

.pd-links a {
  font-size: 0.95rem;
  color: rgba(65, 64, 66, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pd-links a:hover {
  color: #c1653a;
}

.pd-media {
  position: relative;
  overflow: hidden;
  margin: 0 !important;
}

.pd-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--le-studio-mid);
}

/* --- Details: specs + finishes --- */

.pd-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  max-width: 1325px;
  margin-inline: auto;
}

.pd-specs {
  border-top: 1px solid rgba(65, 64, 66, 0.22);
}

.pd-spec-row {
  display: grid;
  grid-template-columns: minmax(9rem, 34%) 1fr;
  gap: 1rem;
  padding: 18px 0;
  border-bottom: 1px solid rgba(65, 64, 66, 0.22);
  margin: 0 !important;
}

.pd-spec-row dt,
.pd-spec-key {
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(65, 64, 66, 0.75);
}

.pd-spec-val {
  font-size: 1rem;
  color: var(--le-ink);
}

.pd-swatch-label {
  font-size: 1.05rem;
  color: var(--le-ink);
  margin: 0 0 1rem !important;
}

.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 14px;
  margin: 0 0 2.25rem !important;
}

.pd-chip {
  width: 108px;
}

.pd-chip span {
  display: block;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(65, 64, 66, 0.12);
}

.pd-chip small {
  display: block;
  margin-top: 0.55rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  color: rgba(65, 64, 66, 0.75);
}

/* --- Gallery --- */

.pd-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-block: 0 clamp(3rem, 6vw, 5rem);
  max-width: 1325px;
  margin-inline: auto;
}

.pd-gallery .pd-media img {
  aspect-ratio: 3 / 4;
}

/* Same two-layer reveal as the editorial mosaic: curtain wipes right while
   the image settles back from a 1.3 zoom. */
.pd-gallery.is-armed .pd-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 15;
  background: #ffffff;
  transform: translate3d(0, 0, 0);
  transition: transform 0.75s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.pd-gallery.is-armed .pd-media.is-revealed::after {
  transform: translate3d(101%, 0, 0);
}

.pd-gallery.is-armed .pd-media img {
  transform: scale(1.3);
  transition: transform 1.6s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.pd-gallery.is-armed .pd-media.is-revealed img {
  transform: scale(1);
}

.pd-cta {
  background: var(--le-studio-bottom);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 8vw, 7.5rem);
}

@media (prefers-reduced-motion: reduce) {
  .pd-gallery.is-armed .pd-media::after { display: none; }
  .pd-gallery.is-armed .pd-media img { transform: none; }
}

.editor-styles-wrapper .pd-media::after { display: none; }
.editor-styles-wrapper .pd-media img { transform: none; }

@media (max-width: 900px) {
  .pd-hero,
  .pd-details { grid-template-columns: 1fr; }
  .pd-gallery { grid-template-columns: 1fr; gap: 18px; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.ct-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 8vw, 7.5rem);
}

.ct-media figure,
.ct-media .wp-block-image {
  margin: 0 !important;
  overflow: hidden;
}

.ct-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ct-media-caption {
  margin: 1rem 0 0 !important;
  font-size: 0.85rem;
  color: rgba(65, 64, 66, 0.6);
}

.ct-form-note {
  color: rgba(65, 64, 66, 0.72);
  margin: 0 0 2rem !important;
  max-width: 42ch;
}

.ct-form {
  display: grid;
  gap: 1.5rem;
}

/* Block, not flex: whitespace between the label and input was generating
   anonymous flex items and inflating each field by ~40px. */
.ct-field {
  display: block;
  margin: 0 !important;
  font-size: 1rem;
  line-height: 1.4;
}

.ct-field > label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(65, 64, 66, 0.55);
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  /* Inputs default to inline-block, which leaves descender space under each. */
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(65, 64, 66, 0.28);
  background: transparent;
  padding: 0.55rem 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  color: var(--le-ink);
  border-radius: 0;
  transition: border-color 0.2s ease;
}

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

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  border-bottom-color: var(--le-ink);
}

.ct-consent label {
  flex-direction: row;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(65, 64, 66, 0.75);
  line-height: 1.5;
}

.ct-consent input {
  width: auto;
  margin-top: 0.2rem;
}

/* Honeypot: off-screen rather than display:none so bots still fill it. */
.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-submit {
  justify-self: start;
  border: 1px solid #8d8b88;
  border-radius: 70px;
  background: transparent;
  padding: 13px 30px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #1f1e1d;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ct-submit:hover {
  background: #1f1e1d;
  border-color: #1f1e1d;
  color: #ffffff;
}

.ct-notice {
  padding: 0.9rem 1.15rem;
  margin: 0 0 1.75rem !important;
  font-size: 0.95rem;
  border-left: 2px solid;
}

.ct-notice.is-ok {
  border-color: #4a7c59;
  background: rgba(74, 124, 89, 0.08);
  color: #2f5138;
}

.ct-notice.is-error {
  border-color: #c1653a;
  background: rgba(193, 101, 58, 0.08);
  color: #8f4526;
}

.ct-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 8vw, 7.5rem) clamp(4rem, 7vw, 6rem);
  border-top: 1px solid rgba(65, 64, 66, 0.12);
}

@media (max-width: 900px) {
  .ct-main { grid-template-columns: 1fr; }
  .ct-details { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Collections listing
   ========================================================================== */

.ar-col-head {
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.5rem, 8vw, 7.5rem) 0;
}

.ar-col-title {
  font-family: "Montserrat", sans-serif;
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--le-ink);
  margin: 0 0 2.2rem;
}

.ar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  margin: 0 0 2.5rem;
  padding: 0 clamp(1.5rem, 8vw, 7.5rem);
}

.ar-filters a {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #414042;
  text-decoration: none;
  opacity: 0.45;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.ar-filters a:hover {
  opacity: 0.8;
  color: #414042;
}

.ar-filters a.is-active {
  opacity: 1;
  border-bottom-color: #414042;
}

.ar-filter-count {
  margin-left: auto;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #414042;
  opacity: 0.45;
}

.ar-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.ar-col-card.is-hidden {
  display: none;
}

/* The media box clips a white curtain that slides off to the right. */
.ar-col-media {
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  background: #eeece8;
}

.ar-col-media img {
  display: block;
  width: 100%;
  aspect-ratio: 717 / 560;
  object-fit: cover;
}

.ar-col-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #ffffff;
  transform: translateX(0);
}

.ar-col-card.is-revealed .ar-col-media::after {
  transform: translateX(101%);
  transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Without JS (or with reduced motion) the curtain must never sit over the image. */
.no-reveal .ar-col-media::after,
.editor-styles-wrapper .ar-col-media::after {
  display: none;
}

.ar-col-caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(1.5rem, 2.9vw, 2.6rem);
  background: #ffffff;
}

.ar-col-name {
  font-family: "Montserrat", sans-serif;
  font-size: var(--t-item-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--le-ink);
  margin: 0 0 1.05rem !important;
}

.ar-col-name a {
  color: inherit;
  text-decoration: none;
}

.ar-col-name a:hover {
  color: #c1653a;
}

.ar-col-collection {
  font-size: 0.875rem;
  color: #414042;
  opacity: 0.65;
  margin: 0 !important;
}

.ar-col-explore {
  flex: 0 0 auto;
  margin: 0 !important;
}

.ar-col-explore a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(65, 64, 66, 0.35);
  border-radius: 50%;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #414042;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ar-col-explore a:hover {
  background: #414042;
  border-color: #414042;
  color: #ffffff;
}

@media (max-width: 781px) {
  .ar-col-grid {
    grid-template-columns: 1fr;
  }
  .ar-col-explore a {
    width: 62px;
    height: 62px;
  }
  .ar-filter-count {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ar-col-media::after {
    display: none;
  }
}

/* ---------- Stat band ---------- */

.stat-number {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 500;
  color: #1f1e1d;
  margin-bottom: 0.25rem;
}

/* ---------- Buttons ---------- */

.wp-block-button__link {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.wp-block-button .wp-block-button__link:hover {
  border-color: #1f1e1d;
}

/* Full-size pills crowd a phone, so they step down below the tablet break.
   Needs the extra class to outrank theme.json's `:root :where(...)` output. */
@media (max-width: 600px) {
  .wp-block-button .wp-block-button__link {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    padding: 11px 22px;
  }
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border: 2px solid #414042;
  color: #414042;
  background: transparent;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #414042;
  color: #ffffff;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid #e6e4e1;
}

.site-footer a {
  color: #414042;
  text-decoration: none;
}
.site-footer a:hover {
  color: #c1653a;
}

.site-footer .footer-col-title {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1f1e1d;
  margin: 0 0 1rem;
}

/* ---------- Animation & Motion ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}
.fade-in {
  opacity: 0;
  animation: fadeIn 0.9s ease forwards;
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.45s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.55s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll,
  .fade-up,
  .fade-in,
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .parallax-cover {
    background-attachment: scroll;
  }
}

/* === Editor: keep animated content visible while editing === */
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .fade-in,
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .stagger-children > * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}
