/* ==========================================================================
   LUMA Gráfica — design system
   Cores da marca: #1E2126 #8A8C45 #58592C #D99F59 #A6754B
   Temas: claro, escuro e sistema (data-theme no <html>)
   ========================================================================== */

:root {
  --ink: #1E2126;
  --olive: #8A8C45;
  --olive-d: #58592C;
  --amber: #D99F59;
  --clay: #A6754B;

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --bottom-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
  --bg: #FBF9F4;
  --bg-alt: #F3EFE4;
  --surface: #FFFFFF;
  --surface-2: #F7F4EB;
  --line: #E4DECD;
  --text: #1E2126;
  --muted: #5C6058;
  --primary: #58592C;
  --primary-hover: #484922;
  --on-primary: #FFFFFF;
  --soft: #ECE9D3;
  --on-soft: #3F401F;
  --link: #58592C;
  --accent: #D99F59;
  --focus: #A6754B;
  --danger: #B3372D;
  --danger-bg: #FBEAE7;
  --ok: #3F6B2B;
  --ok-bg: #E8F2E1;
  --info-bg: #F3EBD9;
  --shadow: 0 1px 2px rgba(30, 33, 38, .06), 0 8px 24px -12px rgba(30, 33, 38, .18);
  --shadow-lg: 0 2px 4px rgba(30, 33, 38, .06), 0 24px 48px -20px rgba(30, 33, 38, .28);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1E2126;
  --bg-alt: #1A1D21;
  --surface: #272B32;
  --surface-2: #2E333B;
  --line: #3B414A;
  --text: #F1EEE6;
  --muted: #A9ADA4;
  --primary: #D99F59;
  --primary-hover: #E5B173;
  --on-primary: #1E2126;
  --soft: #34382B;
  --on-soft: #E7E4C4;
  --link: #E5B173;
  --accent: #D99F59;
  --focus: #E5B173;
  --danger: #F08A80;
  --danger-bg: #3A2523;
  --ok: #9CCB82;
  --ok-bg: #26331F;
  --info-bg: #34301F;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
img, video, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.2em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.container.narrow, .narrow { max-width: 820px; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 999; background: var(--primary); color: var(--on-primary); padding: .7rem 1rem; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Ícones e logos ---------- */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.on { fill: currentColor; }
.logo-for-dark { display: none; }
[data-theme="dark"] .logo-for-light { display: none; }
[data-theme="dark"] .logo-for-dark { display: block; }
.logo { height: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  padding: .85rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
  min-height: 44px; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); box-shadow: var(--shadow); }
.btn-soft { background: var(--soft); color: var(--on-soft); }
.btn-soft:hover { filter: brightness(.96); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #E5B173; color: var(--ink); box-shadow: 0 10px 28px -10px rgba(217, 159, 89, .7); }
.btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; min-height: 38px; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: transparent; color: var(--text); cursor: pointer; position: relative; text-decoration: none;
  transition: background-color .2s, transform .15s var(--ease);
}
.icon-btn:hover { background: var(--soft); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-btn.danger:hover { background: var(--danger-bg); color: var(--danger); }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }
.badge-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: var(--ink); font-size: .7rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }

