/* ==========================================================================
   FLEURÉ — Modern Soft Luxury / Botanical Editorial
   ========================================================================== */

:root {
  --ivory: #F7F2EA;
  --ivory-raised: #FBF8F3;
  --blush: #E8D8CF;
  --blush-soft: #F1E7E0;
  --rose: #B77C83;
  --olive: #59634D;
  --chocolate: #332B2B;
  --muted: #6B5F5F;

  --font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-photo: 24px;
  --radius-panel: 20px;
  --radius-control: 12px;

  --shadow-soft: 0 1px 2px rgba(51, 43, 43, 0.05), 0 18px 40px -22px rgba(51, 43, 43, 0.25);
  --shadow-header: 0 10px 30px -24px rgba(51, 43, 43, 0.35);

  --container: 1200px;
  --header-h: 72px;
  --section-y: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--chocolate);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

section[id],
header[id] {
  scroll-margin-top: var(--header-h);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  color: var(--chocolate);
}

h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.1rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--chocolate);
  color: var(--ivory);
  border-radius: var(--radius-control);
  text-decoration: none;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 26px;
  border: 1px solid var(--olive);
  border-radius: var(--radius-control);
  background: var(--olive);
  color: var(--ivory-raised);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover {
  background: #4A5340;
  border-color: #4A5340;
  box-shadow: 0 10px 24px -14px rgba(51, 43, 43, 0.5);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn--ghost {
  background: transparent;
  color: var(--chocolate);
  border-color: rgba(51, 43, 43, 0.35);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--chocolate);
  border-color: var(--chocolate);
  color: var(--ivory-raised);
}

.btn--small {
  min-height: 42px;
  padding: 9px 20px;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 234, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.5s var(--ease), background-color 0.5s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 242, 234, 0.98);
  box-shadow: var(--shadow-header);
}

.header-inner {
  transition: height 0.5s var(--ease);
}

.site-header.is-scrolled .header-inner {
  height: calc(var(--header-h) - 10px);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--chocolate);
  text-decoration: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-list a {
  position: relative;
  padding: 6px 0;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--chocolate);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(51, 43, 43, 0.3);
  border-radius: var(--radius-control);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--chocolate);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Photos ---------- */

.photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--blush);
  box-shadow: var(--shadow-soft);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.6s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .photo:hover img {
    transform: scale(1.02);
  }
}

.photo.is-missing img {
  visibility: hidden;
}

.photo--hero {
  aspect-ratio: 4 / 5;
}

.photo--studio {
  aspect-ratio: 4 / 5;
}

.photo--interior {
  aspect-ratio: 4 / 3;
  margin-top: 40px;
}

.photo--delivery {
  aspect-ratio: 5 / 4;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(40px, 6vw, 88px) var(--section-y);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero-copy {
  max-width: 520px;
}

.hero-copy h1 {
  margin-bottom: 24px;
}

.lead {
  max-width: 44ch;
  font-size: 1.1rem;
  color: var(--muted);
}

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

/* ---------- Section heading ---------- */

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 16px 48px;
  margin-bottom: 40px;
}

.section-intro {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
}

/* ---------- Filters & products ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-btn {
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid rgba(51, 43, 43, 0.22);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--chocolate);
  font: 500 0.9rem/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.filter-btn {
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--rose);
}

.filter-btn:active {
  transform: scale(0.97);
}

.filter-btn[aria-pressed="true"] {
  background: var(--chocolate);
  border-color: var(--chocolate);
  color: var(--ivory-raised);
}

.filter-count {
  min-height: 1.5em;
  margin: 0 0 32px;
  font-size: 0.88rem;
  color: var(--muted);
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 32px;
}

.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product[hidden] {
  display: none;
}

.product-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--blush);
  box-shadow: var(--shadow-soft);
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.product.is-missing .product-photo img {
  visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .product:hover .product-photo img {
    transform: scale(1.03);
  }
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 20px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.product-category {
  font-size: 0.82rem;
  color: var(--olive);
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  white-space: nowrap;
}

.product-name {
  margin-top: 6px;
}

.product-desc {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.product-action {
  align-self: flex-start;
  margin-top: 14px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--rose);
  background: none;
  color: var(--chocolate);
  font: 500 0.9rem/1.4 var(--font-sans);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.product-action:hover {
  color: var(--olive);
  border-color: var(--olive);
}

/* ---------- Studio ---------- */

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.studio-copy h2 {
  margin-bottom: 24px;
}

