@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap");

/* Angela Soko - public site. PHONE layout first (PC layout comes in Stage 5). */
:root {
  --paper: #f6f3ec; --paper-dim: #ede8dc; --ink: #1e2530; --ink-soft: #55606f;
  --line: #dcd5c4; --copper: #a8601f; --copper-dark: #7f4816; --copper-tint: #f1e1cd;
  --whatsapp: #2f9e58; --danger: #b3402f;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 10px; --nav-h: 64px;
  --shadow: 0 1px 2px rgba(30,37,48,.06), 0 6px 20px rgba(30,37,48,.07);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.2; }
p { margin: 0 0 12px; line-height: 1.6; color: var(--ink-soft); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line);
  padding: env(safe-area-inset-top, 0px) 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 56px; text-decoration: none; }
.brand-logo { height: 34px; width: auto; max-width: 90px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }

/* Bottom menu bar */
.main-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff;
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px); }
.nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--nav-h); text-decoration: none; font-size: .68rem; font-weight: 600;
  color: var(--ink-soft); -webkit-tap-highlight-color: transparent; }
.nav-link.active { color: var(--copper); }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px;
  padding: 12px 18px; border: 1px solid transparent; border-radius: var(--radius); font: inherit;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--copper); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }

/* Home: hero */
.hero { position: relative; min-height: 68vh; min-height: 68svh; display: flex; align-items: flex-end;
  background: var(--ink); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,24,32,.88) 0%, rgba(20,24,32,.25) 55%, rgba(20,24,32,0) 100%); }
.hero-text { position: relative; padding: 24px 20px 28px; width: 100%; }
.hero-text h1 { font-size: 2.3rem; color: #fff; margin-bottom: 6px; }
.hero-text p { color: #e9e3d6; margin-bottom: 16px; }
.hero-text .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700;
  color: var(--copper-tint); margin-bottom: 6px; }

/* Sections, cards, gallery */
.page-head { padding: 24px 16px 4px; }
.page-head h1 { font-size: 1.8rem; margin-bottom: 4px; }
.section { padding: 28px 16px 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 1.4rem; }
.link-more { font-weight: 600; color: var(--copper-dark); font-size: .9rem; text-decoration: none; }
.grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.piece-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; box-shadow: var(--shadow); }
.piece-media { position: relative; aspect-ratio: 4 / 5; background: var(--paper-dim); }
.piece-media img { width: 100%; height: 100%; object-fit: cover; }
.piece-card.is-sold .piece-media img { filter: grayscale(.45); opacity: .85; }
.no-photo { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%;
  color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.piece-info { padding: 14px 16px 16px; }
.piece-info h3 { font-size: 1.15rem; color: var(--ink); }
.piece-sub { font-size: .85rem; margin: 4px 0 8px; }
.piece-price { font-weight: 700; color: var(--ink); margin: 0; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 5px 11px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .04em; }
.piece-media .badge { position: absolute; top: 12px; left: 12px; }
.badge-available { background: #e1efe7; color: #2b6e4c; }
.badge-sold { background: var(--ink); color: #fff; }
.badge-commission { background: var(--copper-tint); color: var(--copper-dark); }
.cta { margin: 28px 16px 8px; padding: 26px 20px; background: var(--ink); border-radius: var(--radius); }
.cta h2 { color: #fff; font-size: 1.35rem; margin-bottom: 8px; }
.cta p { color: #c7ccd4; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar, .slides::-webkit-scrollbar, .lb-slides::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.chip.active { background: var(--copper); border-color: var(--copper); color: #fff; }
.count { font-size: .82rem; margin: 0 0 12px; }
.loading, .empty { text-align: center; padding: 48px 16px; }

/* Piece page */
.back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-weight: 600;
  color: var(--copper-dark); text-decoration: none; }
.carousel { position: relative; background: var(--paper-dim); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; margin: 0; background: none;
  height: 64vh; max-height: 640px; display: flex; cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.zoom-hint { position: absolute; right: 12px; top: 12px; background: rgba(30,37,48,.7); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 6px 10px; border-radius: 16px; pointer-events: none; }
.dots { display: flex; justify-content: center; gap: 8px; padding: 12px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dot.active { background: var(--copper); }
.detail { padding: 8px 16px 24px; }
.detail h1 { font-size: 1.9rem; margin: 10px 0 6px; }
.detail h2 { font-size: 1.25rem; margin: 6px 0 8px; }
.detail-price { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.facts { margin: 0 0 20px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); font-size: .92rem; }
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--ink-soft); font-weight: 600; }
.fact dd { margin: 0; color: var(--ink); text-align: right; }
.story { white-space: pre-line; color: var(--ink); }
.actions { display: grid; gap: 10px; margin-top: 20px; }

/* Full-screen zoom */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #0e1116; }
.lb-slides { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; overflow: auto; display: flex; }
.lb-img { flex: none; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.lb-slide.zoomed .lb-img { max-width: none; max-height: none; width: 230%; cursor: zoom-out; }
.lb-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 12px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18);
  color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-count { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 22px); left: 16px; z-index: 2;
  color: #fff; font-size: .9rem; font-weight: 600; }
.lb-hint { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  text-align: center; color: #c7ccd4; font-size: .8rem; margin: 0; pointer-events: none; }

/* Small message at the bottom */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px); background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: var(--radius); font-size: .9rem; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 90; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .toast { transition: none; } }