/* ===== Tokens =====
 * Quiet, gallery-neutral palette: warm off-white, soft ink text, one muted
 * accent used sparingly. Serif for headings (regular weight, not bold/italic),
 * clean sans for everything else — mirrors the restrained, text-forward feel
 * of ishathigale.com rather than a loud "product site" look.
 */
:root {
  --color-bg: #f8f6f1;
  --color-surface: #efeae0;
  --color-text: #26231d;
  --color-text-soft: rgba(38, 35, 29, 0.62);
  --color-text-faint: rgba(38, 35, 29, 0.42);
  --color-accent: #a15c46;
  --color-divider: rgba(38, 35, 29, 0.13);

  --color-neutral-100: #fdfcfa;
  --color-neutral-900: #211e19;

  --color-booked: rgba(38, 35, 29, 0.5);
  --color-sold: #a15c46;

  --font-heading: "EB Garamond", Georgia, serif;
  --font-body: "Questrial", Arial, Helvetica, sans-serif;

  --shadow-sm: 0 1px 3px rgba(30, 27, 20, 0.08);
  --shadow-md: 0 8px 28px rgba(30, 27, 20, 0.12);

  --nav-h: 72px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
}
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.eyebrow {
  display: block; font-size: 13px; letter-spacing: 0.02em;
  color: var(--color-text-soft); margin-bottom: 14px;
}
.eyebrow-dark { color: rgba(253, 252, 250, 0.6); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-accent);
  color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

::selection { background: rgba(161, 92, 70, 0.2); }
:focus-visible { outline: 1.5px solid var(--color-accent); outline-offset: 3px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: clamp(16px, 3vw, 40px);
  padding: 22px clamp(20px, 5vw, 56px);
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, padding .3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--color-divider);
  padding-top: 14px; padding-bottom: 14px;
}
.nav-brand {
  grid-column: 2; justify-self: center;
  display: flex; flex-direction: column; align-items: center; line-height: 1.05;
  font-family: var(--font-heading); font-weight: 400; font-size: 27px;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.nav-brand-sub {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); margin-top: 6px;
}
.nav-links { grid-column: 1; justify-self: start; min-width: 0; display: flex; align-items: center; gap: clamp(20px, 2.4vw, 34px); position: relative; }
.nav-actions { grid-column: 3; justify-self: end; min-width: 0; display: flex; align-items: center; gap: 14px; }
.nav-links a {
  font-size: 13.5px; letter-spacing: 0.03em; text-transform: uppercase;
  position: relative; padding: 4px 0; color: var(--color-text-soft); transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--color-text); }
.nav-indicator { display: none; }
.nav-cart {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--color-text-soft);
}
.nav-cart:hover { color: var(--color-text); }
.nav-cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--color-text); color: var(--color-bg); font-size: 10px; font-weight: 600;
  opacity: 0; transition: opacity .2s ease;
}
.nav-cart-count.is-visible { opacity: 1; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; flex: none; margin-right: -6px;
}
.nav-toggle span { display: block; height: 1px; width: 20px; background: currentColor; transition: transform .3s var(--ease), opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Buttons — quiet, outlined or plain text, never heavy fills ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 400; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 0; border: 1px solid var(--color-text);
  color: var(--color-text); transition: background-color .25s ease, color .25s ease, border-color .25s ease, opacity .2s ease;
}
.btn-primary { background: var(--color-text); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:disabled { background: transparent; color: var(--color-text-faint); border-color: var(--color-divider); cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--color-text); color: var(--color-text); }
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-on-dark { color: var(--color-neutral-100); border-color: rgba(253,252,250,.5); }
.btn-on-dark:hover { border-color: var(--color-neutral-100); color: var(--color-neutral-100); background: rgba(253,252,250,.08); }
.btn-sm { padding: 9px 18px; font-size: 12px; }
.btn-block { width: 100%; }

