:root {
  --ink: #241a17;
  --muted: #756963;
  --paper: #f7f4f0;
  --card: #fff;
  --line: rgba(36, 26, 23, 0.12);
  --gold: #efbf65;
  --brown: #241612;
  --radius: 1.5rem;
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem max(1rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 240, 0.94);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--brown); font: 700 1.25rem Georgia, serif; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 1.05rem Georgia, serif; white-space: nowrap; }
.brand small { margin-top: 0.18rem; color: var(--muted); font-size: 0.69rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
nav { display: flex; gap: 0.35rem; }
nav a { padding: 0.65rem 0.8rem; border-radius: 999px; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
nav a:hover, nav a:focus-visible { background: #fff; outline: none; }

main, footer { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 32rem; margin-top: 1rem; overflow: hidden; border-radius: 2rem; color: #fff; background: var(--brown); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 5vw, 4.25rem); }
.eyebrow { margin: 0; color: #a65f38; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; }
.hero .eyebrow, .visit .eyebrow { color: var(--gold); }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.04; }
h1 { max-width: 11ch; margin-top: 0.75rem; font-size: clamp(2.7rem, 5vw, 4.6rem); }
.hero-copy > p:not(.eyebrow) { max-width: 36rem; margin: 1.25rem 0 0; color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 1.7; }
.hero > img { width: 100%; height: 100%; min-height: 32rem; object-fit: cover; }
.primary-link, .directions-link { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; margin-top: 1.75rem; padding: 0.75rem 1.2rem; border-radius: 999px; color: var(--brown); background: var(--gold); font-weight: 800; text-decoration: none; }

.catalogue { padding: 5rem 0; scroll-margin-top: 5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin-top: 0.45rem; font-size: clamp(2.2rem, 5vw, 3.7rem); }
.section-heading > p { margin: 0; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.catalogue-tools { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; }
.search-box { display: flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.search-box svg { width: 1.2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 1rem; }
select { min-height: 3.25rem; padding: 0 2.75rem 0 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-weight: 700; }
.category-list { display: flex; gap: 0.5rem; padding: 1.25rem 0 1.5rem; overflow-x: auto; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category-button { flex: 0 0 auto; padding: 0.68rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-weight: 750; cursor: pointer; }
.category-button[aria-pressed="true"] { border-color: var(--brown); color: #fff; background: var(--brown); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.product-card { overflow: hidden; padding: 0.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 0.5rem 1.5rem rgba(55, 35, 28, 0.05); transition: transform 180ms ease, box-shadow 180ms ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 1.1rem 2.2rem rgba(55, 35, 28, 0.1); }
.product-card button { width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.product-image { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: calc(var(--radius) - 0.45rem); background: #eee8e3; }
.product-image img { width: 100%; height: 100%; padding: 1rem; object-fit: contain; }
.product-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,0.92); font: 700 clamp(2.4rem, 7vw, 4.8rem) Georgia, serif; }
.badge { position: absolute; top: 0.7rem; left: 0.7rem; padding: 0.36rem 0.65rem; border-radius: 999px; color: var(--brown); background: rgba(255,255,255,0.94); font-size: 0.72rem; font-weight: 800; box-shadow: 0 0.25rem 0.8rem rgba(0,0,0,0.08); }
.product-info { padding: 1rem 0.45rem 0.45rem; }
.product-info h3 { min-height: 2.5em; font-size: 1.45rem; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.9rem; }
.price { font-size: 1.15rem; font-weight: 850; }
.view-label { color: #8f5130; font-size: 0.82rem; font-weight: 800; }
.empty-state { padding: 5rem 1rem; border: 1px dashed rgba(36,26,23,0.25); border-radius: var(--radius); background: #fff; text-align: center; }
.empty-state h3 { font-size: 1.8rem; }
.empty-state p { color: var(--muted); }
.empty-state button { padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--paper); font-weight: 800; cursor: pointer; }

.visit { overflow: hidden; margin-bottom: 4rem; border-radius: 2rem; color: #fff; background: var(--brown); scroll-margin-top: 5rem; }
.visit-details { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); }
.visit h2 { margin-top: 0.5rem; font-size: clamp(2rem, 4vw, 3rem); }
.visit-details p:not(.eyebrow) { margin: 0.75rem 0 0; color: rgba(255,255,255,0.7); }
.visit-details p a { color: #fff; font-weight: 800; text-decoration: none; }
.directions-link { flex: 0 0 auto; margin: 0; }
.map-frame { padding: 0.65rem; background: #fff; }
.map-frame iframe { display: block; width: 100%; height: 28rem; border: 0; border-radius: 1.35rem; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 0 2rem; color: var(--muted); font-size: 0.9rem; }
footer a { font-weight: 800; }

.product-dialog { width: min(56rem, calc(100% - 1.5rem)); max-height: calc(100vh - 1.5rem); padding: 0; overflow: auto; border: 0; border-radius: 1.7rem; color: var(--ink); background: var(--paper); box-shadow: 0 2rem 6rem rgba(0,0,0,0.3); }
.product-dialog::backdrop { background: rgba(20, 12, 10, 0.7); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,0.92); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.dialog-layout .product-image { width: 100%; min-width: 0; height: auto; min-height: 28rem; aspect-ratio: auto; border-radius: 0; }
.dialog-copy { min-width: 0; padding: clamp(1.6rem, 4vw, 3.25rem); }
.dialog-copy h2 { margin-top: 0.4rem; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.dialog-copy .description { color: var(--muted); line-height: 1.7; }
.dialog-price { margin: 1.4rem 0; font-size: 1.8rem; font-weight: 850; }
.details-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0; }
.details-list div { padding: 0.9rem; border-radius: 1rem; background: #fff; }
.details-list dt { color: var(--muted); font-size: 0.78rem; }
.details-list dd { margin: 0.3rem 0 0; font-weight: 800; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero > img { min-height: 20rem; max-height: 28rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-layout { grid-template-columns: minmax(0, 1fr); }
  .dialog-layout .product-image { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .site-header { padding-block: 0.65rem; }
  nav a:first-child { display: none; }
  .brand strong { font-size: 0.95rem; }
  main, footer { width: min(100% - 1rem, 1180px); }
  .hero { min-height: 0; border-radius: 1.5rem; }
  .hero-copy { padding: 2rem 1.25rem; }
  .hero > img { min-height: 15rem; }
  .catalogue { padding: 3.5rem 0; }
  .section-heading { align-items: start; }
  .catalogue-tools { grid-template-columns: 1fr; }
  select { width: 100%; }
  .product-grid { grid-template-columns: 1fr; gap: 1rem; }
  .product-image { aspect-ratio: 4 / 3; }
  .product-info h3 { min-height: 0; }
  .visit-details { align-items: start; flex-direction: column; }
  .map-frame iframe { height: 22rem; }
  .details-list { grid-template-columns: 1fr; }
  footer { padding-inline: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
