:root {
  --orange: #f36a2f;
  --orange-2: #ff9b3d;
  --black: #070707;
  --dark: #101010;
  --soft: #171717;
  --white: #fff;
  --muted: #b8b8b8;
  --line: rgba(255,255,255,.13);
  --radius: 28px;
  --shadow: 0 30px 80px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.grain {
  position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 5px 5px;
}
.glow { position: fixed; width: 520px; height: 520px; border-radius: 999px; filter: blur(80px); opacity: .35; z-index: -4; pointer-events:none; }
.glow.one { top: -180px; right: -120px; background: var(--orange); }
.glow.two { bottom: 10%; left: -240px; background: #5d240e; }
header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7,7,7,.72);
  border-bottom: 1px solid var(--line);
}
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav img { width: 220px; height: auto; }
.nav-links { display: flex; gap: 12px; align-items: center; }
.nav-links a { color: #e9e9e9; font-weight: 700; font-size: 14px; opacity:.9; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  background: var(--orange); color: var(--black); font-weight: 900;
  box-shadow: 0 16px 40px rgba(243,106,47,.28);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 0; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 24px 50px rgba(243,106,47,.38); }
.btn.secondary { background: rgba(255,255,255,.08); color: var(--white); border: 1px solid var(--line); box-shadow: none; }
.hero { position: relative; padding: 78px 0 36px; min-height: 680px; display: grid; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 46px; align-items: center; }
.tag { display: inline-flex; gap: 8px; align-items: center; color: #fff; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.tag.small { font-size: 11px; padding: 8px 11px; }
.dot { width: 9px; height: 9px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 7px rgba(243,106,47,.12); }
h1 { margin: 26px 0 0; font-size: clamp(48px, 7vw, 104px); line-height: .86; letter-spacing: -.08em; font-weight: 950; }
h1 span { color: var(--orange); }
.lead { max-width: 620px; margin: 26px 0 0; font-size: clamp(18px, 2.2vw, 25px); line-height: 1.35; color: #e0e0e0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 36px; max-width: 620px; }
.stat { padding: 18px; background: rgba(255,255,255,.055); border: 1px solid var(--line); border-radius: 22px; }
.stat strong { display:block; font-size: 26px; line-height: 1; color: var(--orange-2); }
.stat span { display:block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height:1.25; }
.phone {
  width: min(420px, 100%); margin-left: auto; position: relative;
  aspect-ratio: 9 / 18.2; border-radius: 48px; padding: 14px; background: linear-gradient(145deg,#292929,#050505);
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.16);
  transform: rotate(2deg);
}
.phone::before { content:""; position:absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 112px; height: 24px; border-radius: 0 0 17px 17px; background:#050505; z-index:4; }
.phone-screen {
  height: 100%; border-radius: 35px; overflow: hidden; background: #111; position: relative;
}
.story-loop { isolation: isolate; }
.story-item { position: absolute; inset: 0; opacity: 0; transition: opacity .65s ease; }
.story-item.active { opacity: 1; z-index: 2; }
.story-item img, .story-item video {
  width: 100%; height: 100%; object-fit: cover;
}
.story-placeholder {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 34px; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 10%, rgba(243,106,47,.48), transparent 38%), linear-gradient(160deg,#181818,#050505);
}
.story-placeholder strong { font-size: 28px; letter-spacing: -.04em; }
.story-placeholder span { color: rgba(255,255,255,.68); line-height: 1.4; }
.section { padding: 74px 0; }
.section-title { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom: 28px; }
.section-title h2 { margin:0; font-size: clamp(34px,5vw,70px); line-height:.92; letter-spacing:-.06em; }
.section-title p { margin:0; max-width: 470px; color: var(--muted); line-height:1.6; }
.services { display:grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.service { padding: 24px; border:1px solid var(--line); background: linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035)); border-radius: 24px; min-height: 190px; }
.service .num { color: var(--orange); font-weight: 950; margin-bottom: 36px; }
.service h3 { margin:0; font-size:22px; letter-spacing:-.03em; }
.service p { color: var(--muted); line-height:1.45; margin: 10px 0 0; }
.portfolio-wrap { background: #f7f7f7; color: #101010; border-radius: 42px 42px 0 0; padding: 74px 0; }
.portfolio-wrap .section-title p { color: #555; }
.chips { display:flex; gap: 10px; flex-wrap: wrap; margin: -4px 0 28px; }
.chip { border:1px solid rgba(0,0,0,.12); background:#fff; color:#161616; border-radius:999px; padding: 10px 15px; font-weight: 850; font-size: 13px; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.chip:hover { transform: translateY(-1px); }
.chip.accent { background: var(--orange); border-color: var(--orange); color: #111; }
.work-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 14px; align-items: stretch; }
.work-card {
  position: relative; appearance: none; border:0; padding:0; cursor: zoom-in;
  border-radius: 24px; overflow:hidden; background:#ddd; min-height: 280px;
  box-shadow: 0 18px 44px rgba(0,0,0,.12);
  transition: opacity .25s ease, transform .25s ease;
}
.work-card.hidden { display: none; }
.work-card.image-card { aspect-ratio: 4 / 5; }
.work-card.video-card { aspect-ratio: 9 / 16; grid-row: span 2; }
.work-card img, .work-card video { width:100%; height:100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.work-card:hover img, .work-card:hover video { transform: scale(1.045); filter: saturate(1.05); }
.empty-state {
  grid-column: 1 / -1; min-height: 230px; border: 1px dashed rgba(0,0,0,.22); border-radius: 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px;
  color: #222; background: #fff;
}
.empty-state strong { font-size: 24px; letter-spacing: -.03em; }
.empty-state span { margin-top: 8px; color: #666; }
.cta-section { padding: 80px 0; background: #f7f7f7; color:#111; }
.cta-box { background:#111; color:#fff; border-radius: 34px; padding: clamp(28px,5vw,58px); display:grid; grid-template-columns:1fr auto; gap:28px; align-items:center; overflow:hidden; position:relative; }
.cta-box::after { content:"nm"; position:absolute; right:-28px; top:-65px; color: rgba(243,106,47,.20); font-weight:950; font-size: 240px; line-height:1; letter-spacing:-.18em; }
.cta-box h2 { margin:0; font-size: clamp(34px,5vw,68px); line-height:.95; letter-spacing:-.06em; position:relative; z-index:1; }
.cta-box p { margin:16px 0 0; color:#cfcfcf; max-width: 600px; line-height:1.55; position:relative; z-index:1; }
.cta-box .hero-actions { margin-top:0; position:relative; z-index:1; }
footer { border-top:1px solid var(--line); background:#0a0a0a; padding: 48px 0 34px; }
.footer-grid { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:30px; align-items:start; }
footer img { width: 205px; }
footer p, footer a, footer span { color: var(--muted); line-height:1.55; }
.foot-title { font-size: 17px; font-weight: 950; margin-bottom: 14px; }
.foot-list { display:grid; gap:8px; }
.admin-footer-button { width: fit-content; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--muted); border-radius: 999px; padding: 8px 13px; cursor: pointer; font-weight: 800; }
.admin-footer-button:hover { color: #fff; border-color: rgba(243,106,47,.6); }
.copyright { color:#6d6d6d; margin-top: 32px; font-size: 13px; }
.sticky-mobile { display:none; }
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 45;
  width: 64px; height: 64px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 18px 42px rgba(37,211,102,.35);
  border: 1px solid rgba(255,255,255,.24);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 24px 52px rgba(37,211,102,.45); filter: saturate(1.05); }
.whatsapp-float svg { width: 34px; height: 34px; display:block; }
.lightbox { position: fixed; inset:0; background: rgba(0,0,0,.9); z-index:50; display:none; align-items:center; justify-content:center; padding: 28px; }
.lightbox.open { display:flex; }
.lightbox-media { width: min(94vw, 1100px); height: 88vh; display:flex; align-items:center; justify-content:center; }
.lightbox-media img, .lightbox-media video { max-height: 88vh; max-width: min(94vw,1100px); border-radius: 22px; box-shadow: var(--shadow); object-fit:contain; background:#111; }
.lightbox-close { position:absolute; top:18px; right:18px; width:48px; height:48px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.08); color:#fff; font-size:30px; cursor:pointer; }
.lightbox-arrow { position:absolute; top:50%; transform: translateY(-50%); width:54px; height:70px; border-radius:999px; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.08); color:#fff; font-size:48px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.admin-modal { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.78); display: none; align-items: center; justify-content: center; padding: 22px; }
.admin-modal.open { display: flex; }
.admin-box { position: relative; width: min(560px, 100%); max-height: min(760px, 92vh); overflow: auto; background: #111; color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 30px; padding: 30px; box-shadow: var(--shadow); }
.admin-close { position:absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff; font-size: 28px; cursor: pointer; }
.admin-box h2 { margin: 18px 0 8px; font-size: 36px; letter-spacing: -.05em; }
.admin-box p { color: var(--muted); line-height: 1.5; }
.admin-box input, .admin-box select { width: 100%; min-height: 48px; margin-top: 8px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #fff; padding: 0 14px; outline: none; }
.admin-box select option { color: #111; }
.admin-box label { display: block; margin: 16px 0; color: #eaeaea; font-weight: 850; }
.admin-box .btn { width: 100%; margin-top: 6px; }
.admin-message { margin-top: 12px; color: #ffb199; font-weight: 800; }
.admin-help strong { color: var(--orange-2); }
.upload-result { white-space: pre-wrap; margin: 16px 0 0; color: #ddd; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 14px; min-height: 50px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
@media (max-width: 980px) {
  .nav-links a:not(.btn) { display:none; }
  .hero { padding-top: 48px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .phone { margin: 8px auto 0; width: min(360px, 92%); transform: rotate(0); }
  .services { grid-template-columns: repeat(2,1fr); }
  .work-grid { grid-template-columns: repeat(2,1fr); }
  .cta-box { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav { height: 66px; }
  .nav img { width: 172px; }
  .nav-links .btn { display:none; }
  .hero { padding-top: 34px; }
  h1 { font-size: clamp(45px, 18vw, 74px); }
  .lead { font-size: 17px; }
  .stats { grid-template-columns:1fr; }
  .section-title { display:block; }
  .section-title p { margin-top: 15px; }
  .services { grid-template-columns:1fr; }
  .portfolio-wrap { border-radius: 30px 30px 0 0; padding-top: 54px; }
  .work-grid { gap: 10px; }
  .work-card { border-radius: 18px; min-height: 210px; }
  .work-card.video-card { min-height: 330px; }
  .phone-screen { border-radius: 28px; }
  .hero-actions .btn { width:100%; }
  .sticky-mobile { position:fixed; left:14px; right:14px; bottom:14px; z-index:35; display:flex; min-height:54px; }
  .whatsapp-float { right: 18px; bottom: 86px; width: 58px; height: 58px; }
  .whatsapp-float svg { width: 31px; height: 31px; }
  body { padding-bottom: 76px; }
  .lightbox-arrow { width: 44px; height: 58px; font-size: 38px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .admin-box { padding: 24px 18px; border-radius: 24px; }
}
.work-card.site-card { cursor: pointer; display: block; }

/* Painel ADM v5 */
.admin-box {
  width: min(1180px, calc(100vw - 32px));
  max-height: min(880px, 94vh);
  padding: 34px;
}
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-right: 46px;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 18px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  border-radius: 999px;
}
.admin-tab {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}
.admin-tab.active {
  background: var(--orange);
  color: #111;
}
.admin-section[hidden] { display: none !important; }
.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 360px) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
}
.admin-toolbar-label { margin: 0 !important; }
.admin-save-order { width: auto !important; min-width: 190px; }
.admin-help.compact { margin: 8px 0 16px; font-size: 14px; }
.admin-media-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-height: 120px;
}
.admin-media-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  min-width: 0;
}
.admin-media-thumb {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.admin-media-thumb img,
.admin-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-media-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.admin-media-meta strong {
  color: #fff;
  font-size: 14px;
  letter-spacing: -.02em;
}
.admin-media-meta span,
.admin-media-meta small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.admin-media-actions {
  display: grid;
  grid-template-columns: 42px 42px 1fr;
  gap: 8px;
}
.admin-media-actions button {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}
.admin-media-actions button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.admin-media-actions button.danger {
  border-color: rgba(255,97,97,.35);
  background: rgba(255,97,97,.12);
  color: #ffb3b3;
}
.admin-empty {
  grid-column: 1 / -1;
  min-height: 190px;
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px;
  color: #fff;
}
.admin-empty span { color: var(--muted); }
.upload-result.error { color: #ffb3b3; border-color: rgba(255,97,97,.28); }

@media (max-width: 980px) {
  .admin-box { width: min(100%, calc(100vw - 24px)); padding: 26px 18px; }
  .admin-toolbar { grid-template-columns: 1fr; }
  .admin-save-order { width: 100% !important; }
  .admin-media-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .admin-tabs { border-radius: 22px; }
  .admin-tab { width: 100%; }
  .admin-media-list { grid-template-columns: 1fr; }
}
