/* Paleta do cerrado goiano */
:root {
  --paper: #fbf3e4;
  --paper-2: #f3e4c8;
  --ink: #22180f;
  --ink-soft: #5e4b3a;
  --line: #e2cfa9;
  --terra: #b8452a;     /* terra vermelha */
  --ocre: #e09a2d;      /* ocre / sol */
  --ipe: #f4c430;       /* ipê-amarelo */
  --rosa: #d9548a;      /* ipê-rosa */
  --cerrado: #2f6b4a;   /* verde do cerrado */
  --ceu: #22578f;       /* céu de Goiás */
  --on-color: #fff7ea;
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b140e; --paper-2: #2a2016; --ink: #f6ead6; --ink-soft: #c2ad92; --line: #45362a;
    --terra: #a83d24; --cerrado: #24563a; --ceu: #1b4675; --ocre: #c9851f;
  }
}
:root[data-theme="dark"] {
  --paper: #1b140e; --paper-2: #2a2016; --ink: #f6ead6; --ink-soft: #c2ad92; --line: #45362a;
  --terra: #a83d24; --cerrado: #24563a; --ceu: #1b4675; --ocre: #c9851f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .98; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
em { font-style: italic; }

/* topo */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(16px, calc((100% - var(--max)) / 2)); background: var(--ink); color: var(--on-color); }
.brand { font: 800 1.25rem var(--display); text-decoration: none; letter-spacing: -.01em; }
.brand::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--ipe); margin-right: 10px; vertical-align: 1px; }
nav { display: flex; gap: 6px; }
nav a { text-decoration: none; font-size: .92rem; font-weight: 500; padding: 6px 12px; border-radius: 99px; }
nav a:nth-child(1):hover { background: var(--terra); }
nav a:nth-child(2):hover { background: var(--cerrado); }
nav a:nth-child(3):hover { background: var(--ocre); color: var(--ink); }
nav a:nth-child(4):hover { background: var(--ceu); }
.menu-toggle { display: none; background: var(--ipe); border: 0; color: var(--ink); padding: 7px 14px; border-radius: 99px; font: 600 .9rem var(--sans); }

/* hero */
.hero-wrap { background: var(--terra); color: var(--on-color); position: relative; overflow: hidden; }
.hero-wrap::after { /* sol */
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--ocre);
  right: -140px; top: -180px; opacity: .55; }
.hero { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 72px 16px 88px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700;
  background: var(--ipe); color: var(--ink); padding: 5px 12px; border-radius: 99px; margin: 0 0 22px; }
