/* ============================================================
   Erin Burge Art — warm & organic design system
   ============================================================ */

:root {
  /* Palette — wild west-coast: sea greens, sand, driftwood, clay */
  --paper:       #f8f4ec;
  --paper-2:     #efe7d8;
  --paper-3:     #e6dcc8;
  --ink:         #1f332d;
  --ink-soft:    #46554e;
  --ink-faint:   #6f7d75;
  --sea:         #2f5249;
  --sea-deep:    #16291f;
  --sand:        #d8c9ad;
  --driftwood:   #b6a587;
  --clay:        #bd6a47;
  --clay-deep:   #9c5436;
  --line:        #ddd2bd;
  --white:       #fffdf8;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 4px;
  --shadow-soft: 0 18px 50px -28px rgba(22, 41, 31, .45);
  --shadow-art:  0 30px 60px -30px rgba(22, 41, 31, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: var(--sea); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--clay); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.bg-paper-2 { background: var(--paper-2); }
.bg-sea { background: var(--sea-deep); color: var(--paper); }
.bg-sea h1, .bg-sea h2, .bg-sea h3 { color: var(--white); }

/* Eyebrow / kicker */
.kicker {
  font-family: var(--body);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.kicker::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--driftwood);
}
.bg-sea .kicker { color: var(--sand); }

