/* Opção A · Luz natural, em tons terrosos: marrom café + verde-oliva */
:root {
  --bg: #f7f3ec;        /* off-white quente */
  --bg-alt: #efe8dc;    /* areia */
  --card: #fbf8f2;
  --ink: #3a2a1f;       /* marrom café */
  --muted: #7a6858;
  --brown: #6b4a33;     /* marrom principal (botões) */
  --brown-dk: #553a27;
  --olive: #6b6b3d;     /* verde-oliva (detalhes) */
  --olive-lt: #a3a36e;
  --line: #e2d8c8;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin-bottom: 24px; }
h1 em, h2 em { color: var(--olive); }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 500; color: var(--olive); margin-bottom: 16px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 16px max(20px, env(safe-area-inset-right)) 16px max(20px, env(safe-area-inset-left)); display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; }
.nav nav { display: flex; gap: 28px; align-items: center; }
.nav nav a { text-decoration: none; font-size: .9rem; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--bg); background: var(--brown); padding: 8px 18px; border-radius: 999px; }
.nav .nav-cta:hover { color: var(--bg); background: var(--brown-dk); }

/* BOTÕES */
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 500; border: 1px solid var(--brown); transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brown); color: var(--bg); }
.btn-primary:hover { background: var(--brown-dk); }
.btn-ghost { color: var(--brown); }
.btn-ghost:hover { background: var(--brown); color: var(--bg); }

/* HERO */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1; margin-bottom: 28px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo { justify-self: center; width: 100%; max-width: 420px; position: relative; }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--olive-lt); border-radius: 999px 999px 18px 18px; }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 18%; border-radius: 999px 999px 18px 18px; }

/* SEÇÕES */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 36em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 0; max-width: 16em; }
.link-arrow { color: var(--brown); text-decoration: none; font-weight: 500; font-size: .92rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* SOBRE */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; border-radius: 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; max-width: 34em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.about-text a { color: var(--brown); }
.facts { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts span { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--olive); padding-top: 4px; font-weight: 500; }

/* PROJETOS */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 16px; }
.gallery figure { position: relative; overflow: hidden; border-radius: 14px; }
.gallery .g-wide { grid-column: span 2; grid-row: span 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); font-size: .78rem; padding: 4px 12px; border-radius: 999px; }
.services { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; border-top: 1px solid var(--line); padding-top: 32px; }
.services h3 { font-size: 1.6rem; margin-bottom: 8px; }
.services p { color: var(--muted); font-size: .95rem; }

/* ATELIÊS */
.ateliers-head { display: grid; grid-template-columns: .55fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.ateliers-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 25%; border-radius: 999px 999px 14px 14px; }
.events { display: grid; gap: 0; border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 120px 1fr auto; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.event-date .d { display: block; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--olive); }
.event-date .d.soon { font-size: 1.7rem; line-height: 1.1; }
.event-date .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.event h3 { font-size: 1.8rem; line-height: 1.15; }
.event-meta { font-size: .85rem; color: var(--olive); font-weight: 500; margin: 2px 0 6px; }
.event-body p { color: var(--muted); font-size: .96rem; max-width: 40em; }
.event-extra { margin-top: 6px; font-weight: 500; color: var(--ink) !important; }
.event.is-past { grid-template-columns: 120px 1fr; opacity: .65; }
.empty { color: var(--muted); padding: 28px 0; }
.empty a { color: var(--brown); }
.past { margin-top: 32px; }
.past summary { cursor: pointer; color: var(--muted); font-size: .92rem; margin-bottom: 8px; }

/* CONTATO */
.contact { background: var(--brown); color: var(--bg); }
.contact .eyebrow { color: var(--olive-lt); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center; }
.contact h2 { color: var(--bg); max-width: 14em; }
.contact-list { list-style: none; margin-top: 40px; border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); }
.contact-list .label { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; opacity: .75; padding-top: 6px; }
.contact-list a { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; color: var(--bg); overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.contact-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; }

/* RODAPÉ */
.footer { background: var(--brown-dk); color: color-mix(in srgb, var(--bg) 75%, transparent); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--bg); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* RESPONSIVO */
@media (max-width: 900px) {
  .hero, .about, .contact-grid, .ateliers-head { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 32px; padding-bottom: 72px; }
  .hero-photo { order: -1; max-width: 300px; }
  .about-photo { max-width: 420px; }
  .ateliers-photo { max-width: 260px; }
  .contact-photo { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g-wide { grid-column: span 2; }
  .services { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery .g-wide { grid-column: auto; }
  .facts li { grid-template-columns: 1fr; gap: 0; }
  .event { grid-template-columns: 72px 1fr; gap: 16px; }
  .event-date .d { font-size: 2.6rem; }
  .event-btn { grid-column: 1 / -1; text-align: center; }
  .event.is-past { grid-template-columns: 72px 1fr; }
  .hero-photo::before { inset: 12px -10px -12px 10px; }
}
