/* ===== Zaal Contemporary — design tokens (matched from the Framer/Pearl site) ===== */
:root {
  --black: #000;
  --white: #fff;
  --gray: #666;
  --gray-light: #999;
  --line: #e3e3e3;
  --bg: #fff;
  --max-w: 560px;
  --gutter: 22px;
  --font-display: 'Outfit', sans-serif;
  --font-label: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--black);
}
h1 { font-size: 36px; line-height: 1.08; }
h2 { font-size: 26px; line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.2; }

.eyebrow, .label {
  font-family: var(--font-label);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.eyebrow.dark, .label.dark { color: var(--black); }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  height: 30px;
  width: auto;
}
.menu-btn {
  background: none;
  border: none;
  width: 32px;
  height: 22px;
  position: relative;
  cursor: pointer;
  padding: 0;
}
.menu-btn span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--black);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.menu-btn span:nth-child(1) { top: 2px; }
.menu-btn span:nth-child(2) { top: 11px; }
.menu-btn span:nth-child(3) { top: 20px; }
.menu-btn.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.nav-overlay.open { transform: translateY(0); }
.nav-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
}
.nav-overlay li { border-bottom: 1px solid var(--line); }
.nav-overlay a {
  display: block;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.nav-overlay a.active { color: var(--gray); }
.nav-overlay .socials {
  margin-top: 28px;
  padding: 0 var(--gutter);
}
.nav-overlay .socials a {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Buttons / links ---------- */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
}
.btn-arrow { display: inline-block; transition: transform .2s ease; }
.btn-link:hover .btn-arrow { transform: translate(2px,-2px); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Hero (home) ---------- */
.hero { padding: 40px 0 32px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { margin: 14px 0 22px; }
.hero-row { display: block; }
.hero-image { display: block; margin-top: 24px; }
.hero-image img { width: 100%; aspect-ratio: 343/260; object-fit: cover; }

/* ---------- Cards: exhibitions / artists ---------- */
.card-row { display: flex; flex-direction: column; gap: 28px; }
.exhibit-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.exhibit-card h3 { margin-top: 12px; }
.exhibit-card .eyebrow { margin-top: 4px; }

.artist-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.artist-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 2px; }
.artist-row h3 { font-size: 17px; }

/* ---------- Artist detail block (on Artists page) ---------- */
.artist-block { padding: 32px 0; border-bottom: 1px solid var(--line); }
.artist-block:last-of-type { border-bottom: none; }
.artist-block .who { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.artist-block .who img { width: 56px; height: 56px; object-fit: cover; }
.artist-block .who .name { font-family: var(--font-display); font-size: 18px; font-weight: 400; }
.artist-block .now { margin: 14px 0; padding: 12px 14px; background: #f7f7f7; }
.artist-block p { color: #222; font-size: 14px; }
.artist-block .btn-link { margin-top: 16px; }
.artist-block .ab-media { display: none; }

/* ---------- Works list (exhibition detail) ---------- */
.works-grid { display: contents; }
.work-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.work-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; margin-bottom: 14px; }
.work-item h3 { margin-bottom: 6px; }
.work-item .meta { color: var(--gray); font-size: 13px; margin-bottom: 4px; }
.work-item .price { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.05em; margin: 10px 0; }
.work-item .enquire {
  border: 1px solid var(--black);
  background: none;
  padding: 10px 18px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Exhibition detail header ---------- */
.exhibit-hero img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.exhibit-info { padding: 24px 0; }
.exhibit-info h1 { margin-bottom: 14px; }
.exhibit-info .dates { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.06em; color: var(--gray); margin-bottom: 4px; }

.about-artist { display: flex; gap: 14px; align-items: flex-start; padding: 24px 0; }
.about-artist img { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; }
.about-artist p { font-size: 14px; color: #222; }

/* ---------- Inventory grid ---------- */
.inv-filter-note { color: var(--gray); font-size: 13px; margin-bottom: 24px; }
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.inv-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: #f2f2f2; }
.inv-card .title { font-family: var(--font-display); font-size: 13px; font-weight: 400; margin-top: 8px; line-height: 1.25; }
.inv-card .artist { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); margin-top: 3px; }
.inv-card .medium { font-size: 10.5px; color: var(--gray-light); margin-top: 2px; }
.inv-card .price { font-family: var(--font-label); font-size: 11px; margin-top: 5px; }
.inv-card .stock { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #2a8a4a; margin-top: 2px; }
.inv-card .enquire-label { font-family: var(--font-label); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; border-bottom: 1px solid var(--black); display: inline-flex; align-items: center; gap: 4px; padding-bottom: 2px; }
.inv-card .enquire-label .btn-arrow { transition: transform .2s ease; }
.inv-card:hover .enquire-label .btn-arrow { transform: translate(2px,-2px); }
.inv-load-more { display:block; width:100%; margin-top: 28px; padding: 14px; text-align:center; border:1px solid var(--black); background:none; font-family: var(--font-label); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor:pointer; }

/* ---------- About page ---------- */
.about-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin: 24px 0; }
.about-photo-pair { display: contents; }
.prose { max-width: none; }
.mission-grid { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.mission-grid .item h3 { margin-bottom: 8px; }
.mission-grid .item p { color: var(--gray); font-size: 13.5px; }
.service-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.service-row h3 { margin-bottom: 6px; }
.service-row p { color: var(--gray); font-size: 12.5px; letter-spacing: .02em; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row .num { font-family: var(--font-label); font-size: 11px; color: var(--gray-light); padding-top: 3px; }
.info-row h3 { margin-bottom: 6px; font-size: 15px; }
.info-row p { font-size: 12.5px; color: var(--gray); }

/* ---------- Contact ---------- */
.contact-grid { margin-top: 32px; }
.contact-info { display: contents; }
.contact-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item .label { margin-bottom: 8px; }
.contact-item a, .contact-item .val { font-family: var(--font-display); font-size: 18px; font-weight: 300; }
.contact-form { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.contact-form label { font-family: var(--font-label); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.contact-form input, .contact-form textarea {
  width: 100%; border: none; border-bottom: 1px solid var(--line);
  padding: 10px 0; font-family: var(--font-body); font-size: 15px; background: none;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--black); }
.contact-form button {
  margin-top: 10px; align-self: flex-start;
  border: 1px solid var(--black); background: none; padding: 12px 22px;
  font-family: var(--font-label); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}

/* ---------- Newsletter (home) ---------- */
.newsletter { text-align: left; }
.newsletter h2 { margin: 10px 0 20px; }
.newsletter form { display: flex; border-bottom: 1px solid var(--black); padding-bottom: 10px; gap: 10px; }
.newsletter input { flex: 1; border: none; background: none; font-size: 14px; font-family: var(--font-body); }
.newsletter input:focus { outline: none; }
.newsletter button { background: none; border: none; font-family: var(--font-label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); margin-top: 60px; padding: 56px 0 28px; }
.site-footer .eyebrow { color: #999; }
.site-footer h2 { color: var(--white); margin: 12px 0 26px; }
.footer-info { margin-bottom: 8px; font-size: 14px; color: #ddd; }
.footer-info a { color: #ddd; }
.footer-talk {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #333; border-bottom: 1px solid #333;
  margin: 30px 0; padding: 20px 0;
}
.footer-talk h2 { margin: 0; font-size: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 30px; }
.footer-nav a { font-family: var(--font-label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #ccc; }
.footer-nav a.active { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #777; flex-wrap: wrap; gap: 10px; }

/* ---------- utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* =========================================================
   Tablet (>=640px) — intermediate step up from mobile
   ========================================================= */
@media (min-width: 640px) {
  :root { --max-w: 760px; --gutter: 32px; }
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  .inv-grid { grid-template-columns: repeat(3, 1fr); }
  .artist-block .who img { width: 72px; height: 72px; }
}

/* =========================================================
   Desktop (>=1024px) — real side-by-side / grid layouts,
   wide near-full-bleed canvas with generous gutters
   ========================================================= */
@media (min-width: 1024px) {
  :root { --max-w: 1800px; --gutter: 64px; }
  h1 { font-size: 52px; }
  h2 { font-size: 34px; }
  section { padding: 80px 0; }
  .section-tight { padding: 48px 0; }

  /* ---- Hero (home): text + fixed-width image, side by side ---- */
  .hero { padding: 64px 0 56px; }
  .hero-row { display: flex; flex-direction: row; align-items: stretch; gap: 24px; }
  .hero-text { flex: 1 1 0%; display: flex; flex-direction: column; justify-content: center; }
  .hero-image { display: block; width: 380px; flex-shrink: 0; }
  .hero-image img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }

  /* ---- Currently Showing / Work list: 2-col grid ---- */
  .card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 32px; align-items: start; }

  /* ---- Our Artists (home): horizontal scrolling row of cards ---- */
  #artists-list { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
  #artists-list .artist-row {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 14px;
    border-bottom: none;
    padding: 0;
  }
  #artists-list .artist-row img { width: 100%; height: 320px; }

  /* ---- Mission & Vision: row of fixed-width item tiles ---- */
  .mission-grid { flex-direction: row; gap: 80px; margin-top: 30px; }
  .mission-grid .item { width: 360px; flex-shrink: 0; }

  /* ---- Newsletter: inset within the wide canvas ---- */
  .newsletter .container { padding-left: 144px; padding-right: 144px; }

  /* ---- Artists page: alternating image + content rows ---- */
  .artist-block {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    padding: 60px 0;
    border-bottom: none;
    border-top: 1px solid var(--line);
  }
  .artist-block:first-of-type { border-top: none; padding-top: 0; }
  .artist-block:nth-of-type(even) { flex-direction: row-reverse; }
  .artist-block .ab-media { display: block; flex: 0 0 45%; }
  .artist-block .ab-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
  .artist-block .ab-content { flex: 1 1 0%; min-width: 0; }
  .artist-block .who-thumb { display: none; }
  .artist-block .who { margin-bottom: 22px; }

  /* ---- Exhibition detail header: full-width title, image below (source order) ---- */
  .exhibit-hero img { aspect-ratio: 16/9; }
  .about-artist { gap: 60px; }
  .about-artist img { width: 243px; height: 324px; flex-shrink: 0; }

  /* ---- Works list (exhibition detail): 3-col grid ---- */
  .works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

  /* ---- Inventory grid: keep 3 cols, roomier gutters ---- */
  .inv-grid { gap: 40px 32px; }

  /* ---- About page: narrower reading column for prose sections ---- */
  .prose { max-width: 1000px; }
  .about-photo-pair { display: flex; gap: 24px; }
  .about-photo-pair .about-photo { margin: 24px 0; }
  .about-photo-pair .about-photo:first-child { flex: 3; }
  .about-photo-pair .about-photo:last-child { flex: 2; }

  /* ---- Contact: info column + form side by side ---- */
  .contact-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 100px; margin-top: 40px; }
  .contact-info { display: flex; flex-direction: column; gap: 0; flex: 0 0 360px; }
  .contact-form { flex: 1 1 0%; margin-top: 0; max-width: 480px; }
  .contact-social { flex: 0 0 100%; border-bottom: none; }
}