/* ---------- Dropdown / tema ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; z-index: 60; padding: .35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .15s, transform .15s var(--ease), visibility .15s;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu button {
  display: flex; align-items: center; gap: .65rem; width: 100%; padding: .65rem .8rem; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); font: inherit; font-size: .93rem; cursor: pointer; text-align: left;
}
.dropdown-menu button:hover { background: var(--soft); }
.dropdown-menu button[aria-checked="true"] { background: var(--soft); font-weight: 700; }
.ti { display: none; }
[data-theme-pref="light"] .ti-light, [data-theme-pref="dark"] .ti-dark, [data-theme-pref="system"] .ti-system { display: inline-grid; place-items: center; }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--soft); border-radius: 14px; width: 100%; }
.seg button { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: .4rem; padding: .6rem .5rem; border: 0; border-radius: 10px; background: transparent; color: var(--on-soft); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 1.5rem; height: 100%; }
.brand { display: flex; align-items: center; flex: none; }
.brand .logo { width: 132px; }
.main-nav { display: flex; gap: .25rem; margin-inline: auto; }
.main-nav a { padding: .55rem .95rem; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; position: relative; transition: background-color .2s; }
.main-nav a:hover { background: var(--soft); }
.main-nav a[aria-current="page"] { background: var(--soft); color: var(--on-soft); }
.header-actions { display: flex; align-items: center; gap: .35rem; }
.show-mobile { display: none; }

/* ---------- Hero web ---------- */
.hero-web { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-track { position: relative; aspect-ratio: 21 / 9; min-height: 440px; max-height: 720px; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-bg { position: absolute; inset: 0; background: var(--ink); }
.hero-bg > img, .hero-bg > video { width: 100%; height: 100%; object-fit: cover; }
.hero-slide:not(.is-brand) .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 33, 38, .88) 0%, rgba(30, 33, 38, .55) 45%, rgba(30, 33, 38, .1) 100%), linear-gradient(0deg, rgba(30, 33, 38, .5), transparent 40%); }
.hero-slide.is-brand .hero-bg {
  background:
    radial-gradient(55% 90% at 88% 18%, rgba(217, 159, 89, .30), transparent 62%),
    radial-gradient(45% 70% at 8% 100%, rgba(138, 140, 69, .34), transparent 60%),
    linear-gradient(135deg, #1E2126 0%, #23271f 100%);
}
.hero-mark { position: absolute; right: 7%; top: 50%; width: min(34vw, 520px); height: auto; transform: translateY(-50%) rotate(-3deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); opacity: .96; }
.hero-copy { position: relative; z-index: 2; padding-block: 3rem; }
.hero-copy > * { max-width: 640px; }
.hero-copy h1 { color: #fff; font-size: clamp(2.2rem, 1rem + 3.6vw, 4.2rem); text-wrap: balance; margin-bottom: .35em; }
.hero-copy p { font-size: clamp(1rem, .9rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .86); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero-slide .hero-copy > * { opacity: 0; transform: translateY(18px); }
.hero-slide.is-active .hero-copy > * { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: .08s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: .16s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: .24s; }
.hero-controls { position: absolute; z-index: 5; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; border-radius: 999px; background: rgba(30, 33, 38, .55); backdrop-filter: blur(10px); }
.hero-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background-color .2s; }
.hero-btn:hover { background: rgba(255, 255, 255, .18); }
.hero-dots { display: flex; gap: 8px; padding-inline: .25rem; }
.hero-dot { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s var(--ease), background-color .2s; }
.hero-dot.is-active { width: 28px; background: var(--amber); }
.hero-web [data-hero-toggle] .i-play { display: none; }
.hero-web.is-paused [data-hero-toggle] .i-play { display: inline; }
.hero-web.is-paused [data-hero-toggle] .i-pause { display: none; }
.hero-web .i-pause .i, .hero-web .i-play .i { width: 1.1em; height: 1.1em; }

/* ---------- Hero Stories (mobile) ---------- */
.stories { display: none; }

/* ---------- Secções ---------- */
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section.tight { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 5vw, 4.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; text-wrap: balance; }
.eyebrow { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: .5rem; }
[data-theme="dark"] .eyebrow { color: var(--amber); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow .i { transition: transform .2s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
.page-head { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2vw, 1.5rem); background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .3em; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 720px; }
.crumbs { display: flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs .i { width: 1em; height: 1em; }

/* ---------- Categorias ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.cat-card {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--olive); }
.cat-card h3 { margin: .4rem 0 0; }
.cat-card p { color: var(--muted); font-size: .94rem; margin: 0; flex: 1; }
.cat-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--olive-d), var(--olive)); font-size: 1.25rem; box-shadow: 0 10px 20px -10px rgba(88, 89, 44, .7); }
.cat-ico .i { width: 26px; height: 26px; }
.cat-card:nth-child(even) .cat-ico { background: linear-gradient(135deg, var(--clay), var(--amber)); box-shadow: 0 10px 20px -10px rgba(166, 117, 75, .7); }
.cat-img { margin: -1.5rem -1.5rem .5rem; aspect-ratio: 4/3; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-go { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--link); margin-top: .75rem; }
.cat-go .i { transition: transform .2s var(--ease); }
.cat-card:hover .cat-go .i { transform: translateX(4px); }

/* ---------- Como funciona ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: .25rem; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.steps li strong { font-size: 1.15rem; }
.steps li span:last-child { color: var(--muted); font-size: .94rem; }
.step-n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--soft); color: var(--on-soft); margin-bottom: .6rem; }

/* ---------- Benefícios ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.benefit { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.benefit h3 { margin: .8rem 0 .3rem; }
.benefit p { color: var(--muted); margin: 0; font-size: .95rem; }
.benefit-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--soft); color: var(--on-soft); }
.benefit-ico .i { width: 24px; height: 24px; }

/* ---------- Portfólio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.work { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.work:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.work button { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 4/3; overflow: hidden; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover img { transform: scale(1.05); }
.work figcaption { padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .1rem; }
.work figcaption span { color: var(--muted); font-size: .85rem; }
.work[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip { padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 16, 19, .86); backdrop-filter: blur(6px); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lb-cap { text-align: center; margin: .8rem 0 0; color: #ddd; }
.lb-close { position: absolute; right: -4px; top: -52px; color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------- Testemunhos ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.1rem; }
.testi { margin: 0; padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.testi p { margin: 0; flex: 1; }
.stars { display: flex; gap: 2px; color: var(--amber); }
.stars .i { width: 18px; height: 18px; }
.testi footer { display: flex; align-items: center; gap: .8rem; }
.testi footer img, .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--olive-d); color: #fff; font-weight: 800; }
.testi footer span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.testi small { color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: clamp(2rem, 4vw, 3.2rem); border-radius: 28px; color: #fff;
  background: radial-gradient(60% 120% at 100% 0, rgba(217, 159, 89, .3), transparent 60%), linear-gradient(135deg, #3d3e1e, #1E2126 75%);
}
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta-band > div:first-of-type { position: relative; z-index: 1; max-width: 520px; }
.cta-mark { position: absolute; right: -30px; bottom: -50px; width: 300px; opacity: .13; transform: rotate(-6deg); pointer-events: none; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Formulários ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form { padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1.1rem; }
.form h2 { font-size: 1.4rem; margin-bottom: .2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label, .field .label { font-weight: 700; font-size: .9rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field abbr { color: var(--danger); text-decoration: none; }
.input {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 1.5px solid var(--line);
  border-radius: 12px; padding: .8rem 1rem; min-height: 48px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea.input { resize: vertical; min-height: 120px; line-height: 1.55; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8C45' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; padding-right: 2.6rem; }
.input:hover { border-color: color-mix(in srgb, var(--olive) 60%, var(--line)); }
.input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 4px color-mix(in srgb, var(--olive) 25%, transparent); background: var(--surface); }
.input:disabled { opacity: .6; }
input[type="file"].input { padding: .6rem; }
.has-error .input { border-color: var(--danger); }
.err { color: var(--danger); font-size: .85rem; font-weight: 600; }
.help { color: var(--muted); font-size: .82rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .94rem; }
.alert .i { margin-top: 2px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-info { background: var(--info-bg); color: var(--text); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.info-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--soft); color: var(--on-soft); }
.info-list small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.info-list a { font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.map iframe { width: 100%; height: 100%; border: 0; }
.panel { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel h2 { font-size: 1.3rem; margin: .8rem 0 .4rem; }
.panel p { color: var(--muted); margin: 0; }
.panel-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--olive-d), var(--olive)); color: #fff; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; color: var(--text); }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .i { color: var(--olive); margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-topic { font-size: 1.1rem; margin: 2rem 0 .8rem; color: var(--clay); text-transform: uppercase; letter-spacing: .08em; }
[data-theme="dark"] .faq-topic { color: var(--amber); }
.faq-list { display: flex; flex-direction: column; gap: .6rem; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .25s var(--ease); color: var(--olive); }
.faq[open] summary .i { transform: rotate(180deg); }
.faq-a { padding: 0 1.25rem 1.2rem; color: var(--muted); }

/* ---------- Estados vazios ---------- */
.empty-state { text-align: center; padding: clamp(2rem, 6vw, 4rem) 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.empty-state > .i { width: 56px; height: 56px; padding: 14px; border-radius: 18px; background: var(--soft); color: var(--on-soft); stroke-width: 1.6; }
.empty-state h2 { font-size: 1.4rem; margin: .4rem 0 0; }
.empty-state p { color: var(--muted); max-width: 440px; margin-bottom: .6rem; }
.empty { color: var(--muted); }
.err-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--olive), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Autenticação / conta ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; padding: 2rem 1rem 3rem; background: radial-gradient(50% 60% at 80% 0, color-mix(in srgb, var(--amber) 18%, transparent), transparent 70%), radial-gradient(40% 50% at 0 100%, color-mix(in srgb, var(--olive) 18%, transparent), transparent 70%); }
.auth-card { width: min(440px, 100%); padding: clamp(1.5rem, 4vw, 2.2rem); display: flex; flex-direction: column; gap: .4rem; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: .1em; }
.auth-card .form { padding: 0; margin-top: .8rem; }
.auth-logo { display: inline-block; margin-bottom: 1rem; }
.auth-links { text-align: center; margin: .6rem 0 0; font-size: .92rem; }
.account-grid { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
.account-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.side-links { display: flex; flex-direction: column; gap: 2px; padding: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.side-links a { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.side-links a:hover, .side-links a[aria-current="page"] { background: var(--soft); color: var(--on-soft); }
.side-card { padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.account-main { display: flex; flex-direction: column; gap: 1.25rem; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #D8D6CC; margin-top: 2rem; padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand p { color: #A9ADA4; max-width: 280px; margin-top: 1rem; }
.site-footer h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.site-footer a { color: #D8D6CC; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.contact-list li { display: flex; gap: .6rem; align-items: flex-start; }
.contact-list .i { color: var(--olive); margin-top: 3px; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .07); transition: background-color .2s, transform .2s var(--ease); }
.socials a:hover { background: var(--amber); color: var(--ink); transform: translateY(-2px); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: #A9ADA4; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(14, 16, 19, .55); opacity: 0; transition: opacity .25s; backdrop-filter: blur(3px); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--bg); padding: 1rem; display: flex; flex-direction: column; gap: 1rem; transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a { display: flex; align-items: center; gap: .8rem; padding: .95rem 1rem; border-radius: 14px; color: var(--text); text-decoration: none; font-weight: 600; background: var(--surface); border: 1px solid var(--line); }
.drawer-nav a .end { margin-left: auto; color: var(--muted); }
.drawer-theme { margin-top: auto; display: flex; flex-direction: column; gap: .5rem; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 120; top: 1rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; width: min(480px, calc(100% - 2rem)); }
.toast { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: toast-in .4s var(--ease); font-weight: 600; font-size: .94rem; }
.toast > span { flex: 1; }
.toast button { background: none; border: 0; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 4px; }
.toast-success { border-left: 4px solid var(--ok); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--amber); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } }

/* ---------- Barra inferior (mobile) ---------- */
.bottom-nav { display: none; }

/* ---------- Animações de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-track { aspect-ratio: 16 / 9; min-height: 400px; }
  .main-nav a { padding: .5rem .7rem; font-size: .9rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
  .account-side { position: static; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .show-mobile { display: inline-grid; }
  .hide-mobile { display: none !important; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ----- Experiência de aplicação em smartphone ----- */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  body { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
  .brand .logo { width: 112px; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: inline-grid; }
  .site-footer { padding-bottom: .5rem; }
  .row-2 { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; gap: .5rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .cta-band { border-radius: 22px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .toasts { top: auto; bottom: calc(var(--bottom-h) + 1rem + env(safe-area-inset-bottom)); }

  /* hero: web → stories */
  .hero-web { display: none; }
  body.home .site-header { display: none; }
  .stories {
    display: block; position: relative; overflow: hidden; background: var(--ink); color: #fff; touch-action: pan-y; user-select: none; -webkit-user-select: none;
    height: calc(100vh - var(--bottom-h)); height: calc(100svh - var(--bottom-h) - env(safe-area-inset-bottom));
    min-height: 480px; -webkit-tap-highlight-color: transparent;
  }
  .stories-bars { position: absolute; z-index: 6; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 5px; }
  .sbar { flex: 1; height: 3px; background: rgba(255, 255, 255, .32); border-radius: 3px; overflow: hidden; }
  .sbar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; transform-origin: left; }
  .sbar.done i { width: 100%; }
  .sbar.active i { animation: sbar var(--d, 6s) linear forwards; }
  .stories.paused .sbar.active i { animation-play-state: paused; }
  @keyframes sbar { from { width: 0; } to { width: 100%; } }
  .stories-top { position: absolute; z-index: 6; left: 8px; right: 8px; top: calc(22px + env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; }
  .stories-brand { padding: 6px 8px; }
  .stories-brand img { width: 96px; height: auto; }
  .stories-tools { display: flex; gap: 2px; }
  .stories-tools .icon-btn { color: #fff; background: rgba(30, 33, 38, .35); backdrop-filter: blur(8px); }
  .stories-tools .dropdown-menu { background: var(--surface); }
  .story { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; display: flex; flex-direction: column; justify-content: flex-end; }
  .story.is-active { opacity: 1; visibility: visible; z-index: 2; }
  .story-bg { position: absolute; inset: 0; background: var(--ink); }
  .story-bg > img, .story-bg > video { width: 100%; height: 100%; object-fit: cover; }
  .story:not(.is-brand) .story-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 22, 26, .92) 0%, rgba(20, 22, 26, .55) 38%, transparent 62%), linear-gradient(180deg, rgba(20, 22, 26, .55), transparent 22%); }
  .story.is-brand .story-bg {
    background:
      radial-gradient(80% 50% at 90% 12%, rgba(217, 159, 89, .32), transparent 65%),
      radial-gradient(70% 45% at 0 70%, rgba(138, 140, 69, .36), transparent 65%),
      linear-gradient(170deg, #1E2126 0%, #262b22 100%);
  }
  .story-mark { position: absolute; width: 78%; left: 11%; top: 17%; height: auto; transform: rotate(-4deg); filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .4)); }
  .story-copy { position: relative; z-index: 3; padding: 1.5rem 1.25rem calc(4.2rem + env(safe-area-inset-bottom) * 0); display: flex; flex-direction: column; gap: .35rem; }
  .story-copy h2 { color: #fff; font-size: clamp(1.9rem, 8.5vw, 2.6rem); margin: 0 0 .1em; text-wrap: balance; }
  .story-copy p { color: rgba(255, 255, 255, .86); font-size: 1.02rem; margin: 0 0 1rem; }
  .story-copy .kicker { margin-bottom: .6rem; }
  .story-copy .btn { box-shadow: 0 12px 28px -10px rgba(217, 159, 89, .6); }
  .story .story-copy > * { opacity: 0; transform: translateY(16px); }
  .story.is-active .story-copy > * { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .story.is-active .story-copy > :nth-child(2) { transition-delay: .06s; }
  .story.is-active .story-copy > :nth-child(3) { transition-delay: .12s; }
  .story.is-active .story-copy > :nth-child(4) { transition-delay: .18s; }
  .stories-explore { position: absolute; z-index: 6; left: 50%; bottom: 10px; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; cursor: pointer; animation: bob 2s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translate(-50%, 4px); } }

  /* categorias em carrossel horizontal */
  .home .cat-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: .9rem; padding: 0 1rem 1rem; margin-inline: -1rem; scrollbar-width: none; }
  .home .cat-grid::-webkit-scrollbar { display: none; }
  .home .cat-card { scroll-snap-align: center; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .work figcaption { padding: .65rem .75rem; font-size: .88rem; }

  /* barra inferior */
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
    height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-top: 1px solid var(--line);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 700; position: relative; transition: color .2s; }
  .bottom-nav a .i { width: 24px; height: 24px; transition: transform .25s var(--ease); }
  .bottom-nav a[aria-current="page"] { color: var(--primary); }
  [data-theme="light"] .bottom-nav a[aria-current="page"] { color: var(--olive-d); }
  .bottom-nav a[aria-current="page"] .i { transform: translateY(-2px) scale(1.08); }
  .bottom-nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--amber); }
  .bottom-nav .ico-wrap { position: relative; display: grid; }
  .bottom-nav .badge-count { top: -5px; right: -9px; }
}

@media (min-width: 769px) {
  .stories { display: none !important; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { flex-direction: row; align-items: center; gap: .9rem; flex-wrap: wrap; }
  .step-n { margin: 0; }
  .work-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .bottom-nav, .site-footer, .hero-controls { display: none; }
}
