/* Que Nível — site styles */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #1C1C1A;
  --ink-2: #2A2A27;
  --paper: #F5F3EE;
  --stone: #E9E6DF;
  --line: #D6D1C6;
  --muted: #5C5A55;
  --muted-light: #B9B5AC;
  --yellow: #F2B300;
  --yellow-dark: #C99500;
  --danger: #A8321E;
  --ok: #2F6B4F;
  --radius: 14px;
  --wrap: 1180px;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; line-height: 1.08; margin: 0; letter-spacing: -0.005em; }
h1 { font-weight: 800; font-stretch: 112%; font-size: clamp(38px, 5.2vw, 68px); }
h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-weight: 700; font-size: 20px; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid var(--yellow); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: #FFC51F; border-color: #FFC51F; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(245,243,238,.45); }
.btn-ghost:hover { background: rgba(245,243,238,.08); border-color: var(--paper); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,243,238,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) { text-decoration: none; padding: 10px 0; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); }
.site-nav .lang { font-weight: 600; letter-spacing: .06em; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px !important; min-width: 44px; text-align: center; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 10px; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 13px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .2s; }
.nav-toggle-bar { top: 23px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Kicker */
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; flex: none; width: 28px; height: 12px; border-radius: 6px; background: radial-gradient(ellipse 4px 3px at 50% 50%, var(--ink) 98%, var(--yellow) 100%); }
.kicker-light { color: var(--muted-light); }

/* Hero */
.hero { background: var(--ink); color: var(--paper); padding: 88px 0 96px; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--yellow) 0 2px, transparent 2px 24px); opacity: .35; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero .lead { font-size: 20px; color: #DAD6CD; max-width: 560px; margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-points { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: #DAD6CD; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }

.level { width: 100%; height: auto; }
.level-body { fill: var(--yellow); }
.level-hole, .level-ticks rect { fill: var(--ink); }
.level-window { fill: var(--ink); }
.level-liquid { fill: #3A3A2C; }
.level-mark { fill: var(--yellow); }
.level-bubble { fill: var(--paper); transform-box: fill-box; transform-origin: center; }
.hero-art { transform: rotate(-4deg); animation: settle-body 2.6s cubic-bezier(.2,.8,.2,1) .2s both; }
.hero-art .level-bubble { animation: settle-bubble 2.6s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes settle-body { 0% { transform: rotate(-4deg); } 55% { transform: rotate(.8deg); } 75% { transform: rotate(-.3deg); } 100% { transform: rotate(0); } }
@keyframes settle-bubble { 0% { transform: translateX(-62px); } 55% { transform: translateX(14px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }

/* Sections */
.section { padding: 104px 0; }
.section-stone { background: var(--stone); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-lead { font-size: 19px; color: var(--muted); margin-top: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 32px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28,28,26,.08); border-color: #C7C1B4; }
.card h3 { margin: 22px 0 10px; }
.card p { color: var(--muted); font-size: 16px; }
.ico { width: 44px; height: 44px; color: var(--ink); padding: 9px; background: var(--yellow); border-radius: 12px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 14px); opacity: .35; }
.step { position: relative; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 48px; border-radius: 24px; background: var(--ink); color: var(--yellow); font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 18px; position: relative; }
.step h3 { margin: 24px 0 10px; }
.step p { color: var(--muted); font-size: 16px; }

.coms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.com { display: flex; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.com h3 { font-size: 19px; margin-bottom: 6px; }
.com p { color: var(--muted); font-size: 16px; }
.ico-check { flex: none; width: 32px; height: 32px; padding: 6px; border-radius: 50%; }

.partners { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.partners .lead { font-size: 19px; color: #DAD6CD; }
.plist { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.plist li { display: flex; align-items: center; gap: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.mini-level { width: 132px; height: 40px; border-radius: 20px; background: var(--yellow); margin-top: 40px; position: relative; box-shadow: inset 0 0 0 7px var(--yellow), inset 0 0 0 40px var(--ink); }
.mini-level span { position: absolute; left: 50%; top: 50%; width: 22px; height: 15px; margin: -7.5px 0 0 -11px; border-radius: 50%; background: var(--paper); }
.mini-level::before, .mini-level::after { content: ""; position: absolute; top: 9px; bottom: 9px; width: 2.5px; background: var(--yellow); }
.mini-level::before { left: 44px; } .mini-level::after { right: 44px; }
.mini-level-big { margin: 0 0 32px; }

.inquiry { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: grid; gap: 20px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .15s, background .15s; }
.field textarea { resize: vertical; min-height: 132px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C1C1A' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(242,179,0,.45); }
.field input::placeholder, .field textarea::placeholder { color: #8A867E; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--ink); }
.check label { font-weight: 400; font-size: 15px; }
.check.invalid label { color: var(--danger); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { font-weight: 500; min-height: 1.6em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.inquiry.sent .field, .inquiry.sent .row2, .inquiry.sent .form-foot { display: none; }
.inquiry.sent .form-status { font-size: 19px; padding: 24px 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: #DAD6CD; padding: 64px 0 28px; font-size: 15px; }
.site-footer img { height: 36px; width: auto; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #3A3A36; }
.foot-tag { margin-top: 16px; }
.foot-contact, .foot-links { display: grid; gap: 10px; align-content: start; }
.foot-contact a, .foot-links a { text-decoration: none; }
.foot-contact a:hover, .foot-links a:hover { color: var(--yellow); }
.foot-bottom { padding-top: 24px; display: grid; gap: 6px; font-size: 13px; color: var(--muted-light); }

/* Simple pages */
.page { padding: 96px 0 120px; min-height: 60vh; }
.page h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 24px; }
.page h2 { font-size: 22px; font-stretch: 112%; margin: 36px 0 10px; }
.page p { color: var(--muted); }
.page .lead { font-size: 20px; margin-bottom: 36px; }
.muted { color: var(--muted); }

/* Reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .lang { align-self: flex-start; margin: 16px 0; border-bottom: 1.5px solid var(--line) !important; }
  .site-nav .btn { margin-top: 4px; }
  .hero-grid, .partners, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-art { max-width: 520px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .steps::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .contact-intro .mini-level { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-row { min-height: 64px; }
  .brand img { height: 30px; }
  .hero { padding: 56px 0 72px; }
  .hero .lead { font-size: 18px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .cards, .steps, .coms, .row2 { grid-template-columns: minmax(0, 1fr); }
  .coms { gap: 0; }
  .inquiry { padding: 24px 18px; border-radius: 16px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-ctas .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art, .hero-art .level-bubble { animation: none; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