.hero h1 { font-size: clamp(4rem, 11vw, 8.5rem); }
.lead { font-size: 1.15rem; max-width: 32em; opacity: .92; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-art { margin: 0; aspect-ratio: 4/5; transform: rotate(2.5deg); border: 12px solid var(--on-color); box-shadow: 0 30px 60px -25px rgba(0,0,0,.5); background: var(--paper-2); }

/* faixa de cores */
.band { display: grid; grid-template-columns: repeat(6, 1fr); height: 18px; }
.band span:nth-child(1) { background: var(--ipe); }
.band span:nth-child(2) { background: var(--ocre); }
.band span:nth-child(3) { background: var(--rosa); }
.band span:nth-child(4) { background: var(--cerrado); }
.band span:nth-child(5) { background: var(--ceu); }
.band span:nth-child(6) { background: var(--ink); }

/* botões */
.btn { display: inline-block; background: var(--ipe); color: var(--ink); border: 2px solid var(--ipe); padding: 12px 24px; border-radius: 99px;
  text-decoration: none; font: 700 .95rem var(--sans); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-small { padding: 8px 16px; font-size: .85rem; }

/* seções */
.section-bg { padding: 0; }
.section { max-width: var(--max); margin: 0 auto; padding: 96px 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.note { color: var(--ink-soft); font-size: .9rem; margin: 0 0 32px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { background: var(--paper-2); border: 0; color: var(--ink); padding: 8px 16px; border-radius: 99px; font: 600 .85rem var(--sans); cursor: pointer; }
.chip:hover { background: var(--line); }
.chip.is-active { background: var(--ink); color: var(--paper); }

/* galeria */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 28px; }
.work { background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: zoom-in; font: inherit; }
.work .art { aspect-ratio: 4/5; overflow: hidden; border-radius: 6px; background: var(--paper-2); transition: transform .25s, box-shadow .25s; }
.work:nth-child(4n+1):hover .art { box-shadow: 10px 10px 0 var(--terra); }
.work:nth-child(4n+2):hover .art { box-shadow: 10px 10px 0 var(--cerrado); }
.work:nth-child(4n+3):hover .art { box-shadow: 10px 10px 0 var(--ceu); }
.work:nth-child(4n+4):hover .art { box-shadow: 10px 10px 0 var(--ocre); }
.work:hover .art { transform: translate(-4px, -4px); }
.work .art svg, .work .art img { width: 100%; height: 100%; object-fit: cover; }
.work h3 { font-size: 1.3rem; margin: 16px 0 4px; letter-spacing: -.01em; }
.work p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.work[hidden] { display: none; }

/* história — verde cerrado */
.bg-cerrado { background: var(--cerrado); color: var(--on-color); }
.history { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; }
.history-intro p { opacity: .9; }
blockquote { margin: 36px 0 0; padding: 24px 28px; background: var(--ipe); color: var(--ink); border-radius: 6px;
  font: 700 1.45rem/1.3 var(--display); letter-spacing: -.01em; transform: rotate(-1deg); }
blockquote cite { display: block; margin-top: 10px; font: 500 .85rem var(--sans); font-style: normal; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgba(255,247,234,.35); }
.timeline li { position: relative; padding: 0 0 22px 28px; font-size: .95rem; opacity: .92; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--ipe); border: 3px solid var(--cerrado); }
.timeline li:nth-child(3n+2)::before { background: var(--rosa); }
.timeline li:nth-child(3n)::before { background: var(--ocre); }
.timeline span { display: block; font: 800 1.25rem var(--display); color: var(--ipe); }

/* encomenda — ocre */
.bg-ocre { background: var(--ocre); color: var(--ink); }
.commission { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.steps { list-style: none; padding: 0; counter-reset: s; margin-top: 28px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 16px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--ipe); display: grid; place-items: center; font: 800 1rem var(--display); }
.form { display: grid; gap: 16px; background: var(--paper); color: var(--ink); padding: 32px; border-radius: 10px; box-shadow: 12px 12px 0 var(--terra); }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.form input, .form select, .form textarea { font: 400 1rem var(--sans); color: var(--ink); background: var(--paper-2); border: 2px solid transparent; border-radius: 6px; padding: 11px 12px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ceu); }
.form .btn-ghost { color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-msg { margin: 0; font-size: .9rem; color: var(--terra); font-weight: 600; min-height: 1.2em; }

/* contato — céu */
.bg-ceu { background: var(--ceu); color: var(--on-color); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-card { display: grid; gap: 6px; padding: 24px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: transform .15s; }
#c-whatsapp { background: var(--ipe); }
#c-email { background: var(--paper); }
#c-instagram { background: var(--rosa); color: #fff; }
.contact-card:last-child { background: var(--ocre); }
a.contact-card:hover { transform: translateY(-4px) rotate(-1deg); }
.contact-card span { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; opacity: .75; }
.contact-card strong { font: 800 1.2rem var(--display); word-break: break-word; }

.footer { text-align: center; padding: 36px 16px; background: var(--ink); color: var(--on-color); font-size: .85rem; }
.footer p { opacity: .75; margin: 0; }

/* lightbox */
.lightbox { border: 0; padding: 0; max-width: min(1000px, 94vw); width: 100%; background: var(--paper); color: var(--ink); border-radius: 10px; display: none; }
.lightbox[open] { display: grid; grid-template-columns: 1.4fr 1fr; }
.lightbox::backdrop { background: rgba(34,24,15,.85); }
.lb-art { aspect-ratio: 4/5; background: var(--paper-2); }
.lb-art svg, .lb-art img { width: 100%; height: 100%; object-fit: cover; }
.lb-info { padding: 40px 28px; align-self: end; }
.lb-info h3 { font-size: 2rem; }
.lb-info p { color: var(--ink-soft); }
.lb-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); border: 0; font-size: 1.5rem; color: var(--paper); cursor: pointer; }

@media (max-width: 820px) {
  .hero, .history, .commission { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 48px 16px 64px; }
  .hero-art { max-width: 380px; width: 88%; justify-self: center; }
  .hero-wrap::after { width: 320px; height: 320px; right: -120px; top: -100px; }
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); padding: 8px 0 12px; }
  nav.open { display: flex; }
  nav a { padding: 12px 16px; border-radius: 0; }
  .row { grid-template-columns: 1fr; }
  .form { padding: 22px; box-shadow: 8px 8px 0 var(--terra); }
  .lightbox[open] { grid-template-columns: 1fr; max-height: 92vh; overflow: auto; }
  .lb-info { padding: 20px; }
  .section { padding: 68px 16px; }
}