.text-link { font-size: 13.5px; letter-spacing: 0.02em; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity .2s ease; }
.text-link:hover { opacity: 0.6; }
.text-link-on-dark { color: var(--color-neutral-100); }

/* ===== Hero — full-width photo first, plain centered text below ===== */
.hero-media { width: 100%; height: clamp(400px, 62vw, 740px); overflow: hidden; background: var(--color-surface); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.hero-inner { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(48px, 8vw, 84px) clamp(20px, 5vw, 56px); }
.hero-inner h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 400; line-height: 1.28;
  margin: 0 0 20px; color: var(--color-text);
}
.hero-lede { font-size: 15.5px; line-height: 1.75; color: var(--color-text-soft); margin: 0 auto 26px; max-width: 46ch; }
.hero-actions { display: flex; gap: 26px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.hero-inner [data-reveal] { transition-delay: calc(var(--i, 0) * 0.08s); }

/* ===== About / artist statement ===== */
.about { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--color-divider); }
.about-lead { font-weight: 400; font-size: clamp(23px, 3.2vw, 34px); line-height: 1.35; max-width: 24ch; margin-bottom: 40px; color: var(--color-text); }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.about-portrait { border-radius: 2px; overflow: hidden; background: var(--color-surface); }
.about-portrait img { width: 100%; height: auto; }
.about-copy p { font-size: 15.5px; line-height: 1.8; color: var(--color-text-soft); max-width: 54ch; margin-bottom: 16px; }
.about-copy p:last-child { margin-bottom: 0; }

/* ===== Gallery ===== */
.gallery { border-top: 1px solid var(--color-divider); padding: clamp(56px, 8vw, 96px) 0; }
.gallery h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 400; max-width: 22ch; margin-bottom: 10px; }
.section-sub { font-size: 15px; line-height: 1.7; color: var(--color-text-soft); max-width: 56ch; margin-bottom: 48px; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 3.4vw, 44px);
}
.gallery-empty, .gallery-loading { grid-column: 1 / -1; text-align: center; padding: 48px 0; color: var(--color-text-soft); font-size: 14.5px; }

.card { display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-surface); margin-bottom: 16px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.025); }
.card-status {
  position: absolute; bottom: 12px; left: 12px; padding: 4px 10px;
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-neutral-100); background: rgba(33, 30, 25, 0.72);
}
.card-status[data-status="available"] { display: none; }
.card-body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-body h3 { font-size: 17px; font-weight: 400; }
.card-meta { font-size: 12.5px; letter-spacing: 0.01em; color: var(--color-text-faint); }
.card-price { font-family: var(--font-body); font-size: 14px; color: var(--color-text-soft); margin-top: 6px; }
.card-actions { margin-top: 14px; }

/* ===== Process ===== */
.process { border-top: 1px solid var(--color-divider); padding: clamp(56px, 8vw, 96px) 0; }
.process h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 400; max-width: 22ch; margin-bottom: 48px; }
.process-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 40px); }
.process-step .row-index { font-family: var(--font-heading); font-weight: 400; font-size: 28px; line-height: 1; margin-bottom: 14px; color: var(--color-text-faint); }
.process-step h3 { font-size: 17px; font-weight: 400; margin-bottom: 8px; }
.process-step p { font-size: 14px; line-height: 1.7; color: var(--color-text-soft); }
.process-step + .process-step { border-left: 1px solid var(--color-divider); padding-left: clamp(24px, 4vw, 40px); }

