
:root {
  --cream: #f8f1e6;
  --paper: #fffaf2;
  --paper-2: #f1e4d2;
  --brown: #4a2f1a;
  --brown-2: #6f4826;
  --gold: #b37a2a;
  --gold-2: #d39c49;
  --ink: #2d2117;
  --muted: #746354;
  --line: rgba(88, 55, 29, .16);
  --shadow: 0 24px 65px rgba(68, 39, 18, .14);
  --radius: 28px;
  --container: min(1220px, calc(100% - 40px));
  --header-height: 86px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.container { width: var(--container); margin-inline: auto; }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  transform: translateY(-160%); padding: 10px 16px;
  border-radius: 12px; background: var(--brown); color: #fff; font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 250, 242, .96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: var(--header-height);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; flex: 0 1 300px; margin-right: auto; min-width: 0; }
.brand img { width: clamp(210px, 21vw, 292px); max-height: 70px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 26px); color: var(--brown); font-size: .94rem; font-weight: 780; }
.nav-links > a, .drop-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; white-space: nowrap; }
.nav-links a[aria-current="page"] { color: var(--gold); }
.drop-btn { border: 0; background: none; color: inherit; font: inherit; font-weight: inherit; cursor: pointer; }
.dropdown { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 12px); right: -24px; width: min(310px, 90vw);
  padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .22s ease;
}
.dropdown:hover .drop-menu, .dropdown.open .drop-menu, .dropdown:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: block; padding: 10px 12px; border-radius: 12px; white-space: normal; }
.drop-menu a:hover, .drop-menu a:focus-visible { background: var(--paper-2); }
.nav-cta { padding: 11px 18px !important; background: var(--brown); color: #fff !important; border-radius: 999px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--brown); font-size: 1.45rem; cursor: pointer; }

/* Full artwork banners: never crop the embedded logo or copy */
.hero-carousel, .simple-hero, .line-hero { position: relative; overflow: hidden; background: #eadcc8; }
.hero-track { position: relative; width: 100%; aspect-ratio: 8 / 3; }
.hero-slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img, .simple-hero img, .line-hero img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; background: #eadcc8;
}
.simple-hero img, .line-hero img { aspect-ratio: 8 / 3; }
.simple-hero-overlay { display: none !important; }
.hero-controls {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px);
  padding: 7px 12px; border-radius: 999px; background: rgba(255, 250, 242, .9);
  backdrop-filter: blur(12px); box-shadow: 0 8px 28px rgba(40, 20, 5, .16);
}
.hero-prev, .hero-next { flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--brown); color: #fff; font-size: 1.5rem; cursor: pointer; }
.hero-dots { display: flex; align-items: center; gap: 6px; overflow: hidden; }
.hero-dot { flex: 0 0 auto; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #b6a58e; cursor: pointer; }
.hero-dot.active { width: 24px; border-radius: 8px; background: var(--gold); }

/* Sections and typography */
.section { padding: clamp(60px, 7vw, 96px) 0; }
.section-warm { background: linear-gradient(180deg, #f3e8d8, #f8f1e7); }
.section-dark { background: #302015; color: #f8ecdd; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--gold); font-size: .77rem; font-weight: 900; text-transform: uppercase; letter-spacing: .18em; }
.eyebrow.light { color: #e2b978; }
h1, h2, h3 { overflow-wrap: anywhere; }
.section h1, .section h2, .line-card h3, .product-card h3 { font-family: Georgia, "Times New Roman", serif; }
.intro-grid, .line-intro, .editorial-grid, .institutional-grid, .catalog-overview, .craft-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 62px); align-items: center;
}
.intro-copy h1, .line-intro h1 { max-width: 820px; margin: .1em 0 .3em; color: var(--brown); font-size: clamp(2.35rem, 5.1vw, 5.1rem); line-height: .99; }
.intro-copy p, .line-intro p { max-width: 680px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.16rem); }
.intro-image, .line-intro > img, .editorial-grid > img, .craft-image, .institutional-grid > img, .catalog-overview > img { min-width: 0; }
.intro-image img, .line-intro > img, .editorial-grid > img, .craft-image img, .institutional-grid > img, .catalog-overview > img {
  width: 100%; aspect-ratio: 4 / 3; max-height: 560px; padding: 10px; object-fit: contain; object-position: center;
  border-radius: var(--radius); background: #efe4d4; box-shadow: var(--shadow);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 14px; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--gold), #c9903a); color: #fff; box-shadow: 0 10px 25px rgba(179, 122, 42, .24); }
.btn-secondary { border-color: var(--line); background: rgba(255, 255, 255, .72); color: var(--brown); }
.btn-small { min-height: 40px; padding: 9px 16px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-head h2 { max-width: 800px; margin: 0; color: var(--brown); font-size: clamp(2rem, 4vw, 4rem); line-height: 1.02; }
.section-head > p { max-width: 470px; margin: 0; color: var(--muted); }
.text-link { color: var(--brown); font-weight: 900; white-space: nowrap; }

/* Cards */
.line-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.line-card, .product-card, .gallery-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 12px 35px rgba(69, 39, 18, .08); transition: transform .25s ease, box-shadow .25s ease; }
.line-card:hover, .product-card:hover, .gallery-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.line-card > img { width: 100%; aspect-ratio: 8 / 3; padding: 0; object-fit: contain; object-position: center; background: #efe4d4; }
.line-card-body { padding: 20px; }
.line-card-body span, .card-kicker { color: var(--gold); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; }
.line-card h3 { margin: .3em 0; font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.08; }
.line-card p { margin: .3em 0 1em; color: var(--muted); }
.line-card b { color: var(--brown); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.image-button { display: block; width: 100%; padding: 0; border: 0; background: #efe4d4; cursor: zoom-in; }
.image-button img { width: 100%; aspect-ratio: 4 / 3; padding: 12px; object-fit: contain; object-position: center; background: #efe4d4; }
.product-body { padding: 18px; }
.product-card h3 { margin: .35em 0; font-size: 1.45rem; line-height: 1.1; }
.price { display: block; margin-bottom: 7px; color: var(--gold); }
.product-card p { margin: .35em 0; color: var(--muted); font-size: .92rem; }
.product-actions { margin-top: 16px; }

/* Editorial, lists and mosaics */
.craft-copy h2, .institutional-copy h2, .editorial-grid h2, .catalog-overview h2 { margin: .15em 0 .35em; font-family: Georgia, serif; font-size: clamp(2.15rem, 4vw, 4.3rem); line-height: 1.02; }
.craft-copy p { color: #d7c4b1; font-size: 1.08rem; }
.institutional-copy p, .editorial-grid p, .catalog-overview p { color: var(--muted); font-size: 1.08rem; }
.craft-points { display: grid; gap: 12px; margin-top: 28px; }
.craft-points div { padding: 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; }
.craft-points b { display: block; color: #e2b978; font-size: 1.1rem; }
.craft-points span { color: #d7c4b1; }
.check-list { margin: 22px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }
.mosaic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 14px; }
.mosaic-item { overflow: hidden; padding: 0; border: 0; border-radius: 20px; background: #efe4d4; cursor: zoom-in; }
.mosaic-item:nth-child(3n + 1) { grid-row: span 2; }
.mosaic-item img { width: 100%; height: 100%; padding: 8px; object-fit: contain; object-position: center; transition: transform .35s ease; }
.mosaic-item:hover img { transform: scale(1.025); }

/* Contact */
.contact-section { background: #eadbc7; }
.contact-shell { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 42px; padding: 38px; border: 1px solid var(--line); border-radius: 32px; background: rgba(255, 250, 242, .9); box-shadow: var(--shadow); }
.contact-copy h2 { margin: .2em 0; font-family: Georgia, serif; font-size: clamp(2.25rem, 4vw, 4rem); line-height: 1.02; }
.contact-copy p { color: var(--muted); }
.contact-direct { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; color: var(--brown); font-weight: 850; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { min-width: 0; color: var(--muted); font-size: .82rem; font-weight: 850; }
input, select, textarea { width: 100%; margin-top: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
textarea { min-height: 125px; resize: vertical; }
.full { grid-column: 1 / -1; }

/* Filters and gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.filter-chip { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brown); font-weight: 850; cursor: pointer; }
.filter-chip.active, .filter-chip:hover { background: var(--brown); color: #fff; }
.catalog-full .product-card.hidden, .gallery-card.hidden { display: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-card { padding: 0; text-align: left; cursor: zoom-in; }
.gallery-card img { width: 100%; aspect-ratio: 4 / 3; padding: 10px; object-fit: contain; object-position: center; background: #efe4d4; transition: transform .35s ease; }
.gallery-card:hover img { transform: scale(1.025); }
.gallery-card span { display: block; padding: 13px 15px; color: var(--brown); font-size: .88rem; font-weight: 800; }

/* Footer and floating contact */
.footer { padding: 54px 0 18px; background: #25170f; color: #eadbc9; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(180px, .7fr) minmax(220px, .8fr); gap: 38px; }
.footer img { width: 280px; max-width: 100%; max-height: 90px; object-fit: contain; object-position: left center; filter: brightness(1.45) sepia(.12); }
.footer-brand p { color: #f5e8d8; font-size: 1.15rem; font-weight: 750; }
.footer strong { display: block; margin-bottom: 12px; color: #f5e8d8; }
.footer a, .footer span, .footer p { display: block; margin: 5px 0; color: #cbb8a4; overflow-wrap: anywhere; }
.copyright { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); color: #ac9985; font-size: .82rem; }
.whatsapp-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 110; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #23c642; box-shadow: 0 16px 35px rgba(0, 0, 0, .23); }
.whatsapp-float img { width: 42px; height: 42px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 40px; background: rgba(20, 12, 7, .93); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 82vh; object-fit: contain; border-radius: 18px; box-shadow: 0 25px 90px rgba(0, 0, 0, .55); }
.lightbox-close { position: absolute; top: 14px; right: 20px; width: 50px; height: 50px; border: 0; background: none; color: #fff; font-size: 3rem; line-height: 1; cursor: pointer; }
.lightbox-caption { max-width: 90vw; margin-top: 12px; color: #fff; font-weight: 700; text-align: center; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  :root { --container: min(100% - 32px, 1120px); }
  .nav-links { gap: 14px; font-size: .88rem; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  :root { --header-height: 76px; --container: min(100% - 28px, 900px); }
  .menu-toggle { display: grid; place-items: center; flex: 0 0 auto; }
  .nav-links {
    position: fixed; top: var(--header-height); right: 14px; left: 14px; z-index: 120;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    max-height: calc(100dvh - var(--header-height) - 18px); padding: 18px;
    overflow-y: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--paper);
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .22s ease;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > a, .drop-btn { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; }
  .nav-links > a:hover, .drop-btn:hover { background: var(--paper-2); }
  .nav-cta { justify-content: center; margin-top: 6px; }
  .dropdown { width: 100%; }
  .drop-btn { justify-content: space-between; }
  .drop-menu { position: static; display: none; width: 100%; padding: 5px 0 5px 14px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .dropdown.open .drop-menu { display: block; }
  .dropdown:hover .drop-menu:not(:focus-within) { display: none; }
  .dropdown.open:hover .drop-menu { display: block; }
  .intro-grid, .line-intro, .editorial-grid, .institutional-grid, .catalog-overview, .craft-grid, .contact-shell { grid-template-columns: 1fr; }
  .line-intro > img, .intro-image, .editorial-grid > img, .craft-image { order: -1; }
  .line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-shell { padding: 30px; }
}

@media (max-width: 700px) {
  :root { --container: min(100% - 22px, 650px); --header-height: 70px; --radius: 22px; }
  .nav-wrap { min-height: var(--header-height); gap: 12px; }
  .brand { flex-basis: auto; }
  .brand img { width: clamp(188px, 60vw, 235px); max-height: 58px; }
  .menu-toggle { width: 44px; height: 44px; }
  .hero-track, .simple-hero img, .line-hero img { aspect-ratio: 8 / 3; }
  .hero-controls { bottom: 7px; gap: 7px; padding: 5px 8px; }
  .hero-prev, .hero-next { width: 30px; height: 30px; font-size: 1.25rem; }
  .hero-dots { max-width: 150px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 18px; }
  .section { padding: 56px 0; }
  .intro-grid, .line-intro, .editorial-grid, .institutional-grid, .catalog-overview, .craft-grid { gap: 26px; }
  .intro-copy h1, .line-intro h1 { font-size: clamp(2.25rem, 12vw, 3.7rem); }
  .actions .btn { flex: 1 1 180px; }
  .section-head { display: block; margin-bottom: 26px; }
  .section-head > p, .section-head > .text-link { display: block; margin-top: 12px; }
  .line-grid, .product-grid, .gallery-grid, .gallery-grid.compact { grid-template-columns: 1fr; }
  .line-card > img { aspect-ratio: 8 / 3; }
  .mosaic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .mosaic-item:nth-child(3n + 1) { grid-row: span 1; }
  .contact-shell { padding: 22px; border-radius: 24px; }
  form { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer img { width: 240px; }
  .lightbox { padding: 18px; }
}

@media (max-width: 430px) {
  .hero-controls { max-width: 94%; }
  .hero-dots { max-width: 118px; }
  .hero-dot:nth-child(n + 8) { display: none; }
  .mosaic-grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .whatsapp-float { width: 54px; height: 54px; }
  .whatsapp-float img { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