.studio-copy > p {
  max-width: 52ch;
  color: var(--muted);
}

.principles {
  list-style: none;
  margin-top: 32px;
  border-top: 1px solid rgba(51, 43, 43, 0.15);
}

.principles li {
  padding-block: 16px;
  border-bottom: 1px solid rgba(51, 43, 43, 0.15);
  font-size: 0.97rem;
}

.principles strong {
  font-weight: 600;
  color: var(--chocolate);
}

/* ---------- Custom builder ---------- */

.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.custom-copy {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.custom-copy h2 {
  margin-bottom: 20px;
}

.builder {
  display: grid;
  gap: 40px;
}

.builder-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.builder-group legend {
  padding: 0;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
}

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

.swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

.swatch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.swatch-dot {
  display: block;
  transition-property: transform, box-shadow;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-control);
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(51, 43, 43, 0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.swatch:hover .swatch-dot {
  transform: translateY(-2px);
}

.swatch:has(input:checked) .swatch-dot {
  box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3.5px var(--chocolate);
}

.swatch:has(input:focus-visible) .swatch-dot {
  outline: 2px solid var(--rose);
  outline-offset: 4px;
}

.swatch-label {
  transition: color 0.35s var(--ease);
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--muted);
}

.swatch:has(input:checked) .swatch-label {
  color: var(--chocolate);
  font-weight: 600;
}

.sizes {
  display: grid;
  gap: 10px;
}

.size-option {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid rgba(51, 43, 43, 0.16);
  border-radius: var(--radius-control);
  background: var(--ivory-raised);
  cursor: pointer;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease), transform 0.25s var(--ease);
}

.size-option:active {
  transform: scale(0.99);
}

.size-option:has(input:checked) {
  background: var(--ivory);
}

.size-option:hover {
  border-color: var(--rose);
}

.size-option:has(input:checked) {
  border-color: var(--chocolate);
  box-shadow: inset 0 0 0 1px var(--chocolate);
}