/* ===== Contact / footer ===== */
.contact { background: var(--color-neutral-900); padding: clamp(56px, 8vw, 96px) 0; margin-top: clamp(24px,4vw,40px); }
.contact-lead { font-size: clamp(26px, 3.6vw, 38px); font-weight: 400; color: var(--color-neutral-100); max-width: 18ch; margin: 0 0 18px; }
.contact-sub { font-size: 15px; line-height: 1.75; color: rgba(253,252,250,.68); max-width: 54ch; margin-bottom: 32px; }
.contact-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 56px; }
.contact-hr { height: 1px; border: 0; margin: 0 0 24px; background: rgba(253,252,250,.14); }
.contact-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { font-family: var(--font-heading); font-weight: 400; font-size: 17px; color: var(--color-neutral-100); margin-bottom: 6px; }
.footer-meta { font-size: 12.5px; color: rgba(253,252,250,.55); line-height: 1.6; }
.footer-social { margin-top: 10px; }
.footer-ig-link { display: inline-flex; align-items: center; gap: 6px; }
.footer-copy { font-size: 12.5px; color: rgba(253,252,250,.42); align-self: flex-end; }

/* ===== Floating actions ===== */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 38px; height: 38px; border-radius: 50%; background: var(--color-neutral-900); color: var(--color-neutral-100);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--color-accent); }

/* ===== Cart drawer ===== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(33, 30, 25, 0.35); z-index: 70;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71;
  width: min(480px, 100vw); background: var(--color-neutral-100);
  box-shadow: var(--shadow-md); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--color-divider); }
.cart-header h2 { font-size: 18px; font-weight: 400; }
.cart-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty { text-align: center; color: var(--color-text-soft); font-size: 14px; padding: 40px 0; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--color-divider); }
.cart-item img { width: 58px; height: 70px; object-fit: cover; flex: none; background: var(--color-surface); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 14.5px; font-weight: 400; margin-bottom: 3px; }
.cart-item-info p { font-size: 12.5px; color: var(--color-text-soft); }
.cart-item-remove { font-size: 12px; color: var(--color-text-faint); margin-top: 6px; text-decoration: underline; }
.cart-form { margin-top: 22px; padding: 20px 24px 0; border-top: 1px solid var(--color-divider); display: none; flex-direction: column; gap: 12px; }
.cart-form.is-visible { display: flex; }
.cart-form label { font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: 4px; display: block; }
.cart-form input, .cart-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--color-divider); border-radius: 0;
  background: var(--color-bg); font-size: 14.5px;
}
.cart-form input:focus, .cart-form textarea:focus { outline: 1.5px solid var(--color-accent); outline-offset: 1px; }
.cart-form textarea { resize: vertical; min-height: 64px; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--color-divider); }
.cart-note { font-size: 12px; color: var(--color-text-faint); margin-top: 10px; line-height: 1.55; }

.cart-confirm {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px 32px; gap: 4px;
}
.cart-confirm[hidden] { display: none; }
.cart-confirm-icon { color: var(--color-accent); margin-bottom: 14px; }
.cart-confirm h2 { font-size: 21px; font-weight: 400; margin-bottom: 10px; }
.cart-confirm-body { font-size: 14.5px; line-height: 1.7; color: var(--color-text-soft); max-width: 34ch; margin-bottom: 14px; }
.cart-confirm-ref { font-size: 12px; letter-spacing: 0.04em; color: var(--color-text-faint); margin-bottom: 26px; }
.cart-confirm-ref strong { color: var(--color-text-soft); font-weight: 600; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--color-neutral-900); color: var(--color-neutral-100); padding: 13px 20px;
  font-size: 13.5px; box-shadow: var(--shadow-md); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--color-bg); padding: 8px 24px 24px; gap: 4px; border-bottom: 1px solid var(--color-divider);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { color: var(--color-text); padding: 12px 0; border-bottom: 1px solid var(--color-divider); font-size: 15px; }
  .nav-toggle { display: flex; }
  .nav { display: flex; align-items: center; }
  .nav-brand {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    font-size: 14px; letter-spacing: 0.06em; min-width: 0;
  }
  .nav-brand-sub { font-size: 7.5px; letter-spacing: 0.1em; }
  .nav-actions { grid-column: unset; margin-left: auto; gap: 8px; }

  .about-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .process-step + .process-step { border-left: none; padding-left: 0; border-top: 1px solid var(--color-divider); padding-top: 20px; margin-top: 4px; }

  .cart-drawer { width: 100vw; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