.display-1 { font-size: clamp(2.7rem, 7vw, 5.6rem); }
.display-2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.4rem); color: var(--ink-soft); line-height: 1.6; }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }
em, .italic { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s var(--ease);
  background: var(--sea);
  color: var(--white);
}
.btn:hover { background: var(--sea-deep); color: var(--white); transform: translateY(-2px); }
.btn--clay { background: var(--clay); }
.btn--clay:hover { background: var(--clay-deep); color: var(--white); }
.btn--ghost { background: transparent; border-color: var(--driftwood); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.btn--block { width: 100%; }

.text-link {
  font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .5rem;
}
.text-link svg { transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(5px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: 1.4rem;
}
.site-header.is-solid {
  background: rgba(248, 244, 236, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .85rem;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: inline-flex; line-height: 1; }
.brand img { height: 60px; width: auto; display: block; transition: height .4s var(--ease), filter .4s var(--ease); }
.site-header.is-solid .brand img { height: 50px; }
/* White treatment over the dark hero */
.site-header.is-transparent .brand img { filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
.site-header.is-transparent .nav a,
.site-header.is-transparent .icon-btn { color: var(--white); }

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a {
  font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); position: relative; padding-block: .3rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--clay); transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a:hover, .nav a.is-active { color: var(--clay); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.icon-btn {
  background: none; border: 0; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; gap: .4rem; position: relative;
  font-family: var(--body); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.icon-btn:hover { color: var(--clay); }
.cart-count {
  position: absolute; top: -8px; right: -12px;
  background: var(--clay); color: var(--white);
  font-size: .62rem; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; display: none; align-items: center; justify-content: center;
}
.cart-count.is-visible { display: inline-flex; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: inherit; padding: .4rem; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: var(--white); padding-bottom: clamp(3.5rem, 8vw, 7rem);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,41,31,.45) 0%, rgba(22,41,31,.15) 35%, rgba(22,41,31,.75) 100%);
}
.hero__content { max-width: 720px; }
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero .lead { color: rgba(255,255,255,.9); margin-bottom: 2rem; }
.hero .kicker { color: var(--sand); }
.hero .kicker::before { background: rgba(255,255,255,.5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__caption {
  position: absolute; right: var(--gutter); bottom: clamp(3.5rem, 8vw, 7rem);
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.7); writing-mode: vertical-rl; text-align: right;
}

/* ============================================================
   Featured / split blocks
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-art); }
.split__media { position: relative; }
.split__badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--clay); color: var(--white); padding: 1rem 1.3rem;
  font-family: var(--display); font-size: 1.1rem; line-height: 1.2; box-shadow: var(--shadow-soft);
  max-width: 200px;
}

.section-head { max-width: 620px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 2rem; flex-wrap: wrap; }

/* ============================================================
   Gallery grid (masonry via columns)
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter {
  font-family: var(--body); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .6rem 1.2rem; border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  border-radius: 999px; cursor: pointer; transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--driftwood); color: var(--ink); }
.filter.is-active { background: var(--sea); border-color: var(--sea); color: var(--white); }

.masonry { column-count: 3; column-gap: 1.6rem; }
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }

.art-card {
  break-inside: avoid; margin-bottom: 1.6rem; cursor: pointer; position: relative;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px -22px rgba(22,41,31,.5);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.art-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-art); }
.art-card__img { position: relative; overflow: hidden; }
.art-card__img img { width: 100%; transition: transform .7s var(--ease); }
.art-card:hover .art-card__img img { transform: scale(1.05); }
.art-card__overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.2rem;
  background: linear-gradient(180deg, transparent 40%, rgba(22,41,31,.82));
  opacity: 0; transition: opacity .4s var(--ease); color: var(--white);
}
.art-card:hover .art-card__overlay { opacity: 1; }
.art-card__overlay .view { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.art-card__meta { padding: 1.1rem 1.3rem 1.3rem; }
.art-card__meta h3 { font-size: 1.35rem; margin: 0 0 .25rem; }
.art-card__meta .sub { font-size: .82rem; color: var(--ink-faint); letter-spacing: .02em; }
.art-card__price { display: block; margin-top: .6rem; font-family: var(--display); font-size: 1.15rem; color: var(--sea); }
.art-card__price.is-muted { font-size: .92rem; font-style: italic; color: var(--ink-faint); }
.art-card__cat {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  background: rgba(248,244,236,.92); color: var(--sea); padding: .35rem .7rem; border-radius: 999px;
}
.art-card__sold {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  background: var(--ink); color: var(--white); padding: .35rem .7rem; border-radius: 999px;
}
.art-card.is-sold .art-card__img img { filter: saturate(.78) brightness(.96); }

.empty-note { text-align: center; color: var(--ink-faint); padding: 4rem 0; font-style: italic; }

/* ============================================================
   Lightbox / product detail
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
}
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(16,28,22,.82); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative; z-index: 1; background: var(--paper); border-radius: var(--radius);
  max-width: 1080px; width: 100%; max-height: 92vh; overflow: auto;
  display: grid; grid-template-columns: 1.25fr 1fr; box-shadow: var(--shadow-art);
}
.modal__media { background: var(--sea-deep); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.modal__media img { max-height: 80vh; width: auto; border-radius: 2px; box-shadow: var(--shadow-art); }
.modal__body { padding: clamp(2rem, 4vw, 3.2rem); display: flex; flex-direction: column; }
.modal__body .kicker { margin-bottom: .8rem; }
.modal__body h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.spec-list { list-style: none; margin: 1.4rem 0 1.8rem; padding: 1.4rem 0; border-block: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .95rem; }
.spec-list .label { color: var(--ink-faint); letter-spacing: .04em; }
.spec-list .value { font-weight: 700; }
.price-row { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.5rem; }
.price-row .price { font-family: var(--display); font-size: 1.9rem; color: var(--ink); }
.price-row .price--inquire { font-size: 1.3rem; color: var(--sea); font-style: italic; }
.modal__actions { display: flex; flex-direction: column; gap: .8rem; margin-top: auto; }
.modal__note { font-size: .82rem; color: var(--ink-faint); margin-top: 1rem; }
.modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(248,244,236,.9); color: var(--ink); display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease);
}
.modal__close:hover { background: var(--clay); color: var(--white); }

/* ============================================================
   Cart drawer
   ============================================================ */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(16,28,22,.5); opacity: 0; transition: opacity .4s var(--ease); }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 90vw);
  background: var(--paper); box-shadow: -20px 0 60px -30px rgba(0,0,0,.6);
  transform: translateX(100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font-size: 1.4rem; }
.drawer__items { flex: 1; overflow-y: auto; padding: 1rem 1.6rem; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; }
.cart-item h4 { font-family: var(--display); font-size: 1.05rem; margin: 0 0 .2rem; }
.cart-item .ci-sub { font-size: .78rem; color: var(--ink-faint); }
.cart-item .ci-remove { background: none; border: 0; color: var(--ink-faint); cursor: pointer; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: 0; margin-top: .3rem; }
.cart-item .ci-remove:hover { color: var(--clay); }
.drawer__empty { text-align: center; color: var(--ink-faint); padding: 3rem 1rem; font-style: italic; }
.drawer__foot { padding: 1.6rem; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; font-family: var(--display); font-size: 1.2rem; margin-bottom: 1rem; }
.drawer__foot .note { font-size: .78rem; color: var(--ink-faint); margin-top: .8rem; text-align: center; }

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(47,82,73,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.3rem; }

/* ============================================================
   CV / process lists
   ============================================================ */
.cv-block { margin-bottom: 3rem; }
.cv-block h3 { font-size: 1.6rem; margin-bottom: 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li { display: flex; gap: 1.4rem; padding: .7rem 0; border-bottom: 1px dotted var(--line); }
.cv-list .year { font-weight: 700; color: var(--clay); min-width: 64px; font-variant-numeric: tabular-nums; }
.cv-list .what { color: var(--ink-soft); }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.process-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -24px rgba(22,41,31,.5); }
.process-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.process-card .pc-body { padding: 1.4rem 1.5rem 1.6rem; }
.process-card h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.step-num { font-family: var(--display); font-size: 2.4rem; color: var(--sand); line-height: 1; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--sea-deep); color: rgba(255,255,255,.78); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--sand); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid .brand { color: var(--white); }
.footer-grid .brand img { height: 76px; width: auto; filter: brightness(0) invert(1); }
.footer-grid h4 { color: var(--white); font-family: var(--body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; font-size: .95rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.4rem; }
.footer-social a { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; display: flex; align-items: center; justify-content: center; transition: all .3s var(--ease); }
.footer-social a:hover { background: var(--sand); border-color: var(--sand); color: var(--sea-deep); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; font-size: .8rem; color: rgba(255,255,255,.55); }

/* Newsletter */
.newsletter { display: flex; gap: .6rem; margin-top: 1.2rem; max-width: 360px; }
.newsletter input { flex: 1; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: var(--white); border-radius: var(--radius); font-family: var(--body); }
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter input:focus { outline: none; border-color: var(--sand); }

/* ============================================================
   Page header band (interior pages)
   ============================================================ */
.page-band { padding-top: clamp(8rem, 14vw, 11rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-band h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }

/* ============================================================
   Utilities & motion
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.stat-row { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.stat .n { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--clay); line-height: 1; }
.stat .l { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-top: .5rem; }
.divider-leaf { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--driftwood); margin: 0 auto 1.5rem; }
.divider-leaf::before, .divider-leaf::after { content: ""; height: 1px; width: 50px; background: var(--driftwood); }
body.no-scroll { overflow: hidden; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .nav, .header-actions .search-btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand img, .site-header.is-solid .brand img { height: 44px; }
  .footer-grid .brand img { height: 64px; }
  .mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--paper); transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; padding: 6rem 2rem 2rem; }
  .mobile-nav.is-open { transform: translateX(0); }
  .mobile-nav a { font-family: var(--display); font-size: 2rem; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-nav .close { position: absolute; top: 1.4rem; right: 1.4rem; background: none; border: 0; cursor: pointer; color: var(--ink); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__badge { left: 16px; bottom: -16px; }
  .modal__dialog { grid-template-columns: 1fr; }
  .modal__media { padding: 1.2rem; }
  .modal__media img { max-height: 50vh; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .section-head--split { align-items: flex-start; }
  .hero__caption { display: none; }
}
@media (min-width: 861px) { .mobile-nav { display: none; } }