.size-option:has(input:focus-visible) {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.size-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.size-name {
  font-weight: 600;
  font-size: 0.97rem;
}

.size-desc {
  font-size: 0.88rem;
  color: var(--muted);
}

.estimate {
  padding: 32px;
  border-radius: var(--radius-panel);
  background: var(--olive);
  color: var(--ivory-raised);
  box-shadow: var(--shadow-soft);
}

.estimate-label {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.estimate-price {
  margin: 8px 0 6px;
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1.05;
}

.estimate-summary {
  font-size: 0.95rem;
  opacity: 0.92;
}

.estimate .btn {
  margin-top: 24px;
  background: var(--ivory-raised);
  border-color: var(--ivory-raised);
  color: var(--chocolate);
}

.estimate .btn:hover {
  background: var(--blush);
  border-color: var(--blush);
  box-shadow: none;
}

.fine-print {
  margin: 16px 0 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ---------- Delivery ---------- */

.delivery-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.zones {
  margin: 0;
}

.zones > div {
  padding-block: 20px;
  border-top: 1px solid rgba(51, 43, 43, 0.15);
}

.zones > div:last-child {
  border-bottom: 1px solid rgba(51, 43, 43, 0.15);
}

.zones dt {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.zones dd {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info > p {
  max-width: 42ch;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  margin-top: 32px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding-block: 16px;
  border-top: 1px solid rgba(51, 43, 43, 0.15);
}

.contact-list li:last-child {
  border-bottom: 1px solid rgba(51, 43, 43, 0.15);
}

.contact-list span {
  font-size: 0.9rem;
  color: var(--olive);
  padding-top: 2px;
}

.contact-list a {
  color: var(--chocolate);
  text-decoration-color: var(--rose);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.contact-list p {
  margin: 0;
}

.form-wrap {
  padding: clamp(28px, 4vw, 44px);
  background: var(--ivory-raised);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft);
}

.demo-notice {
  margin: 0 0 28px;
  padding: 14px 16px;
  background: var(--blush-soft);
  border-radius: var(--radius-control);
  font-size: 0.9rem;
  color: var(--muted);
}

.demo-notice strong {
  color: var(--chocolate);
}

.field {
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(51, 43, 43, 0.22);
  border-radius: var(--radius-control);
  background: var(--ivory);
  color: var(--chocolate);
  font: 400 1rem/1.4 var(--font-sans);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(183, 124, 131, 0.25);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #9B3B3B;
}

.hint,
.error {
  margin: 8px 0 0;
  font-size: 0.85rem;
}

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

.error {
  color: #8A2E2E;
}

.error[hidden] {
  display: none;
}

.form-wrap .btn {
  margin-top: 8px;
}

.form-status {
  margin: 20px 0 0;
  padding: 16px 18px;
  background: var(--blush-soft);
  border-radius: var(--radius-control);
  font-size: 0.95rem;
}

.form-status[hidden] {
  display: none;
}

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

.site-footer {
  padding-block: 64px 48px;
  background: var(--chocolate);
  color: var(--ivory);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.logo--footer {
  color: var(--ivory);
  font-size: 2rem;
}

.footer-tag {
  margin-top: 12px;
  color: var(--blush);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--blush);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 4px;
}

.footer-legal {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(247, 242, 234, 0.72);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease) var(--reveal-delay, 0ms), transform 0.9s var(--ease) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Hero intro (plays once on load, no flicker) ---------- */

@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes intro-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-copy h1 {
  animation: intro-rise 0.9s var(--ease) 0.1s both;
}

.hero-copy .lead {
  animation: intro-rise 0.9s var(--ease) 0.25s both;
}

.hero-copy .hero-actions {
  animation: intro-rise 0.9s var(--ease) 0.4s both;
}

.photo--hero {
  animation: intro-fade 1.2s var(--ease) 0.2s both;
}

/* ---------- Filter transitions ---------- */

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes card-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.product.is-entering {
  animation: card-in 0.55s var(--ease) both;
}

.product.is-leaving {
  animation: card-out 0.18s ease-out both;
  pointer-events: none;
}

/* ---------- Estimate price change ---------- */

@keyframes price-swap {
  from {
    opacity: 0.4;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.estimate-price.is-changing {
  animation: price-swap 0.35s var(--ease) both;
}

/* ---------- Responsive ---------- */

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

  .custom-copy {
    position: static;
  }

  .photo--interior {
    margin-top: 32px;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--ivory);
    border-bottom: 1px solid rgba(51, 43, 43, 0.1);
    box-shadow: var(--shadow-header);
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 16px 24px;
    border-top: 1px solid rgba(51, 43, 43, 0.08);
    font-size: 1rem;
  }

  .nav-list a::after {
    display: none;
  }

  .hero-grid,
  .studio-grid,
  .contact-grid,
  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .photo--hero,
  .photo--studio {
    aspect-ratio: 4 / 5;
  }

  .hero-copy {
    max-width: none;
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

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

  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
    --radius-photo: 20px;
  }

  .container {
    width: min(100% - 40px, var(--container));
  }

  .logo {
    font-size: 1.5rem;
  }

  .products {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .hero-actions .btn {
    flex: 1 1 100%;
  }

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

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .photo--interior {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Reduced motion ---------- */

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .product:hover .product-photo img,
  .photo:hover img,
  .btn:active,
  .filter-btn:active,
  .size-option:active {
    transform: none;
  }

  .hero-copy h1,
  .hero-copy .lead,
  .hero-copy .hero-actions,
  .photo--hero,
  .product.is-entering,
  .estimate-price.is-changing {
    animation-delay: 0ms !important;
  }

  .reveal {
    transition-delay: 0ms !important;
  }
}
