:root {
  color-scheme: light;
  --paper: #fbf8f3;
  --cream: #f4ebdf;
  --sand: #ece1d3;
  --ink: #241d17;
  --muted: #59493b;
  --copper: #8a4a25;
  --warm-white: #fbf5ec;
  --line: #d7cab9;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a76330; outline-offset: 4px; }
section[id] { scroll-margin-top: 1.2rem; }

.symbols, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: .5rem auto auto .5rem;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--warm-white);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(100% - clamp(2.25rem, 8vw, 8rem), 78rem); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(9rem, 1fr);
  align-items: center;
  gap: 1rem clamp(1rem, 3vw, 3rem);
}
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand img { width: clamp(11rem, 21vw, 17.5rem); }
.primary-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 2.65vw, 2.5rem); }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 550;
  text-decoration: none;
}
.primary-nav a:hover { color: var(--copper); text-decoration: underline; text-underline-offset: .3em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color .18s, color .18s, border-color .18s;
}
.icon { flex: 0 0 1.12rem; width: 1.12rem; height: 1.12rem; }
.whatsapp-button {
  flex: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: #197048;
}
.whatsapp-button:hover { background: #0e5837; }
.whatsapp-button .icon { flex-basis: 1.45rem; width: 1.45rem; height: 1.45rem; }
.button-header { justify-self: end; }
.button-ink { color: var(--warm-white); background: var(--ink); }
.button-ink:hover { background: #4b382a; }

.offline-status { padding: .65rem 1.25rem; text-align: center; background: var(--sand); }
.hero { overflow: hidden; background: var(--cream); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(3rem, 8vw, 8rem) clamp(1.6rem, 6vw, 7rem) clamp(3rem, 8vw, 8rem) 0; }
.eyebrow {
  margin-bottom: .95rem;
  color: var(--copper);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.eyebrow span { padding-inline: .15rem; }

h1, h2, h3, figcaption {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.036em;
}
h1 { font-size: clamp(2.65rem, 6.7vw, 6.35rem); line-height: .99; }
h1 em { color: var(--copper); }
h2 { font-size: clamp(2.35rem, 5.15vw, 4.4rem); line-height: 1.05; }
h3 { font-size: clamp(1.48rem, 3.1vw, 2.1rem); line-height: 1.1; }
.hero-description { max-width: 35ch; margin-top: 1.4rem; color: var(--muted); font-size: clamp(1.04rem, 1.7vw, 1.21rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.65rem; }
.hero-photo { position: relative; min-height: clamp(27rem, 43vw, 40rem); overflow: hidden; background: #b08b68; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 41% center; }

.section { padding-block: clamp(3.15rem, 6.9vw, 6rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 1.1rem 2rem; margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.section-heading > p, .story-description { max-width: 42ch; color: var(--muted); line-height: 1.65; }
.featured-weaves, .style-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, 2.6vw, 2rem); }
.featured-weaves { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.weave { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.weave img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.weave-copy { min-height: 5.4rem; padding: 1rem clamp(.95rem, 2vw, 1.45rem); display: grid; align-content: center; gap: .5rem; }
.weave-copy h3 { font-size: clamp(1.32rem, 2.15vw, 1.78rem); }
.photo-link[href] { color: var(--copper); text-underline-offset: .22em; }
.photo-link[href]:hover { color: var(--ink); }
.weave-link { display: block; text-decoration: none; }
.weave-link h3 { color: var(--ink); }
.weave-link:focus-visible { outline-offset: -3px; }
.view-pattern { font-size: .875rem; font-weight: 650; }
.weave-link[href]:hover .view-pattern { text-decoration: underline; text-underline-offset: .22em; }
.weave-link:not([href]) .view-pattern { display: none; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; justify-self: end; font-weight: 400; font-size: 1.35rem; }
details[open] > summary::after { content: "−"; }
.pattern-browser { margin-top: 1.25rem; border-block: 1px solid var(--line); }
.pattern-browser summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .7rem;
  min-height: 3.3rem;
  padding: .7rem 0;
  font-weight: 650;
}
.pattern-browser > summary:hover { color: var(--copper); }
.pattern-browser-body { padding: 0 0 1.5rem; }
.pattern-browser-body > p { color: var(--muted); margin: .2rem 0 1rem; }
.pattern-search { max-width: 24rem; margin-bottom: 1.15rem; }
.pattern-search label { display: block; margin-bottom: .35rem; font-weight: 600; }
.pattern-search input { width: 100%; padding: .7rem .85rem; border: 1px solid #9d8b78; border-radius: 3px; color: var(--ink); background: #fffdfa; }
.pattern-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 0 0 .2rem; list-style: none; column-gap: .8rem; }
.pattern-list li { display: flex; align-items: center; min-height: 2.75rem; padding-block: .4rem; line-height: 1.25; }

.styles { background: #f0e8dc; }
.style-photos figure { min-width: 0; }
.style-photo-link { display: block; border-radius: 4px; }
.style-photos img { width: 100%; object-fit: cover; aspect-ratio: 16 / 10; border-radius: 4px; }
.style-photos figcaption { padding-block: .5rem; font-size: 1.55rem; }
.style-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 0 clamp(1rem, 3vw, 2.5rem); margin-top: 1.15rem; }
.style-options article { border-top: 1px solid #cbbba8; padding-block: .8rem 1rem; }
.style-options h3 { margin-bottom: .35rem; font: 650 1.04rem/1.3 var(--sans); letter-spacing: normal; }
.style-options p { max-width: 50ch; color: var(--muted); line-height: 1.55; }
.control-note { margin-top: 1.2rem; color: var(--muted); line-height: 1.55; }

.story-inner { display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); gap: 1.1rem clamp(1.5rem, 6vw, 6rem); align-items: center; }
.story-year { font-family: var(--serif); color: var(--copper); font-size: clamp(4.5rem, 12vw, 11rem); letter-spacing: -.085em; line-height: .85; }
.story-description { margin-top: 1.2rem; }

.facilities { background: var(--cream); }
.facilities-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.45rem);
  margin-top: clamp(1.15rem, 3vw, 2rem);
}
.facility-photo { min-width: 0; }
.facility-photo:first-child { grid-column: 1 / -1; }
.facility-photo a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--sand);
  cursor: zoom-in;
}
.facility-photo a:focus-visible { outline-offset: -4px; }
.facility-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.facility-photo:first-child img { aspect-ratio: 12 / 5; object-position: center 52%; }
.facility-portrait img { object-position: center 27%; }
.facility-photo figcaption {
  padding-top: .55rem;
  color: var(--muted);
  font: 550 .9375rem/1.35 var(--sans);
  letter-spacing: normal;
}

.contact { padding-block: clamp(2.75rem, 6vw, 5rem); color: var(--warm-white); background: #2c2119; }
.contact h2 { font-size: clamp(2.15rem, 4vw, 3.65rem); }
.contact-ending { display: inline-flex; align-items: center; gap: clamp(.75rem, 2vw, 1.25rem); }
.photo-dialog {
  width: max-content;
  min-width: min(22rem, calc(100% - 2rem));
  max-width: min(64rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
}
html:has(.photo-dialog[open]) { overflow: hidden; }
.photo-dialog::backdrop { background: rgb(25 19 14 / .8); }
.photo-dialog-content { padding: clamp(.75rem, 2vw, 1.35rem); }
.photo-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.photo-dialog-heading h2 { font-size: clamp(1.46rem, 3.5vw, 2.15rem); }
.photo-dialog-close {
  flex: 0 0 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}
.photo-dialog-close:hover { background: var(--sand); }
.photo-dialog img { max-height: calc(100dvh - 7.5rem); margin-inline: auto; object-fit: contain; border-radius: 3px; }
.photo-dialog [role="status"] { padding: .35rem 0; color: var(--muted); }
.photo-dialog.is-facilities-viewer img { max-height: calc(100dvh - 11rem); touch-action: pan-y pinch-zoom; }
.photo-dialog-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .75rem;
  margin-top: .65rem;
  color: var(--muted);
  font-size: .9375rem;
}
.photo-dialog-controls button {
  justify-self: start;
  min-height: 2.75rem;
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
}
.photo-dialog-controls button:hover { background: var(--sand); }
.photo-dialog-controls button:last-child { justify-self: end; }

.site-footer { padding-block: 1.15rem max(1.15rem, env(safe-area-inset-bottom)); color: #e9ddd1; background: #211914; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1.3rem; }
.footer-inner .brand img { width: min(13.75rem, 70vw); }
.install-button { min-height: 2.75rem; padding: .4rem .75rem; border: 1px solid #a58970; border-radius: 3px; background: transparent; color: inherit; }

@media (max-width: 64rem) {
  .header-inner { grid-template-columns: minmax(10rem, 1fr) auto auto; }
  .hero-copy { padding-right: 1.7rem; }
  .hero-photo { min-height: 29rem; }
}
@media (max-width: 53rem) {
  .facilities-gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 47%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: .55rem;
    scrollbar-width: thin;
    scrollbar-color: #ac9683 transparent;
  }
  .facility-photo { scroll-snap-align: start; }
  .facility-photo:first-child { grid-column: auto; }
  .facility-photo:first-child img { aspect-ratio: 4 / 3; }
}
@media (max-width: 50rem) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; padding-top: .5rem; }
  .brand img { width: clamp(10.5rem, 40vw, 15.25rem); }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 0 clamp(.75rem, 5vw, 2.5rem); }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(2.55rem, 7vw, 4.8rem); }
  .pattern-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-weaves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 41rem) {
  .primary-nav { column-gap: .65rem; }
  .facilities-gallery { grid-auto-columns: 85%; }
  .hero-inner, .section-heading, .story-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.35rem 0 1.6rem; }
  .hero-photo { min-height: 0; height: clamp(15rem, 78vw, 24rem); }
  .hero-photo img { object-position: 42% 50%; }
  .hero { padding-bottom: 1.15rem; }
  .pattern-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weave-copy { min-height: 0; gap: .2rem; }
}
@media (max-width: 31rem) {
  .style-options { grid-template-columns: 1fr; }
  .featured-weaves { gap: .65rem; }
  .weave-copy { padding: .7rem; }
  .style-photos { gap: .65rem; }
  .style-photos figcaption { font-size: 1.24rem; letter-spacing: -.027em; }
  .primary-nav { display: grid; grid-template-columns: auto minmax(0, max-content) auto auto; justify-content: space-between; column-gap: .45rem; }
  .primary-nav a { font-size: clamp(.8rem, 3.6vw, .875rem); line-height: 1.2; }
  .hero-actions .button { padding-inline: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
